:root {
    --bg-color: #0b0b0c;
    --border-color: #e0e0e0;
    --text-color: #f0f0f0;
    --muted-text: #a0a0a0;
    --accent-color: #ffffff;
    --header-total-height: 100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Lock root window and apply technical grid background */
html, body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Fixed Top Header Anchor */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-total-height);
    background-color: rgba(11, 11, 12, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}

/* The Rounded Header Wireframe Box */
.header-capsule {
    width: 100%;
    max-width: 1600px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
}

.logo {
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 1.1rem;
    color: var(--accent-color);
    text-decoration: none;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.6;
}

/* Internal Scrollable Viewport */
.app-view {
    position: absolute;
    top: var(--header-total-height);
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--header-total-height));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 10px 40px 10px;
    display: flex;
    justify-content: center;
}

/* Master Outer Wireframe Capsule */
.master-container {
    width: 100%;
    max-width: 1600px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    background-color: var(--bg-color);
}

/* Section 1: Hero Video Reel Fold */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.video-capsule {
    width: 75%;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    background: #000;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
}

/* Section 2: Details Fold */
.details-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 20px;
}

.top-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

.content-capsule {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    background-color: var(--bg-color);
}

.content-capsule h3 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--accent-color);
    text-transform: uppercase;
}

/* Shot Breakdown List */
.shot-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shot-list li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted-text);
}

.shot-list li strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 2px;
}

/* About Me Typography */
.about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted-text);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-text p {
    color: var(--muted-text);
}

.social-links {
    margin-top: 10px;
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--accent-color);
    text-decoration: underline;
    font-size: 0.9rem;
}

/* Resume Section Capsule */
.resume-capsule {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.resume-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resume-btn {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
}

.resume-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.resume-preview-container {
    width: 100%;
    max-width: 900px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

.resume-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.resume-img:hover {
    opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .video-capsule {
        width: 88%;
    }
    .top-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-total-height: 120px;
    }
    .site-header {
        padding: 10px 10px;
    }
    .header-capsule {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 16px;
    }
    .master-container {
        padding: 10px;
        gap: 20px;
    }
    nav {
        gap: 16px;
        font-size: 0.85rem;
    }
    .video-capsule {
        width: 95%;
        padding: 10px;
    }
}