:root{
  --primary:#d1039e;
  --primary-dark:#5b026b;
  --bg:#ffffff;
  --text:#1a1a1a;
  --muted:#6b6b6b;
  --card:#ffffff;
  --radius:12px;
  --shadow:0 8px 20px rgba(0,0,0,0.05);
  --header-shadow:0 8px 20px #d1039e80;
}
*{box-sizing:border-box}
body{
  font-family:"Poppins",system-ui,sans-serif;
  margin:0;background:var(--bg);color:var(--text);line-height:1.6;
  
}


/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(209, 3, 158, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  width: 100%;
}

.header-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    width: 100%;
}

body.scrolled .header-inner {
  box-shadow: 0 4px 30px rgba(209, 3, 158, 0.15);
}

.brand{
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.brand:hover {
    transform: scale(1.05);
}

.logo{
    height: 50px;
    width: auto;
}

.top-nav{
    display: flex;
    gap: 8px;
    align-items: center;
}

.top-nav a{
    text-decoration: none;
    color: var(--text);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.top-nav a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary);
    transition: transform 0.3s ease;
}

.top-nav a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.top-nav a:hover {
    color: var(--primary);
}

.top-nav a.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(209, 3, 158, 0.3);
}

.top-nav a.active::before {
    display: none;
}

.top-nav a#loginBtn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.top-nav a#loginBtn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(209, 3, 158, 0.3);
}

.menu-toggle{
    display: none;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1100;
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(209, 3, 158, 0.08);
    color: var(--primary);
}

/* Bars → X icon swap when menu is open */
.menu-toggle.active .fa-bars::before {
    content: '\f00d';
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    text-decoration: none;
    color: var(--text);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-dropdown .nav-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link {
    color: var(--primary);
}

.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(209, 3, 158, 0.1);
}

/* ============================================
   MEGA MENU — Professional Design
   ============================================ */

.mega-menu {
    display: flex !important;
    min-width: 720px;
    padding: 0 !important;
    border-radius: 16px;
    overflow: hidden;
}

.mega-courses {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    flex: 1;
    padding: 20px;
    gap: 4px;
}

.mega-col { padding: 0 4px; }

.mega-heading {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px 8px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mega-heading i { color: var(--primary); font-size: 0.7rem; }

/* Course items with icon + name + desc */
.mega-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.mega-item:hover {
    background: rgba(209, 3, 158, 0.04);
    border-left-color: var(--primary);
    padding-left: 14px;
}

.mega-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.mega-item:hover .mega-icon { transform: scale(1.1); }

.mega-info { display: flex; flex-direction: column; min-width: 0; }

.mega-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.2;
}

.mega-desc {
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.2;
}

.mega-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    margin-left: auto;
}

.mega-badge.popular { background: #fef3c7; color: #92400e; }
.mega-badge.new { background: #dbeafe; color: #1e40af; }

/* Sidebar with CTA */
.mega-sidebar {
    width: 220px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.mega-promo {
    text-align: center;
}

.mega-promo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin: 0 auto 12px;
}

.mega-promo h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.mega-promo p {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 14px;
}

.mega-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mega-promo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(209, 3, 158, 0.3);
}

.mega-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mega-stat {
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
}

.mega-stat strong {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 800;
}

/* Resources menu — items with descriptions */
.resources-menu, .products-menu {
    min-width: 300px;
    padding: 8px !important;
}

.res-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.res-item:hover {
    background: rgba(209, 3, 158, 0.04);
}

.res-item:hover .res-icon {
    transform: scale(1.1);
    color: var(--primary);
}

.res-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(209, 3, 158, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.res-info { display: flex; flex-direction: column; }

.res-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
}

.res-desc {
    font-size: 0.72rem;
    color: #94a3b8;
}

.res-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 4px 12px;
}

.res-external {
    font-size: 0.65rem;
    color: #cbd5e1;
    margin-left: auto;
}

/* Dark mode mega menu */
[data-theme="dark"] .mega-name { color: #e4e4e4; }
[data-theme="dark"] .mega-item:hover { background: rgba(209, 3, 158, 0.08); }
[data-theme="dark"] .mega-sidebar { background: linear-gradient(180deg, #252536 0%, #1e1e2e 100%); border-left-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .mega-promo h4 { color: #fff; }
[data-theme="dark"] .mega-stats { border-top-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .res-name { color: #e4e4e4; }
[data-theme="dark"] .res-icon { background: rgba(209, 3, 158, 0.1); }
[data-theme="dark"] .res-item:hover { background: rgba(209, 3, 158, 0.08); }
[data-theme="dark"] .res-divider { background: rgba(255,255,255,0.06); }

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(209, 3, 158, 0.1), rgba(122, 0, 96, 0.1));
    color: var(--primary);
    transform: translateX(3px);
}

/* Active course highlight in dropdown */
.dropdown-item.active-course {
    background: linear-gradient(135deg, rgba(209, 3, 158, 0.12), rgba(122, 0, 96, 0.08));
    color: var(--primary);
    font-weight: 600;
}

/* Color coding for course icons */
.dropdown-item .fa-html5 {
    color: #e34c26;
}

.dropdown-item .fa-css3-alt {
    color: #264de4;
}

.dropdown-item .fa-js {
    color: #f0db4f;
}

.dropdown-item .fa-code,
.dropdown-item .fa-laptop-code,
.dropdown-item .fa-question-circle,
.dropdown-item .fa-clipboard-check {
    color: var(--primary);
}

/* ===========================
   HERO SECTION - MODERN REDESIGN
   =========================== */

.hero-wrapper {
  position: relative;
  overflow: visible;
  background: #fff;
  padding-top: 0;
}

.hero-wrapper .blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(3px);
  z-index: 1;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 100px 20px 60px;
  margin-top: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.hero-left {
  flex: 1;
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.1), rgba(122, 0, 96, 0.1));
  border: 1px solid rgba(209, 3, 158, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  animation: slideDown 0.6s ease-out 0.2s backwards;
}

.hero-badge i {
  color: #ffc107;
  animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Title */
.hero-left h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #1a1a1a;
  animation: slideDown 0.6s ease-out 0.3s backwards;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 32px;
  color: #555;
  animation: slideDown 0.6s ease-out 0.4s backwards;
}

.hero-subtitle strong {
  color: var(--primary);
  font-weight: 600;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
  animation: slideDown 0.6s ease-out 0.5s backwards;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
  font-weight: 500;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  animation: slideDown 0.6s ease-out 0.7s backwards;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(209, 3, 158, 0.3);
}

.cta-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(209, 3, 158, 0.2);
}

/* Hero Right - Illustration */
.hero-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
  animation: fadeInRight 0.8s ease-out 0.5s backwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-illustration {
  position: relative;
  width: 400px;
  height: 400px;
}

.hero-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.1), rgba(122, 0, 96, 0.1));
  border: 2px dashed var(--primary);
  opacity: 0.3;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.5;
  }
}

/* Floating Cards */
.floating-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  font-weight: 600;
  transition: all 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.floating-card i {
  font-size: 3rem;
}

.floating-card span {
  font-size: 0.9rem;
  color: #333;
}

.card-1 {
  top: 10%;
  left: 10%;
  animation: float 3s ease-in-out infinite;
}

.card-1 i {
  color: #3776ab;
}

.card-2 {
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  animation: float 3s ease-in-out 1s infinite;
}

.card-2 i {
  color: #61dafb;
}

.card-3 {
  bottom: 10%;
  left: 15%;
  animation: float 3s ease-in-out 2s infinite;
}

.card-3 i {
  color: #f0db4f;
}

.card-4 {
  bottom: 5%;
  right: 15%;
  animation: float 3s ease-in-out 0.5s infinite;
}

.card-4 i {
  color: #f89820;
}

.card-5 {
  top: 35%;
  left: -5%;
  animation: float 3s ease-in-out 1.5s infinite;
}

.card-5 i {
  color: #339933;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Hero */
@media (max-width: 968px) {
  .hero {
    flex-direction: column;
  }

  .hero-right {
    min-height: 350px;
  }

  .hero-illustration {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 50px;
    align-items: center;
    justify-content: center;
  }

  .hero-left {
    text-align: center;
  }

  .hero-left h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .searchrow {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 60px 15px 40px;
  }

  .hero-left h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .searchrow {
    max-width: 100%;
  }

  .hero-illustration {
    width: 300px;
    height: 300px;
  }

  .floating-card {
    padding: 15px;
  }

  .floating-card i {
    font-size: 2rem;
  }
}

/* ===========================
   SEARCH BAR - ENHANCED
   =========================== */
.searchrow {
  position: relative;
  width: 100%;
  max-width: 500px;
  animation: slideDown 0.6s ease-out 0.6s backwards;
  z-index: 10;
}

.search-icon-left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 1;
}

.searchrow input {
  width: 100%;
  padding: 16px 60px 16px 50px;
  border: 2px solid rgba(209, 3, 158, 0.2);
  border-radius: 50px;
  outline: none;
  font-size: 1rem;
  text-align: left;
  transition: all 0.3s ease;
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.searchrow input:focus {
  border-color: var(--primary);
  box-shadow: 0 6px 30px rgba(209, 3, 158, 0.2);
  transform: translateY(-2px);
}

.search-btn-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(209, 3, 158, 0.3);
}

.search-btn-icon:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(209, 3, 158, 0.5);
}

.searchrow input::placeholder {
  color: #999;
  transition: opacity 0.3s ease;
  font-weight: 400;
}

.searchrow input:focus::placeholder {
  opacity: 0.5;
}

/* Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: linear-gradient(90deg, rgba(209, 3, 158, 0.05), rgba(122, 0, 96, 0.05));
  transform: translateX(4px);
}

.suggestion-item i {
  font-size: 20px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.suggestion-content {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-title .parent-lesson {
  font-weight: 400;
  color: #666;
  font-size: 13px;
  font-style: italic;
}

.suggestion-course {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Scrollbar styling for suggestions */
.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: #d1039e;
  border-radius: 10px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
  background: #b10086;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .search-suggestions {
    max-height: 300px;
  }

  .suggestion-item {
    padding: 10px 12px;
  }

  .suggestion-title {
    font-size: 13px;
  }

  .suggestion-course {
    font-size: 11px;
  }
}

/* ===========================
   SECTIONS - ENHANCED
   =========================== */
section {
  margin-top: 0;
  padding: 60px 20px;
}

/* Full-width sections — only homepage (not course pages) */
main:not(.course-container) > section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

section > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Course pages: content should fill available space, not center */
.course-content > * {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Featured Section Styling */
.featured {
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.02), rgba(122, 0, 96, 0.02));
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 20px auto 0;
}

h2, h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

/* Featured Cards Grid */
.cards,
.how-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Enhanced Card Styles */
.card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(209, 3, 158, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(209, 3, 158, 0.15);
  border-color: var(--primary);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card .btn {
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 12px 24px;
}

.card .btn:hover {
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.card-lessons {
  font-size: 0.85rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-lessons i {
  color: var(--card-accent, var(--primary));
}

.card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.04);
  color: #999;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.card:hover .card-arrow {
  background: var(--card-accent, var(--primary));
  color: white;
  transform: translateX(4px);
}

a.card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card::before {
  background: linear-gradient(90deg, var(--card-accent, var(--primary)), var(--card-accent, var(--primary-dark)));
}

.card:hover {
  border-color: var(--card-accent, var(--primary));
  box-shadow: 0 12px 40px color-mix(in srgb, var(--card-accent, var(--primary)) 15%, transparent);
}

.how-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.how-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* CTA Banner Section */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 36px;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-banner .cta-primary {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta-banner .cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.cta-banner .cta-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}

.cta-banner .cta-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-3px);
}


.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Smooth hover lift */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
  background: linear-gradient(90deg, #0056d6, #00aaff);
}

/* Launch symbol appears on hover */
.btn::after {
  content: " 🚀";            /* you can also use "↗" for link launch feel */
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(5px);
}

/* Why Priodemy? */

.why-priodemy {
  text-align: center;
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.03), rgba(122, 0, 96, 0.03));
  position: relative;
  overflow: hidden;
}

.why-priodemy::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(209, 3, 158, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.why-priodemy::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(122, 0, 96, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

.why-priodemy h2 {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 60px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.why-priodemy h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  margin: 20px auto 0;
  border-radius: 2px;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.why-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(209, 3, 158, 0.1);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.05), rgba(122, 0, 96, 0.05));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.why-card:hover::before {
  opacity: 1;
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  margin: 0 auto 22px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.why-card:hover .why-icon {
  transform: scale(1.12) rotate(5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.why-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.why-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  border-color: rgba(209, 3, 158, 0.3);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .why-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}


/* User Dropdown Menu Styles */
#userMenuContainer {
  display: none;
}

.user-dropdown {
  position: relative;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.1) 0%, rgba(91, 2, 107, 0.1) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.user-dropdown-toggle:hover {
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.2) 0%, rgba(91, 2, 107, 0.2) 100%);
  transform: translateY(-2px);
}

.user-dropdown-toggle.active {
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.25) 0%, rgba(91, 2, 107, 0.25) 100%);
}

.user-dropdown-toggle .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.user-dropdown-toggle .user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.user-dropdown-toggle i {
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.user-dropdown-toggle.active i {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.05) 0%, rgba(91, 2, 107, 0.05) 100%);
}

.user-dropdown-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.user-dropdown-info {
  display: flex;
  flex-direction: column;
}

.user-dropdown-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.user-dropdown-email {
  font-size: 12px;
  color: var(--muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

.user-dropdown-item:hover {
  background: rgba(209, 3, 158, 0.08);
  color: var(--primary);
}

.user-dropdown-item i {
  width: 18px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.user-dropdown-item:hover i {
  color: var(--primary);
}

.user-dropdown-item.signout-item {
  color: #ef4444;
}

.user-dropdown-item.signout-item:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.user-dropdown-item.signout-item i {
  color: #ef4444;
}

/* Hide dashboard link by default */
#dashboardLink {
  display: none;
}

@media (max-width: 768px) {
  .user-dropdown-toggle .user-name {
    display: none;
  }

  .user-dropdown-toggle i.fa-chevron-down {
    display: none;
  }

  .user-dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    min-width: 100%;
    transform: translateY(100%);
  }

  .user-dropdown-menu.show {
    transform: translateY(0);
  }
}


/* Auth Notification Styles */
.auth-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.auth-notification.show {
  transform: translateX(0);
}

.auth-notification.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.auth-notification.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.auth-notification.info {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.auth-notification i {
  font-size: 18px;
}

/* User Avatar in Nav */
#loginBtn.logged-in {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.1) 0%, rgba(91, 2, 107, 0.1) 100%);
  border-radius: 50px;
  transition: all 0.3s ease;
}

#loginBtn.logged-in:hover {
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.2) 0%, rgba(91, 2, 107, 0.2) 100%);
  transform: translateY(-2px);
}

#loginBtn .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

#loginBtn .user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 768px) {
  .auth-notification {
    top: auto;
    bottom: 20px;
    right: 10px;
    left: 10px;
    transform: translateY(120%);
  }

  .auth-notification.show {
    transform: translateY(0);
  }

  #loginBtn .user-name {
    display: none;
  }
}


/* Footer - Modern Professional Design */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e4e4e4;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d1039e, transparent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: #b8b8b8;
  line-height: 1.7;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4e4;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: linear-gradient(135deg, #d1039e, #7a0060);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(209, 3, 158, 0.4);
  border-color: transparent;
}

.social-icon i {
  font-size: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #d1039e, transparent);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #b8b8b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-column ul li a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #d1039e;
  transition: width 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-column ul li a:hover::before {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-bottom-left p {
  margin: 0;
  color: #9a9a9a;
  font-size: 0.85rem;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 5px;
}

.heart {
  color: #d1039e;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.footer-bottom span#year {
  color: #d1039e;
  font-weight: 500;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-bottom-links a {
  color: #9a9a9a;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer-bottom-links a::after {
  content: '|';
  position: absolute;
  right: -12px;
  color: rgba(255, 255, 255, 0.2);
}

.footer-bottom-links a:last-child::after {
  content: '';
}

.footer-bottom-links a:hover {
  color: #d1039e;
}

/* Footer Responsive Design */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 0 15px;
  }

  .footer-top {
    padding: 40px 0 30px;
    gap: 30px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    gap: 15px;
  }

  .footer-bottom-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-bottom-links a::after {
    content: '';
  }

  .footer-social {
    justify-content: flex-start;
  }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet and Mobile Navigation */
@media(max-width:768px){
  .header-inner {
    padding: 12px 16px;
  }

  .logo {
    height: 40px;
  }

  .top-nav{
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 64px;
    right: 12px;
    left: 12px;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .top-nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .top-nav > a,
  .top-nav > .nav-dropdown {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
  }

  .top-nav > a:hover,
  .top-nav > .nav-dropdown:hover {
    background: rgba(209, 3, 158, 0.05);
  }

  .top-nav > a:last-child,
  .top-nav > .nav-dropdown:last-child,
  .top-nav > #userMenuContainer {
    border-bottom: none;
  }

  .top-nav > a:first-child {
    border-radius: 12px 12px 0 0;
  }

  .top-nav > a:last-child {
    border-radius: 0 0 12px 12px;
  }

  /* Dropdown menus in mobile — reset all desktop positioning */
  .nav-dropdown .dropdown-menu {
    position: static !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.02);
    padding: 6px 0;
    margin: 6px 0 0 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-width: unset;
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Show dropdown when active (JS click) — NOT hover */
  .nav-dropdown.active .dropdown-menu {
    display: block !important;
  }

  /* Disable desktop hover trigger on mobile */
  .nav-dropdown:hover .dropdown-menu {
    display: none !important;
  }
  .nav-dropdown.active:hover .dropdown-menu {
    display: block !important;
  }

  /* Mega menu on mobile */
  .mega-menu {
    flex-direction: column !important;
    min-width: unset !important;
    max-height: 70vh;
    overflow-y: auto;
  }

  .mega-courses {
    grid-template-columns: 1fr !important;
    padding: 12px;
    gap: 0;
  }

  .mega-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
  }

  .mega-promo { display: none; }
  .mega-stats { padding-top: 0; border-top: none; }

  .mega-dropdown.active .dropdown-menu {
    display: flex !important;
  }

  .resources-menu, .products-menu {
    min-width: unset !important;
  }

  .nav-dropdown .dropdown-item {
    padding: 10px 12px;
    margin: 1px 4px;
    border-radius: 8px;
    color: #1f2937;
    font-size: 0.85rem;
    gap: 8px;
  }

  .nav-dropdown .dropdown-item i {
    font-size: 1rem;
    width: 20px;
  }

  .nav-dropdown .dropdown-item:hover {
    background: rgba(209, 3, 158, 0.08);
    color: var(--primary);
    transform: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 22px;
  }

  .menu-toggle:hover {
    background: rgba(209, 3, 158, 0.08);
  }

  .menu-toggle.active {
    background: rgba(209, 3, 158, 0.1);
    color: var(--primary);
  }

  /* Adjust section padding for tablets */
  section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .why-priodemy {
    padding: 60px 20px;
  }
}

/* Mobile specific adjustments */
@media(max-width: 480px) {
  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .hero-stats {
    gap: 15px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  /* Small phones: mega menu compact */
  .mega-heading {
    font-size: 0.7rem;
    padding: 4px 12px 8px;
  }
}

#animatedHero canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  z-index: 0; /* animation is behind everything */
}


.course-marquee {
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.03), rgba(122, 0, 96, 0.03));
  backdrop-filter: blur(6px);
  padding: 2rem 0;
}

.marquee-track {
  display: flex;
  gap: 50px;
  animation: marquee-scroll 25s linear infinite;
  width: max-content;
}

.marquee-track img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.marquee-track img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ===========================
   CODING GROUND SECTION - MODERN UI
   =========================== */

.coding-ground {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 100px 20px;
}

/* Animated Background Elements */
.coding-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.code-particle {
  position: absolute;
  font-family: 'Fira Code', monospace;
  font-size: 2rem;
  color: rgba(209, 3, 158, 0.15);
  font-weight: 700;
  animation: float-particle 20s linear infinite;
}

.code-particle-1 { top: 10%; left: 5%; animation-delay: 0s; }
.code-particle-2 { top: 60%; left: 10%; animation-delay: -5s; }
.code-particle-3 { top: 20%; right: 15%; animation-delay: -10s; }
.code-particle-4 { bottom: 20%; right: 8%; animation-delay: -15s; }

@keyframes float-particle {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  25% { transform: translateY(-30px) rotate(10deg); opacity: 0.25; }
  50% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  75% { transform: translateY(30px) rotate(-10deg); opacity: 0.25; }
}

/* Glowing orbs in background */
.coding-ground::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(209, 3, 158, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite;
}

.coding-ground::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(122, 0, 96, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 10s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.coding-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
  gap: 60px;
  position: relative;
  z-index: 1;
}

/* Code Editor Wrapper */
.code-editor-wrapper {
  position: relative;
  animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Modern Code Card */
.code-card {
  background: linear-gradient(180deg, #1e1e2e 0%, #252536 100%);
  border-radius: 16px;
  width: 450px;
  max-width: 100%;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 80px rgba(209, 3, 158, 0.15);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.code-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 35px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(209, 3, 158, 0.3),
    0 0 100px rgba(209, 3, 158, 0.25);
}

/* Code Card Header */
.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(90deg, #2a2a3d 0%, #32324a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.window-controls .dot:hover {
  transform: scale(1.2);
}

.window-controls .red { background: #ff5f57; }
.window-controls .yellow { background: #febc2e; }
.window-controls .green { background: #28c840; }

.file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.file-name i {
  color: var(--primary);
  font-size: 1rem;
}

.run-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(209, 3, 158, 0.3);
}

.run-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(209, 3, 158, 0.5);
}

.run-btn i {
  font-size: 0.75rem;
}

/* Code Card Body */
.code-card-body {
  display: flex;
  padding: 0;
  background: #1a1a2e;
}

.line-numbers {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.2);
  min-width: 45px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.line-numbers span {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.3);
  padding: 0 12px;
}

.code-card-body pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  flex: 1;
}

.code-card-body code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #e2e8f0;
}

/* Syntax Highlighting */
.code-keyword { color: #c678dd; font-weight: 600; }
.code-class { color: #e5c07b; }
.code-function { color: #61afef; }
.code-string { color: #98c379; }
.code-comment { color: #5c6370; font-style: italic; }

/* Code Card Footer */
.code-card-footer {
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(209, 3, 158, 0.1), rgba(122, 0, 96, 0.1));
  border-top: 1px solid rgba(209, 3, 158, 0.2);
}

.output-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.output-text {
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  color: #28c840;
  padding: 10px 14px;
  background: rgba(40, 200, 64, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(40, 200, 64, 0.2);
}

/* Floating Badges */
.floating-code-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a2e;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

.floating-code-badge i {
  color: var(--primary);
}

.badge-1 {
  top: -15px;
  right: -30px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 30px;
  left: -40px;
  animation-delay: -1.5s;
}

/* Coding Info Section */
.coding-info {
  flex: 1;
  min-width: 320px;
  max-width: 500px;
  animation: fadeInRight 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.coding-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(209, 3, 158, 0.15);
  border: 1px solid rgba(209, 3, 158, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.coding-badge i {
  animation: rocket-bounce 2s ease-in-out infinite;
}

@keyframes rocket-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.coding-info h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #fff;
}

.coding-info h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.coding-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

/* Compiler Grid - Modern Cards */
.compiler-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.compiler-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.compiler-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.1), rgba(122, 0, 96, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.compiler-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(209, 3, 158, 0.2);
}

.compiler-card:hover::before {
  opacity: 1;
}

.compiler-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.java-icon { background: linear-gradient(135deg, #f89820, #ea4c00); color: #fff; }
.python-icon { background: linear-gradient(135deg, #3776ab, #ffd43b); color: #fff; }
.cpp-icon { background: linear-gradient(135deg, #00599c, #004482); color: #fff; }
.html-icon { background: linear-gradient(135deg, #e34c26, #f06529); color: #fff; }

.compiler-card:hover .compiler-icon {
  transform: scale(1.1) rotate(5deg);
}

.compiler-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.compiler-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.compiler-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.compiler-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.compiler-card:hover .compiler-arrow {
  color: var(--primary);
  transform: translateX(5px);
}

/* Explore Button */
.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(209, 3, 158, 0.3);
}

.explore-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(209, 3, 158, 0.45);
}

.explore-btn i {
  transition: transform 0.3s ease;
}

.explore-btn:hover i {
  transform: translateX(5px);
}

/* Responsive Coding Ground */
@media (max-width: 968px) {
  .coding-ground {
    padding: 80px 20px;
  }

  .coding-container {
    gap: 50px;
  }

  .code-card {
    width: 100%;
    max-width: 450px;
  }

  .floating-code-badge {
    display: none;
  }

  .coding-info h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .coding-ground {
    padding: 60px 15px;
  }

  .coding-container {
    flex-direction: column;
    gap: 40px;
  }

  .code-editor-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .code-card {
    width: 100%;
    max-width: 100%;
  }

  .coding-info {
    text-align: center;
    max-width: 100%;
  }

  .coding-badge {
    margin: 0 auto 20px;
  }

  .coding-info h1 {
    font-size: 2rem;
  }

  .coding-subtitle {
    font-size: 1rem;
  }

  .compiler-grid {
    gap: 12px;
  }

  .compiler-card {
    padding: 14px;
  }

  .explore-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .coding-ground {
    padding: 50px 12px;
  }

  .code-card-body code {
    font-size: 0.8rem;
  }

  .line-numbers {
    min-width: 35px;
  }

  .line-numbers span {
    font-size: 0.75rem;
    padding: 0 8px;
  }

  .coding-info h1 {
    font-size: 1.7rem;
  }

  .compiler-grid {
    grid-template-columns: 1fr;
  }

  .compiler-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* ===========================
   PLATFORM TOUR SECTION
   =========================== */
.platform-tour {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.platform-tour::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 30, 140, 0.3), transparent);
}

.tour-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tour-header {
  text-align: center;
  margin-bottom: 48px;
}

.tour-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #E91E8C;
  margin-bottom: 16px;
}

.tour-badge i {
  font-size: 12px;
}

.tour-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 12px;
  line-height: 1.2;
}

.tour-header p {
  font-size: 18px;
  color: #64748b;
  margin: 0;
}

/* Tour Navigation */
.tour-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tour-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.tour-nav-item:hover {
  border-color: #E91E8C;
  transform: translateY(-2px);
}

.tour-nav-item.active {
  background: linear-gradient(135deg, #E91E8C 0%, #6366F1 100%);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(233, 30, 140, 0.3);
}

.tour-nav-icon {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #64748b;
  transition: all 0.3s ease;
}

.tour-nav-item.active .tour-nav-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.tour-nav-item span {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  transition: color 0.3s ease;
}

.tour-nav-item.active span {
  color: white;
}

/* Tour Panels */
.tour-panels {
  position: relative;
  min-height: 400px;
}

.tour-panel {
  display: none;
  animation: tourFadeIn 0.4s ease;
}

.tour-panel.active {
  display: block;
}

@keyframes tourFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.tour-panel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.tour-panel-text h3 {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 16px;
}

.tour-panel-text p {
  font-size: 16px;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 24px;
}

.tour-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.tour-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: #475569;
}

.tour-features li i {
  color: #10b981;
  font-size: 16px;
}

.tour-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #E91E8C 0%, #6366F1 100%);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tour-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 30, 140, 0.35);
}

/* Tour Mockups */
.tour-mockup {
  background: #1e293b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.mockup-header {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #0f172a;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #334155;
}

.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #22c55e; }

.mockup-content {
  padding: 24px;
}

/* Lesson Mockup */
.lesson-mockup .mockup-lesson-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.mockup-progress-bar {
  height: 8px;
  background: #334155;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.mockup-progress {
  height: 100%;
  background: linear-gradient(90deg, #E91E8C, #6366F1);
  border-radius: 4px;
  transition: width 1s ease;
}

.mockup-code {
  font-family: 'Consolas', monospace;
  font-size: 16px;
  color: #94a3b8;
  padding: 16px;
  background: #0f172a;
  border-radius: 8px;
}

.code-tag {
  color: #E91E8C;
}

/* Playground Mockup */
.playground-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-editor {
  background: #0f172a;
  border-radius: 8px;
  padding: 12px;
}

.editor-line {
  font-family: 'Consolas', monospace;
  font-size: 13px;
  color: #94a3b8;
  padding: 4px 0;
  display: flex;
  gap: 12px;
}

.line-num {
  color: #475569;
  width: 20px;
  text-align: right;
}

.code-keyword { color: #c084fc; }
.code-method { color: #60a5fa; }
.code-string { color: #34d399; }

.mockup-output {
  background: #0f172a;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.output-label {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
}

.output-text {
  color: #34d399;
  font-family: 'Consolas', monospace;
}

/* Assess Mockup */
.assess-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.assess-score {
  position: relative;
  width: 120px;
  height: 120px;
}

.score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 800;
  color: white;
}

.assess-stats {
  display: flex;
  gap: 32px;
}

.assess-stats .stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
}

/* Achieve Mockup */
.achieve-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.achieve-badges {
  display: flex;
  gap: 12px;
}

.badge-item {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.badge-item.unlocked {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.badge-item.locked {
  background: #334155;
  color: #64748b;
}

.achieve-cert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  color: #34d399;
  font-size: 14px;
  font-weight: 600;
}

.achieve-streak {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.1));
  border-radius: 8px;
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
}

/* Bottom CTA */
.tour-bottom-cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
}

.tour-bottom-cta p {
  font-size: 18px;
  color: #64748b;
  margin: 0 0 20px;
}

.btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, #E91E8C 0%, #6366F1 100%);
  color: white;
  font-size: 18px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(233, 30, 140, 0.3);
}

.btn-get-started:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(233, 30, 140, 0.4);
}

/* Platform Tour Responsive */
@media (max-width: 900px) {
  .tour-panel-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }

  .tour-panel-visual {
    order: -1;
  }

  .tour-header h2 {
    font-size: 32px;
  }

  .tour-nav-item {
    padding: 12px 20px;
    min-width: 100px;
  }

  .tour-nav-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .platform-tour {
    padding: 60px 0;
  }

  .tour-header h2 {
    font-size: 28px;
  }

  .tour-nav {
    gap: 6px;
  }

  .tour-nav-item {
    flex: 1;
    min-width: 70px;
    padding: 12px 8px;
  }

  .tour-nav-item span {
    font-size: 12px;
  }

  .tour-panel-text h3 {
    font-size: 24px;
  }

  .btn-get-started {
    padding: 16px 32px;
    font-size: 16px;
  }
}

/* ===========================
   HOMEPAGE INTERACTIVE TOUR
   =========================== */

/* Tour Overlay */
.home-tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.home-tour-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Removed ::before - spotlight box-shadow creates the dark overlay */

/* Spotlight */
.home-tour-spotlight {
  position: fixed;
  border-radius: 16px;
  box-shadow:
    0 0 0 4px rgba(233, 30, 140, 0.5),
    0 0 0 9999px rgba(15, 23, 42, 0.85);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100000;
  /* Initial position off-screen */
  top: -9999px;
  left: -9999px;
  width: 100px;
  height: 100px;
  pointer-events: none;
}

/* Tooltip */
.home-tour-tooltip {
  position: fixed;
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9) translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: auto;
}

.home-tour-overlay.active .home-tour-tooltip {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.home-tour-tooltip-content {
  width: 340px;
  max-height: 80vh;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: visible;
}

.home-tour-tooltip-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #E91E8C, #6366F1, #E91E8C);
  background-size: 200% 100%;
  animation: tourGradient 3s ease infinite;
}

@keyframes tourGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.home-tour-step-badge {
  position: absolute;
  top: 14px;
  left: 20px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.home-tour-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 14px;
}

.home-tour-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.home-tour-icon {
  width: 56px;
  height: 56px;
  margin: 24px auto 12px;
  background: linear-gradient(135deg, #E91E8C 0%, #6366F1 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 8px 20px rgba(233, 30, 140, 0.3);
}

.home-tour-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin: 0 0 8px;
}

.home-tour-desc {
  font-size: 14px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 14px;
}

.home-tour-progress {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}

.home-tour-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #E91E8C, #6366F1);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

.home-tour-actions {
  display: flex;
  gap: 10px;
}

.home-tour-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.home-tour-btn.primary {
  background: linear-gradient(135deg, #E91E8C 0%, #6366F1 100%);
  color: white;
}

.home-tour-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 30, 140, 0.4);
}

.home-tour-btn.secondary {
  background: #f1f5f9;
  color: #475569;
}

.home-tour-btn.secondary:hover {
  background: #e2e8f0;
}

.home-tour-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tooltip Arrow */
.home-tour-arrow {
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  transform: rotate(45deg);
  box-shadow: -3px -3px 8px rgba(0, 0, 0, 0.05);
}

.home-tour-tooltip[data-position="bottom"] .home-tour-arrow {
  top: -10px;
  left: 50%;
  margin-left: -10px;
}

.home-tour-tooltip[data-position="top"] .home-tour-arrow {
  bottom: -10px;
  left: 50%;
  margin-left: -10px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.05);
}

.home-tour-tooltip[data-position="left"] .home-tour-arrow {
  right: -10px;
  top: 50%;
  margin-top: -10px;
  box-shadow: 3px -3px 8px rgba(0, 0, 0, 0.05);
}

.home-tour-tooltip[data-position="right"] .home-tour-arrow {
  left: -10px;
  top: 50%;
  margin-top: -10px;
}

/* Welcome Popup */
.home-tour-welcome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.home-tour-welcome.active {
  opacity: 1;
  visibility: visible;
}

.home-tour-welcome-card {
  background: white;
  border-radius: 28px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.home-tour-welcome.active .home-tour-welcome-card {
  transform: scale(1) translateY(0);
}

.home-tour-welcome-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 12px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.home-tour-welcome-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.home-tour-welcome-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
}

.welcome-icon-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.1), rgba(99, 102, 241, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: welcomePulse 2s ease-in-out infinite;
}

@keyframes welcomePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.welcome-icon-inner {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #E91E8C 0%, #6366F1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  box-shadow: 0 10px 40px rgba(233, 30, 140, 0.4);
}

.welcome-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.welcome-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #E91E8C, #6366F1);
  border-radius: 50%;
  animation: welcomeParticle 3s ease-in-out infinite;
}

.welcome-particles span:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.welcome-particles span:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.5s; }
.welcome-particles span:nth-child(3) { bottom: 15%; left: 10%; animation-delay: 1s; }
.welcome-particles span:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 1.5s; }

@keyframes welcomeParticle {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 1; }
}

.home-tour-welcome-card h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 12px;
}

.home-tour-welcome-card > p {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 24px;
}

.home-tour-welcome-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.welcome-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.2s;
}

.welcome-feature:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.welcome-feature i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.1), rgba(99, 102, 241, 0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #E91E8C;
}

.welcome-feature span {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.home-tour-welcome-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.home-tour-welcome-actions .home-tour-btn {
  padding: 16px 24px;
}

.home-tour-remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  cursor: pointer;
}

.home-tour-remember input {
  width: 16px;
  height: 16px;
  accent-color: #E91E8C;
}

/* Floating Action Button */
.home-tour-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #E91E8C 0%, #6366F1 100%);
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(233, 30, 140, 0.4);
  transition: all 0.3s ease;
  z-index: 9999;
}

.home-tour-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(233, 30, 140, 0.5);
}

.home-tour-fab i {
  font-size: 18px;
}

.home-tour-fab.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* Spotlight Pulse Animation */
@keyframes spotlightPulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(233, 30, 140, 0.5),
      0 0 0 9999px rgba(15, 23, 42, 0.85);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(233, 30, 140, 0.3),
      0 0 0 9999px rgba(15, 23, 42, 0.85);
  }
}

.home-tour-spotlight.pulse {
  animation: spotlightPulse 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 500px) {
  .home-tour-tooltip-content {
    width: calc(100vw - 40px);
  }

  .home-tour-welcome-card {
    padding: 28px;
  }

  .home-tour-welcome-card h2 {
    font-size: 24px;
  }

  .home-tour-welcome-features {
    flex-wrap: wrap;
    gap: 10px;
  }

  .welcome-feature {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
  }

  .home-tour-fab {
    padding: 12px 20px;
    font-size: 14px;
    bottom: 16px;
    right: 16px;
  }
}

/* ============================================
   ONBOARDING QUIZ
   ============================================ */

.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.onboarding-overlay.hidden { display: none; }

.onboarding-card {
  background: white;
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 40px;
  position: relative;
  animation: slideUp 0.4s ease;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.onboarding-close:hover { background: #f1f5f9; color: #333; }

.onboarding-step.hidden { display: none; }

.onboarding-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: white;
}

.onboarding-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.onboarding-card p {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 24px;
}

.onboarding-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onboarding-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
  width: 100%;
}

.onboarding-opt:hover {
  border-color: var(--primary);
  background: rgba(209, 3, 158, 0.04);
  transform: translateX(4px);
}

.onboarding-opt i {
  font-size: 1.3rem;
  color: var(--primary);
  width: 24px;
  text-align: center;
}

.onboarding-opt span {
  font-weight: 600;
  color: #1a1a1a;
  display: block;
  font-size: 0.95rem;
}

.onboarding-opt small {
  color: #888;
  font-size: 0.8rem;
  display: block;
  margin-top: 2px;
}

.onboarding-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.onboarding-start:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(209, 3, 158, 0.3);
}

.onboarding-skip {
  background: none;
  border: none;
  color: #999;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 16px;
  font-family: inherit;
}

.onboarding-skip:hover { color: #666; text-decoration: underline; }

/* Dark mode onboarding */
[data-theme="dark"] .onboarding-card { background: #1a1a2e; }
[data-theme="dark"] .onboarding-card h2 { color: #fff; }
[data-theme="dark"] .onboarding-card p { color: #999; }
[data-theme="dark"] .onboarding-opt { background: #252536; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .onboarding-opt:hover { border-color: var(--primary); background: rgba(209,3,158,0.08); }
[data-theme="dark"] .onboarding-opt span { color: #e4e4e4; }
[data-theme="dark"] .onboarding-opt small { color: #777; }
[data-theme="dark"] .onboarding-close:hover { background: rgba(255,255,255,0.06); color: #fff; }

@media (max-width: 480px) {
  .onboarding-card { padding: 28px 20px; }
  .onboarding-card h2 { font-size: 1.3rem; }
}

/* ============================================
   DARK MODE
   ============================================ */

[data-theme="dark"] {
  --bg: #0f0f1a;
  --text: #e4e4e4;
  --muted: #9a9a9a;
  --card: #1a1a2e;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

/* Header */
[data-theme="dark"] .site-header {
  background: rgba(15, 15, 26, 0.95);
  border-bottom-color: rgba(209, 3, 158, 0.15);
}

[data-theme="dark"] .top-nav a {
  color: var(--text);
}

[data-theme="dark"] .dropdown-menu {
  background: #1e1e2e;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mega-col:not(:last-child) {
  border-right-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .mega-heading {
  color: #666;
}

[data-theme="dark"] .dropdown-item {
  color: #ccc;
}

[data-theme="dark"] .dropdown-item:hover {
  background: rgba(209, 3, 158, 0.15);
  color: #fff;
}

/* Hero */
[data-theme="dark"] .hero-wrapper {
  background: var(--bg);
}

[data-theme="dark"] .hero-wrapper .blur-overlay {
  background: rgba(15, 15, 26, 0.7);
}

[data-theme="dark"] .hero-left h1 {
  color: #fff;
}

[data-theme="dark"] .hero-subtitle {
  color: #aaa;
}

[data-theme="dark"] .stat-label {
  color: #999;
}

[data-theme="dark"] .searchrow input {
  background: #1e1e2e;
  border-color: rgba(209, 3, 158, 0.25);
  color: #e4e4e4;
}

[data-theme="dark"] .searchrow input:focus {
  border-color: var(--primary);
  box-shadow: 0 6px 30px rgba(209, 3, 158, 0.15);
}

[data-theme="dark"] .floating-card {
  background: #1e1e2e;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .floating-card span {
  color: #ccc;
}

/* Cards */
[data-theme="dark"] .card {
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .card h3 {
  color: #fff;
}

[data-theme="dark"] .card p {
  color: #aaa;
}

[data-theme="dark"] .card-meta {
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .card-lessons {
  color: #888;
}

[data-theme="dark"] .card-arrow {
  background: rgba(255, 255, 255, 0.06);
  color: #888;
}

/* Sections */
[data-theme="dark"] .section-header h2 {
  color: #fff;
}

[data-theme="dark"] .section-subtitle {
  color: #999;
}

[data-theme="dark"] .platform-tour {
  background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
}

[data-theme="dark"] .tour-header h2 {
  color: #fff;
}

[data-theme="dark"] .tour-header p {
  color: #999;
}

[data-theme="dark"] .tour-nav-item {
  background: #1e1e2e;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .tour-nav-item:hover {
  border-color: var(--primary);
}

[data-theme="dark"] .tour-panel-content {
  background: #1e1e2e;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .tour-panel-text h3 {
  color: #fff;
}

[data-theme="dark"] .tour-panel-text p {
  color: #999;
}

[data-theme="dark"] .tour-features li {
  color: #bbb;
}

/* Why Priodemy */
[data-theme="dark"] .why-priodemy {
  background: linear-gradient(135deg, rgba(209, 3, 158, 0.03), rgba(15, 15, 26, 0.5));
}

[data-theme="dark"] .why-priodemy h2 {
  color: #fff;
}

[data-theme="dark"] .why-card {
  background: rgba(30, 30, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .why-card h3 {
  color: #fff;
}

[data-theme="dark"] .why-card p {
  color: #aaa;
}

/* Footer — already dark, no changes needed */

/* Dark mode toggle button styles */
.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.dark-mode-toggle:hover {
  background: rgba(209, 3, 158, 0.08);
  color: var(--primary);
}

/* Mobile menu dark mode */
[data-theme="dark"] .top-nav {
  background: #1e1e2e;
}

@media (max-width: 768px) {
  [data-theme="dark"] .top-nav {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }
}
