* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    height: 100%;
    font-family: 'Space Grotesk', sans-serif;
    background-image: url('bg.jpg');
    color: #000;
    overflow: hidden; /* Keep this if you want the welcome animation to cover the whole screen */
}
.welcome {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    flex-wrap: wrap;
}
.welcome span {
    display: inline-block;
    opacity: 0;
}
nav {
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    position: relative; /* Added for positioning of mobile menu */
    z-index: 99; /* Ensure nav is above other elements when menu opens */
}
.nav-left {
    letter-spacing: 0.5px;
}
.nav-right {
    list-style: none; /* Remove bullet points for ul */
    display: flex;
    margin: 0;
    padding: 0;
}
.nav-right li {
    margin-left: 2rem;
}
.nav-right a {
    text-decoration: none;
    color: #000;
    position: relative;
}
.nav-right a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s ease-in-out;
}
.nav-right a:hover::after {
    width: 100%;
}

/* Hamburger Menu Styles */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100; /* Ensure toggle is clickable */
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000; /* Adjust color as needed */
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Main content styling */
.main {
    width: 100vw;
    height: calc(100vh - 120px); /* Adjust if nav height changes */
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 1fr);
    padding: 2rem;
    position: relative;
}
.left-col {
    grid-column: 2 / 5;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
}
.status-row {
    display: flex;
    gap: 0.4rem;
    align-items: center; /* Align items vertically */
}

.status-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #a36a00;
    animation: blink 1s infinite;
}

.left-col h4 {
    font-size: 0.8rem;
    font-weight: 400;
    margin: 0; /* Remove margin-bottom */
}

.description {
    grid-column: 2 / 12;
    grid-row: 6 / 7;
    font-size: 1rem;
    line-height: 1.4;
    padding-top: 1rem;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.right-col {
    grid-column: 2 / 12;
    grid-row: 3 / 6;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.name-line {
    display: flex;
    font-size: 10vw;
    font-weight: 700;
    line-height: 0.9;
}
.name-line div span {
    display: inline-block;
    opacity: 0;
}
.last-name {
    padding-left: 40%;
}
.contact-section {
    position: fixed;
    bottom: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: bottom 0.6s ease;
}
.contact-section.show {
    bottom: 0;
}
.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}

.social-icons a {
    font-size: 2rem;
    margin: 0 1rem;
    color: #000;
    transition: transform 0.3s ease;
}
.social-icons a:hover {
    transform: scale(1.2);
}

/* Media query for mobile */
@media (max-width: 768px) {
    nav {
        flex-direction: row; /* Keep elements in a row */
        justify-content: space-between; /* Space out items */
        align-items: center; /* Align items vertically */
        padding: 1.5rem 1.5rem; /* Adjust padding for mobile */
    }

    .nav-right {
        display: none; /* Hide links by default in mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the nav bar */
        left: 0;
        width: 100%;
        background-color: #f8f8f8; /* Slightly different background for menu */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 90; /* Below contact section but above main content */
        padding: 1rem 0; /* Padding for menu items */
        border-top: 1px solid #eee;
    }

    .nav-right.active {
        display: flex; /* Show when active */
    }

    .nav-right li {
        margin: 0; /* Reset margin */
        padding: 0.75rem 1.5rem; /* Padding for each menu item */
        width: 100%;
        text-align: center;
    }

    .nav-right a {
        display: block; /* Make links take full width of li */
        margin-left: 0; /* Reset margin */
        padding: 0.5rem 0; /* Padding inside the link */
    }

    .nav-right a::after {
        display: none; /* Hide underline on mobile */
    }

    .menu-toggle {
        display: block; /* Show hamburger icon in mobile */
    }

    /* Animation for hamburger icon */
    .menu-toggle.active .hamburger-icon:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .hamburger-icon:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .hamburger-icon:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Main content adjustments for mobile */
    .main {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto; /* Allow rows to auto-adjust height */
        padding: 1.5rem; /* Adjust padding for mobile */
        height: auto; /* Allow main content to take natural height */
        min-height: calc(100vh - 80px); /* Adjust based on nav height */
    }
    .left-col {
        grid-column: 1 / -1;
        grid-row: auto;
        margin-bottom: 2rem;
    }
    .right-col {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .name-line {
        font-size: 14vw;
        flex-direction: column;
    }
    .last-name {
        padding-left: 0;
    }
    .description {
        grid-column: 1 / -1;
        grid-row: auto;
        padding: 1rem 0;
    }

    .status-row {
        justify-content: flex-start;
    }

    /* Contact section adjustments */
    .contact-section h2 {
        font-size: 1.5rem; /* Smaller heading */
    }
    .social-icons a {
        font-size: 1.5rem; /* Smaller icons */
        margin: 0 0.75rem;
    }
    .close-btn {
        top: 0.75rem;
        right: 1rem;
        font-size: 1.75rem;
    }
}

/* Optional: Overlay when mobile menu is open */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 80;
    display: none;
}

.overlay.active {
    display: block;
}