:root {
    /* Modern Palette */
    --primary-color: #2c3e50;
    /* Deep Charcoal */
    --secondary-color: #34495e;
    /* Slate */
    --accent-color: #e74c3c;
    /* Vibrant Red/Coral */
    --accent-hover: #c0392b;
    --text-color: #333333;
    --light-bg: #ecf0f1;
    /* Very light gray */
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* UI Elements */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --radius-card: 16px;
    --radius-btn: 50px;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.text-white {
    color: var(--white);
}

.hidden {
    display: none !important;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.bg-dark .section-title {
    color: var(--white);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Header & Nav */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.logo img {
    height: 45px;
    /* Adjusted for modern look */
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo img:hover {
    transform: scale(1.1);
}

/* Since the logo is white in the assets, we might need a dark version or filter it 
   For now, assuming we use the same logo, we might need a dark background header or invert filter if it's white-only.
   However, the user wants "fresh", usually implies light header. 
   Let's try to keep the header dark for contrast with the white logo, OR use a filter.
   Let's stick to a dark header for now to match the white logo provided previously.
*/
.main-header {
    background-color: var(--primary-color);
    /* Reverting to dark header for white logo compatibility */
    color: var(--white);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-list a:hover {
    color: var(--white);
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 90vh;
    /* Taller hero */
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.7)), url('../assets/hero-bg.jpg');
    /* Assuming there might be a bg image, or just gradient */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-logo {
    max-width: 300px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero .subtitle {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards, pulse 4s ease-in-out 1.5s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: var(--radius-btn);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
}

/* Animation for hero CTA button */
.hero .cta-button {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

/* Cards & Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.card,
.event-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-card);
    border: none;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    text-align: center;
}

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

.card h3,
.event-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card p,
.event-card p {
    color: #666;
    margin-bottom: 10px;
}

.event-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Slideshow */
.video-slideshow {
    max-width: 1000px;
    margin: 0 auto;
}

.slideshow-container {
    position: relative;
    background: transparent;
    padding: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.slideshow-videos {
    position: relative;
    min-height: 500px;
    background: #000;
}



.video-thumbnail-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
    border-radius: var(--radius-card);
    overflow: hidden;
}





/* Photo Slideshow for Milongas */
.photo-slideshow {
    max-width: 900px;
    margin: 0 auto;
}

.slideshow-photos {
    position: relative;
    min-height: 500px;
    background: #000;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.milonga-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-card);
}


.slide {
    display: none;
    animation: fadeIn 0.5s;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    backdrop-filter: blur(5px);
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover,
.next:hover {
    background-color: var(--accent-color);
}

.slideshow-dots {
    text-align: center;
    padding: 30px 0 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Contact Form */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    color: var(--text-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #f4f6f8;
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.contact-info {
    color: var(--white);
    text-align: left;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    word-break: break-word;
}

.contact-info a {
    color: var(--accent-color);
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    border-radius: var(--radius-card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Footer */
.main-footer {
    background-color: #1a252f;
    color: #7f8c8d;
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px 0;
        text-align: center;
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .contact-form-container {
        width: 100%;
        padding: 30px 20px;
        margin: 0;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }

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

    .slideshow-videos {
        min-height: 250px;
    }

    .slide iframe {
        height: 250px !important;
    }

    .slideshow-photos {
        min-height: auto;
    }
}

/* Milonga Event Navigation */
.nav-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 40px;
    /* Larger than slideshow arrows */
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: transparent;
    border: none;
    z-index: 10;
}

.nav-arrow:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.next-milonga {
    right: -50px;
    /* Position outside the content */
    border-radius: 3px 0 0 3px;
}

.prev-milonga {
    left: -50px;
    /* Position outside the content */
    border-radius: 3px 0 0 3px;
}

@media (max-width: 768px) {
    .next-milonga {
        right: 0;
        background-color: rgba(255, 255, 255, 0.8);
    }

    .prev-milonga {
        left: 0;
        background-color: rgba(255, 255, 255, 0.8);
    }
}