/* Base resets and typography */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: white;
    background-color: rgba(23, 21, 25, 1);
    overflow-x: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Navigation bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(23, 21, 25, 1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-brand a:hover {
    border-bottom-color: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: white;
    border-bottom-color: white;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
}

/* Link styling */
a {
    color: #b8c3f0; /* Light blue that works well on dark backgrounds */
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    border-bottom-color: #b8c3f0;
}

/* Layout containers */
.page {
    display: grid;
    grid-template-columns: 1fr;
    height: 100vh;
    max-height: 100vh;
    position: relative;
    overflow: hidden;
}

.image-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    background-image: url('../johnagate.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    will-change: transform;
}

/* Dark overlay for mobile and small screens */
.image-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.6)
    );
}

.content-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem 2rem;
    background: transparent;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Desktop / landscape split layout */
@media (min-width: 900px) {
    .page {
        grid-template-columns: 1fr 1fr;
        background: #0b0b0b;
        height: 100vh;
        overflow: hidden;
    }

    .image-panel {
        position: relative;
        height: 100vh;
        width: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .image-panel::after {
        background: linear-gradient(
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.2)
        );
    }

    .content-panel {
        position: static;
        background: #171519;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 4rem;
        height: 100vh;
        overflow-y: auto;
        text-align: left;
    }

    h1, p {
        text-align: left;
    }
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
}
