/* ========================================
   STUDIQ - Main Stylesheet
   Modern Design System for Student Dashboard
   ======================================== */

/* Brand Logo Styles */
.brand { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    text-decoration: none; 
}
.brand img { 
    height: 40px; 
    transition: transform .25s ease; 
}
.brand:hover img { 
    transform: translateY(-2px); 
}
.brand-wordmark { 
    color: #FAFAFF; 
    font-size: 1.05rem; 
    letter-spacing: -0.01em;
    font-weight: 700;
}
@media (max-width:640px) {
    .brand-wordmark { 
        display: none; 
    }
}

/* ========== CSS VARIABLES ========== */
:root {
    /* Colors - Black & Blue/Purple Theme */
    --lavender: #8B7FFF;
    --neon-blue: #5B52FF;
    --electric-purple: #9D4EDD;
    --cream: #FAFAFA;
    --dark: #0A0A0F;
    --dark-soft: #13131C;
    --dark-card: #1A1A28;
    --text-primary: #E8E8F0;
    --text-secondary: #A8A8B8;
    --shadow-soft: rgba(91, 82, 255, 0.15);
    --glow-soft: rgba(139, 127, 255, 0.25);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== GLOBAL RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== UTILITIES ========== */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ENHANCED BACKGROUND ORBS WITH MORPHING ========== */
.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    animation: floatMorph 30s infinite ease-in-out;
    will-change: transform;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8B7FFF, transparent);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #FF79DA, transparent);
    bottom: -100px;
    right: -100px;
    animation-delay: 10s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #48DBFB, transparent);
    top: 40%;
    right: 10%;
    animation-delay: 20s;
}

@keyframes floatMorph {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50%;
    }
    25% {
        transform: translate(80px, -60px) scale(1.15) rotate(90deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    50% {
        transform: translate(-50px, 40px) scale(0.85) rotate(180deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    75% {
        transform: translate(60px, 70px) scale(1.05) rotate(270deg);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* ========== LANDING PAGE ========== */
.landing-page {
    min-height: 100vh;
    position: relative;
}

/* ========== ANIMATED BACKGROUND ELEMENTS ========== */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Circles - Spread across left, center, and right sides */
.circle-1, .circle-2, .circle-3, .circle-4, .circle-5 {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 127, 255, 0.15), transparent);
    box-shadow: 0 0 60px rgba(139, 127, 255, 0.3);
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 12%;
    left: 8%;
    animation: floatCircle1 25s infinite ease-in-out;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 45%;
    left: 50%;
    animation: floatCircle2 30s infinite ease-in-out;
}

.circle-3 {
    width: 180px;
    height: 180px;
    top: 70%;
    right: 10%;
    animation: floatCircle3 28s infinite ease-in-out;
}

.circle-4 {
    width: 160px;
    height: 160px;
    top: 30%;
    right: 15%;
    animation: floatCircle1 27s infinite ease-in-out;
}

.circle-5 {
    width: 140px;
    height: 140px;
    bottom: 25%;
    left: 12%;
    animation: floatCircle2 32s infinite ease-in-out;
}

/* Squares - Positioned on both sides and center */
.square-1, .square-2, .square-3, .square-4 {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 121, 218, 0.1), rgba(72, 219, 251, 0.1));
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(255, 121, 218, 0.2);
}

.square-1 {
    width: 120px;
    height: 120px;
    top: 25%;
    left: 45%;
    border-radius: 20px;
    animation: rotateSquare1 20s infinite ease-in-out;
}

.square-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 18%;
    border-radius: 25px;
    animation: rotateSquare2 24s infinite ease-in-out;
}

.square-3 {
    width: 110px;
    height: 110px;
    top: 50%;
    right: 20%;
    border-radius: 22px;
    animation: rotateSquare1 22s infinite ease-in-out;
}

.square-4 {
    width: 90px;
    height: 90px;
    bottom: 30%;
    right: 8%;
    border-radius: 18px;
    animation: rotateSquare2 26s infinite ease-in-out;
}

/* Triangles - Spread across viewport on both sides */
.triangle-1, .triangle-2, .triangle-3 {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.triangle-1 {
    border-width: 0 60px 104px 60px;
    border-color: transparent transparent rgba(72, 219, 251, 0.15) transparent;
    top: 35%;
    left: 22%;
    filter: drop-shadow(0 10px 30px rgba(72, 219, 251, 0.3));
    animation: spinTriangle1 22s infinite linear;
}

.triangle-2 {
    border-width: 0 50px 87px 50px;
    border-color: transparent transparent rgba(139, 127, 255, 0.15) transparent;
    top: 55%;
    right: 25%;
    filter: drop-shadow(0 10px 30px rgba(139, 127, 255, 0.3));
    animation: spinTriangle2 26s infinite linear;
}

.triangle-3 {
    border-width: 0 55px 95px 55px;
    border-color: transparent transparent rgba(255, 121, 218, 0.15) transparent;
    bottom: 20%;
    left: 35%;
    filter: drop-shadow(0 10px 30px rgba(255, 121, 218, 0.3));
    animation: spinTriangle1 24s infinite linear;
}

/* Particle Lines - Spread on both left and right sides */
.particle-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 127, 255, 0.6), transparent);
    box-shadow: 0 0 10px rgba(139, 127, 255, 0.5);
}

.line-1 {
    width: 200px;
    top: 18%;
    left: 10%;
    animation: moveLine1 15s infinite ease-in-out;
}

.line-2 {
    width: 250px;
    top: 42%;
    right: 12%;
    animation: moveLine2 18s infinite ease-in-out;
}

.line-3 {
    width: 180px;
    top: 65%;
    left: 38%;
    animation: moveLine3 16s infinite ease-in-out;
}

.line-4 {
    width: 220px;
    top: 80%;
    right: 15%;
    animation: moveLine4 20s infinite ease-in-out;
}

.line-5 {
    width: 190px;
    top: 35%;
    left: 52%;
    animation: moveLine1 17s infinite ease-in-out;
}

.line-6 {
    width: 210px;
    bottom: 25%;
    right: 35%;
    animation: moveLine2 19s infinite ease-in-out;
}

/* Glowing Dots - Distributed across left, center, and right */
.glow-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8B7FFF;
    box-shadow: 0 0 20px rgba(139, 127, 255, 0.8), 0 0 40px rgba(139, 127, 255, 0.4);
}

.dot-1 {
    top: 8%;
    left: 15%;
    animation: pulseDot 3s infinite ease-in-out, moveDot1 20s infinite ease-in-out;
}

.dot-2 {
    top: 28%;
    right: 18%;
    animation: pulseDot 3s infinite ease-in-out 0.5s, moveDot2 22s infinite ease-in-out;
}

.dot-3 {
    top: 48%;
    left: 25%;
    animation: pulseDot 3s infinite ease-in-out 1s, moveDot3 24s infinite ease-in-out;
}

.dot-4 {
    top: 52%;
    right: 22%;
    animation: pulseDot 3s infinite ease-in-out 1.5s, moveDot4 26s infinite ease-in-out;
}

.dot-5 {
    top: 75%;
    left: 48%;
    animation: pulseDot 3s infinite ease-in-out 2s, moveDot5 23s infinite ease-in-out;
}

.dot-6 {
    top: 85%;
    right: 12%;
    animation: pulseDot 3s infinite ease-in-out 2.5s, moveDot6 25s infinite ease-in-out;
}

.dot-7 {
    top: 20%;
    left: 60%;
    animation: pulseDot 3s infinite ease-in-out 0.8s, moveDot1 21s infinite ease-in-out;
}

.dot-8 {
    bottom: 15%;
    left: 20%;
    animation: pulseDot 3s infinite ease-in-out 1.3s, moveDot3 23s infinite ease-in-out;
}

.dot-9 {
    top: 40%;
    right: 8%;
    animation: pulseDot 3s infinite ease-in-out 1.8s, moveDot2 24s infinite ease-in-out;
}

/* ========== HERO-SPECIFIC ANIMATIONS - Concentrated in viewport ========== */

/* Hero Circles - Using VH units to stay in hero section */
.hero-circle-1, .hero-circle-2, .hero-circle-3, .hero-circle-4 {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 127, 255, 0.2), transparent);
    box-shadow: 0 0 80px rgba(139, 127, 255, 0.4);
}

.hero-circle-1 {
    width: 180px;
    height: 180px;
    top: 15vh;
    left: 10%;
    animation: floatCircle1 20s infinite ease-in-out;
}

.hero-circle-2 {
    width: 150px;
    height: 150px;
    top: 50vh;
    right: 12%;
    animation: floatCircle2 22s infinite ease-in-out;
}

.hero-circle-3 {
    width: 200px;
    height: 200px;
    top: 70vh;
    left: 55%;
    animation: floatCircle3 25s infinite ease-in-out;
}

.hero-circle-4 {
    width: 170px;
    height: 170px;
    top: 35vh;
    right: 35%;
    animation: floatCircle1 23s infinite ease-in-out;
}

/* Hero Squares - Concentrated in hero viewport */
.hero-square-1, .hero-square-2, .hero-square-3 {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 121, 218, 0.15), rgba(72, 219, 251, 0.15));
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(255, 121, 218, 0.3);
}

.hero-square-1 {
    width: 100px;
    height: 100px;
    top: 25vh;
    left: 20%;
    border-radius: 20px;
    animation: rotateSquare1 18s infinite ease-in-out;
}

.hero-square-2 {
    width: 120px;
    height: 120px;
    top: 60vh;
    right: 25%;
    border-radius: 22px;
    animation: rotateSquare2 20s infinite ease-in-out;
}

.hero-square-3 {
    width: 90px;
    height: 90px;
    top: 80vh;
    left: 35%;
    border-radius: 18px;
    animation: rotateSquare1 19s infinite ease-in-out;
}

/* Hero Triangles - In hero section */
.hero-triangle-1, .hero-triangle-2 {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.hero-triangle-1 {
    border-width: 0 55px 95px 55px;
    border-color: transparent transparent rgba(72, 219, 251, 0.2) transparent;
    top: 40vh;
    left: 65%;
    filter: drop-shadow(0 10px 30px rgba(72, 219, 251, 0.4));
    animation: spinTriangle1 20s infinite linear;
}

.hero-triangle-2 {
    border-width: 0 50px 87px 50px;
    border-color: transparent transparent rgba(139, 127, 255, 0.2) transparent;
    top: 75vh;
    right: 15%;
    filter: drop-shadow(0 10px 30px rgba(139, 127, 255, 0.4));
    animation: spinTriangle2 22s infinite linear;
}

/* Hero Lines - Concentrated in hero viewport */
.hero-line-1 {
    width: 180px;
    top: 20vh;
    left: 40%;
    animation: moveLine1 14s infinite ease-in-out;
}

.hero-line-2 {
    width: 200px;
    top: 45vh;
    right: 18%;
    animation: moveLine2 16s infinite ease-in-out;
}

.hero-line-3 {
    width: 220px;
    top: 65vh;
    left: 15%;
    animation: moveLine3 15s infinite ease-in-out;
}

.hero-line-4 {
    width: 190px;
    top: 85vh;
    right: 40%;
    animation: moveLine4 17s infinite ease-in-out;
}

/* Hero Dots - Densely packed in hero section */
.hero-dot-1 {
    top: 10vh;
    left: 25%;
    animation: pulseDot 3s infinite ease-in-out 0.3s, moveDot1 18s infinite ease-in-out;
}

.hero-dot-2 {
    top: 18vh;
    right: 30%;
    animation: pulseDot 3s infinite ease-in-out 0.6s, moveDot2 19s infinite ease-in-out;
}

.hero-dot-3 {
    top: 35vh;
    left: 45%;
    animation: pulseDot 3s infinite ease-in-out 0.9s, moveDot3 20s infinite ease-in-out;
}

.hero-dot-4 {
    top: 50vh;
    right: 45%;
    animation: pulseDot 3s infinite ease-in-out 1.2s, moveDot4 21s infinite ease-in-out;
}

.hero-dot-5 {
    top: 55vh;
    left: 18%;
    animation: pulseDot 3s infinite ease-in-out 1.5s, moveDot5 19s infinite ease-in-out;
}

.hero-dot-6 {
    top: 70vh;
    right: 20%;
    animation: pulseDot 3s infinite ease-in-out 1.8s, moveDot6 20s infinite ease-in-out;
}

.hero-dot-7 {
    top: 78vh;
    left: 60%;
    animation: pulseDot 3s infinite ease-in-out 2.1s, moveDot1 18s infinite ease-in-out;
}

.hero-dot-8 {
    top: 90vh;
    right: 50%;
    animation: pulseDot 3s infinite ease-in-out 2.4s, moveDot2 19s infinite ease-in-out;
}

/* Keyframe Animations - Increased visibility */
@keyframes floatCircle1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(100px, -80px) scale(1.2); opacity: 0.7; }
    50% { transform: translate(-50px, 60px) scale(0.9); opacity: 0.6; }
    75% { transform: translate(80px, 100px) scale(1.1); opacity: 0.55; }
}

@keyframes floatCircle2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
    33% { transform: translate(-120px, 70px) scale(1.15); opacity: 0.7; }
    66% { transform: translate(90px, -50px) scale(0.85); opacity: 0.6; }
}

@keyframes floatCircle3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    30% { transform: translate(70px, -100px) scale(1.25); opacity: 0.65; }
    60% { transform: translate(-100px, 80px) scale(0.95); opacity: 0.55; }
}

@keyframes rotateSquare1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
    50% { transform: translate(100px, 100px) rotate(180deg); opacity: 0.6; }
}

@keyframes rotateSquare2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.45; }
    50% { transform: translate(-80px, -80px) rotate(-180deg); opacity: 0.65; }
}

@keyframes spinTriangle1 {
    0% { transform: rotate(0deg) translateY(0); opacity: 0.4; }
    50% { transform: rotate(180deg) translateY(-50px); opacity: 0.6; }
    100% { transform: rotate(360deg) translateY(0); opacity: 0.4; }
}

@keyframes spinTriangle2 {
    0% { transform: rotate(0deg) translateY(0); opacity: 0.45; }
    50% { transform: rotate(-180deg) translateY(50px); opacity: 0.65; }
    100% { transform: rotate(-360deg) translateY(0); opacity: 0.45; }
}

@keyframes moveLine1 {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateX(200px) translateY(-100px) rotate(45deg); opacity: 0.7; }
}

@keyframes moveLine2 {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateX(-150px) translateY(120px) rotate(-30deg); opacity: 0.7; }
}

@keyframes moveLine3 {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateX(180px) translateY(90px) rotate(60deg); opacity: 0.7; }
}

@keyframes moveLine4 {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateX(-200px) translateY(-80px) rotate(-45deg); opacity: 0.7; }
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(139, 127, 255, 0.8), 0 0 40px rgba(139, 127, 255, 0.4); }
    50% { transform: scale(1.8); box-shadow: 0 0 30px rgba(139, 127, 255, 1), 0 0 60px rgba(139, 127, 255, 0.6); }
}

@keyframes moveDot1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(150px, -100px); }
}

@keyframes moveDot2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-120px, 80px); }
}

@keyframes moveDot3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, 120px); }
}

@keyframes moveDot4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-150px, -90px); }
}

@keyframes moveDot5 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(130px, -110px); }
}

@keyframes moveDot6 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-140px, 100px); }
}

/* Hide animated background on mobile for performance */
@media (max-width: 768px) {
    .animated-background {
        display: none;
    }
}

/* Navbar */
.navbar {
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(15px);
    background: rgba(10, 10, 15, 0.85);
    z-index: 100;
    border-bottom: 1px solid rgba(91, 82, 255, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--lavender);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    animation: fadeIn 1s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF, #8B7FFF, #FF79DA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    animation: slideUp 0.8s ease 0.2s backwards;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-xl);
    animation: slideUp 0.8s ease 0.4s backwards;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-google,
.btn-logout {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #5B52FF, #9D4EDD);
    color: white;
    box-shadow: 0 4px 15px rgba(91, 82, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 127, 255, 0.6);
    background: linear-gradient(135deg, #6B62FF, #AD5EED);
}

.btn-secondary {
    background: rgba(91, 82, 255, 0.15);
    color: var(--cream);
    border: 1px solid rgba(91, 82, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(91, 82, 255, 0.25);
    border-color: rgba(139, 127, 255, 0.5);
    transform: scale(1.05);
}

.cta-pulse {
    animation: pulse 3s infinite, slideUp 0.8s ease 0.6s backwards;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 20px var(--shadow-soft);
    }
    50% {
        box-shadow: 0 8px 30px var(--glow-soft);
    }
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(139, 127, 255, 0.5),
            0 0 20px rgba(255, 121, 218, 0.3),
            0 0 30px rgba(72, 219, 251, 0.2),
            2px 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(139, 127, 255, 0.8),
            0 0 30px rgba(255, 121, 218, 0.6),
            0 0 40px rgba(72, 219, 251, 0.4),
            2px 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Features Grid */
.features-grid {
    max-width: 1200px;
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.2s ease;
    animation: fadeIn 0.8s ease backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(139, 127, 255, 0.2);
    border-color: rgba(139, 127, 255, 0.3);
}

.feature-card i {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    color: var(--lavender);
}

.feature-card:nth-child(1) i { color: #8B7FFF; }
.feature-card:nth-child(2) i { color: #FF79DA; }
.feature-card:nth-child(3) i { color: #48DBFB; }
.feature-card:nth-child(4) i { color: #8B7FFF; }
.feature-card:nth-child(5) i { color: #FF79DA; }
.feature-card:nth-child(6) i { color: #48DBFB; }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--cream);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ========== AUTH PAGE ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    background: #13131C;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(91, 82, 255, 0.3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease;
}

.auth-visual {
    background: linear-gradient(135deg, #5B52FF, #9D4EDD);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.auth-animation {
    position: relative;
    width: 100%;
    height: 400px;
}

.floating-book {
    position: absolute;
    font-size: 4rem;
    animation: floatBook 6s infinite ease-in-out;
}

.book-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.book-2 {
    top: 50%;
    right: 15%;
    animation-delay: 1.5s;
}

.book-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 3s;
}

.book-4 {
    top: 30%;
    right: 30%;
    animation-delay: 4.5s;
}

@keyframes floatBook {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.auth-form-container {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-auth {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.logo-auth h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--cream);
}

.form-section h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
    color: var(--cream);
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-lg);
}

.form-section form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-section input {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(91, 82, 255, 0.3);
    background: #0A0A0F;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-section input:focus {
    outline: none;
    border-color: #5B52FF;
    background: #13131C;
    box-shadow: 0 0 0 3px rgba(91, 82, 255, 0.2);
}

.form-section input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-google {
    background: white;
    color: var(--text-primary);
    margin-top: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.switch-form {
    text-align: center;
    margin-top: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.6);
}

.switch-form a {
    color: var(--lavender);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.switch-form a:hover {
    color: var(--neon-blue);
}

/* ========== DASHBOARD ========== */
.dashboard {
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    animation: slideInLeft 0.5s ease;
    height: 100vh;
    overflow: hidden;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Page Transitions */
@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes shimmerEffect {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(198, 167, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(198, 167, 255, 0.6);
    }
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(91, 82, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--cream);
    cursor: pointer;
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(198, 167, 255, 0.3);
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(198, 167, 255, 0.5);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
    min-height: 44px;
}

.nav-item:hover {
    background: rgba(91, 82, 255, 0.15);
    color: var(--cream);
}

.nav-item.active {
    background: linear-gradient(135deg, #5B52FF, #9D4EDD);
    color: white;
    box-shadow: 0 4px 15px rgba(91, 82, 255, 0.4);
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    display: none;
}



/* Main Content */
.main-content {
    padding: var(--spacing-xl);
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100vh;
    animation: fadeIn 0.5s ease;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.content-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--cream);
}

/* Mobile Back Button */
.mobile-back-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(139, 127, 255, 0.15);
    border: 2px solid rgba(139, 127, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--cream);
    flex-shrink: 0;
}

.mobile-back-button:hover {
    background: rgba(139, 127, 255, 0.25);
    border-color: rgba(139, 127, 255, 0.5);
    transform: scale(1.1);
}

.mobile-back-button:active {
    transform: scale(0.95);
}

.mobile-back-button i {
    width: 20px;
    height: 20px;
}

/* Floating Menu Button for Mobile/Tablet */
.floating-menu-button {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #5B52FF, #9D4EDD);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(91, 82, 255, 0.4);
    transition: all var(--transition-normal);
    align-items: center;
    justify-content: center;
    color: white;
}

.floating-menu-button:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(139, 127, 255, 0.6);
}

.floating-menu-button:active {
    transform: scale(0.95);
}

.floating-menu-button i {
    width: 24px;
    height: 24px;
}

/* Hide floating menu button on mobile/tablet - using card navigation instead */
@media (max-width: 1023px) {
    .floating-menu-button {
        display: none;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}


.streak-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 140, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    color: #ff8c00;
    font-weight: 600;
}

.streak-badge i {
    width: 20px;
    height: 20px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lavender), var(--neon-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.user-avatar:hover {
    transform: scale(1.1);
}

.page-content {
    animation: fadeIn 0.4s ease;
}

/* Right Panel */
.right-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg);
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100vh;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.panel-section {
    margin-bottom: var(--spacing-xl);
}

.panel-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--cream);
}

.quote-card {
    background: #1A1A28;
    border: 1px solid rgba(91, 82, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    animation: fadeIn 1s ease;
}

.quote-text {
    font-style: italic;
    color: var(--cream);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    line-height: 1.6;
}

.quote-author {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    text-align: right;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: #1A1A28;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(91, 82, 255, 0.2);
}

.mini-stat i {
    width: 30px;
    height: 30px;
    color: var(--lavender);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.achievement-badge {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.achievement-badge.locked {
    filter: grayscale(100%) opacity(0.3);
}

.achievement-badge:not(.locked):hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px var(--glow-soft);
}

/* ========== PARTICLE CANVAS ========== */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ========== AUTH PAGE ANIMATIONS ========== */
@keyframes bookFlip {
    0%, 100% {
        transform: perspective(600px) rotateY(0deg);
    }
    50% {
        transform: perspective(600px) rotateY(15deg);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3) translateY(-10px);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SECTION STYLES ========== */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, var(--lavender), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}


/* ========== ABOUT SECTION ========== */
.about-section {
    padding: 5rem 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.about-card {
    background: #1A1A28;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(91, 82, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: #5B52FF;
    box-shadow: 0 10px 40px rgba(91, 82, 255, 0.3);
}

.about-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--lavender);
}

.about-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmin(200px, 1fr));
    gap: 2rem;
    background: #1A1A28;
    border: 1px solid rgba(91, 82, 255, 0.3);
    border-radius: 2rem;
    padding: 3rem 2rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--lavender), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #1A1A28;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(91, 82, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lavender), var(--neon-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.author-name {
    font-weight: 600;
    color: #FAFAFA;
    font-size: 0.95rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 5rem 2rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #FAFAFA;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-primary.large,
.btn-secondary.large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.premium-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
}

.premium-btn:hover {
    box-shadow: 0 12px 30px rgba(255, 214, 0, 0.4);
}

.cta-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========== IMPROVED ANIMATIONS ========== */
@keyframes smoothBounce {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-20px) scale(1.15);
        opacity: 0.9;
    }
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(198, 167, 255, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(198, 167, 255, 0.8);
        transform: scale(1.05);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== LANDING PAGE CURSOR TRACKING ========== */
.landing-page {
    position: relative;
    cursor: none;
}

#cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(198, 167, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    display: none;
    box-shadow: 0 0 10px rgba(198, 167, 255, 0.4),  inset 0 0 10px rgba(198, 167, 255, 0.2);
    animation: fadeIn 0.3s ease;
}

#cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #C6A7FF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    display: none;
    box-shadow: 0 0 8px rgba(198, 167, 255, 0.8);
}

/* ========== PARALLAX BACKGROUND ========== */
.hero-section {
    perspective: 1000px;
    position: relative;
}

.parallax-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* ========== ENHANCED BUTTON ANIMATIONS ========== */
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* ========== FEATURE CARD STAGGER ========== */
.feature-card {
    animation: slideInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
    animation: glowPulse 1.5s ease-in-out infinite;
}

/* ========== SMOOTH TRANSITIONS ========== */
* {
    transition: color 0.2s ease, background 0.2s ease;
}

button, a, input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== FOOTER ========== */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #0b0c10;
    color: #fff;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.footer-section p {
    margin: 0.2rem 0 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-align: right;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Prevent text from being too small or too large across devices */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Ensure body has proper sizing */
body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Large Desktop - Standard 3-column layout (1200px and above) */
@media (min-width: 1200px) {
    .dashboard {
        grid-template-columns: 260px 1fr 320px;
        gap: 0;
    }
    
    .sidebar {
        display: flex;
        width: 260px;
    }
    
    .right-panel {
        display: block !important;
        width: 320px;
        min-width: 320px;
        flex-shrink: 0;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    /* Ensure proper font sizes on large screens */
    html {
        font-size: 16px;
    }
}

/* Medium Desktop - Hide right panel (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .dashboard {
        grid-template-columns: 240px 1fr;
    }
    
    .right-panel {
        display: none;
    }
    
    .sidebar {
        display: flex;
    }
    
    .sidebar-toggle {
        display: none;
    }
}

/* Tablet - Collapsible sidebar (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        transition: left var(--transition-normal);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .right-panel {
        display: none;
    }
    
    .main-content {
        padding: var(--spacing-lg);
    }
    
    .content-header h1 {
        font-size: 2rem;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .auth-visual {
        display: none;
    }
    
    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .footer-meta {
        text-align: left;
    }
}

/* Mobile - Full mobile experience (below 768px) */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 1000;
        transition: left var(--transition-normal);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    /* Show back button on mobile */
    .mobile-back-button {
        display: flex;
    }
    
    /* Ensure nav items are readable */
    .nav-item {
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
        min-height: 42px;
    }
    
    .nav-item i {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .right-panel {
        display: none;
    }
    
    .main-content {
        padding: 1rem;
        max-height: calc(100vh - env(safe-area-inset-bottom));
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .user-info {
        align-self: flex-end;
    }
    
    .nav-links a {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-visual {
        display: none;
    }
    
    .auth-form-container {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem !important;
        width: 100%;
    }
    
    .stat-counter {
        width: 100%;
    }
    
    .about-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-meta {
        text-align: left;
    }
    
    /* Prevent inputs from zooming on focus */
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* Small Mobile - Optimized for small screens (below 480px) */
@media (max-width: 479px) {
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .feature-card,
    .about-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .sidebar {
        width: 260px;
    }
}

/* Sidebar overlay for mobile/tablet */
@media (max-width: 1023px) {
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ========== UPCOMING BADGE ========== */
.upcoming-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    font-size: 0.45rem;
    font-weight: 700;
    padding: 0.15rem 0.35rem;
    border-radius: 0.4rem;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    animation: badgeGlow 2s ease-in-out infinite;
    box-shadow: 0 2px 6px rgba(255, 214, 0, 0.3);
    border: 1px solid rgba(255, 214, 0, 0.5);
    flex-shrink: 0;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 214, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 214, 0, 0.8);
        transform: scale(1.05);
    }
}

.nav-item:has(.upcoming-badge) {
    justify-content: space-between;
    overflow: hidden;
}

.nav-item:has(.upcoming-badge):hover .upcoming-badge {
    animation: badgeGlow 1s ease-in-out infinite;
}

/* ========== DASHBOARD UPCOMING BADGE ========== */
.dashboard-upcoming-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    animation: dashboardBadgeFloat 3s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.5);
    border: 2px solid rgba(255, 214, 0, 0.8);
    z-index: 2;
}

@keyframes dashboardBadgeFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 4px 12px rgba(255, 214, 0, 0.5);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 8px 20px rgba(255, 214, 0, 0.8);
    }
}

.dashboard-card:hover .dashboard-upcoming-badge {
    animation: dashboardBadgeFloat 1.5s ease-in-out infinite;
}

/* ========== ENHANCED CARD HOVER EFFECTS ========== */
.dashboard-card,
.feature-card,
.note-card,
.task-item,
.flashcard {
    position: relative;
    overflow: hidden;
}

.dashboard-card::before,
.note-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.dashboard-card:hover::before,
.note-card:hover::before {
    left: 100%;
    opacity: 1;
}

/* ========== SMOOTH SCROLL BEHAVIOR ========== */
html {
    scroll-behavior: smooth;
}

.main-content {
    scroll-behavior: smooth;
}

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--lavender), var(--neon-blue));
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--neon-blue), var(--lavender));
}

/* ========== LOADING ANIMATIONS ========== */
@keyframes skeleton {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.15) 40px,
        rgba(255, 255, 255, 0.05) 80px
    );
    background-size: 200px 100%;
    animation: skeleton 1.5s infinite ease-in-out;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--lavender);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== RIPPLE EFFECT ========== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ========== ENHANCED INPUT FOCUS ========== */
input:focus,
textarea:focus {
    transform: scale(1.02);
}

/* ========== CARD ENTRY ANIMATIONS ========== */
.card-enter {
    animation: cardEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardEnter {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========== IMPROVED TASK ITEMS ========== */
.task-item {
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-item:hover {
    border-left-color: var(--lavender);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(198, 167, 255, 0.3);
}

/* ========== ENHANCED BUTTON STYLES ========== */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* ========== GLASSMORPHISM ENHANCEMENT ========== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== ANIMATED GRADIENT BORDERS ========== */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(198, 167, 255, 0.5);
    }
    50% {
        border-color: rgba(108, 99, 255, 0.8);
    }
}

.glow-border {
    animation: borderGlow 3s ease-in-out infinite;
}

/* ========== PAGE TRANSITION OVERLAY ========== */
.page-transition {
    animation: pageSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== MICRO-INTERACTIONS ========== */
.interactive:hover {
    transform: translateY(-2px);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.interactive:active {
    transform: translateY(0);
}

/* ========== ENHANCED FOCUS STATES ========== */
*:focus-visible {
    outline: 2px solid var(--lavender);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ========== BEAUTIFUL TOOLTIPS ========== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    padding: 8px 12px;
    background: rgba(26, 26, 46, 0.95);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(198, 167, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-tooltip]:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* ========== SUCCESS/ERROR ANIMATIONS ========== */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 255, 178, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(102, 255, 178, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 255, 178, 0);
    }
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.success {
    animation: successPulse 1s ease-out;
}

.error {
    animation: errorShake 0.5s ease-out;
}

/* ========== TEAM SECTION STYLES ========== */
.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 60px rgba(198, 167, 255, 0.5) !important;
    border-color: var(--lavender) !important;
}

.team-avatar {
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(198, 167, 255, 0.6) !important;
}

.footer a:hover {
    color: var(--lavender) !important;
}

/* ========== LOGO BADGE ANIMATION ========== */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#equipped-logo-badge {
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   MODAL SYSTEM ANIMATIONS
   Beautiful animations for custom modals
   ======================================== */

/* Modal fade in animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

/* Modal slide up with bounce */
@keyframes modalSlideUp {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
    60% {
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal shake animation for errors */
@keyframes modalShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Success checkmark animation */
@keyframes checkmarkDraw {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Modal button hover glow */
@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(198, 167, 255, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(198, 167, 255, 0.6);
    }
}

/* Apply animations to modal elements */
.modal-backdrop {
    animation: modalFadeIn 0.3s ease forwards;
}

.modal-content {
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-error {
    animation: modalShake 0.5s ease;
}

.modal-success .checkmark {
    animation: checkmarkDraw 0.6s ease forwards;
}

.modal-button:hover {
    animation: buttonGlow 1.5s ease-in-out infinite;
}

/* Confetti animation for celebrations */
@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti-piece {
    animation: confettiFall 3s linear forwards;
}
