/* ========================================
   HOMEPAGE SLOW & ELEGANT ANIMATIONS
   Surya Enterprises 2026
   ======================================== */

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #00d4ff, #00e891);
    z-index: 10001;
    /* Above header (1000) */
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    transition: width 0.2s ease-out;
}

/* ===== PARTICLE CANVAS ===== */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
}

/* ===== HERO ENHANCEMENTS ===== */
.hero {
    position: relative;
    overflow: hidden;
}

/* Slow animated mesh gradient overlay */
.hero::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(108, 99, 255, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 232, 145, 0.08) 0%, transparent 60%) !important;
    animation: heroMeshFloat 25s ease-in-out infinite !important;
}

@keyframes heroMeshFloat {

    0%,
    100% {
        opacity: 0.85;
        transform: scale(1) translate(0, 0);
    }

    33% {
        opacity: 1;
        transform: scale(1.03) translate(-5px, -3px);
    }

    66% {
        opacity: 0.9;
        transform: scale(1.01) translate(5px, 3px);
    }
}

/* ===== HERO TEXT - SLOW CINEMATIC REVEAL ===== */
.hero h1 {
    position: relative !important;
    z-index: 10 !important;
    animation: heroTitleReveal 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        heroGlow 8s ease-in-out infinite alternate 3s !important;
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.97);
        filter: blur(8px);
    }

    60% {
        opacity: 0.8;
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
        filter: drop-shadow(0 0 15px rgba(108, 99, 255, 0.1));
    }

    100% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
        filter: drop-shadow(0 0 35px rgba(0, 212, 255, 0.15));
    }
}

/* Hero paragraph - slow gentle slide */
.hero p {
    animation: heroParagraphIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both !important;
}

@keyframes heroParagraphIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(4px);
    }

    60% {
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* CTA Buttons - gentle entrance */
.cta-buttons {
    animation: ctaButtonsIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) 1.4s both !important;
}

@keyframes ctaButtonsIn {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Button hover - smooth ripple */
.cta-buttons .btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cta-buttons .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 1s ease-out, height 1s ease-out;
}

.cta-buttons .btn-primary:hover::after {
    width: 400px;
    height: 400px;
}

.cta-buttons .btn-secondary {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ===== FLOATING SHAPES - VERY SLOW DRIFT ===== */
.floating-shape.shape-1 {
    animation: floatShapeOne 45s ease-in-out infinite !important;
    filter: blur(80px);
    opacity: 0.15 !important;
}

.floating-shape.shape-2 {
    animation: floatShapeTwo 50s ease-in-out infinite !important;
    filter: blur(70px);
    opacity: 0.12 !important;
}

.floating-shape.shape-3 {
    animation: floatShapeThree 55s ease-in-out infinite !important;
    filter: blur(60px);
    opacity: 0.1 !important;
}

.floating-shape.shape-4 {
    animation: floatShapeFour 40s ease-in-out infinite !important;
    filter: blur(75px);
    opacity: 0.1 !important;
}

@keyframes floatShapeOne {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(-25px, -15px) rotate(45deg) scale(1.05);
    }

    50% {
        transform: translate(-10px, 20px) rotate(90deg) scale(0.95);
    }

    75% {
        transform: translate(20px, -8px) rotate(135deg) scale(1.02);
    }
}

@keyframes floatShapeTwo {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(20px, 25px) rotate(-45deg) scale(1.06);
    }

    50% {
        transform: translate(-25px, -12px) rotate(-90deg) scale(0.96);
    }

    75% {
        transform: translate(15px, -18px) rotate(-135deg) scale(1.03);
    }
}

@keyframes floatShapeThree {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(-18px, 14px) rotate(60deg) scale(1.08);
    }

    66% {
        transform: translate(22px, -10px) rotate(120deg) scale(0.93);
    }
}

@keyframes floatShapeFour {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(15px, -20px) rotate(-60deg) scale(1.04);
    }

    66% {
        transform: translate(-20px, 12px) rotate(-120deg) scale(0.97);
    }
}

/* ===== SCROLL ANIMATIONS - SMOOTH & SLOW ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SPOTLIGHT CARDS - GENTLE HOVER ===== */
.spotlight-card {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.spotlight-card:hover {
    transform: translateY(-8px) !important;
}

.spotlight-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(108, 99, 255, 0.03) 0%,
            rgba(0, 212, 255, 0.02) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.7s ease;
    border-radius: inherit;
    pointer-events: none;
}

.spotlight-card:hover::after {
    opacity: 1;
}

.spotlight-icon {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.spotlight-card:hover .spotlight-icon {
    transform: scale(1.08) rotate(5deg) !important;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3) !important;
}

/* ===== FEATURE CARDS - SUBTLE LIFT ===== */
.feature-card {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(0, 212, 255, 0.2), rgba(0, 232, 145, 0.2));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px) !important;
}

.feature-icon {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(6deg) !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3) !important;
}

/* ===== SERVICE CARDS - SMOOTH RISE ===== */
.service-card {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.service-card:hover {
    transform: translateY(-8px) !important;
}

.service-card:hover .service-icon {
    transform: scale(1.06) rotate(5deg) translateY(-2px) !important;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3) !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ===== JOBS COLUMNS - GENTLE FLOAT ===== */
.jobs-column {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.jobs-column:hover {
    transform: translateY(-4px) !important;
}

.column-header {
    position: relative;
    overflow: hidden;
}

.column-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    animation: columnShimmer 10s ease-in-out infinite;
}

@keyframes columnShimmer {

    0%,
    80% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ===== MARQUEE - SMOOTHER ===== */
.marquee-container {
    position: relative;
    overflow: hidden;
}

.marquee-label {
    position: relative;
    z-index: 2;
}

.marquee-label::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: marqueBlink 3s ease-in-out infinite;
}

@keyframes marqueBlink {

    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.3;
        transform: translateY(-50%) scale(0.6);
    }
}

/* ===== SECTION HEADER - SLOW ANIMATED UNDERLINE ===== */
.section-header h2 {
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #00d4ff, #00e891);
    border-radius: 3px;
    animation: underlineGrow 5s ease-in-out infinite alternate;
}

@keyframes underlineGrow {
    0% {
        width: 40px;
        opacity: 0.7;
    }

    100% {
        width: 70px;
        opacity: 1;
    }
}

/* ===== FOOTER - SLOW GRADIENT LINE ===== */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            #6366f1,
            #00d4ff,
            #00e891,
            transparent);
    animation: footerGradient 8s linear infinite;
    background-size: 200% 100%;
}

@keyframes footerGradient {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ===== TRUST BADGE - SLOW PULSE ===== */
.trust-badge {
    animation: trustBadgePulse 6s ease-in-out infinite !important;
}

@keyframes trustBadgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 20px 2px rgba(255, 255, 255, 0.05);
    }
}

/* ===== HERO STATS - FADE IN ===== */
.hero-stats {
    animation: heroStatsIn 2s cubic-bezier(0.16, 1, 0.3, 1) 2s both;
}

@keyframes heroStatsIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    transition: all 0.5s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* ===== SMOOTH PAGE LOAD ===== */
@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: pageLoad 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== LINK HOVER TRANSITIONS ===== */
a {
    transition: color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

/* ===== NAV LINKS SLOW HOVER ===== */
nav a {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

nav a::after {
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ===== LOGIN BUTTON ===== */
.login-btn {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.3s !important;
    }

    .floating-shape {
        animation: none !important;
    }

    #particle-canvas {
        display: none;
    }
}