:root {
    --neon-green: #00FF9C;
    --neon-purple: #9B5CFF;
    --bg-dark: #020005;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.07);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

/* WebGL Canvas */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Framework UI with 3D structural transform properties */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-panel:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 35px rgba(0, 255, 156, 0.15);
}

/* --- MENU LINK ANIMATION EFFECTS --- */
.animated-nav-link {
    position: relative;
    overflow: hidden;
}

.animated-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-purple));
    transition: width 0.3s ease, left 0.3s ease;
}

.animated-nav-link:hover::after {
    width: 100%;
    left: 0;
}

.animated-nav-link:hover {
    color: var(--neon-green) !important;
    text-shadow: 0 0 8px rgba(0, 255, 156, 0.4);
}

/* Premium Infinite Running Border Animation Triggers */
.animated-border-box {
    position: relative;
    overflow: hidden;
    border: none !important;
}

.animated-border-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 40%, var(--neon-green), var(--neon-purple), transparent 60%);
    animation: rotateBorder 4s linear infinite;
    z-index: 1;
}

.animated-border-box::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #090514;
    backdrop-filter: blur(20px);
    border-radius: 18px;
    z-index: 1;
}

.animated-border-box>* {
    position: relative;
    z-index: 2;
}

@keyframes rotateBorder {
    100% {
        transform: rotate(360deg);
    }
}

/* Accents */
.text-neon-green {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 156, 0.3);
}

.text-neon-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(155, 92, 255, 0.3);
}

.btn-neon-purple {
    background: linear-gradient(135deg, var(--neon-purple), #6523c0);
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(155, 92, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-neon-purple:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 5px 25px rgba(155, 92, 255, 0.6);
    color: white;
}

.btn-neon-outline {
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-neon-outline:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 255, 156, 0.5);
}

/* Kinetic font character structures */
.swing-letter {
    display: inline-block;
    transform-origin: top center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.swing-letter:hover {
    animation: swingAction 0.8s ease-in-out forwards;
    color: var(--neon-green);
}

@keyframes swingAction {
    20% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(5deg);
    }

    80% {
        transform: rotate(-3deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Custom Cursor */
#custom-cursor {
    width: 18px;
    height: 18px;
    border: 2px solid var(--neon-purple);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.15s, height 0.15s;
}

select option {
    background-color: #0b0614 !important;
    color: #fff;
}
.form-mdl-bg {
    background-color: #020005;
}

/* Reveal Parameters */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.logo-wrapper img {
    animation: logoGlow 2s ease-in-out infinite alternate;
    width: 90px;
}

@keyframes logoGlow {
    from {
        filter: brightness(1.15) contrast(1.2) drop-shadow(0 0 10px rgba(5, 174, 85, .8));
    }

    to {
        filter: brightness(1.3) contrast(1.3) drop-shadow(0 0 20px #7E5AFF);
    }
}

/* Mobile Side Navigation Menu Overlay Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: rgba(8, 3, 18, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active {
    right: 0;
}