﻿/* style.css - Riggs AVP Portfolio - MINIMALIST VERSION */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
    position: relative;
}

/* Vignette Effect - darkens edges of webpage */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.4) 80%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* ============================================
   EXTENDED HERO SECTION - FIXED BACKGROUND
   ============================================ */

.hero-extended {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Show active photo */
.hero-photo.active {
    opacity: 1;
}

/* Soft gradient edges on top and bottom of photos */
.hero-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        transparent 15%,
        transparent 85%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

/* Z-index layering - higher numbers overlay lower numbers */
.hero-photo:nth-child(1) { z-index: 1; }
.hero-photo:nth-child(2) { z-index: 2; }
.hero-photo:nth-child(3) { z-index: 3; }
.hero-photo:nth-child(4) { z-index: 4; }
.hero-photo:nth-child(5) { z-index: 5; }
.hero-photo:nth-child(6) { z-index: 6; }
.hero-photo:nth-child(7) { z-index: 7; }
.hero-photo:nth-child(8) { z-index: 8; }
.hero-photo:nth-child(9) { z-index: 9; }
.hero-photo:nth-child(10) { z-index: 10; }
.hero-photo:nth-child(11) { z-index: 11; }
.hero-photo:nth-child(12) { z-index: 12; }
.hero-photo:nth-child(13) { z-index: 13; }
.hero-photo:nth-child(14) { z-index: 14; }
.hero-photo:nth-child(15) { z-index: 15; }
.hero-photo:nth-child(16) { z-index: 16; }

.hero-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hide hero content when scrolled past first viewport */
body.scrolled .hero-content {
    opacity: 0;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 30px rgba(0, 255, 255, 0.3));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700; /* BOLD font weight */
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #00ffff;
    /* BLACK OUTLINE - 0.3px as requested */
    -webkit-text-stroke: 0.3px #000;
    text-stroke: 0.3px #000;
    /* Fallback shadow for browsers without text-stroke */
    text-shadow: 
        -0.3px -0.3px 0 #000,  
        0.3px -0.3px 0 #000,
        -0.3px 0.3px 0 #000,
        0.3px 0.3px 0 #000,
        0 0 20px rgba(0, 255, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600; /* Semi-bold for subtitle */
    letter-spacing: 0.1em;
    color: #cccccc;
    margin-bottom: 2rem;
}

.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #00ffff;
    z-index: 100;
    animation: bounce 2s infinite;
    pointer-events: all;
    cursor: pointer;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 1;
    transition: opacity 0.5s ease; /* Smooth fade transition */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   VIDEO GALLERY SECTIONS - NORMAL FLOW
   ============================================ */

.gallery-section-overlay {
    position: relative;
    padding: 6rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    z-index: 50; /* Above hero photos */
}

/* Demo Reel Section - First gallery starts at 100vh from top */
.gallery-section-overlay.demo-reel-section {
    margin-top: 100vh; /* Starts at 100vh from top of page */
}

/* Other sections stack normally after demo reel */
.gallery-section-overlay:not(.demo-reel-section) {
    margin-top: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; /* BOLD font weight */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00ffff; /* TEAL color matching hero title */
    margin-bottom: 1rem;
    opacity: 0.95;
    /* BLACK OUTLINE - matching hero title */
    -webkit-text-stroke: 0.3px #000;
    text-stroke: 0.3px #000;
    /* Fallback shadow and GLOW effect */
    text-shadow: 
        -0.3px -0.3px 0 #000,  
        0.3px -0.3px 0 #000,
        -0.3px 0.3px 0 #000,
        0.3px 0.3px 0 #000,
        0 0 20px rgba(0, 255, 255, 0.5),
        0 0 40px rgba(0, 255, 255, 0.3);
}

/* ============================================
   VIDEO GRID - 2 COLUMNS (LARGER THUMBNAILS)
   ============================================ */

.video-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* CHANGED: From auto-fill to 2 columns */
    gap: 40px; /* INCREASED: From 2rem for better spacing */
}

/* Demo Reel Grid - Full Width */
.demo-reel-grid {
    grid-template-columns: 1fr; /* Single column for demo reel */
}

/* ============================================
   FEATURED VIDEO CARD (DEMO REEL) - FULL WIDTH
   ============================================ */

.video-card.featured {
    grid-column: 1 / -1;
    max-width: 100%;
}

.video-card.featured .video-thumbnail {
    padding-top: 42%; /* Wider aspect ratio for featured video */
}

.video-card.featured .video-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* REMOVED: .video-info from featured card - no titles */

.video-card.featured .play-button {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}

/* ============================================
   VIDEO CARD - BORDERLESS & CLEAN
   ============================================ */

.video-card {
    /* REMOVED: background, border, border-radius for minimalist look */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.video-thumbnail img,
.video-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* REMOVED: border, outline for clean look */
}

.video-card:hover .video-thumbnail img,
.video-card:hover .video-thumbnail video {
    transform: scale(1.02); /* Subtle zoom on hover */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0a0a0a;
    transition: transform 0.3s ease;
}

.video-card:hover .play-button {
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 400;
}

/* REMOVED: .video-info, .video-title, .video-meta - no titles under videos */

/* ============================================
   VIDEO MODAL
   ============================================ */

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 1400px;
    width: 100%;
    background: #0a0a0a;
    border-radius: 0;
    overflow: hidden;
    border: none; /* REMOVED: border for cleaner look */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
    padding: 1.5rem;
    background: #0f0f0f;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: flex-end; /* Push close button to right */
    align-items: center;
}

.modal-title {
    display: none; /* HIDDEN - No video titles displayed */
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    font-weight: 200;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

#modal-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */

.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
    color: #888;
    font-size: 1.2rem;
    font-weight: 300;
}

.empty-state,
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-state h2,
.error-state h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1rem;
}

.empty-state p,
.error-state p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #888;
    margin-bottom: 2rem;
}

.error-state button {
    background: #00ffff;
    color: #0a0a0a;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 400;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.error-state button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .video-gallery {
        gap: 30px;
    }
    
    .gallery-section-overlay {
        padding: 5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-photo {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 0.15em;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-logo {
        max-width: 350px;
    }
    
    .section-title {
        font-size: 2rem;
        letter-spacing: 0.1em;
        font-weight: 700; /* Keep bold on mobile */
    }
    
    .video-gallery {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 30px;
    }
    
    .video-modal {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .gallery-section-overlay {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-photo {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-logo {
        max-width: 280px;
    }
    
    .video-gallery {
        gap: 20px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .video-card.featured .play-button {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .gallery-section-overlay {
        padding: 3rem 1rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.video-card,
.hero-photo,
.video-modal {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

html {
    scroll-behavior: smooth;
}

.video-thumbnail img,
.video-thumbnail video {
    background-color: #000;
}