/* ========================================
   NINO MARTINEZ - BDANIEL STYLE
   Cinematic Dark Portfolio
   ======================================== */

/* Variables */
:root {
    --bg-dark: #080808;
    --bg-darker: #050505;
    --bg-card: #0f0f0f;
    --gold: #c9a84c;
    --gold-light: #d4b65f;
    --gold-dark: #a88a36;
    --white: #ffffff;
    --white-muted: rgba(255, 255, 255, 0.7);
    --white-dim: rgba(255, 255, 255, 0.4);
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Film Grain Overlay */
.film-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Label */
.section-label {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

.label-dash {
    width: 30px;
    height: 1px;
    background: var(--gold);
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 30px 0;
    transition: all var(--transition-medium);
}

.nav.scrolled {
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

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

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white-muted);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition-medium);
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-toggle span {
    width: 30px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
    pointer-events: none;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
}

.hero-img-1 {
    animation: heroFade1 16s ease-in-out infinite, heroZoom1 16s ease-in-out infinite;
}

.hero-img-2 {
    animation: heroFade2 16s ease-in-out infinite, heroZoom2 16s ease-in-out infinite;
}

@keyframes heroFade1 {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes heroFade2 {
    0%, 45% { opacity: 0; }
    50%, 95% { opacity: 1; }
    100% { opacity: 0; }
}

/* Slow push in, hold through fade, reset while hidden */
@keyframes heroZoom1 {
    0% { transform: scale(1); }
    45% { transform: scale(1.06); }
    50% { transform: scale(1.06); }
    70% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes heroZoom2 {
    0% { transform: scale(1); }
    20% { transform: scale(1); }
    50% { transform: scale(1); }
    95% { transform: scale(1.06); }
    100% { transform: scale(1.06); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 8, 8, 0.4) 0%,
        rgba(8, 8, 8, 0.6) 50%,
        rgba(8, 8, 8, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 30px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
    white-space: nowrap;
}

.title-outline {
    display: inline;
    -webkit-text-stroke: 1px var(--white);
    color: transparent;
    letter-spacing: 0.2em;
}

.title-solid {
    display: inline;
    color: var(--white);
    letter-spacing: 0.15em;
}

.title-ace {
    font-size: 1em;
    color: var(--gold);
    letter-spacing: 0.1em;
    vertical-align: baseline;
}

.hero-credentials {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white-dim);
}

.hero-credentials .divider {
    color: var(--gold);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--white-dim);
}

.scroll-text {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: 50px 0 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--gold);
    z-index: -1;
}

.about-image-inner {
    overflow: hidden;
}

.about-image img {
    width: 100%;
    filter: grayscale(30%);
    transition: filter var(--transition-medium);
    animation: aboutZoom 20s ease-in-out infinite alternate;
}

.about-image:hover img {
    filter: grayscale(0%);
}

@keyframes aboutZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.about-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--white);
}

.about-bio {
    margin-bottom: 40px;
}

.about-bio p {
    margin-bottom: 20px;
    color: var(--white-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.about-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    text-align: center;
    padding: 15px 10px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.05);
    min-width: 0;
    flex: 1;
}

.badge-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 5px;
}

.badge-value {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--white);
}

/* ========================================
   DEMO REEL
   ======================================== */
.reel {
    padding: 100px 0 150px;
    background: var(--bg-darker);
}

.reel-content {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--bg-darker);
    border: none;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-facade {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    min-width: 68px;
    min-height: 48px;
    transition: transform var(--transition-medium), opacity var(--transition-medium);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: none;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.video-facade.playing .video-poster,
.video-facade.playing .video-play-btn {
    display: none;
}

.video-facade iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.reel-description {
    margin-top: 30px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--white-dim);
}

/* ========================================
   NETWORKS
   ======================================== */
.networks {
    padding: 100px 0 120px;
}

.networks-intro {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--white-muted);
    margin-bottom: 50px;
}

.networks-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.network-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    aspect-ratio: 2/1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-medium);
}

.network-logo:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.network-logo img {
    max-width: 60px;
    max-height: 30px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 0.7;
    transition: all var(--transition-medium);
}

.network-logo:hover img {
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 1;
}

/* ========================================
   SHOWS
   ======================================== */
.shows {
    padding: 100px 0 150px;
    background: var(--bg-darker);
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.show-card {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.show-image {
    width: 100%;
    height: 100%;
}

.show-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.show-card:hover .show-image img {
    transform: scale(1.1);
}

.show-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

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

/* Show overlay on touch devices */
@media (hover: none) {
    .show-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(8, 8, 8, 0.9) 0%, transparent 60%);
    }
}

.show-network {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.show-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.show-role {
    font-size: 0.8rem;
    color: var(--white-muted);
    margin-bottom: 15px;
}

.play-btn {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 10px 20px;
    transition: all var(--transition-fast);
}

.play-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: 100px 0 120px;
    text-align: center;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 20px;
}

.contact-text {
    font-size: 1.125rem;
    color: var(--white-muted);
    margin-bottom: 50px;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--white-dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 18px 40px;
    background: var(--gold);
    border: none;
    color: var(--bg-dark);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    align-self: flex-start;
}

.contact-form button:hover {
    background: var(--gold-light);
}

.contact-email {
    font-size: 1rem;
    color: var(--white-muted);
    margin-bottom: 30px;
}

.contact-email a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-email a:hover {
    color: var(--gold-light);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact-btn {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 18px 40px;
    border: 1px solid var(--white-dim);
    color: var(--white);
    transition: all var(--transition-medium);
}

.contact-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.contact-btn-primary {
    border-color: var(--gold);
    color: var(--gold);
}

.contact-btn-primary:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.contact-social {
    display: flex;
    gap: 20px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--white-muted);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--white-dim);
}

.back-to-top {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white-muted);
    transition: all var(--transition-fast);
}

.back-to-top:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ========================================
   VIDEO MODAL
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.modal-close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.modal-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--bg-card);
}

.modal-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.9);
    color: var(--bg-dark);
    border: none;
    width: 60px;
    height: 60px;
    min-width: 44px;
    min-height: 44px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2100;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
}

.modal-nav:hover {
    background: var(--gold);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .networks-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .shows-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .networks-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right var(--transition-medium);
        z-index: 1500;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1600;
        position: relative;
    }

    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-link {
        font-size: 1rem;
    }

    section {
        padding: 100px 0;
    }

    .networks-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shows-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-badges {
        flex-direction: column;
        gap: 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        white-space: normal;
        text-align: center;
        padding: 0 10px;
    }

    .title-outline {
        display: block;
        letter-spacing: 0.15em;
        margin-bottom: 5px;
    }
    
    .title-solid {
        display: block;
        letter-spacing: 0.05em;
        font-size: 0.85em;
    }

    .hero-credentials {
        flex-direction: column;
        gap: 10px;
    }

    .hero-credentials .divider {
        display: none;
    }

    .networks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shows-grid {
        grid-template-columns: 1fr;
    }

    .contact-social {
        flex-direction: column;
    }
}
