/* style.css */
/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.preloader-text {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background-color: #ff9a44;
    transition: width 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes curtainOpen {
    0% { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
    100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

@keyframes spotlight {
    0% { box-shadow: 0 0 30px 15px rgba(255, 200, 0, 0); }
    50% { box-shadow: 0 0 30px 15px rgba(255, 200, 0, 0.5); }
    100% { box-shadow: 0 0 30px 15px rgba(255, 200, 0, 0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

:root {
    --primary-color: #8e44ad;
    --secondary-color: #9b59b6;
    --accent-color: #e74c3c;
    --spotlight-color: #ffcc00;
    --light-color: #f5f5f5;
    --dark-color: #222;
    --text-color: #444;
    --curtain-color: #c0392b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #111;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Theater Curtain Effect */
.curtain-left, .curtain-right {
    position: fixed;
    top: 0;
    width: 50vw;
    height: 100vh;
    background-color: var(--curtain-color);
    z-index: 1000;
    transition: all 1.5s ease;
    background-image: linear-gradient(to bottom, var(--curtain-color), #a5281b);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.curtain-left {
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(0,0,0,0.1)" d="M0 0 L100 0 L100 100 Q50 80 0 100 Z"></path></svg>'), 
                    linear-gradient(to bottom, var(--curtain-color), #a5281b);
}

.curtain-right {
    right: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(0,0,0,0.1)" d="M0 0 L100 0 L0 100 Q50 80 100 100 Z"></path></svg>'), 
                    linear-gradient(to bottom, var(--curtain-color), #a5281b);
}

body.curtains-open .curtain-left {
    transform: translateX(-100%);
}

body.curtains-open .curtain-right {
    transform: translateX(100%);
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(255,255,255,0.05)" d="M30,50 Q50,30 70,50 Q50,70 30,50 Z"></path></svg>') repeat;
    opacity: 0.1;
    z-index: 1;
}

.small-title {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #fff, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--spotlight-color);
    animation: spotlight 3s infinite;
}

.univ-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.buy-ticket-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    text-decoration: none;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.buy-ticket-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.buy-ticket-btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.buy-ticket-btn:hover::before {
    left: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 4rem;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    pointer-events: none;
}

section:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

h2 {
    color: var(--spotlight-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--spotlight-color), var(--accent-color));
    border-radius: 3px;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.about-image:hover img {
    transform: scale(1.1);
}

.play-synopsis {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.play-text {
    flex: 2;
    min-width: 300px;
}

.play-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.play-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.play-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.play-image:hover img {
    transform: scale(1.1);
}

.authors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.author {
    display: flex;
    gap: 1.5rem;
    background: rgba(40, 40, 40, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--spotlight-color);
}

.author:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(50, 50, 50, 0.7);
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--spotlight-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.author:hover .author-image {
    transform: rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-info h3 {
    color: var(--spotlight-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.team-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background: rgba(40, 40, 40, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--spotlight-color);
    display: flex;
    gap: 1.5rem;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(50, 50, 50, 0.7);
}

.team-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--spotlight-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.team-member:hover .team-image {
    transform: rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    flex: 1;
}

.team-info h3 {
    color: var(--spotlight-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    height: 250px;
    transition: all 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item::before {
    content: ' ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Lightbox custom style */
.lightbox .lb-image {
    border: 5px solid #fff;
    border-radius: 3px;
}

footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(255,255,255,0.03)" d="M0 0 L100 0 L100 100 Q50 80 0 100 Z"></path></svg>');
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 2;
}

/* Theater Maskot Animation */
.theater-maskot {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 80px;
    height: 80px;
    background-image: url('images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 999;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.theater-maskot:hover {
    transform: scale(1.1);
    animation: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    font-size: 1.5rem;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .header-content {
        text-align: center;
    }
    
    .buy-ticket-btn {
        margin: 1.5rem auto 0;
    }
    
    section {
        padding: 1.5rem;
    }
    
    .team-section, .authors, .gallery {
        grid-template-columns: 1fr;
    }
    
    .theater-maskot {
        width: 60px;
        height: 60px;
        bottom: 20px;
        left: 20px;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
}