@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Dynamic Smooth Transition for Dark Mode Toggle */
*,
::before,
::after {
    transition-property: background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dark ::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Custom Typography & Layout Settings */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
}

/* Reveal Transitions for Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Micro-Animations & Floating Effects */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes pulse-soft {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.animate-pulse-soft {
    animation: pulse-soft 3s ease-in-out infinite;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark .glass {
    background: rgba(30, 41, 59, 0.8);
}

/* Edge fade for scrolling marquees */
.mask-gradient {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* Horizontal sliding animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee-reverse {
    animation: marquee-reverse 30s linear infinite;
}

/* Custom Grid Patterns */
.grid-pattern {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(2, 31, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(2, 31, 255, 0.03) 1px, transparent 1px);
}

.dark .grid-pattern {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Custom premium styling for light friendly white-and-blue theme */
.card-premium {
    background: #ffffff;
    border: 1px solid rgba(2, 31, 255, 0.07);
    box-shadow: 0 10px 30px -10px rgba(2, 31, 255, 0.05), 0 1px 3px rgba(2, 31, 255, 0.02);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-premium:hover {
    transform: translateY(-6px);
    border-color: rgba(2, 31, 255, 0.2);
    box-shadow: 0 20px 40px -15px rgba(2, 31, 255, 0.12), 0 4px 10px rgba(2, 31, 255, 0.02);
}

.button-premium {
    background: #021fff;
    color: #ffffff;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px -5px rgba(2, 31, 255, 0.3), 0 4px 10px -5px rgba(2, 31, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.button-premium:hover {
    background: #0119cc;
    transform: translateY(-1.5px);
    box-shadow: 0 12px 30px -5px rgba(2, 31, 255, 0.4), 0 6px 15px -5px rgba(2, 31, 255, 0.25);
}

.bg-soft-blue-gradient {
    background: linear-gradient(135deg, rgba(2, 31, 255, 0.03) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(2, 31, 255, 0.01) 100%);
}

.accent-border-glow {
    position: relative;
}

.accent-border-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(2, 31, 255, 0.3), rgba(2, 31, 255, 0.03));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}


