@font-face {
    /* This is the name you will use to refer to the font */
    font-family: 'ALDITH DEMO';

    /* This is the path to your font file */
    src: url('font/ALDITHDEMOItalic.ttf') format('truetype');

    /* You can also specify font-weight and font-style if needed */
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;

    padding-top: 0;
}


/* Header Container */
.main-header {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 1.0rem 1rem;
    background-color: #f5f5f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    font-family: 'Popins', sans-serif;
    font-style: bold;
}

/* Text Logo with Shine Effect (UNCHANGED) */
.logo {
    position: absolute;
    left: 2rem;
    overflow: hidden;
    display: inline-block;
    font-family: 'Omega Centauri', sans-serif;
}

/* --- NEW: Image Logo Styles --- */
.header-logo-image {
    height: 40px;
    width: auto;
    display: block;
    z-index: 2;
}

/* Main Navigation (Desktop) */
.main-nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    /* Ensures button aligns vertically */
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #c9a76d;
}

/* --- NEW: Auth Button Styles --- */
.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid #c9a76d;
    /* Gold border */
    border-radius: 20px;
    color: #c9a76d !important;
    /* Force gold color initially */
    font-weight: 600 !important;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background-color: #c9a76d;
    color: #fff !important;
    /* White text on hover */
    box-shadow: 0 4px 10px rgba(201, 167, 109, 0.2);
    transform: translateY(-1px);
}

.auth-btn i {
    font-size: 1rem;
}

/* Hamburger Menu Styling */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    position: absolute;
    right: 2rem;
    z-index: 1051;
}

.bar {
    display: block;
    width: 20px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* --- NEW: Hamburger "X" Animation --- */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- NEW: Page Overlay --- */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* --- Final Mobile Responsiveness (MAX-WIDTH 768px) --- */
@media (max-width: 768px) {

    /* CRITICAL FIX 1: Tighter, smaller header panel */
    .main-header {
        height: 45px;
        padding: 0 15px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    /* CRITICAL FIX 3: Perfect Vertical Alignment for Logo */
    .header-logo-image {
        height: 30px;
        position: absolute;
        left: 15px;
        /* Forces vertical center alignment */
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-menu {
        display: block;
        position: absolute;
        right: 15px;
        margin: 0;
        padding: 0;
        line-height: 0;
        height: 60px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo {
        position: static;
    }

    /* This is the new slide-in menu style */
    .main-nav {
        position: fixed;
        top: 0;
        right: -280px;
        /* Start off-screen */
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding-top: 5rem;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1050;

        /* Keep existing flex behavior */
        display: block;
        flex-grow: 1;
        width: 280px;
        /* Set explicit width */
        margin-top: 0;
    }

    /* This slides the menu in */
    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        /* Align text left */
        padding: 2rem;
    }

    /* Mobile Auth Button styling adjustments */
    .auth-btn {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}