/* ===========================
   CSS Reset & Base Styles
   =========================== */
html {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
}

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

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

:root {
    /* Color Palette */
    --primary-color: #d4145a;
    --secondary-color: #1a472a;
    --accent-color: #f39c12;
    --dark-bg: #0a0a0a;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --persian-green: #00a693;
    --persian-red: #ee1c25;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
    margin: 0 !important;
    transform: translateY(0) !important;
}

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

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

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

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

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

.btn-nav {
    background: var(--primary-color);
    padding: 10px 25px !important;
    border-radius: 25px;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 20, 90, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(243, 156, 18, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 150px 20px 100px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 1rem;
}

.detail-item .icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(212, 20, 90, 0.3);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--dark-bg);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
    display: block;
}

/* ===========================
   About Section
   =========================== */
.about-section {
    padding: var(--section-padding);
    background: var(--light-bg);
}

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

.lead-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(212, 20, 90, 0.2);
}

.highlight-text {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin: 0 !important;
}

.call-to-action-text {
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    color: var(--secondary-color);
}

/* ===========================
   Event Details Section
   =========================== */
.event-details-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.event-details-section .section-title {
    color: var(--text-light);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(212, 20, 90, 0.3);
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon svg {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
}

.event-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.event-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===========================
   Cause Section
   =========================== */
.cause-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--secondary-color), #0f2818);
    color: var(--text-light);
}

.cause-section .section-title {
    color: var(--text-light);
}

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

.cause-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.cause-values {
    display: flex;
    justify-content: space-around;
    margin-top: 60px;
    gap: 30px;
    flex-wrap: wrap;
}

.value-item {
    text-align: center;
}

.value-item h3 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-family: var(--font-display);
    text-shadow: 0 0 30px rgba(243, 156, 18, 0.6), 0 0 60px rgba(243, 156, 18, 0.4);
}

.value-item p {
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===========================
   Performers Section
   =========================== */
.performers-section {
    padding: var(--section-padding);
    background: var(--light-bg);
    overflow: visible;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: visible;
    padding: 20px 70px; /* Increased padding avoids button crowding */
}

.slides-track {
    overflow: hidden;
    border-radius: 5px;
    padding: 10px; /* Safe padding for side shadows */
    touch-action: pan-y; /* Enable proper touch handling */
}

.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    padding: 40px 0; /* Vertical padding only */
    touch-action: pan-y; /* Improve touch handling on mobile */
}

.performer-slide {
    min-width: calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    flex-shrink: 0;
}

.performer-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.performer-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.performer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.performer-slide:hover .performer-image {
    transform: scale(1.1);
}

.performer-info {
    padding: 30px;
    text-align: center;
}

.performer-info h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.performer-role {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.performer-info p:not(.performer-role) {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.performer-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.performer-description.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 5px -10px; /* Adjust margin to compensate */
    padding: 10px; /* Increase hit area */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative; /* Ensure z-index works if needed */
    z-index: 5; /* Ensure above other elements */
}

.read-more-btn:hover {
    color: var(--accent-color);
}

/* Navigation Buttons */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slide-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slide-nav svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
    transition: var(--transition);
}

.slide-nav:hover svg {
    color: white;
}

.slide-nav.prev {
    left: 0;
}

.slide-nav.next {
    right: 0;
}

/* Slide Indicators */
.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.slide-indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Old styles - keep for fallback */
.performers-grid {
    display: none;
}

.performer-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.performer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.performer-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.performer-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.performer-card p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===========================
   Tickets Section
   =========================== */
.tickets-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    text-align: center;
}

.tickets-section .section-title {
    color: var(--text-light);
}

.tickets-text {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.tickets-cta {
    margin-bottom: 40px;
}

.btn-large {
    padding: 20px 60px;
    font-size: 1.2rem;
    background: var(--dark-bg);
    color: var(--text-light);
}

.btn-large:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.social-share {
    margin-top: 40px;
}

.social-share p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3, .footer h4 {
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1rem;
        max-width: 200px;
        line-height: 1.2;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        left: auto;
        top: 68px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 30px 0;
        gap: 0;
    }

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

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-details {
        flex-direction: column;
        gap: 20px;
    }

    .detail-item {
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .event-grid,
    .performers-grid {
        grid-template-columns: 1fr;
    }

    .cause-values {
        flex-direction: column;
        gap: 30px;
    }

    /* Mobile Slideshow - One card at a time */
    .slideshow-container {
        padding: 10px 45px; /* Increased padding prevents button overlap */
        max-width: 100%;
    }

    .slides-wrapper {
        gap: 15px;
        padding: 40px 0; /* Vertical padding only */
    }

    .performer-slide {
        min-width: 100%;
        max-width: 100%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .performer-slide:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .performer-image-wrapper {
        height: 200px;
    }

    .performer-info {
        padding: 20px;
    }

    .performer-info h3 {
        font-size: 1.4rem;
    }

    .slide-nav {
        width: 35px;
        height: 35px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }

    .slide-nav svg {
        width: 18px;
        height: 18px;
    }

    .slide-nav.prev {
        left: 2px;
    }

    .slide-nav.next {
        right: 2px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .value-item h3 {
        font-size: 3rem;
    }

    .value-item p {
        font-size: 1.5rem;
    }

    .btn-large {
        padding: 15px 40px;
        font-size: 1rem;
    }
}
