@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #030712;
    color: white;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 3px;
}

/* BG CANVAS */
#bg-canvas { position:fixed; inset:0; z-index:0; pointer-events:none; opacity:0.6; max-width:100vw; overflow:hidden; }

/* PAGE WATERMARK */
.page-watermark {
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-repeat:no-repeat; background-position:center center;
  background-size:55%; opacity:0.04; filter:grayscale(100%);
  transform:translateZ(0); will-change:transform;
}

/* CURSOR GLOW */
#cursor-glow {
  position:fixed; width:400px; height:400px;
  background:radial-gradient(circle,rgba(37,99,235,0.07) 0%,transparent 70%);
  border-radius:50%; pointer-events:none; z-index:1;
  transform:translate(-50%,-50%); transition:all 0.15s ease;
}

/* GRID OVERLAY */
.grid-overlay {
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(37,99,235,0.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(37,99,235,0.03) 1px,transparent 1px);
  background-size:60px 60px;
  mask-image:radial-gradient(ellipse 80% 80% at 50% 50%,black 20%,transparent 100%);
}

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s ease;
}

.navbar.scrolled {
    background: rgba(5, 8, 19, 0.85);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    padding: 13px 48px;
    box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

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

.nav-logo-text {
    font-weight: 800;
    font-size: 18px;
    color: white;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #60a5fa;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover { color: white; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: white; }
.nav-link.active::after { width: 100%; }

.nav-btn {
    background: linear-gradient(135deg, #2563eb, #6d28d9);
    color: white;
    padding: 9px 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.35);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.55);
}

/* HAMBURGER */
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:4px; z-index:1001; }
.hamburger span { width:24px; height:2px; background:white; border-radius:2px; transition:all 0.3s; display:block; }
.hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* MOBILE NAV DRAWER */
.mobile-nav {
  position:fixed; top:0; right:-100%; width:min(300px,85vw); height:100vh;
  background:rgba(5,8,19,0.98); backdrop-filter:blur(24px);
  z-index:1000; display:flex; flex-direction:column;
  transition:right 0.4s cubic-bezier(0.23,1,0.32,1);
  border-left:1px solid rgba(37,99,235,0.15); overflow-y:auto;
}
.mobile-nav.open { right:0; }
.mobile-nav-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 24px; border-bottom:1px solid rgba(37,99,235,0.15);
  position:sticky; top:0; background:rgba(5,8,19,0.98); z-index:1;
}
.mobile-nav-logo { display:flex; align-items:center; gap:10px; }
.mobile-nav-logo span { font-weight:800; font-size:16px; color:white; }
.mobile-nav-close {
  width:36px; height:36px; border-radius:10px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all 0.3s;
}
.mobile-nav-close:hover { background:rgba(239,68,68,0.15); border-color:rgba(239,68,68,0.3); }
.mobile-nav-links { display:flex; flex-direction:column; padding:16px 24px; gap:4px; flex:1; }
.mobile-nav .nav-link {
  font-size:15px; padding:13px 16px; border-radius:12px;
  color:#94a3b8; display:flex; align-items:center; gap:10px;
  transition:all 0.2s; background:transparent;
}
.mobile-nav .nav-link:hover, .mobile-nav .nav-link.active { background:rgba(37,99,235,0.1); color:white; }
.mobile-nav-divider { height:1px; background:rgba(255,255,255,0.06); margin:8px 0; }
.mobile-nav-btns { padding:16px 24px 32px; display:flex; flex-direction:column; gap:10px; }
.mobile-nav .nav-btn { text-align:center; width:100%; display:block; padding:13px 20px; }
.mobile-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.65); z-index:999; display:none; backdrop-filter:blur(2px); }
.mobile-overlay.open { display:block; }

@media (max-width:768px) {
  .navbar { padding:14px 18px; }
  .navbar.scrolled { padding:11px 18px; }
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .nav-logo-text { font-size:15px; }
}

.page-hero {
    padding: 140px 24px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.07);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    margin-bottom: 28px;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: white;
    font-weight: 500;
}

.breadcrumb-sep {
    color: #374151;
}

.page-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -2px;
    color: white;
    margin-bottom: 12px;
}

.page-title span {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-sub {
    color: #6b7280;
    font-size: 15px;
}

/* Board badge */
.board-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.badge-cbse {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-icse {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-wbbse {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

/* Classes Grid */
.classes-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.class-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 36px 28px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: block;
    text-align: center;
}

.class-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.class-card:hover::before {
    opacity: 1;
}

.class-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

/* Color variants based on class number */
.class-card.var-blue:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.12);
}

.class-card.var-green:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 30px 60px rgba(34, 197, 94, 0.12);
}

.class-card.var-purple:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 30px 60px rgba(168, 85, 247, 0.12);
}

.class-card.var-orange:hover {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 30px 60px rgba(249, 115, 22, 0.12);
}

.class-card.var-pink:hover {
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 30px 60px rgba(236, 72, 153, 0.12);
}

.class-num-wrap {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s;
    position: relative;
}

.class-card:hover .class-num-wrap {
    transform: scale(1.1) rotate(5deg);
}

.var-blue .class-num-wrap {
    background: rgba(59, 130, 246, 0.12);
}

.var-green .class-num-wrap {
    background: rgba(34, 197, 94, 0.12);
}

.var-purple .class-num-wrap {
    background: rgba(168, 85, 247, 0.12);
}

.var-orange .class-num-wrap {
    background: rgba(249, 115, 22, 0.12);
}

.var-pink .class-num-wrap {
    background: rgba(236, 72, 153, 0.12);
}

.class-num {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    transition: all 0.4s;
}

.var-blue .class-num {
    color: #3b82f6;
}

.var-green .class-num {
    color: #22c55e;
}

.var-purple .class-num {
    color: #a855f7;
}

.var-orange .class-num {
    color: #f97316;
}

.var-pink .class-num {
    color: #ec4899;
}

.class-label {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.class-board-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 20px;
}

.class-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    color: #9ca3af;
    transition: all 0.3s;
}

.class-card:hover .class-count-pill {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.class-arrow {
    position: absolute;
    bottom: 16px;
    right: 20px;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s;
}

.class-card:hover .class-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 24px;
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
