:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --bg-light: #ffffff;
    --text-main: #0f172a;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

/* 1. Scroll Progress Line */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    width: 0%;
    transition: width 0.1s;
}

/* 2. Grid & Animated Squares Background */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.animated-square {
    position: absolute;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    animation: rise 15s infinite linear;
    border-radius: 4px;
}

@keyframes rise {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(-20vh) rotate(45deg);
        opacity: 0;
    }
}

/* 3. Analysis Chart Bars */
.chart-bar {
    width: 100%;
    background: #f1f5f9;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.chart-fill {
    width: 100%;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 4px;
    animation: grow-up 1.5s ease-out forwards;
    transform-origin: bottom;
}

@keyframes grow-up {
    from {
        height: 0%;
    }
}

/* 4. Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 100ms;
}

.stagger-2 {
    transition-delay: 200ms;
}

.stagger-3 {
    transition-delay: 300ms;
}

/* 5. Spotlight Card Effect */
.spotlight-wrapper {
    position: relative;
    background: rgba(0, 0, 0, 0.05);
    padding: 1px;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.spotlight-wrapper:hover {
    transform: translateY(-5px);
}

.spotlight-wrapper::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(37, 99, 235, 0.4),
            transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
}

.spotlight-wrapper:hover::before {
    opacity: 1;
}

.spotlight-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    z-index: 1;
    height: 100%;
}

/* 6. Marquee for Testimonials */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Three.js Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Behind grid */
    opacity: 0.8;
}

/* Magnetic Nav */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Font Display Class */
.font-display {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* Font Outfit Class */
.font-outfit {
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Text Gradient Animation */
.text-gradient-animate {
    background: linear-gradient(-45deg, #2563eb, #7c3aed, #db2777, #2563eb);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-x 6s ease infinite;
}

@keyframes gradient-x {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fff;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Marquee Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll-left {
    animation: scroll-left 30s linear infinite;
}

/* Gradient Animation */
@keyframes gradient-x {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-confirm {
    background: #2563eb !important;
    color: white !important;
}

.modal-btn-confirm:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px) !important;
}

/* Enroll Button Fix - Force Visibility */
.enroll-btn {
    background-color: #2563eb !important;
    color: white !important;
    border: 2px solid #2563eb !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999 !important;
    position: relative !important;
    min-width: 100px !important;
    text-align: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.enroll-btn:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-1px) !important;
}

.enroll-btn:disabled {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

.enroll-btn:disabled:hover {
    transform: none !important;
    background-color: #16a34a !important;
}