/* --- 1. GENERAL STYLES --- */
body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #ccc;
    font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    scroll-behavior: smooth;
}

/* --- 2. NAVIGATION (Floating Links) --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 0 80px;
    display: flex;
    justify-content: center; /* Centers the .nav-links group */
    z-index: 1000;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.nav-links {
    display: flex;
    justify-content: center; /* Items sit closely together */
    align-items: center; /* Vertically center all children */
    gap: 20px; /* Adjust this to make items closer or further */
    pointer-events: auto;
    box-sizing: border-box;
}

.nav-links a {
    text-decoration: none;
    color: #aaa;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    line-height: 1; /* Normalize height */
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    /* font-weight: 700;  REMOVED to prevent jumping */
    transform: scale(1.1);
    text-shadow: 0 0 1px #fff, 0 0 1px #fff; /* Simulates bold without changing width */
}

.nav-links span {
    color: #666;
    font-size: 20px;
    font-weight: 700;
    line-height: 1; /* Normalize height */
    margin-bottom: 2px; /* Small nudge to align visually */
}

/* --- 3. CORNER LOGO (Hidden on Home) --- */
.corner-logo {
    position: fixed;
    top: 25px;
    left: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.corner-logo img {
    height: 160px;
}

.corner-logo.visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- 4. SECTIONS COMMON --- */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 20px;
    box-sizing: border-box;
}

.section-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding-left: 100px; /* Shift content to the right */
    box-sizing: border-box;
}

h2 {
    font-size: 24px; /* Increased from 18px */
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 2px;
    font-weight: 400;
}

p {
    line-height: 1.8;
    font-size: 18px; /* Increased from 16px */
    color: #666;
    max-width: 650px;
    margin-bottom: 40px;
}

/* --- 5. HOME SECTION --- */
#home {
    align-items: center;
    text-align: center;
    padding: 0;
}

.hero-logo {
    width: 600px;
    max-width: 90vw;
    margin-bottom: 30px;
}

/* --- 6. P13 PROJECT SECTION --- */
#p13 {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

#p13 .section-content {
    /* Title and text stay aligned */
    padding-bottom: 40px;
    padding-left: 100px;
}

.video-container {
    width: 100vw;
    height: 500px; /* Fixed vertical size */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* Center horizontally */
    margin-right: -50vw;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: none;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transform-origin: top;
}

/* --- 7. ABOUT SECTION --- */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: grayscale(1) brightness(0.7);
    transition: all 0.3s ease;
}

.social-links a:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1);
}

/* --- 8. CONTACT FORM --- */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
}

label {
    margin-bottom: 10px;
    font-size: 14px; /* Slightly larger labels */
    color: #888; /* Gray labels from reference */
    text-transform: none; /* Reference shows "Name", not "NAME" */
    letter-spacing: 1px;
}

input,
textarea {
    background-color: #888; /* Medium gray background from reference */
    border: none;
    padding: 15px;
    margin-bottom: 25px;
    color: #000; /* Dark text on light background */
    font-size: 16px;
    font-family: inherit;
}

button {
    background-color: #888; /* Same gray as inputs */
    color: #000; /* Dark text */
    border: none;
    padding: 12px 45px;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    width: fit-content;
    transition: background 0.3s;
}

button:hover {
    background-color: #999;
}

/* --- 9. MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    /* Reset padding for small screens */
    .section-content,
    #p13 .section-content {
        padding-left: 0; /* Align left naturally or center if desired */
        padding-right: 0;
        text-align: center; /* Center text on mobile usually looks better */
    }

    /* Center aligns children */
    .section-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Adjust Corner Logo */
    .corner-logo {
        display: none !important; /* Hide on mobile to prevent overlapping */
    }

    /* Adjust Nav */
    nav {
        padding: 20px 0 40px; /* Smaller nav area */
    }
    .nav-links {
        gap: 15px;
    }
    .nav-links a {
        font-size: 14px; /* Smaller text */
    }

    /* Adjust Video Height */
    .video-container {
        height: 300px; /* Shorter video on mobile */
    }

    /* Center Form */
    form {
        width: 100%;
    }
}
