/* ========================================
   ACTOR CSS — raulcapote.es
   Actor/Director/Coach page-specific styles
   Hero section, signature, spotlights, particles
   ======================================== */

/* ===== ACTOR HEADER ===== */
.actor-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 5rem;
    z-index: 100;
}

.actor-logo {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: #fff;
    text-transform: uppercase;
}

.logo-name {
    font-weight: 600;
}

.logo-sep {
    color: rgba(255,255,255,0.3);
    font-weight: 300;
}

.logo-role {
    font-weight: 300;
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* ===== NEW DYNAMIC CINEMATIC GRID HERO ===== */
.cinematic-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #050300;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 4rem 4rem; /* space for header */
}

/* Vignette behind the grid to blend with the dark background */
.cinematic-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, #050300 100%);
    pointer-events: none;
    z-index: 5;
}

.cinematic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 6px;
    width: 100%;
    max-width: 1600px;
    position: relative;
    z-index: 1;
    grid-auto-flow: dense;
}

.grid-item {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    /* Hidden initially for GSAP stagger */
    opacity: 0;
    visibility: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
    will-change: transform;
    filter: grayscale(20%) contrast(1.1);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5,3,0,0.7), transparent 50%);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.15) brightness(1.05);
}

.grid-item:hover .item-overlay {
    opacity: 0.15;
}

/* ===== Mosaic Item Types ===== */

/* Eye close-up — the centerpiece */
.item-eyes {
    grid-column: span 2;
    grid-row: span 1;
}

.item-eyes img {
    transform: scale(1.8);
    transform-origin: 50% 38%;
}

.item-eyes:hover img {
    transform: scale(1.9);
}

/* Tall vertical portraits */
.item-tall {
    grid-row: span 2;
}

/* Wide horizontal shots */
.item-wide {
    grid-column: span 2;
}

/* Standard square */
.item-square {
    grid-column: span 1;
    grid-row: span 1;
}

/* Hero Headline overlaying the Grid */
.hero-headline-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    pointer-events: none; /* Let clicks pass through to grid */
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 6vw, 7rem);
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 20px 40px rgba(5,3,0,0.95), 0 4px 15px rgba(0,0,0,0.9);
    margin: 0;
}

/* ===== BRIEF BIO SECTION ===== */
.actor-bio {
    background-color: #050300;
    padding: 8rem 2rem;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
}

.bio-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
}

.bio-text strong {
    color: #fff;
    font-weight: 500;
}

/* Enhanced CTA Button */
.cta-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 1.2rem 3.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.cta-btn.secondary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.cta-btn.secondary:hover {
    color: #050300;
    border-color: #fff;
}

.cta-btn.secondary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .actor-header {
        padding: 2.5rem 3rem;
    }
}

@media (max-width: 1024px) {
    .cinematic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
        gap: 5px;
    }
    .item-wide { grid-column: span 2; }
    .item-eyes { grid-column: span 2; }
}

@media (max-width: 600px) {
    .actor-header {
        padding: 1.5rem;
    }
    .actor-logo {
        font-size: 0.9rem;
        gap: 0.8rem;
    }
    .cinematic-hero {
        padding: 8rem 1rem 2rem;
    }
    .cinematic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 4px;
    }
    .item-tall { grid-row: span 2; }
    .item-wide { grid-column: span 2; }
    .item-eyes { grid-column: span 2; }
    .hero-headline {
        font-size: clamp(2.5rem, 8vw, 3rem);
    }
}

/* Footer override */
footer {
    padding: 6rem 2rem;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 6rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.social-link {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
}

.social-link:hover {
    color: #fff;
}

.social-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

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