:root {
    --primary-color: rgb(21, 21, 27);
    --border-color: rgb(85, 85, 85);
    --accent-color: rgb(140, 140, 255);
    --text-light: rgb(240, 240, 240);
    --text-gray: rgb(180, 180, 180);
    --card-bg: rgb(30, 30, 36);
    --card-border: rgb(60, 60, 70);
}

html {
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    background-color: var(--primary-color);
    color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family:'Courier New', Courier, monospace;
    overflow-x: hidden;
}

main {
    flex: 1;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1; /* Lower z-index for main content */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 100vw;
}

.nav-logo {
    margin: 0.5rem 0;
}

.nav-logo img {
    max-height: 50px;
    width: auto;
}

.nav-buttons {
    display: flex;
    gap: 3rem;
    font-size: 1.1rem;
    align-items: center;
    font-family:'Courier New', Courier, monospace;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-buttons a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
}

.nav-buttons a:hover {
    text-decoration: underline;
}

.fontawesome {
    font-size: 1.6rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Higher z-index for header */
    padding: 0.5rem;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

footer {
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 1000; /* Higher z-index for footer */
}

.footer-text {
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    margin: 0;
    padding: 0.8rem;
    font-family:'Courier New', Courier, monospace;
}





/* New styling for the about section */
.about-container {
    max-width: 1000px;
    width: 90%;
    margin: 6rem auto; /* Adds space above and below with auto horizontal centering */
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.about-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-color);
}

.about-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.about-header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-content p {
    margin: 0;
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight {
    color: var(--accent-color);
    font-weight: bold;
}

.photo-signature {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.signature-text {
    font-style: italic;
    color: var(--text-light);
}

.camera-icon {
    margin-right: 1rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}





/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative; /* Enable z-index */
    z-index: 1100; /* Higher than header */
}

@media screen and (max-width: 1400px) {
    .nav-logo img {
        width: 80;
    }
    
    .nav-buttons {
        gap: 2rem;
    }
}

/* Responsive breakpoints */
@media screen and (max-width: 1024px) {
    .nav-buttons {
        gap: 1.5rem;
    }
    
    nav {
        padding: 0 1rem;
    }

    .about-container {
        width: 86%;
        margin: 6rem auto
    }
}

@media screen and (max-width: 840px) {
    /* Menu toggle button becomes visible */
    .menu-toggle {
        display: block;
    }
    
    /* Navigation buttons become a dropdown */
    .nav-buttons {
        position: fixed;
        top: var(--header-height, 0);
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
        z-index: 999; /* High but below header and toggle */
    }
    
    .nav-buttons.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-buttons a {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .about-container {
        width: 86%;
        margin-top: 3rem;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 600px) {
    .about-container {
        width: 78%;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-logo img {
        width: 60%;
    }
    
    .nav-logo {
        margin: 0.25rem 0;
    }
    
    nav {
        padding: 0 0.5rem;
    }
    
    .text-overlay {
        padding: 0.5rem;
        width: 90%;
        font-size: 0.9rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }

    .about-container {
        width: 78%;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}