:root {
    --primary: #ef5da8;
    --secondary: #c5a16f;
    --bg-dark: #0e0e0e;
    --bg-light: #1a1a1a;
    --text-white: #ffffff;
    --accent-tan: #fbe1d2;
    --border-dim: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Film Grain Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, h4, .font-forum {
    font-family: 'Forum', serif;
}

.font-mono {
    font-family: 'Courier New', Courier, monospace;
}

/* Typography Effects */
.text-outline {
    -webkit-text-stroke: 1px var(--text-white);
    color: transparent;
}

.text-outline-pink {
    -webkit-text-stroke: 1px var(--primary);
    color: transparent;
    animation: neon-flicker 5s infinite;
}

.neon-pink {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    animation: neon-flicker 5s infinite;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    }
    20%, 24%, 55% {
        opacity: 0.8;
        text-shadow: none;
    }
}

.brass-text {
    color: #d4b483; /* Increased contrast from var(--secondary) */
}

.opacity-40 {
    opacity: 0.85; /* Increased from 0.7 for higher contrast accessibility */
}

.opacity-50 {
    opacity: 0.9; /* Increased from 0.8 for accessibility */
}

.opacity-60 {
    opacity: 1; /* Full opacity for maximum contrast */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Cursor Interaction */
#cursor {
    mix-blend-mode: difference;
    background-color: var(--primary);
    transition: transform 0.2s ease-out, opacity 0.3s ease-in-out;
    z-index: 10000;
}

.cursor-hover {
    transform: scale(4);
    opacity: 0.2;
}

/* Navigation Links */
.nav-link {
    position: relative;
    overflow: hidden;
}

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.4;
    }
}

.animate-flicker {
    animation: flicker 4s infinite alternate;
}

/* Component Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-dim);
}

.case-file-card {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-file-card:hover {
    transform: translateY(-10px) rotate(-1deg);
}

.case-file-card img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-file-card:hover img {
    transform: scale(1.05);
}

/* Form Styles */
input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em;
}

/* Three.js Canvas Fix */
#canvas-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Mobile Menu Links */
.menu-link {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-link:hover {
    transform: skewX(-10deg) translateX(20px);
    color: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 16vw;
    }

    header, #main-nav, #zeus-6f89ce59a218500c {
        padding: 1.5rem !important;
    }

    section {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    #zeus-eedf43faa1387582 a {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .case-file-card h3 {
        font-size: 1.25rem;
    }

    #investigation p.text-sm {
        font-size: 0.95rem;
        opacity: 0.8;
    }

    #contact-form label {
        font-size: 0.75rem;
    }
}
