/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    overflow-x: hidden;
    background-color: #000;
    padding-bottom: 60px;
    /* space so fixed footer doesn't block last section */
    overflow: hidden;
    /* Remove scroll bar */
}

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: height 0.3s ease, padding 0.3s ease;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 40px;
    align-items: center;
    transition: gap 0.3s ease;
}

/* Home image link */
.home-logo {
    height: 28px;
    width: auto;
    display: block;
}

.top-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s ease, font-size 0.3s ease;
}

.top-nav a:hover {
    opacity: 0.7;
}

/* Hamburger Menu Styles - From Uiverse.io by JulanDeAlb */
.hamburger {
    cursor: pointer;
    display: none;
    /* Hidden by default */
}

.hamburger input {
    display: none;
}

.hamburger svg {
    /* The size of the SVG defines the overall size */
    height: 2.3em;
    /* Define the transition for transforming the SVG */
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    /* Define the transition for transforming the Stroke */
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked+svg {
    transform: rotate(-45deg);
}

.hamburger input:checked+svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

/* Menu Text */
.menu-text {
    display: none;
    /* Hidden by default */
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-left: 10px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 50px;
    /* Start below the nav */
    left: -300px;
    /* Hidden by default */
    width: 300px;
    height: calc(100vh - 60px);
    /* Full height minus nav */
    background-color: rgba(0, 0, 0, 0.7);
    /* Black with transparency */
    backdrop-filter: blur(10px);
    transition: left 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 20px 30px 30px 30px;
    box-sizing: border-box;
}

.sidebar a {
    color: #ffffff;
    text-decoration: none;
    font-size: larger;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #1e9bd7;
}

/* Main Contact Section */
.contact-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Slightly top */
    min-height: 100vh;
    padding-top: 60px;
    /* Account for fixed nav */
    padding-bottom: 20px;
}

.contact-content {
    display: flex;
    width: 90%;
    max-width: 1400px;
    gap: 40px;
    align-items: flex-start;
    margin-top: 60px;
    /* A bit higher */
    justify-content: space-between;
    /* Push map to the right */
}

.contact-details {
    flex: 0.3;
    max-width: 350px;
    order: 1;
    /* Left side */
    margin-left: 100px;
    /* More to the right */
}

.contact-subtitle {
    font-size: 3rem;
    /* Increased font size */
    font-weight: bold;
    color: #fff;
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    flex-shrink: 0;
}

.contact-label {
    font-weight: bold;
    color: #fff;
    font-size: 1.2rem;
    /* Slightly larger font */
}

.contact-detail {
    color: #ccc;
    margin-left: 42px;
    /* Align with text */
    font-size: 1.1rem;
    /* Slightly larger font */
}

.contact-detail a {
    color: #007bff;
    /* Blue color */
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.map-container {
    flex: 2;
    max-width: 800px;
    /* Even bigger width */
    height: 400px;
    /* Bigger height */
    background-color: #333;
    /* Dark gray for contrast */
    border-radius: 20px;
    /* Rounded edges */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    order: 2;
    /* Right side */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Bottom Footer */
.bottom-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    transition: height 0.3s ease;
}

.bottom-footer p {
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: font-size 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-right {
        display: none;
        /* Hide navigation links on mobile */
    }

    .hamburger {
        display: flex;
        /* Show hamburger menu */
        align-items: center;
        cursor: pointer;
    }

    .menu-text {
        display: inline;
        /* Show MENU text */
        margin-left: 10px;
    }

    .top-nav {
        padding: 0 20px;
        height: 50px;
    }

    .nav-left,
    .nav-right {
        gap: 20px;
    }

    .top-nav a {
        font-size: 11px;
    }

    .home-logo {
        height: 24px;
    }

    .contact-main {
        padding-top: 50px;
        /* 50px header */
    }


    .contact-content {
        flex-direction: column;
        gap: 30px;
        margin-top: 60px;
        /* Increased gap between nav and map */
        justify-content: center;
        align-items: flex-start;
        /* Align items to the left */
        margin: 0 auto;
    }

    .contact-details {
        max-width: 100%;
        order: 2;
        /* Contact under map */
        text-align: left;
        /* Left align text */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
    }

    .contact-subtitle {
        font-size: 2.5rem;
        text-align: left;
    }

    .contact-items {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    .contact-item {
        align-items: flex-start;
        text-align: left;
    }

    .contact-header {
        justify-content: flex-start;
    }

    .contact-detail {
        margin-left: 0;
        text-align: left;
    }

    .map-container {
        width: 400px;
        /* Square size */
        height: 100px;
        /* Longer shape */
        max-width: 90vw;
        /* Responsive */
        order: 1;
        /* Map first */
        margin: 0 auto;
        /* Center the map */
    }

    .bottom-footer {
        height: 50px;
    }

    .bottom-footer p {
        font-size: 10px;
        padding: 0 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .nav-left,
    .nav-right {
        gap: 10px;
    }

    .top-nav a {
        font-size: 9px;
    }

    .home-logo {
        height: 20px;
    }

    .contact-subtitle {
        font-size: 2rem;
    }

    .map-container {
        margin-top: 20px;
        width: 300px;
        /* Smaller square */
        height: 800px;
        /* Much taller */
    }

    .bottom-footer p {
        font-size: 8px;
    }
}