/* ============================================
   Educonnect Solutions - Modern Design System
   The Future of Learning
   ============================================ */

/* CSS Variables */
:root {
  --primary: #004aad;
  --primary-light: #0066ff;
  --primary-dark: #00337c;
  --secondary: #00d1ff;
  --accent: #4338ca;
  --text: #0f172a;
  --text-muted: #475569;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 24px;
  --radius-sm: 12px;
  --radius-full: 9999px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul { list-style: none; }
p { margin-bottom: 1rem; }

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

/* Glassmorphism Utility */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* Section Tag */
.section-tag, .hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 74, 173, 0.1);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Header */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  z-index: 1000;
  padding: 12px 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.header.scrolled {
  top: 10px;
  padding: 8px 24px;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #ffffff;
}

.logo img {
  height: 65px;
  width: auto;
  display: block;
  border-radius: 12px !important;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.header-phone i {
  color: var(--secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 74, 173, 0.4);
}

/* Hero */
.hero {
  padding: 180px 0 100px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 24px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-badges {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-badges .badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  font-size: 0.9rem;
}

.badge-icon {
  color: var(--secondary);
}

.hero-cta-desktop {
  margin-top: 30px;
}

.hero-cta-desktop .btn {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.hero-form-wrapper {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 74, 173, 0.15);
  border: 1px solid white;
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.1);
}

.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.1);
}

.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.hero-form-wrapper h3 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 8px;
}

.hero-form-wrapper h3 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.hero-form-wrapper .btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

/* Sections */
section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.gradient-heading {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.program-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid #f1f5f9;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

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

.program-card:hover::after {
  transform: scaleX(1);
}

/* Program Card Internals */
.program-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}
.program-logo {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
}
.program-logo img {
  max-width: 100%;
  max-height: 100%;
}
.program-title h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.program-title span {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.program-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.meta-item i {
  color: var(--primary);
}
.program-features {
  list-style: none;
  margin-bottom: 32px;
}
.program-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.95rem;
}
.program-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: bold;
}
.program-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.program-actions .btn {
  width: 100%;
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: rgba(0, 74, 173, 0.05);
  transform: translateY(-2px);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}
.cta-section h2 {
  color: white;
  margin-bottom: 20px;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}
.cta-section .btn {
  background: white;
  color: var(--primary-dark);
}
.cta-section .btn.btn-primary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  color: var(--primary-dark);
}
.cta-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.cta-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.cta-feature i {
  color: var(--secondary);
}

/* Footer */
.footer {
  background: #020617;
  color: white;
  padding: 100px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.footer h4 { margin-bottom: 24px; color: white; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-brand p { margin-top: 20px; color: #94a3b8; font-size: 0.95rem; }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #94a3b8; }
.footer-contact i { color: var(--secondary); font-size: 1.2rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-bottom p { color: #64748b; margin: 0; font-size: 0.9rem; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: var(--transition); }
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  z-index: 1000;
  background: white;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
}
.mobile-sticky-cta .btn { width: 100%; border-radius: var(--radius-full); }

/* ============================================
   Missing Sections & Components
   ============================================ */
/* University Logos */
.university-logos {
  padding: 60px 0;
  background: white;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}
.university-logos h2 {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.logos-track {
  display: flex;
  gap: 40px;
  animation: scroll 30s linear infinite;
  width: max-content;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-item {
  width: 160px;
  height: 80px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  transition: var(--transition);
}
.logo-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Features */
.features {
  background: var(--bg-light);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(0, 209, 255, 0.1) 0%, rgba(0, 74, 173, 0.05) 100%);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 32px; height: 32px; }

/* Stats */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-item h3 {
  color: var(--secondary);
  font-size: 3rem;
  margin-bottom: 10px;
}
.stat-item p {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.9;
}

/* FAQ */
.faq { background: white; }
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  background: var(--bg-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}
.faq-question h4 { margin: 0; font-family: var(--font-body); font-size: 1.1rem; }
.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
.faq-item.active .faq-answer {
  padding: 20px 24px;
  max-height: 500px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  background: white;
  width: 90%;
  max-width: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 30px;
  text-align: center;
  color: white;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.modal-body { padding: 30px; }
.modal-body .btn { width: 100%; }

/* Mobile Menu & WhatsApp */
.mobile-toggle { 
  display: none; 
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.mobile-toggle span {
  width: 25px; height: 3px;
  background: var(--text);
  border-radius: 3px;
}
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: white;
  z-index: 2001;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  padding: 80px 24px 40px;
  transition: right 0.4s ease;
}
.mobile-menu.active { right: 0; }
.mobile-menu a { display: block; padding: 15px 0; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid #f1f5f9; text-decoration: none;}
.mobile-menu-close { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; color: var(--text);}
.floating-whatsapp {
  position: fixed; bottom: 30px; left: 30px;
  background: #25D366; color: white;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  text-decoration: none;
  transition: var(--transition);
}
.floating-whatsapp:hover { transform: scale(1.1); color: white;}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-badges {
    justify-content: center;
  }
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .header .btn-primary {
    display: none;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .features-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .mobile-sticky-cta {
    display: block;
  }
  .floating-whatsapp {
    bottom: 80px;
  }
  .footer {
    padding-bottom: 80px;
  }
}

/* Legal Pages Styles */
.legal-page {
  padding-top: 150px;
  padding-bottom: 100px;
  background: var(--bg-light);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.legal-content h1 {
  margin-bottom: 30px;
  color: var(--primary);
  font-size: 2.5rem;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--text);
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 10px;
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.legal-content li {
  list-style: disc;
  margin-bottom: 10px;
}

.contact-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 20px;
}

.contact-card p {
  margin-bottom: 5px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}

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

@media (max-width: 768px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal-links {
    justify-content: center;
    margin-top: 10px;
  }
}