/* Neural Glow Effect */
:root {
    --cursor-x: 50%;
    --cursor-y: 50%;
}

/* Global Font Styles */
h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: 'Fraunces', serif;
    font-variation-settings: "SOFT" 50, "WONK" 1;
    /* Slight softness and 'wonk' for bespoke feel */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.neural-spotlight {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 1200px;
    height: 1200px;
    z-index: 0;
    background: radial-gradient(circle closest-side, rgba(8, 145, 178, 0.08), transparent);
    /* Initial off-screen position to avoid flash */
    transform: translate3d(-200%, -200%, 0);
    will-change: transform;
}

/* 3D Tilt Effect on Cards */
.tilt-card {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-card-content {
    transform: translateZ(20px);
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

/* Mobile Menu Transitions */
.mobile-menu-enter {
    transform: translateY(0%) !important;
    opacity: 1 !important;
}

/* Typewriter Cursor */
.typewriter-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: #0891b2;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Magnetic Button Styles */
.magnetic-btn {
    position: relative;
    isolation: isolate;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Magnetic Glow Effect */
.magnetic-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.15), transparent);
    transform: translate(var(--mouse-x, -50%), var(--mouse-y, -50%));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
}

.magnetic-btn:hover::before {
    opacity: 1;
}

/* Decipher Text Styles */
.decipher-text {
    display: inline-block;
    cursor: default;
    min-width: 1ch;
}

/* Scrolling Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 63px;
    /* Just below the navbar height of 64px (h-16) - 1px border */
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 49;
    /* Below nav (z-50) but above content */
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: #06b6d4;
    /* Primary Color */
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Blur Fade Utility */
.mask-bottom-fade {
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Dropdown Menu Styles */
.group:hover .group-hover\:block {
    display: block;
}

.dropdown-menu {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.2s ease-out;
}

.group:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}