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

* {
    font-family: 'Inter', sans-serif;
}

.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scale-on-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-on-hover:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gradient-text {
    background: linear-gradient(135deg, #e666ea 0%, #a24b65 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cta-button {
    background: linear-gradient(135deg, #e666ea 0%, #a24b65 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 8s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    margin: 80px 0;
}

/* 3D Scrollwheel */
.scroll-prism-container {
    display: inline-block;
    vertical-align: bottom;
    perspective: 1000px;
    height: 1.2em;
    overflow: hidden;
    margin-left: 0.2em;
    position: relative;
    top: 0.1em;
}

.scroll-prism {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate-prism 12s infinite cubic-bezier(0.85, 0, 0.15, 1);
}

.scroll-prism-side {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    white-space: nowrap;
    left: 0;
    top: 0;
}

    /* 5 sides: 360/5 = 72deg. TranslateZ depends on height. Using em for responsiveness */
.scroll-prism-side:nth-child(1) { transform: rotateX(0deg) translateZ(0.85em); }
.scroll-prism-side:nth-child(2) { transform: rotateX(-72deg) translateZ(0.85em); }
.scroll-prism-side:nth-child(3) { transform: rotateX(-144deg) translateZ(0.85em); }
.scroll-prism-side:nth-child(4) { transform: rotateX(-216deg) translateZ(0.85em); }
.scroll-prism-side:nth-child(5) { transform: rotateX(-288deg) translateZ(0.85em); }

@keyframes rotate-prism {
    0%, 15% { transform: rotateX(0deg); }
    20%, 35% { transform: rotateX(72deg); }
    40%, 55% { transform: rotateX(144deg); }
    60%, 75% { transform: rotateX(216deg); }
    80%, 95% { transform: rotateX(288deg); }
    100% { transform: rotateX(360deg); }
}

@media (max-width: 768px) {
    .scroll-prism-container {
        display: block;
        margin-left: 0;
        margin-top: 0.2em;
        text-align: center;
    }
    .scroll-prism-side {
        justify-content: center;
    }
}

/* Updated Scrollytelling Styles */
.scroll-lock-section {
    background: var(--bg-dark);
}

.visual-item i {
    filter: drop-shadow(0 0 20px rgba(41, 151, 255, 0.3));
}

.syllabus-preview {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.note-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 12px;
}

.note-line.short { width: 60%; }
.note-line.medium { width: 80%; }
.note-line.accent { background: var(--accent-primary); width: 40%; opacity: 0.6; }

.assignment-node {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.node-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
}

.node-circle.checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Bento Grid Overrides */
.bento-grid {
    padding-bottom: 100px;
}

.bento-item {
    transition: all 0.4s var(--ease-out-expo);
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Scroll Progress Customization */
.scroll-progress-dot.active {
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .scroll-snap-slide h2 {
        font-size: 2rem !important;
    }
    
    .scroll-snap-slide p {
        font-size: 1rem !important;
    }
    
    .feature-icon-large i {
        font-size: 4rem !important;
    }
    
    .feature-icon-medium i {
        font-size: 3rem !important;
    }
    
    .step-number .w-24 {
        width: 4rem !important;
        height: 4rem !important;
    }
    
    .step-number span {
        font-size: 2rem !important;
    }
}