:root {
    --background: #000000;
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --accent: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-alt: 'Playfair Display', serif;
}

@keyframes move-aurora {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1.5);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.6);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1.5);
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-heading {
    font-family: var(--font-heading);
}

/* Mixed Fonts Helper */
.mixed-font-serif,
em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
}

.mixed-font-light {
    font-family: var(--font-heading);
    font-weight: 300;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 150vw;
    height: 150vh;
    background-image:
        radial-gradient(circle at 20% 20%, var(--accent), transparent 30%),
        radial-gradient(circle at 80% 70%, var(--accent), transparent 30%);
    filter: blur(100px);
    opacity: 0.15;
    animation: move-aurora 30s infinite linear;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.1;
    mix-blend-mode: overlay;
    z-index: -1;
    pointer-events: none;
}

/* Parallax Utilities */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

section,
section.bg-black {
    background-color: transparent !important;
}

/* Universal Hover Effects */
a,
button,
.interactive {
    transition: all 0.3s ease;
}

a:not(.no-hover):hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

/* Button Styling with Glow */
.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Cursor Glow - NEW */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.15;
    transition: opacity 0.3s ease;
    will-change: transform;
}

/* NEW USER GRID LOGIC */
#animated-text-container {
    color: var(--accent);
    display: grid;
    place-items: center;
    height: 15vh;
    /* Adjustable height */
    width: 100%;
    overflow: visible;
    position: relative;
    max-width: 90vw;
    /* Strict Mobile Constraint */
    margin: 0 auto;
}

#animated-text-container span {
    grid-area: 1 / 1;
    opacity: 0;
    white-space: nowrap;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    visibility: hidden;
    filter: blur(5px);
}

#animated-text-container span.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    filter: blur(0px);
}

#animated-text-container span.exit {
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
    filter: blur(5px);
}

/* Scroll Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1), transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #111;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}


/* Custom Select Dropdown Styles */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 3.5rem;
    /* Match previous input height */
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    /* rounded-xl */
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    color: #fff;
    font-size: 1rem;
}

.custom-select-trigger:hover {
    border-color: var(--accent);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--accent);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select-trigger .arrow {
    transition: transform 0.3s ease;
    color: var(--accent);
    font-size: 0.8rem;
}

.custom-select-wrapper.open .arrow {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 0;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    background: #000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 50;
    transform: translateY(-10px);
    max-height: 250px;
    overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    position: relative;
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--accent);
    padding-left: 1.25rem;
    /* Slide effect */
}

.custom-option.selected {
    background-color: var(--accent);
    color: #000;
    font-weight: bold;
}

/* Scrollbar for options */
.custom-options::-webkit-scrollbar {
    width: 6px;
}

.custom-options::-webkit-scrollbar-track {
    background: #111;
}

.custom-options::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}