* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: white !important;
    min-height: 100vh;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Mobile First Styles */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.8rem;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
      background: linear-gradient(135deg, #4361ee, #3a0ca3) !important;
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    border-radius: 0;
    margin-bottom: 1rem;
}
/* Optional: Animated gradient effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    animation: gradientShift 10s ease infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}
.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.hero p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0 1rem;
}
/* Wave effect using SVG */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

.alert {
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 0.875rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.event-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.event-image {
    width: 100%;
    height: clamp(260px, 34vw, 420px);
    object-fit: cover; /* Change from 'contain' to 'cover' */
    object-position: center;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 0;
    display: block;
}

.event-content {
    padding: 1.25rem;
}

.event-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.3;
}

.event-date {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
    margin: 0.75rem 0;
}

.event-detail {
    background: var(--white);
    margin: 1rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
}

.event-banner {
    width: 100%;
    height: clamp(320px, 55vw, 620px);
    object-fit: cover; /* Change from 'contain' to 'cover' */
    object-position: center;
    background: linear-gradient(180deg, #eff6ff 0%, #eef2ff 45%, #f8fafc 100%);
    padding: 0; /* Remove padding */
    display: block;
}

.event-info {
    padding: 1.5rem;
}

.event-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.3;
}

.event-info p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s;
    flex-wrap: wrap;
}

.info-icon {
    font-size: 1.25rem;
    color: var(--primary);
    min-width: 24px;
}

.ticket-types {
    margin: 2rem 0;
}

.ticket-types h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.ticket-type {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #0d9668 100%);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: var(--white);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

#booking-modal .modal-content.checkout-shell {
    width: min(1180px, calc(100vw - 2rem));
    max-width: min(1180px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    border-radius: 18px;
}

#booking-modal .checkout-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1.25fr) minmax(360px, 0.95fr);
    gap: 1.5rem;
    align-items: start;
}

#booking-modal .payment-method-btn {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--dark);
}

.close-modal {
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--danger);
}

.form-group {
    margin: 1rem 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray);
    font-size: 0.75rem;
}

.summary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.25rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 2px dashed #cbd5e1;
}

.summary h4 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.125rem;
    color: var(--dark);
    border-top: 2px solid var(--gray);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.success-screen {
    text-align: center;
    padding: 1.5rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.ticket-display {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.ticket-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 1rem auto;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-info {
    margin: 1.5rem 0;
    text-align: left;
}

.ticket-info p {
    margin: 0.5rem 0;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.ticket-info strong {
    color: var(--dark);
    font-size: 0.85rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.search-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-form input,
.search-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.search-form button {
    padding: 0.75rem;
}

.search-results {
    margin-top: 1.5rem;
}

.ticket-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.25rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid var(--success);
}

.ticket-item h4 {
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.ticket-item p {
    margin: 0.4rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.ticket-item .btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.no-results i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.loader {
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

footer h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

footer h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #ccc;
    font-size: 0.875rem;
}

/* Tablet Styles */
@media (min-width: 768px) {
    body {
        font-size: 17px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .hero {
        padding: 3rem 0;
        border-radius: 0 0 20px 20px;
        margin-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
        max-width: 600px;
    }
    
    .hero-alerts {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .alert {
        font-size: 0.9rem;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .event-banner {
        height: 300px;
    }
    
    .event-info {
        padding: 2rem;
    }
    
    .ticket-type {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .btn {
        width: auto;
        max-width: none;
        padding: 0.75rem 2rem;
    }
    
    .download-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .search-form {
        flex-direction: row;
    }
    
    .search-form select {
        flex: 0 0 200px;
    }
    
    .ticket-item .btn-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.25rem;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .event-banner {
        height: 400px;
    }
    
    .modal-content {
        padding: 2rem;
    }
    
    .search-container {
        padding: 2rem;
    }
    
    .ticket-info p {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    #booking-modal .checkout-grid {
        grid-template-columns: 1fr;
    }

    #booking-modal .payment-method-btn {
        min-height: 0;
    }
}

/* Mobile Navigation Toggle */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        width: 100%;
    }
    
    .nav-links.active {
        display: flex;
    }
}

/* Very Small Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 1rem;
        margin: 1rem;
    }

    #booking-modal .modal-content.checkout-shell {
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
        margin: 0.5rem;
    }

    #booking-modal .checkout-grid {
        grid-template-columns: 1fr;
    }

    #booking-modal .payment-method-btn {
        min-height: 0;
    }
    
    .qr-code {
        width: 180px;
        height: 180px;
    }
    
    .ticket-info p {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .search-container {
        padding: 1rem;
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .modal-content {
        max-height: 85vh;
        margin: 0.5rem;
    }

    #booking-modal .modal-content.checkout-shell {
        max-height: calc(100vh - 1rem);
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .events-grid {
        padding: 1rem 0;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .event-image,
    .event-banner {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .modal,
    .nav-links,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .ticket-display {
        border: 2px solid black !important;
        break-inside: avoid;
    }
}

