:root {
  --color-navy-dark: #0D1B2A;
  --color-yellow-gold: #FFC300;
  --color-white: #FFFFFF;
  --color-blue-light: #89B4D4;
  --color-navy-medium: #1A2E45;
  --color-yellow-light: #FFD966;
  --color-dark-grey: #2C2C2C;
  --color-light-grey: #F5F5F5;

  --primary-color: var(--color-navy-dark);
  --secondary-color: var(--color-yellow-gold);
  --bg-color: var(--color-white);
  --text-color: var(--color-dark-grey);
  --text-light: #6B7280;
  --card-bg: var(--color-light-grey);
  --border-color: #E5E5E5;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  --gradient-hero: linear-gradient(135deg, #0D1B2A, #1A2E45);
  --gradient-accent: linear-gradient(90deg, #FFC300, #FFD966);
}

[data-theme="dark"] {
  --bg-color: var(--color-navy-dark);
  --text-color: var(--color-white);
  --text-light: var(--color-blue-light);
  --card-bg: var(--color-navy-medium);
  --border-color: #334155;
  --nav-bg: rgba(13, 27, 42, 0.95);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy-dark);
}

.logo-accent {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-yellow-gold);
}

[data-theme="dark"] .logo-text {
  color: var(--color-white);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-yellow-gold);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: var(--color-yellow-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle,
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
}

.theme-toggle {
  font-size: 1.2rem;
  padding: 0.25rem 0.5rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.theme-toggle:hover {
  background: var(--card-bg);
}

.sun-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: inline;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

/* HERO */

.hero {
  min-height: 100vh;
  padding: 10rem 0 5rem;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero p {
  color: var(--color-blue-light);
  font-size: clamp(1rem, 1vw + 0.75rem, 1.25rem);
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--color-yellow-gold);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--color-blue-light);
  bottom: -100px;
  left: -100px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--color-yellow-light);
  top: 40%;
  right: 20%;
}

/* BUTTONS */

.btn {
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  text-align: center;
}

.btn:focus-visible {
  outline: 3px solid var(--color-yellow-light);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-yellow-gold);
  color: var(--color-navy-dark);
  box-shadow: 0 4px 14px rgba(255, 195, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--color-yellow-light);
  box-shadow: 0 8px 20px rgba(255, 195, 0, 0.45);
}

.btn-outline {
  border: 2px solid var(--color-yellow-gold);
  color: var(--color-yellow-gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-yellow-gold);
  color: var(--color-navy-dark);
  transform: translateY(-3px);
}

/* On light sections, make the outline button readable */
.section .btn-outline,
.contact-section .btn-outline {
  color: var(--color-navy-dark);
}

[data-theme="dark"] .section .btn-outline {
  color: var(--color-yellow-gold);
}

.btn-full {
  width: 100%;
}

/* STATS */

.stats-section {
  background: var(--color-navy-medium);
  padding: 4rem 0;
  color: var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  color: var(--color-yellow-gold);
  font-weight: 800;
  line-height: 1.1;
}

.stat-item p {
  color: var(--color-blue-light);
  font-weight: 500;
  margin-top: 0.5rem;
}

.stats-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* SECTIONS */

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3vw + 1rem, 3rem);
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* FEATURES */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-light);
}

.services-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

.services-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-light);
  font-style: italic;
}

/* DESTINATIONS */

.destination-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.country-card {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--card-bg), var(--bg-color));
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.country-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-yellow-gold);
}

.country-flag {
  font-size: 4rem;
  transition: transform 0.3s ease;
}

.country-card:hover .country-flag {
  transform: scale(1.1);
}

.country-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.country-overlay h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 700;
}

.country-overlay p {
  color: var(--color-blue-light);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.destinations-more {
  text-align: center;
  margin-top: 2rem;
  font-weight: 600;
  color: var(--text-light);
}

/* UNIVERSITIES */

.universities-showcase {
  overflow: hidden;
}

.uni-scroll-container {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.uni-scroll {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.uni-scroll:hover {
  animation-play-state: paused;
}

.uni-item {
  flex-shrink: 0;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 2px solid var(--color-yellow-gold);
  background: var(--bg-color);
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-color);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.uni-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* TESTIMONIALS */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-text {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--text-color);
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-navy-dark);
  flex-shrink: 0;
}

.author-info h4 {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.author-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonials-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* PROCESS */

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.process-step {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: var(--color-yellow-gold);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-navy-dark);
}

.process-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.process-step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateX(5px);
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.contact-card p,
.contact-card a {
  color: var(--text-light);
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--color-yellow-gold);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-color);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  background: var(--color-yellow-gold);
  color: var(--color-navy-dark);
  transform: translateY(-3px);
}

.contact-form-wrapper {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-yellow-gold);
  box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

/* FOOTER */

footer {
  background: var(--color-navy-dark);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  color: var(--color-blue-light);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: var(--color-yellow-gold);
  font-weight: 700;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-blue-light);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-yellow-gold);
}

.copyright {
  text-align: center;
  border-top: 1px solid var(--color-navy-medium);
  margin-top: 2rem;
  padding-top: 2rem;
  color: var(--color-blue-light);
}

/* WHATSAPP */

.whatsapp-float {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  z-index: 999;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  animation: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.75);
  }
}

/* RESPONSIVE — TABLET */

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .features-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .destination-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* RESPONSIVE — MOBILE */

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1.25rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }

  .shape-3 {
    display: none;
  }

  .cta-group {
    flex-direction: column;
  }

  .cta-group .btn {
    width: 100%;
  }

  .stats-grid,
  .features-grid,
  .destination-grid,
  .testimonial-grid,
  .process-timeline,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .contact-form-wrapper {
    padding: 1.75rem;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .uni-scroll {
    animation: none;
  }
}
