/* --- BASE STYLE --- */
:root {
    --active-color: #960018; 
    --bg-color: #f5f5f5; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif !important;
}

body {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 300;
    background-color: var(--bg-color);
    color: #080808;
    cursor: none;
    overflow-x: hidden;
    position: relative;
}

/* --- FADE OVERLAYS --- */
.fade-overlay-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px; 
    background: linear-gradient(to bottom, var(--bg-color) 30%, rgba(245, 245, 245, 0) 100%);
    z-index: 5; 
    pointer-events: none;
}

.fade-overlay-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px; 
    background: linear-gradient(to top, var(--bg-color) 30%, rgba(245, 245, 245, 0) 100%);
    z-index: 5; 
    pointer-events: none;
}

/* --- BACKGROUND GRAIN --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2; 
}

.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- LINKS --- */
a {
    text-decoration: none;
    color: inherit;
    cursor: none;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 300;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--active-color);
    font-weight: 300;
    text-decoration: none;
}

a.active {
    color: var(--active-color) !important;
    font-weight: 300;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

strong, b, .highlight {
    color: var(--active-color);
    font-weight: 300;
}

/* --- NAVIGATION --- */
.main-nav {
    display: flex;
    gap: 50px;
    font-size: 1.4rem;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 300;
    text-transform: lowercase;
    position: relative;
    align-items: center;
    justify-content: center;
    z-index: 1000; 
}

.nav-item {
    position: relative;
    display: inline-block;
    height: 100%;
}

.dropdown-content {
    display: block;
    position: absolute;
    background-color: var(--bg-color); 
    min-width: 160px;
    box-shadow: none;
    z-index: 1001;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px 0;
    border: none;
    text-align: center;
    pointer-events: none;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-content a {
    color: #080808;
    padding: 8px 0;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    white-space: nowrap;
    opacity: 1 !important;
    filter: none !important;
}

.dropdown-content a:hover {
    color: var(--active-color);
    background-color: rgba(150, 0, 24, 0.05);
}

/* --- CUSTOM CURSOR --- */
#custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border: 1px solid #080808;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

@media (hover: none) and (pointer: coarse) {
    #custom-cursor { display: none; }
    body { cursor: auto !important; }
    a, button { cursor: pointer !important; }
}

#custom-cursor.vertical-morph {
    width: 9px;
    height: 24px;
    border-radius: 4px;
    background-color: rgba(150, 0, 24, 0.2);
    border-color: var(--active-color);
}

/* --- AUDIO CONTROLS --- */
.audio-controls {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-size: 0.8rem;
    text-transform: lowercase;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 2000; 
    pointer-events: none;
}

.audio-controls.visible {
    opacity: 1;
    pointer-events: auto;
}

.audio-controls button {
    background: none;
    border: none;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 300;
    font-size: inherit;
    color: #080808;
    cursor: none;
}

.audio-controls button:hover {
    color: var(--active-color);
}

.audio-controls button.active {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    color: var(--active-color);
}

/* --- LEGAL FOOTER --- */
.legal-footer {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    text-transform: lowercase;
    opacity: 0; 
    transition: opacity 0.5s ease-in-out;
    z-index: 2000;
    pointer-events: none;
}

.legal-footer.visible {
    opacity: 0.4;
    pointer-events: auto;
}

.legal-footer:hover {
    opacity: 1;
}

.legal-footer a {
    text-decoration: underline; 
    text-underline-offset: 3px;
    border-bottom: none;
}

/* --- LANGUAGE CONTROLS --- */
.lang-controls {
    position: fixed;
    bottom: 38px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 2000;
    pointer-events: none;
}

.lang-controls.visible {
    opacity: 1;
    pointer-events: auto;
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 300;
    font-size: inherit;
    color: #080808;
    cursor: none;
}

.lang-btn:hover {
    color: var(--active-color);
}

.lang-btn.active {
    font-weight: 500;
    color: var(--active-color);
    text-decoration: underline;
}

/* --- MOBILE MEDIA QUERY --- */
@media (max-width: 768px) {
    .main-nav {
        gap: 15px;
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .fade-overlay-top, .fade-overlay-bottom {
        height: 100px;
    }

    .lang-controls {
        bottom: 85px;
        font-size: 0.7rem;
    }

    .audio-controls {
        bottom: 50px;
        font-size: 0.7rem;
    }

    .legal-footer {
        bottom: 15px;
        font-size: 0.6rem;
    }

    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        display: none;
        opacity: 1;
        visibility: visible;
        padding: 5px 0;
    }
    .nav-item.active-mobile .dropdown-content {
        display: block;
    }
}
