/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --primary-color: #0d3b66;
  --secondary-color: #112d4e;
  --accent-color: #f4d35e;
  --accent-color-hover: #d9bc43;
  --background-color: #f0f4f8;
  --text-color: #333;
  --text-light: #666;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --border-radius: 12px;
  --shadow-light: rgba(13, 59, 102, 0.1);
}

/* Body & layout */
body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVIGATION */
.navbar {
  background-color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  box-shadow: 0 4px 10px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo a {
  color: var(--accent-color); /* or any color you want, e.g. white */
  text-decoration: none;
  font-weight: 700;
  font-size: 1.8rem;
}

.logo a:hover {
  color: var(--accent-color);
  text-decoration: none;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.2rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a.active,
.nav-links li a:hover {
  color: var(--accent-color);
}

.nav-links li a.active::after,
.nav-links li a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* HERO SECTION (only on homepage) */
.hero {
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 6rem 2rem 5rem;
  animation: fadeInDown 1s ease forwards;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: #dbe7f0;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 0.8rem 2.2rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgb(244 211 94 / 0.6);
}

.btn-primary:hover {
  background-color: var(--accent-color-hover);
  box-shadow: 0 6px 14px rgb(217 188 67 / 0.8);
}

/* GENERAL SECTIONS */
.section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  animation: fadeInUp 1s ease forwards;
}

.section h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary-color);
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* CARDS GRID (projects, latest projects) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* General card styles */
.card,
.project-card,
.blog-post,
.video-card {
  background-color: white;
  padding: 1.8rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover,
.project-card:hover,
.blog-post:hover,
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(13, 59, 102, 0.25);
}

/* Cards Titles */
.card h3,
.project-card h3,
.blog-post h3 {
  color: var(--secondary-color);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* Cards Paragraphs */
.card p,
.project-card p,
.blog-post p {
  color: var(--text-light);
  flex-grow: 1;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Buttons */
.btn-secondary {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.4rem;
  font-weight: 600;
  border: none;
  border-radius: 40px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  align-self: flex-start;
  transition: background-color 0.3s ease;
  box-shadow: 0 3px 8px rgb(13 59 102 / 0.5);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 5px 15px rgb(13 59 102 / 0.7);
}

/* VIDEOS GRID */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Video card specifics */
.video-card iframe {
  border-radius: 10px;
  width: 100%;
  height: 180px;
  margin-bottom: 1rem;
  box-shadow: 0 3px 8px rgb(13 59 102 / 0.3);
}

.video-card h4 {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}



/* FOOTER */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1.3rem 2rem;
  margin-top: auto;
  font-size: 0.95rem;
  user-select: none;
}