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

:root {
  --bg: #050816;
  --primary: #2563EB;
  --purple: #7C3AED;
  --accent: #06B6D4;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --glow-blue: rgba(37, 99, 235, 0.4);
  --glow-purple: rgba(124, 58, 237, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 58, 237, 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(6, 182, 212, 0.1), transparent),
    var(--bg);
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Glass Card */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

.glass:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.glow-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 60px rgba(37, 99, 235, 0.25),
    0 0 40px rgba(124, 58, 237, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 8, 22, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.75rem 2rem;
  background: rgba(5, 8, 22, 0.95);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 12px;
  font-weight: 600 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(5, 8, 22, 0.98);
  backdrop-filter: blur(20px);
  padding: 2rem;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
  box-shadow: 0 4px 20px var(--glow-blue);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--glow-blue);
}

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

.btn-outline:hover {
  background: var(--glass);
  border-color: var(--primary);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
}

/* Sections */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title .gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-visual {
  flex: 1;
  position: relative;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.ai-preview {
  padding: 2rem;
  position: relative;
}

.ai-preview-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ai-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

.ai-message {
  padding: 1rem 1.25rem;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 16px 16px 16px 4px;
  margin-bottom: 1rem;
  animation: typeIn 0.5s ease;
}

.ai-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-option {
  padding: 1rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.ai-option:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  transform: translateX(8px);
}

/* Globe Section */
.globe-section {
  text-align: center;
}

.globe-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 3rem;
}

.globe {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.3), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(37, 99, 235, 0.4), transparent 40%),
    linear-gradient(135deg, #1e3a5f, #0f172a);
  box-shadow:
    inset -20px -20px 60px rgba(0, 0, 0, 0.5),
    0 0 60px var(--glow-blue),
    0 0 100px var(--glow-purple);
  animation: rotateGlobe 20s linear infinite;
  position: relative;
  overflow: hidden;
}

.globe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='rgba(6,182,212,0.3)' d='M20,30 Q40,20 60,35 T90,40 Q70,50 50,45 T20,30'/%3E%3Cpath fill='rgba(37,99,235,0.3)' d='M10,60 Q30,50 50,65 T80,70 Q60,80 40,75 T10,60'/%3E%3C/svg%3E") center/cover;
  opacity: 0.6;
}

.globe-ring {
  position: absolute;
  inset: -20px;
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  animation: pulseRing 3s ease infinite;
}

.country-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.country-tab {
  padding: 0.75rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.country-tab:hover,
.country-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-color: transparent;
  transform: translateY(-2px);
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.university-card {
  padding: 1.5rem;
  text-align: left;
}

.university-card .match {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.university-card h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
}

/* Journey Timeline */
.journey-section {
  overflow: hidden;
}

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 3rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--purple), var(--accent));
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: var(--glass);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-step.active .timeline-icon {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  box-shadow: 0 0 30px var(--glow-blue);
}

.timeline-step span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.airplane {
  position: absolute;
  top: 50%;
  left: 0;
  font-size: 2rem;
  transform: translateY(-50%);
  animation: flyPlane 8s linear infinite;
  z-index: 2;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-card {
  padding: 2rem;
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 1.5rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

/* Testimonials */
.testimonials-slider {
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  animation: slideTestimonials 20s linear infinite;
}

.testimonial-card {
  min-width: 350px;
  padding: 2rem;
  flex-shrink: 0;
}

.testimonial-card .stars {
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

.author-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  padding: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  margin: 4rem auto;
  max-width: 800px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.2));
  border: 1px solid var(--glass-border);
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--glass-border);
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-links h4 {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Floating AI Assistant */
.floating-ai {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}

.ai-fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  box-shadow: 0 8px 30px var(--glow-blue);
  transition: all 0.3s ease;
  animation: bounce 2s ease infinite;
}

.ai-fab:hover {
  transform: scale(1.1);
}

.ai-chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  padding: 1.5rem;
  display: none;
  animation: fadeInUp 0.3s ease;
}

.ai-chat-panel.open {
  display: block;
}

.ai-chat-panel h4 {
  margin-bottom: 0.5rem;
}

.ai-chat-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Analysis Page */
.analysis-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 2rem;
}

.analysis-container {
  width: 100%;
  max-width: 600px;
  padding: 3rem;
}

.progress-bar {
  height: 4px;
  background: var(--glass);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.5s ease;
}

.question-container {
  animation: fadeInUp 0.5s ease;
}

.question-greeting {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.question-text {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-btn {
  padding: 1.25rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.option-btn:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.15);
  transform: translateX(8px);
}

.option-btn.selected {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.25);
  box-shadow: 0 0 20px var(--glow-blue);
}

.option-btn .flag {
  font-size: 1.5rem;
}

/* Results Page */
.results-page {
  padding: 8rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

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

.match-meter {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  position: relative;
}

.meter-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0deg, var(--primary) calc(var(--percent) * 3.6deg), var(--glass) calc(var(--percent) * 3.6deg));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: meterFill 1.5s ease forwards;
}

.meter-inner {
  width: 160px;
  height: 160px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.meter-value {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.meter-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.result-card {
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.result-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.result-match {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* University Details */
.university-hero {
  height: 400px;
  position: relative;
  margin-top: 70px;
  overflow: hidden;
}

.university-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.university-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), transparent 60%);
}

.university-hero-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.university-hero h1 {
  font-size: 3rem;
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.info-card {
  padding: 1.5rem;
  text-align: center;
}

.info-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.info-card .value {
  font-size: 1.25rem;
  font-weight: 700;
}

.info-card .label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Apply Page */
.apply-page {
  padding: 8rem 2rem 4rem;
  max-width: 700px;
  margin: 0 auto;
}

.upload-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.upload-item {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-item:hover {
  border-color: var(--primary);
}

.upload-item.uploaded {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.upload-item .check {
  color: #22c55e;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.upload-item.uploaded .check {
  opacity: 1;
}

.success-animation {
  text-align: center;
  padding: 4rem 2rem;
  display: none;
}

.success-animation.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.success-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: celebrate 0.6s ease;
}

/* Dashboard */
.dashboard-page {
  padding: 8rem 2rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.welcome-card {
  padding: 2rem;
  margin-bottom: 2rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.status-item {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-icon {
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 1.25rem;
}

.dashboard-timeline {
  padding: 2rem;
}

.timeline-vertical {
  position: relative;
  padding-left: 2rem;
}

.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--purple));
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--glow-blue);
}

.timeline-item.completed::before {
  background: #22c55e;
}

/* Contact Page */
.contact-page {
  padding: 8rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.contact-info-card {
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-form {
  padding: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.map-placeholder {
  height: 200px;
  background: var(--glass);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* About Page */
.about-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-logo-section {
  margin-bottom: 2rem;
}

.about-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
}

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

.about-image {
  width: 100%;
  max-width: 600px;
  height: 300px;
  margin: 3rem auto;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.mission-card {
  padding: 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes rotateGlobe {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes flyPlane {
  0% { left: 0; }
  100% { left: calc(100% - 2rem); }
}

@keyframes slideTestimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

@keyframes meterFill {
  from { --percent: 0; }
}

@keyframes celebrate {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Loading animation */
.loading-animation {
  text-align: center;
  padding: 3rem 0;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.loading-dots span {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  animation: loadingDot 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0; }

@keyframes loadingDot {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 22, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  max-width: 500px;
  width: 100%;
  padding: 3rem;
  text-align: center;
  animation: fadeInUp 0.5s ease;
}

.modal-content .form-group {
  text-align: left;
  margin-bottom: 1.5rem;
}

.modal-content label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.modal-content input {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.modal-content input::placeholder {
  color: var(--text-muted);
}

/* Page transitions */
.page-enter {
  animation: fadeInUp 0.5s ease;
}

/* Loans Page Styles */
.loans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.loan-card {
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.loan-card:hover {
  transform: translateY(-5px);
}

.loan-logo {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.loan-rating {
  color: #fbbf24;
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.loan-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.loan-features span {
  padding: 0.25rem 0;
}

/* Loan Application Page */
.loan-application-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.loan-form {
  display: grid;
  gap: 1.5rem;
}

.loan-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.provider-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.provider-logo {
  font-size: 2.5rem;
}

.provider-details h3 {
  margin: 0;
  font-size: 1.3rem;
}

.provider-details p {
  color: var(--text-muted);
  margin: 0.25rem 0 0 0;
}

/* Landing Page Loan Preview */
.loans-section {
  padding: 4rem 2rem;
}

.loans-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.loan-preview-card {
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.loan-preview-card:hover {
  transform: translateY(-5px);
}

.loan-preview-card .loan-logo {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.loan-preview-card h3 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 968px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

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

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

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

  .timeline::before {
    display: none;
  }

  .timeline {
    flex-direction: column;
  }

  .airplane {
    display: none;
  }
}

@media (max-width: 600px) {
  /* Simplified Navigation */
  .navbar {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  /* Hero Section - Mobile Optimized */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 5rem 1rem 3rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }

  /* Hide AI Preview on Mobile */
  .hero-visual {
    display: none;
  }

  /* Hide How It Works Section on Mobile */
  #how-it-works {
    display: none;
  }

  /* Hide Stats Section on Mobile */
  .stats-section {
    display: none;
  }

  /* Hide Loan Preview on Mobile */
  .loans-preview-section {
    display: none;
  }

  /* Hide Testimonials on Mobile */
  .testimonials-section {
    display: none;
  }

  /* Hide Timeline Section on Mobile */
  .timeline-section {
    display: none;
  }

  /* Hide Globe Section on Mobile */
  .globe-section {
    display: none;
  }

  /* Simplify CTA Section on Mobile */
  .cta-section {
    padding: 2rem 1rem;
    margin: 2rem 1rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .cta-section p {
    font-size: 0.9rem;
  }

  /* Simplify Footer on Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-links {
    display: none;
  }

  .footer-bottom {
    text-align: center;
    font-size: 0.8rem;
  }

  /* Steps Grid - Single Column */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step-card {
    padding: 1.25rem;
  }

  /* Stats Grid - 2x2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  /* Loan Preview - Single Column */
  .loans-preview-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .loan-preview-card {
    padding: 1.25rem;
  }

  /* Testimonials - Simplified */
  .testimonials-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .testimonials-track {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
  }

  .testimonial-card {
    min-width: 85vw;
    scroll-snap-align: center;
    padding: 1.25rem;
  }

  /* Globe Section - Hide on Mobile */
  .globe-section {
    display: none;
  }

  /* Timeline - Simplified */
  .timeline-horizontal {
    flex-direction: column;
    gap: 0.75rem;
  }

  .timeline-step {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .timeline-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* CTA Section */
  .cta-section {
    padding: 2rem 1rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  /* Footer - Simplified */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    text-align: center;
  }

  /* Section Headers */
  .section-header {
    padding: 1rem 0;
  }

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

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Floating AI - Smaller on Mobile */
  .ai-fab {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .ai-chat-panel {
    right: 1rem;
    bottom: 5rem;
    width: calc(100% - 2rem);
    max-width: 320px;
  }

  /* Loans Section */
  .loans-section {
    padding: 2rem 1rem;
  }

  /* Form Elements - Touch Friendly */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  input, select, textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Hide Particles on Mobile for Performance */
  #particles {
    display: none;
  }

  /* Modal - Full Screen on Mobile */
  .modal-content {
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: none;
  }

  section {
    padding: 3rem 1rem;
  }

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