/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d60950;
    --primary-light: #f0317d;
    --primary-dark: #a50740;
    --secondary-color: #F5A623;
    --dark-color: #2C3E50;
    --light-color: #FCF4F7;
    --white: #FFFFFF;
    --gray-light: #BDC3C7;
    --gray-medium: #95A5A6;
    --gray-dark: #34495E;
    --success-color: #27AE60;
    --warning-color: #E67E22;
    --error-color: #E74C3C;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    display: block;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.nav-logo {
    width: 100%;
    height: 41px;
    /* border-radius: 50%; */
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.nav-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--light-color) 0%, #f8e7ee 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="%23d60950" opacity="0.1"/><circle cx="90" cy="20" r="1.5" fill="%23F5A623" opacity="0.1"/><circle cx="20" cy="80" r="1" fill="%23d60950" opacity="0.1"/><circle cx="80" cy="90" r="1.2" fill="%23F5A623" opacity="0.1"/></svg>') repeat;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-avatar {
    position: relative;
}

.avatar-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    /* border: 8px solid var(--white); */
}

/* Events Filter */
.events-filter {
    padding: 2rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-color);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Events Section */
.events {
    padding: 4rem 0;
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.event-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--light-color);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-img {
    transform: scale(1.05);
}

.event-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-color);
}

.event-type {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-description {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.event-details {
    padding: 1.5rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.event-meta-item i {
    color: var(--primary-color);
    width: 16px;
}

.event-actions {
    display: flex;
    gap: 1rem;
}

/* Past Event Styles */
.event-card.past-event {
    opacity: 0.75;
    background: #fafafa;
    border: 1px solid #e0e0e0;
}

.event-card.past-event .event-title {
    color: var(--gray-dark);
}

.event-card.past-event .event-type {
    background: var(--gray-medium);
}

.past-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.event-image {
    position: relative;
}

.past-badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--gray-medium);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.event-featured {
    margin-left: 0.5rem;
}

/* Image Overlay and Modal Styles */
.event-image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.image-overlay i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-image:hover .image-overlay {
    opacity: 1;
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-color);
    background: var(--white);
}

.modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray-medium);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.modal-close:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .modal-header {
        padding: 0.75rem 1rem;
    }

    .modal-title {
        font-size: 1rem;
    }

    .modal-image {
        max-height: 75vh;
    }
}

.events-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.events-cta-text {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.highlight i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
}

.highlight span {
    font-weight: 500;
    color: var(--dark-color);
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    /* box-shadow: var(--shadow-lg); */
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3,
.social-links h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.contact-method:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.contact-method i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
}

.contact-method:hover i {
    color: var(--white);
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    color: var(--white);
}

.social-link.linkedin {
    background: #0077B5;
}

.social-link.twitter {
    background: #1DA1F2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #F56040, #E1306C, #C13584);
}

.social-link.facebook {
    background: linear-gradient(45deg, #1877F2, #1877F2, #1877F2);
}

.social-link.spotify {
    background: #1DB954;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.social-link i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    /* background: var(--dark-color); */
    background: linear-gradient(135deg, var(--light-color) 0%, #f8e7ee 100%);

    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 185px;
    height: 41px;
    /* border-radius: 50%; */
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-text {
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-copyright {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        border-top: 1px solid var(--light-color);
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links-mobile {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--light-color);
        transition: var(--transition);
    }

    .nav-link:hover {
        background: var(--light-color);
        color: var(--primary-color);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

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

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .events, .about, .contact {
        padding: 3rem 0;
    }

    .events-cta {
        padding: 2rem 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-light);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.filter-tab:focus,
.contact-method:focus,
.social-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .events-filter,
    .nav-toggle {
        display: none;
    }

    .hero {
        padding: 2rem 0;
    }

    .events,
    .about,
    .contact {
        padding: 2rem 0;
    }
}

/* Refresh button styles */
#refreshEvents {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    background: var(--gray-light);
    color: var(--gray-dark);
    border: 1px solid var(--gray-medium);
    transition: var(--transition);
}

#refreshEvents:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

#refreshEvents i {
    margin-right: 0.5rem;
}

/* Events filter container flex layout */
.events-filter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Real-time sync indicator */
.sync-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success-color);
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
}

.sync-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.sync-indicator i {
    margin-right: 0.5rem;
}