/* =====================================================
   CONNECTUINT ACADEMY — SHARED STYLES
   www.connectuintacademy.com
   ===================================================== */

:root {
  --dark: #0a0e1a;
  --dark2: #111827;
  --dark3: #1a2235;
  --accent: #00e676;
  --accent2: #00b0ff;
  --accent-es: #00e676;
  --accent-en: #00b0ff;
  --text: #e8eaf6;
  --text-muted: #8892a4;
  --white: #ffffff;
  --border: rgba(255,255,255,0.08);
  --card-bg: rgba(255,255,255,0.04);
  --gradient-main: linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #0a1628 100%);
  --gradient-es: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  --gradient-en: linear-gradient(135deg, #00b0ff 0%, #0091ea 100%);
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
  --radius: 16px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

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

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }
p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

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

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.99);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-es);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text span:first-child {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav-logo-text span:last-child {
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

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

.nav-menu li a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  position: relative;
}

.nav-menu li a:hover {
  color: var(--white);
  background: var(--card-bg);
}

.nav-menu li a.active {
  color: var(--white);
  background: var(--card-bg);
}

/* Course tabs in navbar */
.nav-tab-es a {
  color: var(--accent-es) !important;
  border: 1px solid rgba(0, 230, 118, 0.2);
}
.nav-tab-es a:hover, .nav-tab-es a.active {
  background: rgba(0, 230, 118, 0.12) !important;
  border-color: var(--accent-es);
}

.nav-tab-en a {
  color: var(--accent-en) !important;
  border: 1px solid rgba(0, 176, 255, 0.2);
}
.nav-tab-en a:hover, .nav-tab-en a.active {
  background: rgba(0, 176, 255, 0.12) !important;
  border-color: var(--accent-en);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gradient-es);
  color: #0a0e1a;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 230, 118, 0.35);
}

.btn-primary-en {
  background: var(--gradient-en);
  color: #0a0e1a;
}
.btn-primary-en:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 176, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: var(--card-bg);
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.label-green {
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-es);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.label-blue {
  background: rgba(0, 176, 255, 0.12);
  color: var(--accent-en);
  border: 1px solid rgba(0, 176, 255, 0.25);
}

.label-white {
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.text-accent { color: var(--accent-es); }
.text-accent-en { color: var(--accent-en); }
.text-white { color: var(--white); }

.section-center { text-align: center; }
.section-center p { max-width: 640px; margin: 0 auto; }

/* ===================== CARDS ===================== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.icon-green { background: rgba(0, 230, 118, 0.12); }
.icon-blue { background: rgba(0, 176, 255, 0.12); }
.icon-purple { background: rgba(171, 71, 188, 0.12); }
.icon-orange { background: rgba(255, 152, 0, 0.12); }

/* ===================== GRID ===================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

/* ===================== STATS ===================== */
.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
}

/* ===================== LEVEL TABLE ===================== */
.level-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}
.level-table th, .level-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.level-table th {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}
.level-table td { font-size: 0.9rem; color: var(--text); }
.level-table tbody tr:hover { background: var(--card-bg); }

.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-green { background: rgba(0,230,118,0.15); color: var(--accent-es); }
.badge-blue { background: rgba(0,176,255,0.15); color: var(--accent-en); }
.badge-yellow { background: rgba(255,235,59,0.15); color: #fff176; }
.badge-purple { background: rgba(171,71,188,0.15); color: #ce93d8; }

/* ===================== PARTNERSHIP TABLE ===================== */
.partnership-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.partnership-table th, .partnership-table td {
  padding: 0.9rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.partnership-table th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  background: var(--dark3);
}
.partnership-table td:first-child { text-align: left; font-weight: 600; color: var(--white); }
.partnership-table tr:hover td { background: var(--card-bg); }

/* ===================== FAQ ===================== */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.3s;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-answer p { padding-bottom: 1.25rem; font-size: 0.95rem; }
.faq-item.open .faq-icon { background: var(--accent); color: #0a0e1a; border-color: var(--accent); transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 300px; }

/* ===================== FORM ===================== */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1.1rem;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}
.form-group select option { background: var(--dark2); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ===================== FLOATING CTA ===================== */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.9rem; color: var(--text-muted); max-width: 260px; line-height: 1.6; }
.footer h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer ul li a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.footer ul li a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); background: rgba(0,230,118,0.08); }

/* ===================== DIVIDER ===================== */
.divider-line {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ===================== COURSE PAGE HERO ===================== */
.course-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.course-hero-es { background: linear-gradient(135deg, #0a0e1a 0%, #0a1f14 60%, #0a0e1a 100%); }
.course-hero-en { background: linear-gradient(135deg, #0a0e1a 0%, #0a1428 60%, #0a0e1a 100%); }

.course-hero-glow-es {
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,230,118,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.course-hero-glow-en {
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,176,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ===================== COMPARISON TABLE ===================== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.comparison-table th {
  background: var(--dark3);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.comparison-table td:first-child { text-align: left; color: var(--text-muted); }
.comparison-table .col-highlight { background: rgba(0,230,118,0.05); }
.comparison-table .col-highlight-en { background: rgba(0,176,255,0.05); }
.check { color: var(--accent-es); font-size: 1.1rem; }
.check-en { color: var(--accent-en); font-size: 1.1rem; }
.cross { color: #ef5350; }

/* ===================== ANIMATIONS ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===================== TRUST BAR ===================== */
.trust-bar {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark2);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-item i { font-size: 1rem; color: var(--accent); }

/* ===================== PAGE INDICATOR ===================== */
.page-tab-indicator {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.page-tab-indicator a {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}
.tab-active-es {
  background: rgba(0,230,118,0.15);
  color: var(--accent-es);
  border: 1px solid rgba(0,230,118,0.3);
}
.tab-active-en {
  background: rgba(0,176,255,0.15);
  color: var(--accent-en);
  border: 1px solid rgba(0,176,255,0.3);
}
.tab-inactive {
  background: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tab-inactive:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }

/* ===================== MOBILE ===================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(10,14,26,0.98); padding: 1.5rem; gap: 0.25rem; border-bottom: 1px solid var(--border); }
  .nav-menu.open { display: flex; }
  .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .trust-bar-inner { gap: 1.5rem; }
  .floating-cta { bottom: 1rem; right: 1rem; }
}
