/* Landing Page Premium Styles */
:root {
    --primary-glow: radial-gradient(circle at center, rgba(79, 70, 229, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    --secondary-glow: radial-gradient(circle at center, rgba(236, 72, 153, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
}

body.landing-page {
    background: #0f172a;
    overflow-x: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
}

/* --- Animated Background --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    animation: blob-bounce 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #4f46e5;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #ec4899;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #10b981;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes blob-bounce {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

/* --- Floating Background Icons --- */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.03);
    font-size: 4rem;
    font-weight: 900;
    user-select: none;
    animation: floatUp linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.float-icon.math {
    color: rgba(79, 70, 229, 0.1);
}

/* Indigo */
.float-icon.ai {
    color: rgba(16, 185, 129, 0.1);
}

/* Emerald */
.float-icon.history {
    color: rgba(245, 158, 11, 0.1);
}

/* Amber */

@keyframes floatUp {
    0% {
        transform: translateY(110vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* Specific delays and positions for randomness */
.float-icon:nth-child(1) {
    left: 10%;
    animation-duration: 25s;
    animation-delay: 0s;
    font-size: 3rem;
}

.float-icon:nth-child(2) {
    left: 20%;
    animation-duration: 30s;
    animation-delay: -5s;
    font-size: 5rem;
}

.float-icon:nth-child(3) {
    left: 35%;
    animation-duration: 22s;
    animation-delay: -10s;
    font-size: 2rem;
}

.float-icon:nth-child(4) {
    left: 50%;
    animation-duration: 28s;
    animation-delay: -2s;
    font-size: 4rem;
}

.float-icon:nth-child(5) {
    left: 65%;
    animation-duration: 32s;
    animation-delay: -15s;
    font-size: 6rem;
}

.float-icon:nth-child(6) {
    left: 80%;
    animation-duration: 24s;
    animation-delay: -8s;
    font-size: 3rem;
}

.float-icon:nth-child(7) {
    left: 90%;
    animation-duration: 20s;
    animation-delay: -12s;
    font-size: 5rem;
}

.float-icon:nth-child(8) {
    left: 15%;
    animation-duration: 35s;
    animation-delay: -20s;
    font-size: 2.5rem;
}

.float-icon:nth-child(9) {
    left: 45%;
    animation-duration: 29s;
    animation-delay: -4s;
    font-size: 4.5rem;
}

.float-icon:nth-child(10) {
    left: 75%;
    animation-duration: 26s;
    animation-delay: -18s;
    font-size: 3.5rem;
}

/* --- Navbar Glass --- */
.navbar {
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Hero Section & 3D Effect --- */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    perspective: 1000px;
}

.hero-3d-wrapper {
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
    animation: fadeUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeUp 0.8s ease-out 0.4s backwards;
}

/* --- Premium Cards --- */
.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

/* --- Carousel --- */
.puzzle-carousel {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.puzzle-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.puzzle-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(79, 70, 229, 0.5);
}

/* --- Resource Cards (Premium list) --- */
.resource-card-premium {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resource-card-premium:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(236, 72, 153, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Buttons --- */
.btn-glow {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.6);
    transform: scale(1.05);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 1rem;
    }
}