/* 
 * Concept 2: The Theatrical Experience
 * A dramatic, immersive presentation that reflects the performing arts world
 */

/* Base Styles and Variables */
:root {
    /* Color Palette */
    --color-background: #0a0a0a;
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-accent: #d3a55c; /* Gold accent */
    --color-accent-secondary: #8b0000; /* Deep red/burgundy */
    --color-curtain: #3a0000; /* Deep burgundy for curtains */
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-medium: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    cursor: none; /* Hide default cursor for custom spotlight cursor */
}

/* Custom Spotlight Cursor */
.spotlight-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0.7;
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease, height 0.3s ease;
}

/* Curtain Effect */
.curtain {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 50%;
    background-color: var(--color-curtain);
    z-index: 1000;
    transition: transform var(--transition-slow);
}

.left-curtain {
    left: 0;
    transform: translateX(0);
    background-image: linear-gradient(to right, #2a0000, var(--color-curtain));
    box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.5);
}

.right-curtain {
    right: 0;
    transform: translateX(0);
    background-image: linear-gradient(to left, #2a0000, var(--color-curtain));
    box-shadow: inset 10px 0 20px rgba(0, 0, 0, 0.5);
}

body.loaded .left-curtain {
    transform: translateX(-100%);
}

body.loaded .right-curtain {
    transform: translateX(100%);
}

/* Stage Container */
.stage {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: var(--color-background);
    background-image: 
        linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 20%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0.9) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><path fill="%23222" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"/></svg>');
    background-size: cover, 4px 4px;
    overflow: hidden;
    padding-bottom: 60px; /* Space for footer */
}

.stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--color-background), transparent);
    z-index: 10;
}

.stage::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--color-background), transparent);
    z-index: 10;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

h1 {
    font-size: 4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h2 {
    font-size: 3rem;
    letter-spacing: 0.03em;
}

h3 {
    font-size: 2rem;
    letter-spacing: 0.02em;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--color-accent);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), transparent);
}

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

.logo-text {
    position: relative;
    display: inline-block;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.logo:hover .logo-text::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: var(--spacing-md);
}

.nav-link {
    position: relative;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    transition: all var(--transition-medium);
}

/* Scene Styles (Sections) */
.scene {
    min-height: auto;
    padding: var(--spacing-md) var(--spacing-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

/* Keep the hero section full height plus a bit extra */
#hero.scene {
    min-height: 100vh;
    height: 100vh;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Position the about section to be just barely out of sight */
#about.scene {
    margin-top: -20px; /* Pull it up slightly to be just below the viewport */
    padding-top: var(--spacing-lg); /* Add padding to compensate */
}

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

.scene-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.scene-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
    width: 100%; /* Ensure full width for the absolute positioned toggle */
}

.scene-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--color-accent);
}

/* Hero Section */
#hero {
    position: relative;
    text-align: center;
    height: 100vh;
    min-height: 500px; /* Ensure minimum height on small screens */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevent content overflow */
}

/* Make the next section just barely out of sight */
#hero::after {
    content: '';
    position: absolute;
    bottom: -20px; /* Slightly push the next section down */
    left: 0;
    width: 100%;
    height: 20px;
    background-color: transparent;
}

.spotlight {
    position: fixed; /* Fixed position to stay centered in viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 1;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        width: 300px;
        height: 300px;
        opacity: 0.5;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding: var(--spacing-md);
    /* Ensure content stays centered vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Adjust for the header to achieve perfect centering */
    transform: translateY(calc(var(--spacing-md) / 2));
    margin-top: 0;
    margin-bottom: 0;
}

.main-title {
    font-size: clamp(3rem, 8vw, 5rem); /* Responsive font size */
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease-out;
}

.subtitle {
    font-size: clamp(1.5rem, 4vw, 2rem); /* Responsive font size */
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease-out 0.3s both;
}

.roles {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 1.5s ease-out 0.6s both;
    gap: var(--spacing-xs); /* Add gap for wrapped items */
}

.role {
    font-size: clamp(0.9rem, 2vw, 1.2rem); /* Responsive font size */
    color: var(--color-text-muted);
    padding: 0 var(--spacing-xs);
}

.role-separator {
    color: var(--color-accent);
    font-size: 1.2rem;
}

/* Media query for small screens */
@media (max-width: 480px) {
    .roles {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .role-separator {
        display: none; /* Hide separators on mobile */
    }
    
    .role {
        padding: var(--spacing-xs) 0;
    }
}

.cta-container {
    animation: fadeIn 1.5s ease-out 0.9s both;
}

.cta-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    opacity: 0.2;
    transition: transform var(--transition-medium);
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-text);
    border-color: var(--color-accent);
}

.cta-button:hover::before {
    transform: translateX(100%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.2rem;
}

/* Production Cards */
.production-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-sm);
}

/* Expand/Collapse Functionality */
.expand-toggle {
    cursor: pointer;
    float: right;
    font-size: 0.8rem; /* Even smaller font size */
    color: var(--color-accent);
    transition: all var(--transition-medium);
    margin-right: var(--spacing-sm);
    position: absolute;
    right: 0;
    bottom: calc(var(--spacing-sm) + 0.3rem); /* Fine-tune baseline alignment */
    transform: none; /* Remove vertical centering */
    line-height: 1; /* Ensure proper line height */
}

.expand-toggle.collapsed {
    /* No rotation needed as we're explicitly setting the arrow character */
}

.additional-cards {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.additional-cards.visible {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-sm);
    opacity: 1;
    transform: translateY(0);
    margin-top: var(--spacing-sm);
}

.production-card {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(211, 165, 92, 0.2);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.production-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.production-spotlight {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211, 165, 92, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0;
    transition: all var(--transition-medium);
    z-index: 1;
}

.production-card:hover .production-spotlight {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.production-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-md);
}

.production-title {
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.production-role {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.production-description p {
    font-size: 0.95rem;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.skills-column {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(211, 165, 92, 0.1);
    border-radius: 5px;
    padding: var(--spacing-md);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.skills-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(211, 165, 92, 0.3);
}

.skills-category {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: var(--spacing-md);
}

.skills-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1.2rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    margin-bottom: var(--spacing-md);
}

.contact-label {
    display: block;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.contact-value {
    display: block;
    font-size: 1.1rem;
}

.contact-simple {
    text-align: center;
    margin: var(--spacing-xl) 0;
    position: relative;
}

.email-link {
    text-decoration: none;
    display: inline-block;
    padding: var(--spacing-md);
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: transform var(--transition-medium);
}

.email-link:hover {
    transform: translateY(-5px);
}

.email-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(211, 165, 92, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
    z-index: -1;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.email-link svg {
    max-width: 100%;
    position: relative;
    z-index: 1;
}

/* Add spotlight effect to the contact section */
.contact-simple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(211, 165, 92, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

/* Footer */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(211, 165, 92, 0.1);
}

.footer-content {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-medium);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: var(--spacing-sm) 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .production-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .roles {
        flex-direction: column;
    }
    
    .role-separator {
        display: none;
    }
    
    .scene {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
}