/* ============================================ */
/* CLASS 7 - BUILDING CONCEPTS - GREEN THEME */
/* ============================================ */

:root {
    --primary-color: #10b981;
    --secondary-color: #34d399;
    --accent-color: #6ee7b7;
    --dark-bg: #0f172a;
    --glow: rgba(16, 185, 129, 0.5);
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #064e3b 50%, #047857 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.magical-bg::before {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 211, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(110, 231, 183, 0.1) 0%, transparent 50%);
    animation: gradientShiftGreen 22s ease infinite;
}

@keyframes gradientShiftGreen {
    0%, 100% { opacity: 0.95; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.05); }
}

/* Growing Progress Animation */
@keyframes growUp {
    0% { 
        opacity: 0;
        transform: translateY(30px) scaleY(0);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.grow-up {
    animation: growUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom;
}

/* Expanding Circle Animation */
@keyframes expandCircle {
    0% { 
        transform: scale(0);
        opacity: 1;
    }
    100% { 
        transform: scale(1);
        opacity: 0;
    }
}

.expand-pulse {
    animation: expandCircle 1.2s ease-out infinite;
}

/* Building Level Animation */
@keyframes buildUp {
    0% { height: 0; opacity: 0; }
    100% { height: 100%; opacity: 1; }
}

.build-level {
    animation: buildUp 0.6s ease-out;
}

/* Feature Cards - Growth Effect */
.feature-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2) !important;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    transform: translateX(-50%) scaleY(0);
    transform-origin: bottom;
    transition: transform 0.7s ease;
}

.feature-card:hover::before {
    transform: translateX(-50%) scaleY(1);
}

.feature-card:hover {
    transform: translateY(-18px) scale(1.08);
    box-shadow: 0 30px 60px rgba(16, 185, 129, 0.5), 0 0 50px rgba(52, 211, 153, 0.3);
    border-color: rgba(16, 185, 129, 0.5) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.08) 100%);
}

/* Magic Button - Growing Effect */
.magic-btn {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    background-size: 200% 200%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.magic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.magic-btn:hover::before {
    width: 300px;
    height: 300px;
}

.magic-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* Glass Effect - Growth Theme */
.glass-effect {
    background: rgba(6, 78, 59, 0.4) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
}

.glass-effect:hover {
    background: rgba(6, 78, 59, 0.55) !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
    box-shadow: 0 15px 45px rgba(16, 185, 129, 0.25);
    transform: translateY(-5px) scale(1.02);
    transition: all 0.4s ease;
}

/* Stagger Animation - Building Effect */
@keyframes buildStagger {
    from {
        opacity: 0;
        transform: translateX(-30px) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

.stagger-item {
    animation: buildStagger 0.7s ease-out forwards !important;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Glow Text - Green */
.glow-text {
    text-shadow: 0 0 25px rgba(16, 185, 129, 0.5), 0 0 50px rgba(52, 211, 153, 0.2) !important;
    animation: greenGlow 5s ease-in-out infinite;
}

@keyframes greenGlow {
    0%, 100% { text-shadow: 0 0 25px rgba(16, 185, 129, 0.5), 0 0 50px rgba(52, 211, 153, 0.2); }
    50% { text-shadow: 0 0 35px rgba(16, 185, 129, 0.7), 0 0 70px rgba(52, 211, 153, 0.4); }
}

/* Progress Growth */
@keyframes progressGrow {
    from { width: 0; }
    to { width: var(--progress, 0%); }
}

.progress-fill {
    height: 10px;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
    border-radius: 10px;
    animation: progressGrow 2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.7), inset 0 1px 3px rgba(255,255,255,0.3);
}

/* Class Cards - Building Effect */
.class-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(52, 211, 153, 0.06) 100%);
    border: 2px solid rgba(16, 185, 129, 0.25);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.class-card:hover {
    transform: translateY(-15px) scale(1.08) rotateZ(1deg);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.4), 0 0 40px rgba(52, 211, 153, 0.25);
}

/* Pulse Magic - Rhythmic */
@keyframes rhythmPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.12) rotate(10deg); }
}

.pulse-magic {
    animation: rhythmPulse 4s ease-in-out infinite !important;
}

/* Navigation Links */
.nav-link-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: all 0.5s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link-enhanced:hover::after {
    width: 80%;
}

/* Ripple Effect */
.ripple {
    background: rgba(16, 185, 129, 0.35) !important;
}

@keyframes ripple-animate {
    from { width: 0; height: 0; opacity: 0.6; }
    to { width: 450px; height: 450px; opacity: 0; }
}

/* Text Size Buttons */
.text-size-btn {
    background: rgba(16, 185, 129, 0.5) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s ease;
}

.text-size-btn:hover {
    background: rgba(16, 185, 129, 0.7) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.active-text-size {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.7) !important;
    transform: scale(1.15) !important;
}

/* Footer */
footer {
    background: rgba(6, 78, 59, 0.8) !important;
    border-top: 1px solid rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .feature-card:hover {
        transform: translateY(-12px) scale(1.04);
    }
    
    .stagger-item {
        animation: buildStagger 0.6s ease-out forwards !important;
    }
}
