/* --- The Anubis Sanctum Palette & Variables --- */
:root {
    --obsidian: #050508;         /* The endless black of the underworld sky */
    --canopic-stone: #0f0f14;    /* Polished basalt used for sacred sarcophagi */
    --jackal-black: #14141c;     /* Shadowed skin tone of Anubis */
    --divine-blue: #0d233a;      /* Deep lapis lazuli / night sky accent */
    --jackal-gold: #ffc400;      /* Pure, uncorrupted tomb gold */
    --gold-embers: #b38600;      /* Flickering gold dust under shadow */
    --ashen-linen: #e3ded5;      /* Aged mummy wrapping white / clear text */
    --dust-grey: #858076;        /* Ash and forgotten tomb dust */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- Global Elements & Custom Cursor --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--obsidian);
    color: var(--ashen-linen);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Atmospheric overlay: Dark void shifting into deep midnight blue at the bottom */
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(13, 35, 58, 0.25) 0%, transparent 70%),
        linear-gradient(var(--obsidian), #020204);
    /* Custom Theme Cursor */
    cursor: crosshair;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- The Celestial Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--canopic-stone);
    /* Crisp, sharp gold framing lines */
    border-bottom: 2px solid var(--jackal-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
}

.nav-logo a {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--ashen-linen);
    text-shadow: 0 0 12px rgba(255, 196, 0, 0.4);
}

.nav-logo span {
    color: var(--jackal-gold);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--dust-grey);
    position: relative;
    padding: 5px 0;
}

/* Interactive underline that expands from the center on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--jackal-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--jackal-gold);
}

.nav-links a:hover::after, 
.nav-links a.active-link::after {
    width: 100%;
}

.nav-links a:hover, 
.nav-links a.active-link {
    color: var(--jackal-gold);
    text-shadow: 0 0 8px rgba(255, 196, 0, 0.3);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--jackal-gold);
    margin: 5px 0;
    transition: 0.4s;
}

/* --- Hero Court (The Entrance) --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(5, 5, 8, 0.5), rgba(5, 5, 8, 0.95)), 
                url('https://images.unsplash.com/photo-1601887389937-0b02c26b6c3c?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    border-bottom: 1px solid var(--divine-blue);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--jackal-gold);
    margin-bottom: 1rem;
    letter-spacing: 6px;
    text-shadow: 0px 0px 25px rgba(255, 196, 0, 0.5), 0px 10px 30px rgba(0,0,0,0.8);
    animation: pulseGlow 4s infinite ease-in-out;
}

.hero-content p {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.25rem;
    color: var(--ashen-linen);
    letter-spacing: 1.5px;
    opacity: 0.9;
}

/* --- Interactive Golden Liquid Button --- */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: transparent;
    color: var(--jackal-gold);
    border: 2px solid var(--jackal-gold);
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 196, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, var(--jackal-gold));
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
}

.btn:hover::before {
    top: 0;
    opacity: 0.2;
}

.btn:hover {
    color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 196, 0, 0.4), inset 0 0 10px rgba(255, 196, 0, 0.2);
    text-shadow: 0 0 5px #ffffff;
    border-color: #ffffff;
}

/* --- The Chamber Matrix (Main Content Panel) --- */
.container {
    max-width: 1150px;
    margin: 6rem auto;
    padding: 4rem 3rem;
    background-color: var(--canopic-stone);
    border: 1px solid rgba(255, 196, 0, 0.15);
    /* Flanking golden accents on the left and right borders */
    border-left: 4px solid var(--jackal-gold);
    border-right: 4px solid var(--jackal-gold);
    box-shadow: 0 30px 70px rgba(0,0,0,0.95);
}

.intro-section h2 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--ashen-linen);
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 4px;
}

/* Custom Eye/Ankh style structural geometric divider */
.intro-section h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--jackal-gold), transparent);
    margin: 1rem auto 0 auto;
    box-shadow: 0 0 8px var(--jackal-gold);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--ashen-linen);
    font-size: 1.15rem;
    text-align: justify;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

/* --- Sona Relic Framework (The Highlight Artifact) --- */
.main-sona img {
    width: 100%;
    border-radius: 0;
    border: 2px solid var(--jackal-gold) !important;
    padding: 10px;
    background-color: var(--obsidian);
    box-shadow: 0px 0px 25px rgba(255, 196, 0, 0.25), 0px 20px 40px rgba(0, 0, 0, 0.9) !important;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: relicFloat 6s infinite ease-in-out;
}

.main-sona img:hover {
    transform: scale(1.04) rotate(0.5deg);
    border-color: #ffffff !important;
    box-shadow: 0px 0px 40px rgba(255, 196, 0, 0.5), 0px 20px 40px rgba(0, 0, 0, 0.9) !important;
}

/* --- Underworld Base (Footer) --- */
footer {
    background-color: var(--obsidian);
    text-align: center;
    padding: 4rem;
    color: var(--dust-grey);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-top: 1px solid var(--divine-blue);
}

/* --- Dynamic Theme Animations --- */
@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 196, 0, 0.4), 0 10px 30px rgba(0,0,0,0.8); }
    50% { text-shadow: 0 0 40px rgba(255, 196, 0, 0.7), 0 10px 30px rgba(0,0,0,0.8); color: #ffffff; }
}

@keyframes relicFloat {
    0%, 100% { transform: translateY(0px); box-shadow: 0px 0px 25px rgba(255, 196, 0, 0.2), 0px 20px 40px rgba(0, 0, 0, 0.9); }
    50% { transform: translateY(-8px); box-shadow: 0px 0px 35px rgba(255, 196, 0, 0.35), 0px 25px 45px rgba(0, 0, 0, 0.85); }
}

/* --- Responsive Layout Optimization --- */
@media (max-width: 768px) {
    body {
        cursor: default; /* Disables custom cursor styling on touch devices */
    }
    
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 81px;
        left: 0;
        background-color: var(--canopic-stone);
        text-align: center;
        padding: 3rem 0;
        border-bottom: 2px solid var(--jackal-gold);
    }

    .nav-links.active {
        display: flex;
    }

    .container {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
        border-left: 2px solid var(--jackal-gold);
        border-right: 2px solid var(--jackal-gold);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(12px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }