@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Outfit:wght@300;400;600&family=Tillana:wght@400;700&display=swap');

:root {
    --color-bg: #040806;
    --color-surface: #0A1410;
    --color-primary: #92E3A9;
    --color-secondary: #FF8C42;
    --color-accent-glow: rgba(146, 227, 169, 0.4);
    --color-text-main: #F0FAF4;
    --color-text-dim: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
.font-cinzel {
    font-family: 'Cinzel', serif;
}

.font-tillana {
    font-family: 'Tillana', cursive;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--color-accent-glow);
}

/* Gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #DFFFE9 50%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-divine {
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

#webgl-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero "3" Animation - Aggressive */
.veda-logo span.digit-3 {
    display: inline-block;
    color: var(--color-primary);
    position: relative;
    animation: aggressive-shake 0.2s infinite alternate, morph-glow 4s infinite alternate;
}

@keyframes aggressive-shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

/* Verse Letter Animations */
.verse-char {
    display: inline-block;
    transition: all 0.3s ease;
    animation: verse-flicker 3s infinite alternate;
}

.verse-char:nth-child(1) {
    animation-delay: 0.1s;
    color: var(--color-primary);
}

.verse-char:nth-child(2) {
    animation-delay: 0.3s;
    color: var(--color-secondary);
}

.verse-char:nth-child(3) {
    animation-delay: 0.5s;
    color: #a5f3bc;
}

.verse-char:nth-child(4) {
    animation-delay: 0.7s;
    color: #ffb48a;
}

.verse-char:nth-child(5) {
    animation-delay: 0.9s;
    color: var(--color-primary);
}

@keyframes verse-flicker {

    0%,
    100% {
        opacity: 0.8;
        filter: brightness(1) drop-shadow(0 0 2px currentColor);
        transform: translateY(0);
    }

    33% {
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 10px currentColor);
        transform: translateY(-2px);
    }

    66% {
        opacity: 0.9;
        filter: brightness(1.2) drop-shadow(0 0 15px currentColor);
        transform: translateY(1px);
    }
}

/* More intensive hover response for the whole logo group */
.veda-logo:hover .verse-char {
    animation: aggressive-shake 0.1s infinite alternate !important;
    filter: brightness(2) drop-shadow(0 0 20px currentColor) !important;
}

.section-tag {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
}

/* Marquee Scrolling Animation */
.marquee-container {
    overflow: hidden;
    user-select: none;
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    min-width: 100%;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    animation: scroll-left 40s linear infinite;
}

.direction-reverse .marquee-content {
    animation-direction: reverse;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 2rem));
    }
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.mobile-link {
    transition: all 0.3s ease;
}

.mobile-link:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}