/* ==================== VARIABLES & THEME ==================== */
:root {
  /* --- Default Dark Theme --- */
  --bg-body: #0a192f;
  --bg-nav: rgba(10, 25, 47, 0.95);
  --bg-card: #112240;
  --bg-card-hover: #233554;
  --bg-feature: rgba(255, 255, 255, 0.05);
  
  --text-main: #ccd6f6;
  --text-heading: #e6f1ff;
  --text-muted: #8892b0;
  
  --accent-gold: #ffc107;
  --accent-blue: #64ffda;
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
  
  /* Layout */
  --container-width: 1100px;
  --radius: 12px;
}

/* --- Light Theme Override --- */
@media (prefers-color-scheme: light) {
  :root {
    --bg-body: #f4f7f9;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4ff;
    --bg-feature: rgba(0, 0, 0, 0.05);

    --text-main: #2d3748;
    --text-heading: #1a202c;
    --text-muted: #4a5568;

    --accent-gold: #d69e00; 
    --accent-blue: #005f73;
    --border-light: rgba(0, 0, 0, 0.1);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  }
}

/* ==================== RESET & BASE ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; transition: 0.3s; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.gold-text { color: var(--accent-gold); }
.section-padding { padding: 80px 0; }
.full-width { display: block; width: 100%; text-align: center; }

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-block;
  background: var(--accent-gold);
  color: #0a192f;
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 4px;
  margin-left: 10px;
}
.btn-secondary:hover { background: rgba(100, 255, 218, 0.1); }

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed; top: 0; width: 100%;
  background: var(--bg-nav);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  height: 70px;
  display: flex; align-items: center;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.3rem; color: var(--text-heading); }
.brand .logo { height: 40px; width: auto; }

/* Desktop Menu */
.nav-menu { display: flex; gap: 25px; }
.nav-menu a { color: var(--text-main); font-size: 0.95rem; font-weight: 500; }
.nav-menu a:hover { color: var(--accent-gold); }
.nav-actions .small { padding: 8px 16px; font-size: 0.8rem; }

/* Mobile Hamburger & Menu */
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--text-heading); margin: 5px 0; transition: 0.3s; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 70px; left: 0; width: 100%;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-light);
  display: flex; flex-direction: column;
  padding: 0; max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease-out;
}
.mobile-menu.open { max-height: 400px; padding: 20px 0; box-shadow: var(--shadow); }
.mobile-link {
  padding: 12px 20px; color: var(--text-heading); font-weight: 600; text-align: center; border-bottom: 1px solid var(--border-light);
}
.btn-mobile-highlight { background: var(--accent-gold); color: #0a192f; margin: 10px 20px; border-radius: 4px; border: none; }

/* ==================== HERO ==================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 70px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,25,47,0.98) 0%, rgba(10,25,47,0.85) 100%);
}
/* Light mode overlay */
@media (prefers-color-scheme: light) {
  .hero-bg .overlay { background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%); }
}

.hero-text { max-width: 650px; }
.badge { display: inline-block; color: var(--accent-blue); border: 1px solid var(--accent-blue); padding: 5px 12px; font-size: 0.85rem; border-radius: 50px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; }
.trust-metrics { display: flex; gap: 40px; margin-top: 50px; border-top: 1px solid var(--border-light); padding-top: 25px; }
.metric .num { font-size: 2rem; font-weight: 700; color: var(--text-heading); font-family: 'Playfair Display'; }
.metric small { display: block; font-size: 0.8rem; color: var(--text-muted); }

/* ==================== SERVICES SECTION ==================== */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.services { position: relative; overflow: hidden; }

/* Background Glow */
.bg-glow {
  position: absolute; top: 10%; right: 0; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, rgba(0,0,0,0) 70%);
  filter: blur(60px); z-index: 0; pointer-events: none;
}

/* 1. Categories */
.service-cats {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 15px 30px; margin-bottom: 30px; padding: 0; position: relative; z-index: 1;
}
.service-cats li {
  font-size: 1.1rem; font-weight: 700; color: var(--text-heading); position: relative; font-family: 'Playfair Display', serif;
}
.service-cats li:not(:last-child)::after {
  content: "/"; position: absolute; right: -18px; color: var(--accent-gold); opacity: 0.5; font-weight: 400;
}

/* 2. Pills */
.pills-wrapper {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 50px; position: relative; z-index: 1;
}
.pill {
  background: rgba(255, 193, 7, 0.08); border: 1px solid var(--accent-gold); color: var(--text-heading);
  padding: 10px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; transition: 0.3s; cursor: default;
}
.pill:hover { background: var(--accent-gold); color: #0a192f; transform: translateY(-2px); }

/* 3. Grid & Cards */
.domain-card, .expert-profile, .review-card, .contact-box {
  background: var(--bg-card); padding: 30px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border-light); transition: 0.3s;
}
.domain-card:hover, .expert-profile:hover { transform: translateY(-5px); background: var(--bg-card-hover); border-color: var(--accent-gold); }

.subject-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; position: relative; z-index: 1; }
.card-icon { font-size: 2.5rem; margin-bottom: 15px; display: inline-block; padding: 10px; border-radius: 50%; background: var(--bg-body); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.subject-list { list-style: none; margin-top: 20px; padding: 0; }
.subject-list li { padding: 8px 0 8px 25px; border-bottom: 1px solid var(--border-light); color: var(--text-muted); font-size: 0.95rem; position: relative; }
.subject-list li:last-child { border-bottom: none; }
.subject-list li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--accent-blue); font-weight: bold; }

/* ==================== SUBSCRIPTION PLANS ==================== */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; align-items: start; }
.plan-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 40px 30px; position: relative; transition: 0.3s; display: flex; flex-direction: column; height: 100%;
}
.plan-card:hover { transform: translateY(-8px); background: var(--bg-card-hover); border-color: var(--accent-gold); }

/* Popular Highlight */
.plan-card.popular { border: 2px solid var(--accent-gold); background: linear-gradient(145deg, var(--bg-card), rgba(255, 193, 7, 0.03)); }
.badge-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-gold); color: #0a192f; font-weight: 700; font-size: 0.75rem; padding: 4px 12px; border-radius: 50px; text-transform: uppercase;
}

.plan-header { text-align: center; margin-bottom: 30px; border-bottom: 1px solid var(--border-light); padding-bottom: 20px; }
.plan-header h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 10px; color: var(--text-heading); }
.plan-price { font-size: 2.5rem; font-weight: 700; color: var(--accent-gold); font-family: 'Inter', sans-serif; }
.plan-price .period { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.feature-list { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: 15px; color: var(--text-main); font-size: 0.95rem; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-blue); font-weight: bold; font-size: 1.1rem; }

/* ==================== EXPERTS & UNIVERSITIES ==================== */
.experts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.expert-profile { text-align: center; }
.profile-pic { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px; border: 3px solid var(--bg-body); box-shadow: 0 0 0 2px var(--accent-gold); }
.profile-info hr { border: 0; height: 1px; background: var(--border-light); margin: 10px 0; }

.uni-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; opacity: 0.7; }
.uni-grid img { height: 40px; width: auto; filter: grayscale(100%); transition: 0.3s; }
.uni-grid img:hover { filter: grayscale(0); opacity: 1; }
.disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-top: 30px; text-align: center; }

/* ==================== REVIEWS & CONTACT ==================== */
.reviews .container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.review-card { position: relative; }
.quote-icon { font-size: 4rem; color: var(--accent-gold); opacity: 0.2; position: absolute; top: 10px; left: 20px; }
.review-text { font-style: italic; font-size: 1.1rem; margin-bottom: 20px; position: relative; z-index: 1; padding-left: 10px; }
.reviewer { display: flex; align-items: center; gap: 15px; }
.reviewer img { width: 40px; height: 40px; border-radius: 50%; }

.contact-box { text-align: center; border: 1px solid var(--accent-gold); }
.contact-methods { display: flex; justify-content: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.method-card { background: var(--bg-body); color: var(--text-heading); display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: 12px; min-width: 260px; border: 1px solid var(--border-light); }
.method-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.method-card .qr-code { width: 50px; height: 50px; }
.method-info { display: flex; flex-direction: column; text-align: left; }
.method-info .label { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; opacity: 0.7; }
.method-info .phone { font-weight: 700; font-size: 1.1rem; }
.method-info .action { font-size: 0.8rem; color: var(--accent-blue); font-weight: 600; }

/* ==================== FOOTER ==================== */
footer { text-align: center; padding: 40px 0; border-top: 1px solid var(--border-light); color: var(--text-muted); background: var(--bg-body); }
footer .small { font-size: 0.85rem; opacity: 0.6; margin-top: 5px; }

/* ==================== MOBILE RESPONSIVENESS ==================== */
@media (max-width: 768px) {
  .nav-menu, .nav-actions { display: none; }
  .hamburger { display: block; }
  
  .hero { text-align: center; padding-top: 100px; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-btns { display: flex; flex-direction: column; gap: 15px; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; margin-left: 0; text-align: center; }
  
  .trust-metrics { flex-direction: column; gap: 20px; align-items: center; border-top: none; }
  
  .service-cats li:not(:last-child)::after { content: ""; } /* Remove slashes */
  .service-cats { gap: 10px; }
  .service-cats li { background: var(--bg-card); padding: 5px 15px; border-radius: 4px; font-size: 0.9rem; border: 1px solid var(--border-light); }
  
  .reviews .container { grid-template-columns: 1fr; }
  .contact-methods { flex-direction: column; }
  .method-card { width: 100%; }
  .plan-card { padding: 30px 20px; }
}

/* ==================== ANIMATION ==================== */
.reveal-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal-up.active { opacity: 1; transform: translateY(0); }
/* ==================== TYPING ANIMATION CURSOR ==================== */
.cursor {
  display: inline-block;
  color: var(--accent-gold);
  animation: blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}

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

/* Ensure H1 has a fixed height to prevent layout jumps during typing (Optional but recommended) */
.hero h1 {
  min-height: 1.2em; 
}