@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700&display=swap');

:root {
    /* Wisteria / Glicine Palette - Light Theme */
    --color-primary: #8a4fff;
    --color-primary-light: #eaddff;
    --color-primary-dark: #5c18c9;
    --color-accent: #ff85a1;
    
    --color-bg: #ffffff;
    --color-bg-alt: #f8f6fc;
    --color-surface: rgba(255, 255, 255, 0.85);
    
    --color-text: #2d2640; /* Dark gray/purple for contrast */
    --color-text-muted: #6b667e;

    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background subtle accents */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

body::before {
    top: -5%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--color-primary-light);
}

body::after {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #fdf5ff;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Light Elegant Panels */
.glass-panel {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(138, 79, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 79, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 79, 255, 0.4);
    color: #fff;
}

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

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

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

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

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary-dark);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    padding-top: 100px;
    text-align: center;
    position: relative;
    background-image: linear-gradient(to bottom, rgba(45, 38, 64, 0.5), rgba(20, 15, 35, 0.8)), url('../images/aerial.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}

.hero h1 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero p {
    color: #f3ecff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease forwards;
}

/* Image Carousel */
.carousel-container {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto 4rem auto;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(138, 79, 255, 0.15);
    background: #fff;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 500px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide.active {
    display: block;
    animation: fadeScale 0.8s ease-in-out;
}

@keyframes fadeScale {
    0% { opacity: 0; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
}

.carousel-btn {
    background: rgba(255,255,255,0.7);
    color: var(--color-primary-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Info Section */
.info-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(138, 79, 255, 0.1);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary-light);
    box-shadow: 0 20px 40px rgba(138, 79, 255, 0.1);
}

.event-img {
    height: 220px;
    width: 100%;
    background: var(--color-bg-alt);
    position: relative;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fff;
    color: var(--color-primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.event-info {
    padding: 2rem;
}

/* Gallery Grid */
.gallery-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(138, 79, 255, 0.2);
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Forms */
.form-container {
    max-width: 800px;
    margin: 4rem auto 5rem auto;
    padding: 0 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="file"],
textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
    background: #fafafa;
    color: var(--color-text);
    font-family: var(--font-sans);
    transition: var(--transition);
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--color-primary-light);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin-top: 0.4rem;
    accent-color: var(--color-primary);
    width: 1.2rem;
    height: 1.2rem;
}

.minore-section {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed var(--color-primary-light);
}

.minore-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.privacy-box {
    background: var(--color-bg-alt); 
    padding: 1.5rem; 
    border-radius: 16px; 
    margin-bottom: 1rem;
    border: 1px solid rgba(138, 79, 255, 0.1);
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }

/* Loaders and Toast */
.loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(138,79,255,0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .info-section {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    nav {
        flex-direction: column;
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.98);
    }
    .logo {
        font-size: 1.2rem;
    }
    .logo img {
        height: 45px !important;
        margin-right: 10px !important;
    }
    .nav-links {
        margin-top: 0.5rem;
        gap: 0.8rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-links a {
        font-size: 0.95rem;
        padding: 0.2rem 0;
    }
    .hero {
        background-attachment: scroll; /* Fixes iOS Safari zoom bug */
        padding-top: 120px;
    }
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center center;
    }
}
