@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    /* Fresh changing gradient background */
    background: linear-gradient(-45deg, #f0f9ff, #e0e7ff, #ccfbf1, #fae8ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #0f172a; /* Slate 900 for default text */
}

/* Light Glassmorphism Utilities */
.glass-nav {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 40px -10px rgba(99, 102, 241, 0.15);
}

/* Vibrant Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar for Light Theme */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

/* 4D Multi-Dimensional Icon Styling */
.icon-4d {
    transform-style: preserve-3d;
    transform: perspective(800px) translateZ(0) rotateX(0) rotateY(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        inset 2px 4px 8px rgba(255, 255, 255, 0.9), 
        inset -2px -4px 8px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
}

.icon-4d:hover {
    /* Pops the element out on the Z-axis and tilts it */
    transform: perspective(800px) translateZ(40px) rotateX(15deg) rotateY(-15deg) scale(1.15);
    box-shadow: 
        inset 2px 4px 8px rgba(255, 255, 255, 0.9), 
        inset -2px -4px 8px rgba(0, 0, 0, 0.1),
        -15px 25px 30px rgba(99, 102, 241, 0.3);
    z-index: 50;
}

/* ==========================================================================
   Fluxtech Antigravity & Physics Engine
   ========================================================================== */

/* 1. Standard Antigravity (Vertical Bobbing) */
@keyframes antigravity {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}
.animate-float { animation: antigravity 6s ease-in-out infinite; }
.animate-float-delay-1 { animation: antigravity 7s ease-in-out infinite 2s; }
.animate-float-delay-2 { animation: antigravity 5s ease-in-out infinite 1s; }
.animate-float-fast { animation: antigravity 4s ease-in-out infinite 0.5s; }

/* 2. Angular Clockwise Orbit */
@keyframes angular-orbit {
    0% { transform: rotate(0deg) translateX(10px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(10px) rotate(-360deg); }
}
.animate-orbit { animation: angular-orbit 7s linear infinite; }

/* 3. Angular Counter-Clockwise Orbit */
@keyframes angular-orbit-reverse {
    0% { transform: rotate(360deg) translateX(10px) rotate(-360deg); }
    100% { transform: rotate(0deg) translateX(10px) rotate(0deg); }
}
.animate-orbit-reverse { animation: angular-orbit-reverse 8s linear infinite; }

/* 4. Spring / Elastic Bounce */
@keyframes spring-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    20% { transform: translateY(-15px) scale(1.15); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    40% { transform: translateY(6px) scale(0.95); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    60% { transform: translateY(-4px) scale(1.05); }
    80% { transform: translateY(2px) scale(0.98); }
}
.animate-spring { animation: spring-bounce 5s infinite; }

/* 5. Background Blob Drifting */
@keyframes drift {
    0% { transform: translate(0px, 0px) rotate(0deg) scale(1); opacity: 0.2; }
    33% { transform: translate(40px, -60px) rotate(120deg) scale(1.1); opacity: 0.5; }
    66% { transform: translate(-30px, -30px) rotate(240deg) scale(0.9); opacity: 0.3; }
    100% { transform: translate(0px, 0px) rotate(360deg) scale(1); opacity: 0.2; }
}
.bg-particle {
    animation: drift 18s infinite alternate ease-in-out;
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* 6. Twinkling Stars */
@keyframes twinkle {
    0%, 100% { transform: scale(0.5); opacity: 0.2; }
    50% { transform: scale(1.5); opacity: 0.8; box-shadow: 0 0 12px 2px rgba(255,255,255,0.9); }
}
.star-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}