/*base.css - Global Styles, Header, Footer, Nav */
html {
    overflow-y: scroll; /* Forces scrollbar to always show, preventing layout jumps */
}
/* --- General Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #2b2b2b;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Layout Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Header / Navigation --- */
header {
    padding-top: 0px;
    padding-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo img {
    height: 135px; 
    display: block;
    margin-left: -35px; /* LOGO ALIGNMENT POINT */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    transition: max-height 0.3s ease-out;
}

nav li {
    position: relative;
    cursor: pointer;
    font-size: 16px;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav li:hover {
    color: #ffffff;
}

/* Arrow Icon */
.arrow {
    width: 8px;
    height: 8px;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    transform: rotate(45deg);
    margin-bottom: 3px;
    transition: transform 0.2s;
}

nav li:hover .arrow {
    border-color: #fff;
    transform: rotate(45deg) translate(2px, 2px);
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px; 
    padding: 15px;
    min-width: 180px;
    z-index: 100;
    background-color: #2b2b2b; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-radius: 4px;
}

nav li:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 10px;
    color: #aaa;
    font-size: 14px;
    transition: color 0.2s, background-color 0.2s;
}

.dropdown-menu a:hover {
    color: #fff;
    background-color: #333;
    border-radius: 4px;
}

/* --- Hamburger Menu Icon --- */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* --- Footer --- */
footer {
    padding: 40px 0;
    font-size: 14px;
    color: #777;
}

/* =========================================
   GLOBAL MOBILE NAVIGATION
   ========================================= */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .logo img {
        height: 100px; 
        margin-left: -20px;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 130px; 
        gap: 0;
        flex-direction: column;
        background-color: #2b2b2b;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-top: 1px solid #444;
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        padding: 15px 40px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid #333;
        width: 100%;
    }

    .dropdown-menu {
        position: static; 
        display: block; 
        background-color: transparent;
        box-shadow: none;
        padding: 10px 0 0 15px; 
        width: 100%;
        opacity: 0.7;
    }

    .dropdown-menu a {
        color: #999;
        padding: 5px 0;
    }

    .arrow {
        display: none;
    }
}