:root {
  --primary: #1565c0; /* Dark Blue */
  --accent: #64b5f6; /* Light Blue */
  --background: #e3f2fd; /* Very Light Blue */
  --text: #0d47a1; /* Dark Blue Text */
  --light: #f5f9ff; /* Off White Blue */
  --grey: #bbdefb; /* Light Blue accent */
  --shadow-primary: rgba(100, 181, 246, 0.4);
  --shadow-subtle: rgba(13, 71, 161, 0.07);
  --shadow-hover: rgba(21, 101, 192, 0.6);
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.1rem;
  scroll-behavior: smooth;
}

/* NAVIGATION BAR */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  background: var(--light);
  box-shadow: 0 4px 12px var(--shadow-subtle);
  position: sticky;
  top: 0;
  z-index: 20;
  font-weight: 600;
}

.brand {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--primary);
  user-select: none;
}

.nav-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary);
  background: none;
  border: none;
  z-index: 21;
  transition: transform 0.3s ease;
}

/* Change toggle to X when menu open */
.nav-links.open ~ .nav-toggle,
.nav-toggle.active {
  transform: rotate(90deg);
}

/* Desktop menu */
.nav-links {
  display: flex;
  list-style: none;
  gap: 15px;
}

.nav-links a {
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 16px var(--shadow-hover);
}

/* Mobile nav styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }

  .nav-links.open {
    max-height: 500px;
    padding: 1rem 0;
  }

  .nav-links li {
    text-align: center;
    margin: 0.8rem 0;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
  }
}

/* PAGE CONTENT */
.page-container {
  background: var(--light);
  max-width: 1100px;
  margin: 2.5rem auto 6rem auto;
  padding: 2.5rem 3rem;
  border-radius: 16px;
  box-shadow: 0 16px 48px var(--shadow-subtle);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1, h2, h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: 1.5px;
}

h2 {
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.6rem;
  font-size: 2.4rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  line-height: 1.6;
}

.btn, .hero-btn {
  background: var(--accent);
  color: white;
  font-weight: 700;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(100, 181, 246, 0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.18s ease;
  display: inline-block;
  text-decoration: none;
  font-size: 1.15rem;
}

.btn:hover, .hero-btn:hover {
  background: #1e88e5;
  box-shadow: 0 14px 38px rgba(30, 136, 229, 0.8);
  transform: scale(1.05);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1e88e5;
  text-decoration: underline;
}

ul, ol {
  margin-left: 1.6rem;
  margin-bottom: 1.8rem;
}

.card {
  background: white;
  padding: 1.8rem 2.5rem;
  border-radius: 18px;
  box-shadow: 0 18px 54px var(--shadow-subtle);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 22px 54px var(--shadow-primary);
  transform: translateY(-6px);
}

img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.04);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1.2rem 2rem;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1.2px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: 6rem;
}

/* IMAGE CAROUSEL */
.image-carousel {
  overflow: hidden;
  background: var(--light);
  border-radius: 22px;
  box-shadow: 0 18px 54px var(--shadow-subtle);
  margin: 3rem 0;
}

.carousel-container {
  display: flex;
  width: calc(24 * 415px); /* 12 images + 12 duplicates */
  animation: scroll-left 20s linear infinite;
}

.carousel-container img {
  width: 400px;
  height: 240px;
  margin-right: 15px;
  border-radius: 20px;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.14);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover (desktop) */
.image-carousel:hover .carousel-container {
  animation-play-state: paused;
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
  .carousel-container img {
    width: 320px;
    height: 190px;
  }
}

@media (max-width: 768px) {
  .carousel-container img {
    width: 240px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .nav-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
  .carousel-container img {
    width: 200px;
    height: 120px;
  }
}
