/* =========================================================================
   FARBIG EDUCATION - Premium Landing Page CSS
   Author: AI
   Features: Glassmorphism, Micro-animations, Vibrant Aesthetics
   ========================================================================= */

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

:root {
  --primary: #10b981; /* Emerald */
  --primary-light: #d1fae5;
  --primary-dark: #059669;
  --secondary: #0f172a; /* Slate 900 */
  --accent: #f59e0b; /* Amber */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --white: #ffffff;
  
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 10px 40px -10px rgba(16, 185, 129, 0.4);
  
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================= */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-padding { padding: 100px 0; }
.bg-white { background: var(--white); }
.bg-light { background: var(--bg-page); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 99px; font-weight: 600; font-size: 1rem;
  transition: var(--transition); text-align: center;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: var(--primary-dark); transform: translateY(-2px);
  box-shadow: 0 15px 40px -10px rgba(16, 185, 129, 0.6);
}
.btn-outline {
  background: transparent; color: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.btn-outline:hover { background: var(--secondary); color: var(--white); }

/* =========================================================================
   1. NAVBAR
   ========================================================================= */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-brand {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px; color: var(--secondary);
}
.nav-brand i { color: var(--primary); font-size: 1.75rem; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 16px; align-items: center; }
.nav-toggle { display: none; font-size: 1.5rem; color: var(--secondary); }

/* =========================================================================
   2. HERO SECTION
   ========================================================================= */
.hero {
  padding: 180px 0 100px;
  background: radial-gradient(circle at top right, var(--primary-light), var(--bg-page) 60%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -10%; left: -10%; width: 400px; height: 400px;
  background: rgba(16, 185, 129, 0.1); filter: blur(80px); border-radius: 50%; z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content h1 {
  font-family: var(--font-heading); font-size: 4rem; font-weight: 800;
  color: var(--secondary); line-height: 1.1; margin-bottom: 1.5rem;
}
.hero-content h1 span { color: var(--primary); }
.hero-content p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 90%; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); transform: rotate(2deg); transition: var(--transition-slow); }
.hero-visual:hover img { transform: rotate(0deg) translateY(-10px); }
.floating-badge {
  position: absolute; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  padding: 16px 24px; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; font-weight: 600;
  animation: float 4s ease-in-out infinite;
}
.badge-1 { top: 10%; left: -10%; }
.badge-2 { bottom: 10%; right: -10%; animation-delay: 2s; }
.floating-badge i { font-size: 2rem; color: var(--accent); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* =========================================================================
   3. STATS BAR
   ========================================================================= */
.stats-bar {
  background: var(--secondary); color: var(--white);
  padding: 60px 0; position: relative; z-index: 2; margin-top: -30px;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item h3 { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.stat-item p { font-weight: 500; opacity: 0.8; font-size: 1.1rem; }

/* =========================================================================
   4. PROGRAMS
   ========================================================================= */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.program-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition); position: relative; overflow: hidden;
}
.program-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.program-flag { font-size: 3rem; margin-bottom: 1rem; }
.program-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.program-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.5rem; color: var(--text-muted); font-size: 0.95rem; }
.program-meta div { display: flex; align-items: center; gap: 8px; }
.program-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 1.5rem; }
.program-card .btn { width: 100%; }

/* =========================================================================
   5. COUNTRIES
   ========================================================================= */
.country-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.country-card {
  background: var(--white); border-radius: var(--radius); padding: 24px; text-align: center;
  box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid transparent;
}
.country-card:hover { border-color: var(--primary); transform: scale(1.05); }
.country-card .flag { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1; }
.country-card h4 { font-size: 1.2rem; font-weight: 700; color: var(--secondary); }

/* =========================================================================
   6. TIMELINE (ALUR)
   ========================================================================= */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--primary-light); transform: translateX(-50%); }
.tl-item { display: flex; justify-content: flex-end; padding-right: 50%; position: relative; margin-bottom: 40px; }
.tl-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: 50%; }
.tl-dot {
  position: absolute; right: -12px; top: 0; width: 24px; height: 24px;
  background: var(--primary); border: 4px solid var(--white); border-radius: 50%; z-index: 1;
}
.tl-item:nth-child(even) .tl-dot { right: auto; left: -12px; }
.tl-content {
  background: var(--white); padding: 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); width: 85%; transition: var(--transition);
}
.tl-item:hover .tl-content { transform: translateY(-5px); box-shadow: var(--shadow-glow); }
.tl-content h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--primary); }
.tl-content p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================================================
   7. WHY US
   ========================================================================= */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.why-card { display: flex; gap: 20px; align-items: flex-start; }
.why-icon {
  width: 60px; height: 60px; border-radius: var(--radius);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem; flex-shrink: 0;
}
.why-content h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--secondary); }
.why-content p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================================================
   8. TESTIMONIALS
   ========================================================================= */
.testi-wrap { display: flex; overflow-x: auto; gap: 30px; padding: 20px 0 40px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.testi-wrap::-webkit-scrollbar { display: none; }
.testi-card {
  min-width: 350px; scroll-snap-align: center;
  background: var(--white); padding: 30px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.03);
}
.testi-head { display: flex; gap: 16px; align-items: center; margin-bottom: 1.5rem; }
.testi-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--primary-light); }
.testi-info h4 { font-weight: 700; color: var(--secondary); }
.testi-info p { font-size: 0.85rem; color: var(--text-muted); }
.testi-stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 1rem; }
.testi-quote { font-style: italic; color: var(--text-main); font-size: 1.05rem; }

/* =========================================================================
   9. GALLERY
   ========================================================================= */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.gallery-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 250px; background: var(--secondary);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: var(--transition-slow); }
.gallery-item:hover img { transform: scale(1.1); opacity: 1; }
.gallery-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: var(--white);
  font-weight: 600; font-size: 1.1rem;
}

/* =========================================================================
   10. MARQUEE
   ========================================================================= */
.marquee-wrap { overflow: hidden; white-space: nowrap; padding: 40px 0; background: var(--white); border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); }
.marquee-content { display: inline-block; animation: marquee 30s linear infinite; }
.marquee-content span { display: inline-block; padding: 0 40px; font-size: 1.25rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================================================
   11. FAQ
   ========================================================================= */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--white); border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition);
}
.faq-item.active { box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1.1rem; color: var(--secondary); }
.faq-q i { transition: var(--transition); }
.faq-item.active .faq-q i { transform: rotate(180deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--text-muted); margin-top: 0; }
.faq-item.active .faq-a { max-height: 200px; margin-top: 16px; }

/* =========================================================================
   12. CTA & FOOTER
   ========================================================================= */
.cta-section {
  background: var(--primary); color: var(--white);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.cta-section h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-section p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; position: relative; z-index: 1; }
.cta-actions { display: flex; justify-content: center; gap: 16px; position: relative; z-index: 1; }
.cta-actions .btn-outline { border-color: var(--white); color: var(--white); }
.cta-actions .btn-outline:hover { background: var(--white); color: var(--primary); }
.cta-actions .btn-white { background: var(--white); color: var(--primary); }

.footer { background: var(--secondary); color: var(--white); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-brand { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; color: var(--white); }
.footer-brand i { color: var(--primary); }
.footer-desc { color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-col h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--white); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul a { color: rgba(255,255,255,0.6); }
.footer-col ul a:hover { color: var(--primary); padding-left: 5px; }
.contact-item { display: flex; gap: 12px; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.contact-item i { color: var(--primary); font-size: 1.25rem; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); font-size: 0.9rem; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .hero-content h1 { font-size: 3rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 30px; }
  .tl-item, .tl-item:nth-child(even) { justify-content: flex-end; padding-left: 80px; padding-right: 0; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 18px; right: auto; }
  .tl-content { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
}
