@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --background: hsl(45, 30%, 98%);
  --foreground: hsl(200, 25%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(200, 25%, 15%);
  --primary: hsl(175, 50%, 28%);
  --primary-foreground: hsl(45, 30%, 98%);
  --secondary: hsl(45, 60%, 92%);
  --secondary-foreground: hsl(200, 25%, 15%);
  --muted: hsl(45, 20%, 94%);
  --muted-foreground: hsl(200, 15%, 45%);
  --accent: hsl(38, 90%, 55%);
  --accent-foreground: hsl(200, 25%, 15%);
  --border: hsl(45, 20%, 88%);
  --radius: 0.75rem;
  --gradient-hero: linear-gradient(135deg, hsl(175, 50%, 28%) 0%, hsl(185, 45%, 35%) 100%);
  --shadow-soft: 0 4px 20px -4px hsla(200, 25%, 15%, 0.08);
  --shadow-elevated: 0 12px 40px -8px hsla(200, 25%, 15%, 0.12);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-hero {
  background: var(--gradient-hero);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-elevated);
}

.btn-hero:hover {
  transform: scale(1.02);
  box-shadow: 0 0 60px hsla(175, 50%, 28%, 0.3);
}

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-soft);
}

.btn-accent:hover {
  box-shadow: var(--shadow-elevated);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: 0.875rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsla(45, 30%, 98%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 1024px) {
  .navbar-inner {
    height: 5rem;
  }
}

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

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-hero);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
}

.logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--foreground);
}

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--foreground);
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--muted-foreground);
  font-weight: 500;
}

.mobile-menu a:hover {
  color: var(--foreground);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.hero-blob-1 {
  position: absolute;
  top: 5rem;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: hsla(175, 50%, 28%, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.hero-blob-2 {
  position: absolute;
  bottom: 5rem;
  left: 0;
  width: 20rem;
  height: 20rem;
  background: hsla(38, 90%, 55%, 0.1);
  border-radius: 50%;
  filter: blur(60px);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--secondary);
  border-radius: 9999px;
  width: fit-content;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 1.875rem;
  color: var(--foreground);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

@media (min-width: 1024px) {
  .hero-visual {
    padding-left: 2rem;
  }
}

.hero-card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-elevated);
  position: relative;
  z-index: 10;
}

.hero-card-inner {
  aspect-ratio: 1;
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-content {
  text-align: center;
}

.hero-card-icon {
  width: 5rem;
  height: 5rem;
  background: var(--gradient-hero);
  border-radius: 1rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.hero-card-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary-foreground);
}

.hero-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hero-card-subtitle {
  color: var(--muted-foreground);
}

.floating-card {
  position: absolute;
  background: var(--card);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-card-1 {
  top: -1rem;
  right: -1rem;
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
}

.floating-card-2 {
  bottom: -1rem;
  left: -1rem;
  animation: float 6s ease-in-out infinite;
  animation-delay: 2s;
}

.floating-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-icon-accent {
  background: hsla(38, 90%, 55%, 0.2);
  color: var(--accent);
}

.floating-icon-primary {
  background: hsla(175, 50%, 28%, 0.2);
  color: var(--primary);
}

.floating-text-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.floating-text-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: var(--background);
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.section-label {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.service-card {
  padding: 2rem;
  background: var(--card);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: hsla(175, 50%, 28%, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--gradient-hero);
  transform: scale(1.1);
}

.service-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.service-card:hover .service-icon svg {
  color: var(--primary-foreground);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Universities Section */
.universities {
  padding: 6rem 0;
  background: var(--muted);
}

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

@media (min-width: 768px) {
  .countries-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.country-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: all 0.3s ease;
}

.country-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.country-flag {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

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

.country-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.country-count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.universities-more {
  text-align: center;
  margin-top: 3rem;
  color: var(--muted-foreground);
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
  background: var(--background);
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

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

.testimonial-card:hover {
  box-shadow: var(--shadow-elevated);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-stars svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--accent);
  color: var(--accent);
}

.testimonial-quote {
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 500;
}

.testimonial-university {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta-bg-element {
  position: absolute;
  border: 2px solid var(--primary-foreground);
  border-radius: 50%;
  opacity: 0.1;
}

.cta-bg-1 {
  top: 2.5rem;
  left: 2.5rem;
  width: 10rem;
  height: 10rem;
}

.cta-bg-2 {
  bottom: 2.5rem;
  right: 2.5rem;
  width: 15rem;
  height: 15rem;
}

.cta-bg-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20rem;
  height: 20rem;
  border-width: 1px;
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .cta-title {
    font-size: 3rem;
  }
}

.cta-description {
  color: hsla(45, 30%, 98%, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

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

.cta-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.cta-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsla(45, 30%, 98%, 0.9);
  transition: color 0.2s;
}

.cta-contact a:hover {
  color: var(--primary-foreground);
}

.cta-contact svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer */
.footer {
  background: var(--foreground);
  color: var(--primary-foreground);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-brand {
  max-width: 20rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-hero);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
}

.footer-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
}

.footer-tagline {
  color: hsla(45, 30%, 98%, 0.7);
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social {
  width: 2.5rem;
  height: 2.5rem;
  background: hsla(45, 30%, 98%, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social:hover {
  background: var(--primary);
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-column h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: hsla(45, 30%, 98%, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-foreground);
}

.footer-bottom {
  border-top: 1px solid hsla(45, 30%, 98%, 0.1);
  margin-top: 3rem;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsla(45, 30%, 98%, 0.6);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: hsla(45, 30%, 98%, 0.6);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--primary-foreground);
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
