/* ==========================================================================
   TRUE LIFE PRODUCTIONS - GLOBAL STYLE SYSTEM
   ========================================================================== */

/* Import Google Fonts - Prata and Source Sans Pro */
@import url('https://fonts.googleapis.com/css2?family=Prata&family=Source+Sans+Pro:wght@300;400;600;700;900&display=swap');

:root {
    /* Color Palette */
    --bg-main: #06070a;
    --bg-darker: #020305;
    --bg-lighter: #0d0f17;
    
    --primary: #ffffff; /* Modern Ivory / High-Contrast White */
    --primary-hover: #e0e0e0;
    --primary-glow: rgba(255, 255, 255, 0.15);
    
    --accent-red: #8f1b2c; /* Rose crimson */
    --accent-purple: #1e1343; /* Stage shadows */
    --accent-purple-light: #2c1a63;
    
    --text-main: #ffffff; /* pure white */
    --text-muted: #a3a7b5; /* Slate gray */
    --text-dark: #020305;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(255, 255, 255, 0.12);
    
    --glass-bg: rgba(6, 7, 10, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.6);

    /* Fonts */
    --font-heading: 'Prata', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
}

html, body {
    overflow-x: clip;
}

body {
    min-height: 100vh;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(223, 183, 92, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography styling */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
    color: var(--text-main);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    text-transform: uppercase;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

h2.center::after {
    left: 50%;
    transform: translateX(-50%);
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Spotlight Background Glows */
.spotlight-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(30, 19, 67, 0.35) 0%, rgba(6, 7, 10, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Glassmorphism Card Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(223, 183, 92, 0.15);
    box-shadow: 0 12px 40px 0 rgba(223, 183, 92, 0.05);
    transform: translateY(-4px);
}

/* Button UI system */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-main);
    transform: translateY(-2px);
}

.btn-gold-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-gold-outline:hover {
    background: var(--primary);
    color: var(--bg-main);
    box-shadow: 0 4px 15px var(--primary-glow);
    transform: translateY(-2px);
}

/* Container */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Section Spacing */
section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Global Announcement Banner */
.announcement-banner {
    display: none; /* Hide by default to prevent flashing LOADING BANNER on page loads */
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--bg-darker) 100%);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    font-weight: 500;
    z-index: 1001;
    position: relative;
}

/* Header & Navigation Bar */
header.global-header {
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
}

body.has-announcement header.global-header {
    top: var(--banner-height, 36px);
}

body.has-announcement header.global-header.scrolled {
    top: 0;
}

header.global-header.scrolled {
    background: rgba(2, 3, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 70px;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo-img {
    height: 46px; /* Optimized height for 80px header */
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
}

.logo a:hover .header-logo-img {
    transform: scale(1.04);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-main);
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

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

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    margin-bottom: 5px;
    transition: var(--transition-fast);
}

.mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Scroll Fade Animation utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Footer Section */
footer.global-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-info h3 span {
    color: var(--primary);
}

.footer-info p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--primary);
    color: var(--bg-main);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--text-main);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.back-to-top {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-lighter);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--bg-main);
    border-color: var(--primary);
}

/* Tablet Spacing and Padding Adjustments (1200px down to 768px) */
@media (max-width: 1200px) and (min-width: 768px) {
    .container {
        width: 94% !important; /* Increase width on tablet to maximize horizontal space */
    }
    section {
        padding: 4.5rem 0 !important; /* Reduce vertical padding to keep content dense */
    }
    /* Reduce column gaps in grids to prevent text squishing */
    .prod-row, 
    .workshop-row, 
    .play-grid, 
    .crowdfunder-grid, 
    .portal-grid, 
    .home-split-grid {
        gap: 2rem !important;
    }
    /* Moderate sub-page hero title scales */
    .page-hero h1, 
    .play-main-title {
        font-size: 2.5rem !important;
    }
}

/* General Layout Responsive Breaks */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    header.global-header {
        height: 70px;
        background: rgba(2, 3, 5, 0.95);
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .footer-logo-link {
        justify-content: center;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-links h4::after, .footer-contact h4::after {
        left: 50% !important;
        transform: translateX(-50%);
    }
    .footer-contact p {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-bottom > div {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-links ul {
        align-items: center;
    }
}

/* ==========================================================================
   THEATRICAL STAGE EFFECTS (SPOTLIGHTS)
   ========================================================================== */

/* Dynamic Cursor Mouse Spotlight Glow */
.mouse-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999; /* Sits on top of layouts to light up headings/cards */
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: radial-gradient(400px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), 
        rgba(255, 255, 255, 0.04) 0%, 
        rgba(255, 255, 255, 0.01) 45%, 
        transparent 80%);
}

body.mouse-active .mouse-spotlight {
    opacity: 1;
}

/* Modern link hover adjustments */
.btn:hover {
    letter-spacing: 0.12em; /* Fluid layout text expanding micro-moment */
}

/* ==========================================================================
   CARRD GALLERY BUTTONS WITH BLURRED IMAGE BACKGROUNDS
   ========================================================================== */

.carrd-btn-card {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.25rem;
    padding: 2.25rem 2rem;
    text-align: center;
}

/* The background image element inside the card */
.carrd-btn-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(0.48); /* Softly blurred background image */
    z-index: 1;
    transform: scale(1.15);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
}

.carrd-btn-card:hover {
    transform: translateY(-3px) scale(1.015);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.carrd-btn-card:hover .card-bg {
    transform: scale(1.08);
    filter: blur(8px) brightness(0.6); /* sharpens and brightens slightly on hover */
}

/* Card Content above the blurred image */
.carrd-btn-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Text adjustments for the button title and details */
.carrd-btn-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.carrd-btn-card-content p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Custom grid for small cards */
.carrd-small-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.carrd-small-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
}

.carrd-small-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.4);
    z-index: 1;
    transform: scale(1.12);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
}

.carrd-small-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.carrd-small-card:hover .card-bg {
    transform: scale(1.06);
    filter: blur(6px) brightness(0.5);
}

.carrd-small-card h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.15rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.carrd-small-card p {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Subpage Hero Custom Mobile Alignments */
@media (max-width: 992px) {
    .play-hero-bg.align-right {
        background-position: right center !important;
    }
}

/* Homepage Hero Background Video Preview */
.hero-bg-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Above fallback poster, below text content overlay */
    pointer-events: none;
}
.hero-bg-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* Scale to cover viewport height */
    transform: translate(-50%, -50%);
    opacity: 0; /* Fade in via JS to prevent white screen flash */
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}
.hero-bg-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}



/* ==========================================================================
   GLOBAL LIGHTBOX MODAL (USED FOR MEDIA GALLERY & VIDEOS)
   ========================================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 10, 0.96);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content iframe {
    width: 80vw;
    height: 45vw; /* 16:9 aspect ratio */
    max-width: 960px;
    max-height: 540px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
    z-index: 2100;
}
.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    padding: 1.5rem;
    transition: var(--transition-fast);
    z-index: 2100;
}
.lightbox-prev:hover, .lightbox-next:hover {
    opacity: 1;
    color: var(--primary);
}
.lightbox-prev {
    left: 2rem;
}
.lightbox-next {
    right: 2rem;
}
.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-body);
    letter-spacing: 0.1em;
    z-index: 2100;
}
@media (max-width: 768px) {
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-prev, .lightbox-next { font-size: 2.5rem; }
    .lightbox-content iframe {
        width: 95vw;
        height: 53.4vw;
    }
}

/* ==========================================================================
   PLAY DETAILS PAGE - FONT SIZE ENLARGEMENT OVERRIDES
   ========================================================================== */
.play-info-label {
    font-size: 0.85rem !important;
}
.play-info-value {
    font-size: 1.15rem !important;
}
.play-synopsis-text {
    font-size: 1.25rem !important;
    line-height: 1.8 !important;
}
.play-content-body p, 
.play-content-body li {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
}
.review-quote-text {
    font-size: 1.2rem !important;
    line-height: 1.7 !important;
}



/* Responsive Grid Overrides */
@media (max-width: 992px) {
    .home-portals-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    .footer-cta-divider {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 3rem;
    }
}
