:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --bg-color: #0f172a;
    --bg-darker: #020617;
    --text-main: #f8fafc;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}


body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Navigation */
.glass-nav {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    padding: 1rem 0;
}

.glass-nav.scrolled {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 0.8rem 0;
}
.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
}

/* Login Card Custom Styles */
.login-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.login-card .icon-circle {
  background: linear-gradient(135deg, #4f46e5, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.glow-btn {
  background: linear-gradient(135deg, #4f46e5, #a855f7);
  border: none;
  color: #fff;
  box-shadow: 0 0 12px rgba(168,85,247,0.6), 0 4px 15px rgba(99,102,241,0.4);
  transition: all 0.3s ease;
}
.glow-btn:hover {
  box-shadow: 0 0 20px rgba(168,85,247,0.9), 0 6px 20px rgba(99,102,241,0.6);
  transform: translateY(-2px);
}
.or-divider {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,0.4);
  font-size: .85rem;
}
.or-divider::before,
.or-divider::after {
  content: '';
  flex:1;
  height:1px;
  background: rgba(255,255,255,0.1);
}

/* Utilities */
.bg-purple-subtle {
    background-color: rgba(168, 85, 247, 0.1) !important;
}
.text-purple {
    color: #c084fc !important;
}
.border-purple {
    border-color: rgba(168, 85, 247, 0.3) !important;
}
.tracking-wide {
    letter-spacing: 0.05em;
}

/* Gradients */
.gradient-text {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
}

.bg-glow {
    position: absolute;
    top: 30%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.05) 40%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* Animations */
.floating-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.1);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
    border: 1px solid rgba(255,255,255,0.05);
}

.bg-darker {
    background-color: var(--bg-darker);
}

.glass-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
}

.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(168, 85, 247, 0.3);
}

/* Observer states */
.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1);
}

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

/* Glassmorphism Blue Button */
.btn-glass-blue {
    background: rgba(59, 130, 246, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    color: #60a5fa !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.btn-glass-blue:hover, .btn-glass-blue:focus {
    background: rgba(59, 130, 246, 0.35) !important;
    border-color: rgba(96, 165, 250, 0.8) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.45) !important;
    transform: translateY(-2px);
}

/* 3x2 Aspect Ratio Buttons */
.btn-3x2 {
    width: 150px !important;
    height: 100px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    border-radius: 14px !important;
    padding: 10px 15px !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
}

/* ========================================
   Mobile & Tablet Responsiveness Overrides
   ======================================== */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 130px;
        min-height: auto;
        padding-bottom: 70px;
    }
    
    .hero-section h1.display-3 {
        font-size: 3rem !important;
    }
    
    .feature-card.glass-card {
        padding: 3rem 2rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section h1.display-3 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .hero-section p.lead {
        font-size: 1.05rem !important;
        margin-bottom: 2.2rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .feature-card.glass-card {
        padding: 2.5rem 1.5rem !important;
    }
    
    .btn-3x2 {
        width: 135px !important;
        height: 90px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.35rem !important;
    }
    
    .hero-section h1.display-3 {
        font-size: 2rem !important;
    }
    
    .hero-section {
        padding-top: 110px;
        padding-bottom: 50px;
    }
}

/* Mobile Navbar dropdown layout and readability */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        margin: 0.5rem -1rem -0.5rem -1rem;
        padding: 1.5rem;
        border-radius: 16px;
        border: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

/* Global Table Scroll for Responsiveness */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* ── Responsive Typography & Spacing ── */
@media (max-width: 991px) {
    .welcome-banner {
        padding: 1.5rem 1.5rem !important;
    }
    .welcome-banner::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .welcome-banner {
        padding: 1.2rem 1rem !important;
        border-radius: 16px !important;
    }
    .stat-card {
        padding: 1rem !important;
    }
    .stat-value {
        font-size: 1.4rem !important;
    }
    .qa-card {
        padding: 1rem !important;
    }
    /* Stack columns on very small screens */
    .btn-3x2 {
        width: 120px !important;
        height: 80px !important;
        font-size: 0.78rem !important;
    }
}

/* ── Navbar brand responsive ── */
@media (max-width: 400px) {
    .navbar-brand img {
        width: 44px !important;
        height: 44px !important;
    }
}

/* ---------- Progress Tracker Page Styles ---------- */

/* Simple hero styling */
.progress-hero {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.progress-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(99,102,241,0.15), transparent 60%);
    opacity: 0.6;
    z-index: -1;
}
.progress-hero h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    animation: float 6s ease-in-out infinite;
}

/* Container for the section cards */
.progress-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

/* Card styling – keep same visual but adapt to grid */
.progress-cards .sec-card {
    width: 100%;
    max-width: 260px;
    border: 1px solid rgba(255,255,255,0.05);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0.5rem;
}
.progress-cards .sec-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 20px 45px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.07);
}

/* Fade-up animation when cards appear */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175,0.885,0.32,1.275);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Adjust badge size for progress cards */
.progress-hero .class-record-badge {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin: 0 auto 1rem;
    animation: float 8s ease-in-out infinite;
}
/* ── Progress Sections ── */
.progress-section {
    padding: 2rem 0;
}
.progress-section h2 {
    margin-bottom: 1.5rem;
}
.progress-section .list-group-item {
    background: rgba(255,255,255,0.05);
    border: none;
    color: #e5e7eb;
}
