/* ==========================================================================
   1. GLOBAL RESETS & STYLING LOGIC
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #121212 0%, #1c1c1e 100%);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Stacks components top-to-bottom */
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px; /* Creates clearance beneath the navigation bar */
}

/* ==========================================================================
   2. FIXED NAVIGATION BAR STYLES
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #121212;
    border-bottom: 1px solid #1c1c1e;
    z-index: 1000;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f2f2f7;
}

.nav-links {
    display: flex;
    list-style: none; /* Removes browser bullet circles */
    gap: 30px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #8e8e93;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #ffffff;
}

/* Responsive Hamburger Menu Trigger Layouts (Hidden on Desktop) */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* ==========================================================================
   3. INDEX / HOME PAGE HERO WIDESCREEN SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9; /* Enforces strict film widescreen configuration */
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #2c2c2e;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin-top: 40px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.75); /* Dark cinematic focus filter layer */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 8px;
    color: #f2f2f7;
}

.subtitle {
    font-size: 1.2rem;
    color: #8e8e93;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portfolio-btn {
    display: inline-block;
    text-decoration: none;
    background-color: #2c2c2e;
    color: #ffffff;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid #48484a;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.portfolio-btn:hover {
    background-color: #ffffff;
    color: #121212;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. PROJECTS / PORTFOLIO INTRO HEADER SECTION
   ========================================================================== */
.portfolio-header {
    width: 100%;
    max-width: 900px; /* Matches the content boundaries of your 2x2 grid */
    text-align: left;
    margin: 40px auto 60px auto; /* 60px bottom space cleanly pushes the grid away */
    padding: 0 10px;
}

.portfolio-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #f2f2f7;
    margin-bottom: 8px;
}

.portfolio-header p {
    color: #8e8e93;
    font-size: 1rem;
}

/* ==========================================================================
   5. 2x2 SQUARE PORTAL TRACKING SYSTEM
   ========================================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Forms symmetrical two-column grid tracks */
    gap: 24px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    aspect-ratio: 1 / 1; /* Enforces strict mathematical square layouts */
    background-color: #1c1c1e;
    border: 1px solid #2c2c2e;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
    /* Includes transition hooks to manage zooming background sizing textures later */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-size 0.4s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(28,28,30,0.2) 0%, rgba(18,18,18,0.8) 100%);
    z-index: 1;
    transition: background-color 0.3s ease;
}

.category-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px;
}

.category-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.category-content p {
    color: #8e8e93;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.category-content p span {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* --- GRID MOTION ACTIONS --- */
.category-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: #ffffff;
}

.category-card:hover .category-overlay {
    background-color: rgba(255, 255, 255, 0.02);
}

.category-card:hover .category-content p {
    color: #ffffff;
}

.category-card:hover .category-content p span {
    transform: translateX(4px);
}

/* ==========================================================================
   6. CARDS ASSET BACKGROUND BACKGROUND HOOKS (PLACEHOLDERS)
   ========================================================================== */
.bg-photography {
    background-color: #2c2c2e;
    background-size: cover;
    background-position: center;
}

.bg-videography {
    background-color: #3a3a3c;
    background-size: cover;
    background-position: center;
}

.bg-live-events {
    background-color: #2c2c2e;
    background-size: cover;
    background-position: center;
}

.bg-vfx {
    background-color: #3a3a3c;
    background-size: cover;
    background-position: center;
}

/* ==========================================================================
   7. CINEMATIC TEXT ANIMATIONS
   ========================================================================== */
.animate-fade-in {
    opacity: 0;
    animation: cinematicReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes cinematicReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ==========================================================================
   8. MOBILE RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {

      /* Overrides the home page container layout on mobile phones */
    .hero-section {
        width: 95%; /* Expands the card to fill more edge-to-edge screen space */
        aspect-ratio: 3 / 4; /* Changes the shape to a tall portrait frame instead of a squished 16:9 track */
        margin-top: 20px;
    }

    /* Scales down the text size slightly so it fits elegantly inside the phone frame */
    .name {
        font-size: 2.2rem; /* Shrinks your name from 3rem so it doesn't wrap awkwardly */
        letter-spacing: -0.5px;
    }

    .subtitle {
        font-size: 0.95rem; /* Shrinks the subtitles to fit comfortably on one line */
        letter-spacing: 1px;
        margin-bottom: 24px;
    }
    
    .portfolio-btn {
        padding: 12px 24px; /* Slightly tightens up button padding for touch screen precision */
        font-size: 0.95rem;
    }
}
    .navbar {
        padding: 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #121212;
        border-bottom: 1px solid #1c1c1e;
        padding: 20px 0;
        text-align: center;
        gap: 20px;
    }

    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 600px) {
    /* Collapses the 2x2 layout tracking path down to a stack when on mobile viewports */
    .category-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* ==========================================================================
   9. PHOTOGRAPHY GALLERY STYLES
   ========================================================================== */
.photo-portfolio-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding-top: 40px;
}

/* Elegant minimalist back arrow link */
.back-link {
    display: inline-block;
    color: #8e8e93;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #ffffff;
}

/* Individual project container blocks */
.photo-project-section {
    margin-bottom: 80px; /* Big space between separate projects */
    text-align: left;
    width: 100%;
}

.project-meta {
    margin-bottom: 24px;
    border-left: 2px solid #2c2c2e;
    padding-left: 16px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.project-desc {
    color: #8e8e93;
    font-size: 0.95rem;
}

/* The photo layouts - adjusts gracefully from a grid on desktop to single column on mobile */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
}

.photo-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2; /* Common photography dimension */
    background-color: #1c1c1e;
    border: 1px solid #2c2c2e;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

/* Temporary placeholder box style */
.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #48484a;
    font-size: 0.85rem;
    letter-spacing: 1px;
    background-color: #1c1c1e;
}

/* Subtle frame highlights when hovering over images */
.photo-item:hover {
    border-color: #8e8e93;
    transform: scale(1.01);
}

/* ==========================================================================
   10. MIXED ASPECT RATIO RESPONSIVE PHOTO GRID
   ========================================================================== */

/* Enforces exactly 3 columns on desktop screens, shrinking down gracefully on mobile */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Exactly 3 even tracks per row */
    gap: 20px;
    width: 100%;
}

/* Base image container box acting as a strict cropping lens */
.photo-item {
    position: relative;
    width: 100%;
    background-color: #1c1c1e;
    border: 1px solid #2c2c2e;
    border-radius: 8px;
    overflow: hidden; /* Critically chops off the rest of the giant 4000px photo */
    transition: border-color 0.3s ease, transform 0.3s ease;
}

/* Forces vertical frames into an elegant portrait shape */
.photo-item.vertical-frame {
    aspect-ratio: 4 / 5;
}

/* Forces horizontal frames into a cinematic widescreen shape */
.photo-item.horizontal-frame {
    aspect-ratio: 16 / 9;
}

/* Forces your giant raw photos to instantly shrink and scale to fit inside the frame */
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Shrinks the giant image to fill the frame without distortion */
    object-position: center; /* Centers the crop boundary on your photo's focus */
    display: block;
}

.photo-item:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* --- MOBILE LAYOUT ADJUSTMENTS --- */
@media (max-width: 900px) {
    /* Drops down to 2 columns on tablets so the 4:5 files don't look too squished */
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    /* Drops down to 1 single column on mobile devices */
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   11. STACKED VERTICAL VIDEO TRACK LIST (LIVE EVENTS)
   ========================================================================== */

/* Main vertical layout manager container */
.video-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 32px; /* Uniform breathing room gap between separate horizontal rows */
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Individual full-width hyperlink row card */
.video-list-item {
    display: flex;
    align-items: center;
    background-color: #1c1c1e;
    border: 1px solid #2c2c2e;
    border-radius: 10px;
    text-decoration: none; /* Destroys default link browser text underlines */
    overflow: hidden;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

/* 16:9 cinematic thumbnail box structure layout on the left side */
.video-list-preview {
    position: relative;
    width: 280px; /* Stationary structural frame width on wide screen monitors */
    min-width: 280px;
    aspect-ratio: 16 / 9; /* Traditional widescreen dimension lock */
    background-color: #2c2c2e; /* Solid background palette before applying image files */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.play-icon {
    font-size: 1.5rem;
    color: #8e8e93;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Production text overview text parameters layout block on the right side */
.video-list-details {
    padding: 24px 32px;
    text-align: left;
    flex-grow: 1;
}

.video-list-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.video-list-desc {
    color: #8e8e93;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.video-list-action {
    color: #8e8e93;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

/* --- MOVEMENT DESIGN TRACK ON CARD HOVER --- */
.video-list-item:hover {
    transform: translateY(-2px);
    border-color: #ffffff; /* Turns border crisp bright white on hover */
}

.video-list-item:hover .video-list-preview {
    background-color: rgba(255, 255, 255, 0.03); /* Introduces a smooth inner lens flare */
}

.video-list-item:hover .play-icon {
    color: #ffffff;
    transform: scale(1.15); /* Scales play icon forward smoothly */
}

.video-list-item:hover .video-list-action {
    color: #ffffff;
    transform: translateX(4px); /* Pushes CTA text string forward slightly */
}

/* --- SMARTPHONE VIEWPORT MEDIA BREAK TRACKS --- */
@media (max-width: 768px) {
    /* Shifts the horizontal row architecture into vertical blocks on phone layouts */
    .video-list-item {
        flex-direction: column;
    }
    
    .video-list-preview {
        width: 100%;
        min-width: 100%; /* forces widescreen preview banner to drop directly over text */
    }
    
    .video-list-details {
        padding: 20px;
    }
}

/* ==========================================================================
   12. AUTOMATIC EMBED IFRAME COMPLIANCE STYLES
   ========================================================================== */

/* Overrides the left frame specifically to lock video players into a fluid 16:9 shape */
.video-list-preview-embed {
    width: 320px; /* Gives the automatic player a slightly larger track window */
    min-width: 320px;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

/* Forces the YouTube/Vimeo iframe code block to expand and fit perfectly inside its track */
.video-list-preview-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- RESPONSIVE DROPDOWN BREAKS FOR IFRAMES --- */
@media (max-width: 768px) {
    .video-list-preview-embed {
        width: 100%;
        min-width: 100%; /* Stacks the automatic video cleanly above the description text on phones */
    }
}

/* ==========================================================================
   14. VFX BEFORE & AFTER STILL OVERLAYS
   ========================================================================== */
.vfx-card {
    position: relative;
}

/* Base structural layout for the labels */
.vfx-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    pointer-events: none; /* Prevents text from blocking hover actions */
}

/* Dark professional subtle gray for original raw plate footages */
.before-label {
    background-color: #2c2c2e;
    color: #aeaea2;
    border: 1px solid #48484a;
}

/* Bright contrast white layer for finished work highlights */
.after-label {
    background-color: #ffffff;
    color: #121212;
}

/* Semi-transparent accent badge for breakdown/matte passes */
.breakout-label {
    background-color: rgba(18, 18, 18, 0.8);
    color: #ffffff;
    border: 1px solid #2c2c2e;
}

