/* ============================================ */
/* CLASS 8 - CORE SUBJECTS - CYAN THEME */
/* ============================================ */

:root {
    --primary-color: #06b6d4;
    --secondary-color: #22d3ee;
    --accent-color: #67e8f9;
    --dark-bg: #0f172a;
    --glow: rgba(6, 182, 212, 0.5);
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #164e63 50%, #0e7490 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.magical-bg::before {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(103, 232, 249, 0.1) 0%, transparent 50%);
    animation: gradientShiftCyan 25s ease infinite;
}

@keyframes gradientShiftCyan {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* 3D Flip Animation */
@keyframes flip3D {
    0% { transform: perspective(600px) rotateY(0deg); }
    100% { transform: perspective(600px) rotateY(360deg); }
}

.flip-card {
    animation: flip3D 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Depth Shadow Effect */
@keyframes depthShift {
    0%, 100% { 
        box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
        transform: translateZ(0px);
    }
    50% { 
        box-shadow: 0 20px 50px rgba(6, 182, 212, 0.4);
        transform: translateZ(10px);
    }
}

.depth-shadow {
    animation: depthShift 4s ease-in-out infinite;
}

/* Feature Cards - Balanced Design */
.feature-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%);
    border: 2px solid rgba(6, 182, 212, 0.25) !important;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
    perspective: 1000px;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: inherit;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-16px) scale(1.07) rotateX(5deg);
    box-shadow: 0 28px 55px rgba(6, 182, 212, 0.45), inset 0 1px 15px rgba(255,255,255,0.1);
    border-color: rgba(34, 211, 238, 0.5) !important;
}

/* Magic Button - Cyber Style */
.magic-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 50%, #67e8f9 100%);
    background-size: 200% 200%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.magic-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.6s ease;
}

.magic-btn:hover::before {
    opacity: 1;
    animation: cyanSpin 1.5s linear infinite;
}

@keyframes cyanSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.magic-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.6), 0 0 30px rgba(34, 211, 238, 0.3);
}

/* Glass Effect - Balanced */
.glass-effect {
    background: rgba(22, 78, 99, 0.45) !important;
    border: 1.5px solid rgba(6, 182, 212, 0.35) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.12);
}

.glass-effect:hover {
    background: rgba(22, 78, 99, 0.6) !important;
    border-color: rgba(34, 211, 238, 0.45) !important;
    box-shadow: 0 12px 45px rgba(6, 182, 212, 0.3), inset 0 1px 15px rgba(255,255,255,0.08);
    transform: translateY(-6px) scale(1.03);
    transition: all 0.5s ease;
}

/* Stagger Animation - Balanced */
@keyframes balancedEntry {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stagger-item {
    animation: balancedEntry 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.stagger-item:nth-child(1) { animation-delay: 0.12s; }
.stagger-item:nth-child(2) { animation-delay: 0.24s; }
.stagger-item:nth-child(3) { animation-delay: 0.36s; }
.stagger-item:nth-child(4) { animation-delay: 0.48s; }
.stagger-item:nth-child(5) { animation-delay: 0.60s; }
.stagger-item:nth-child(6) { animation-delay: 0.72s; }

/* Glow Text - Cyan */
.glow-text {
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.6), 0 0 60px rgba(34, 211, 238, 0.2) !important;
    animation: cyanGlow 5.5s ease-in-out infinite;
}

@keyframes cyanGlow {
    0%, 100% { text-shadow: 0 0 30px rgba(6, 182, 212, 0.6), 0 0 60px rgba(34, 211, 238, 0.2); }
    50% { text-shadow: 0 0 40px rgba(6, 182, 212, 0.8), 0 0 80px rgba(34, 211, 238, 0.4); }
}

/* Core Level Progress */
@keyframes coreProgress {
    from { width: 0; transform: scaleX(0); }
    to { width: var(--progress, 0%); transform: scaleX(1); }
}

.progress-fill {
    height: 12px;
    background: linear-gradient(90deg, #06b6d4, #22d3ee, #67e8f9);
    border-radius: 12px;
    animation: coreProgress 2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.8), inset 0 1px 4px rgba(255,255,255,0.4);
    transform-origin: left;
}

/* Class Cards - Balanced */
.class-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.14) 0%, rgba(34, 211, 238, 0.07) 100%);
    border: 2px solid rgba(6, 182, 212, 0.3);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.class-card:hover {
    transform: translateY(-16px) scale(1.09) rotateZ(-1deg);
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 28px 60px rgba(6, 182, 212, 0.5), 0 0 50px rgba(34, 211, 238, 0.3);
}

/* Pulse Magic - Centered */
@keyframes balancedPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(15deg); }
}

.pulse-magic {
    animation: balancedPulse 5s ease-in-out infinite !important;
}

/* Navigation */
.nav-link-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.nav-link-enhanced:hover::after {
    width: 75%;
}

/* Ripple Effect */
.ripple {
    background: rgba(6, 182, 212, 0.4) !important;
}

@keyframes ripple-animate {
    from { width: 0; height: 0; opacity: 0.7; }
    to { width: 500px; height: 500px; opacity: 0; }
}

/* Text Size Buttons */
.text-size-btn {
    background: rgba(6, 182, 212, 0.55) !important;
    border: 1px solid rgba(6, 182, 212, 0.4) !important;
    transition: all 0.4s ease;
}

.text-size-btn:hover {
    background: rgba(6, 182, 212, 0.75) !important;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.active-text-size {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%) !important;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.7) !important;
    transform: scale(1.18) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

/* Footer */
footer {
    background: rgba(22, 78, 99, 0.85) !important;
    border-top: 2px solid rgba(6, 182, 212, 0.3);
}

@media (max-width: 768px) {
    .feature-card:hover {
        transform: translateY(-10px) scale(1.04);
    }
    
    .stagger-item {
        animation: balancedEntry 0.6s ease-out forwards !important;
    }
}
