/* GLOBAL STYLES */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Unbounded:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif;
    color: #1a1a1a;
    background-color: #EEEEEE; 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: "Unbounded", sans-serif; 
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 1.8rem;
    margin-top: 40px;
}

h3 {
    font-size: 1.4rem;
    margin-top: 30px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #4a4a4a;
}

a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

a:hover {
    color: #666;
}

/* NAVIGATION BAR */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(238, 238, 238, 0.95); 
    backdrop-filter: blur(5px);
    z-index: 100;
    border-bottom: 1px solid #d5d5d5;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* For mobile positioning */
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    font-family: "Unbounded", sans-serif; 
}

/* MENU TOGGLE BUTTON (HIDDEN ON DESKTOP) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* PAGE SECTION LOGIC */
.page-section {
    display: none; 
    min-height: 100vh;
}

.page-section.active {
    display: block; 
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

/* HOME PAGE MINIMALIST DESIGN */
#home {
    display: none; 
    align-items: center;
    justify-content: center;
}

#home.active {
    display: flex; 
}

.home-container {
    text-align: center;
}

.home-hero-logo {
    max-width: 300px;
    margin-bottom: 40px;
}

.home-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.home-menu li a {
    font-family: "Unbounded", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
}

.home-menu li a:hover {
    letter-spacing: 5px;
}

/* SUBPAGE LAYOUT */
.header-image {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    margin-top: 72px; /* Fixed height for header matching nav bar */
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.content-image {
    width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 4px;
}

/* LISTS & SPECIFICS */
.custom-list {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #4a4a4a;
    font-size: 1.1rem;
}

.custom-list li {
    margin-bottom: 10px;
}

.contact-card {
    background: #ffffff; 
    padding: 40px;
    text-align: center;
    border: 1px solid #d5d5d5;
}

.contact-link {
    font-family: "Unbounded", sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
}

/* RESPONSIVE DESIGN & MOBILE MENU */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show hamburger button */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(238, 238, 238, 0.98);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        border-bottom: none;
    }

    /* Class added via JavaScript when opened */
    .nav-links.open {
        max-height: 400px; 
        border-bottom: 1px solid #d5d5d5;
        padding-bottom: 10px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .header-image {
        height: 30vh;
        margin-top: 72px; /* Margin stays exactly the same, no more gaps! */
    }
}
