/* --- Fonts and Basic Setup --- */
@import url('https://fonts.googleapis.com/css2?family=Comic+Relief:wght@400;700&family=Quicksand:wght@300..700&display=swap');

:root {
    /* --- Color Palette --- */
    --primary-color: #7d6b70;
    /* Slightly deeper, more premium shade */
    --primary-dark: #66565b;
    --secondary-color: #ffffff;
    --accent-color: #d4c5c9;
    /* Softer, pastel pink-grey */
    --accent-dark: #bbaeb2;
    --light-accent-bg: #f9f7f8;
    /* Ultra light background for sections */
    --text-color: #333333;
    /* Softer black */
    --text-muted: #666666;

    /* --- Typography --- */
    --heading-font: 'Comic Relief', system-ui;
    /* Keeping identity */
    --body-font: 'Quicksand', sans-serif;

    /* --- Spacing & UI --- */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-pill: 50px;
    --shadow-soft: 0 10px 30px rgba(125, 107, 112, 0.08);
    --shadow-hover: 0 15px 40px rgba(125, 107, 112, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-max: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    background-color: var(--light-accent-bg);
    /* Use slight off-white for premium feel */
    color: var(--text-color);
    line-height: 1.6;
    /* Tighter line height for modern feel */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    /* Crisper text */
}

body.body-no-scroll {
    overflow: hidden;
}

main {
    flex-grow: 1;
}

.container {
    width: 88%;
    max-width: var(--container-max);
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-top: 0;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    /* Slightly smaller than 3.5 for better mobile scaling */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.2rem;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* --- Banner Styles --- */
.banner {
    background-color: var(--primary-color);
    color: var(--light-accent-bg);
    padding: 10px 20px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--body-font);
    font-weight: 500;
}

.banner p {
    margin: 0;
}

.banner a {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: underline;
    margin-left: 10px;
    transition: color 0.3s;
}

.banner a:hover {
    color: var(--accent-color);
}

.close-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    line-height: 1;
    transition: color 0.3s;
}

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

/* --- Navigation --- */
nav {
    background-color: rgba(255, 255, 255, 0.85);
    /* Semi-transparent */
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-size: 1.6rem;
    /* Ensure logo is above mobile menu */
    line-height: 1.1;
    /* Tighter line height for wrapping */
    position: relative;
    z-index: 1005;
    /* Above nav-links (1000) */
}

/* Responsive logo adjustment */
@media (max-width: 400px) {
    .nav-logo {
        font-size: 1.3rem;
        /* Shrink text on small screens to avoid wrapping */
    }

    .nav-logo img {
        height: 40px;
        /* Slightly smaller logo */
    }
}

.nav-logo img {
    height: 50px;
    margin-right: 10px;
    transition: transform 0.4s ease;
}

.nav-logo:hover img {
    transform: rotate(360deg);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li a {
    padding: 20px 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-out;
}

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

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

.nav-extras {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1001;
    /* Ensure above mobile menu */
}

.nav-toggle {
    display: none;
}

/* Hide hamburger by default */

/* --- Hero Section --- */
.hero {
    height: 90vh;
    /* Taller hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    background-image: url('assets/team/everyone.jpeg');
    background-size: cover;
    background-position: center 30%;
    border-bottom-left-radius: 40px;
    /* Modern curved bottom */
    border-bottom-right-radius: 40px;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 80%);
    backdrop-filter: blur(2px);
    /* Subtle blur on bg image */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
    /* Constrain width for readability */
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.95);
}

/* --- Buttons --- */
.btn {
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    /* Prepare for border transition */
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #bbaeb2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(187, 174, 178, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(187, 174, 178, 0.6);
    background: linear-gradient(135deg, #bbaeb2 0%, var(--primary-color) 100%);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid rgba(255, 255, 255, 0.6);
    margin-left: 15px;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- General Page Sections --- */
.page-section {
    padding: 80px 0;
}

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

/* --- Social Links (Home Page) --- */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.social-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(125, 107, 112, 0.15);
}

.social-card img {
    height: 50px;
    width: auto;
    margin-bottom: 10px;
}

.social-card h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* --- About Page Redesign --- */
.about-hero {
    background-color: var(--light-accent-bg);
    text-align: center;
    padding: 60px 20px;
}

.about-hero h2 {
    font-size: 1.5rem;
    font-family: var(--body-font);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.about-hero p {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    color: var(--primary-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

.founder-section {
    display: flex;
    align-items: center;
    gap: 60px;
}

.founder-image {
    flex-basis: 40%;
    max-width: 380px;
}

.founder-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(195, 184, 188, 0.6);
}

.founder-bio {
    flex-basis: 60%;
}

.founder-bio h2 {
    text-align: left;
    margin-bottom: 20px;
}

.founder-bio h3 {
    font-size: 2.8rem;
    margin-bottom: 5px;
}

.founder-bio h4 {
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* --- Team Member Card Flip System --- */
.team-member {
    background-color: transparent;
    perspective: 1500px;
    min-height: 440px;
    /* Slightly taller */
    cursor: pointer;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncier transition */
    transform-style: preserve-3d;
}

.team-member.is-flipped .team-member-inner {
    transform: rotateY(180deg);
}

.team-member-front,
.team-member-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-sizing: border-box;
    border-radius: 24px;
    /* More rounded */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.team-member:hover .team-member-front,
.team-member:hover .team-member-back {
    box-shadow: 0 20px 45px rgba(125, 107, 112, 0.15);
}

.team-member-front {
    background-color: #fff;
}

.team-member-back {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    transform: rotateY(180deg);
}

.team-member-back h3,
.team-member-back h4,
.team-member-back p {
    color: var(--secondary-color);
}

.team-member-back h4 {
    color: var(--accent-color);
}

.team-member-back p {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
}

.flip-instruction {
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* --- End Card Flip System --- */

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 5px 20px rgba(195, 184, 188, 0.5);
    margin-bottom: 20px;
}

.team-member h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.team-member h4 {
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.impact-section {
    text-align: center;
}

.impact-section h4 {
    font-family: var(--body-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 15px;
}

.impact-section ul {
    list-style: none;
    padding: 0;
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.impact-section li {
    background: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #e0d9dc;
}

.impact-section li:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* --- Menu/Donate Page Redesign --- */
.menu-container {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(195, 184, 188, 0.3);
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.menu-header {
    text-align: center;
    margin-bottom: 40px;
}

.menu-header h3 {
    font-size: 2.5rem;
    margin: 0;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Menu Cards --- */
.menu-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.menu-list-item:last-child {
    margin-bottom: 0;
}

.menu-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    /* Keep white, shadow does the work */
}

.item-details h4 {
    font-size: 1.6rem;
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-family: var(--body-font);
    /* Switch to clean sans for readability */
    font-weight: 700;
}

.item-details p {
    margin: 0;
    font-weight: 500;
    color: var(--text-muted);
}

.item-price {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-dark);
    background: var(--light-accent-bg);
    padding: 8px 16px;
    border-radius: 50px;
}

.donation-methods {
    text-align: center;
    background: var(--light-accent-bg);
    padding: 40px;
    border-radius: 15px;
}

.donation-methods h3 {
    font-size: 2.5rem;
}

.payment-buttons {
    margin: 20px 0;
}

.venmo-info {
    font-weight: 700;
    margin-top: 20px;
}

.disclaimer {
    margin-top: 30px;
    font-weight: 500;
    color: #888;
}

.coming-soon {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: var(--light-accent-bg);
    border-radius: 20px;
    margin-top: 60px;
}

.coming-soon h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

/* --- Contact Page (Google Form Embed) --- */
.form-container {
    position: relative;
    width: 100%;
    max-width: 850px;
    height: 600px;
    margin: 40px auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(195, 184, 188, 0.4);
    border: 1px solid var(--light-accent-bg);
}

.form-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Image Carousel --- */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    /* Space for arrows */
    box-sizing: border-box;
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 33.33%;
    /* Show 3 slides on desktop */
    box-sizing: border-box;
    padding: 0 10px;
    text-align: center;
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    /* To open lightbox */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.carousel-slide img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-slide figcaption {
    font-weight: 500;
    margin-top: 10px;
    color: var(--text-color);
    padding: 0 10px;
}

.carousel-button {
    position: absolute;
    top: 40%;
    /* Position in the middle of the image */
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--light-accent-bg);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

/* --- Lightbox Modal --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    /* Make room for caption */
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.lightbox-caption {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: background 0.3s;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    top: 0px;
    right: 0px;
}

.lightbox-prev {
    top: 50%;
    left: -70px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: -70px;
    transform: translateY(-50%);
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: var(--light-accent-bg);
    text-align: center;
    padding: 60px 20px;
    margin-top: auto;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Language Switcher --- */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 10px;
    position: relative;
    list-style: none;
    /* Ensure no bullets */
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--light-accent-bg);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body-font);
    font-weight: 700;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-dropdown.active .lang-btn {
    border-color: var(--accent-color);
    background-color: var(--light-accent-bg);
    color: var(--primary-color);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.lang-dropdown.active .arrow-icon {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--secondary-color);
    border: 1px solid var(--light-accent-bg);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    list-style: none;
    min-width: 140px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1002;
    display: block;
    /* Override default if needed */
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-menu li {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.lang-menu li:hover {
    background-color: var(--light-accent-bg);
    color: var(--primary-color);
}

.lang-menu li.selected {
    background-color: var(--light-accent-bg);
    font-weight: 700;
    color: var(--primary-color);
}

/* Make sure the arrow path inherits color */
.arrow-icon path {
    stroke: currentColor;
}

/* --- RESPONSIVE DESIGN --- */

/* For Tablets and Below */
@media (max-width: 992px) {

    .founder-details .member-info h3,
    .founder-details .member-info h4,
    .founder-details .member-info p,
    .member-info h3,
    .member-info h4,
    .member-info p {
        text-align: center;
    }

    .carousel-slide {
        flex-basis: 50%;
        /* Show 2 slides on tablet */
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        /* Heavy glass effect */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%);
        /* Slide from right */
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-links.transition-ready {
        /* Intentionally left empty or remove if not used by JS logic anymore */
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-links.nav-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li a {
        font-size: 2.2rem;
        /* Larger touch targets */
        padding: 10px;
        color: var(--text-color);
        font-weight: 700;
    }

    .nav-links li a::after {
        bottom: 0;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        width: 30px;
        height: 22px;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        background-color: var(--primary-color);
        height: 3px;
        width: 30px;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        /* Smoother bezier */
    }

    .hamburger {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger::before {
        top: -10px;
    }

    .hamburger::after {
        top: 10px;
    }

    .nav-toggle.is-active .hamburger {
        background-color: transparent;
        transform: translateY(-50%);
        /* Start overlap */
    }

    .nav-toggle.is-active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle.is-active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .page-section {
        padding: 60px 0;
    }

    h2 {
        font-size: 2.8rem;
    }

    .about-hero p {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }

    .founder-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .founder-bio h2 {
        text-align: center;
    }

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

    .form-container {
        height: 750px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.6);
    }

    .lightbox-prev,
    .lightbox-next {
        transform: translateY(-50%);
        top: 50%;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .carousel-container {
        padding: 0 45px;
        /* Adjust padding for smaller screens */
    }

    .carousel-slide {
        flex-basis: 100%;
        /* Show 1 slide on mobile */
        padding: 0 5px;
    }

    .carousel-button {
        top: 40%;
        width: 40px;
        height: 40px;
    }

    .carousel-button.prev {
        left: -5px;
    }

    .carousel-button.next {
        right: -5px;
    }

    /* Mobile Language Switcher */
    .language-switcher {
        margin-left: 0;
        /* margin-top removed */
    }

    /* .lang-btn, .lang-menu adjustments no longer needed for centering, reusing desktop right-align */
    .lang-btn {
        padding: 5px 12px;
        /* Smaller padding on mobile if needed, or keep standard */
        font-size: 0.9rem;
        /* Keep it manageable */
    }
}

/* For Mobile Phones */
@media (max-width: 480px) {
    .hero {
        height: 80vh;
    }

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

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 80%;
        margin: 0 auto;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }

    h2 {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

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

    .team-member img {
        width: 150px;
        height: 150px;
    }

    .menu-list-item {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .item-price {
        padding: 10px 0 0 0;
    }

    .form-container {
        height: 850px;
    }
}

/* --- Gallery Styles --- */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.password-modal-content {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.password-modal-content h3 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.password-modal-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

#password-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-accent-bg);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--body-font);
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

#password-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.password-modal-buttons {
    margin-bottom: 15px;
}

.password-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
}

.upload-section {
    margin-bottom: 40px;
}

.upload-section h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

.upload-area {
    border: 3px dashed var(--accent-color);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light-accent-bg);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(212, 197, 201, 0.1);
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(125, 107, 112, 0.1);
    transform: scale(1.02);
}

.upload-area-content svg {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.upload-area-content p {
    margin: 10px 0;
    font-weight: 500;
    color: var(--text-color);
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-accent-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.group-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(125, 107, 112, 0.2);
}

.group-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.group-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.group-card:hover .group-card-overlay {
    opacity: 1;
}

.group-card-view,
.group-card-delete {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--body-font);
    transition: all 0.3s ease;
}

.group-card-view {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.group-card-view:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.group-card-delete {
    background: #e74c3c;
    color: var(--secondary-color);
}

.group-card-delete:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.slideshow-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slideshow-modal.active {
    opacity: 1;
    visibility: visible;
}

.slideshow-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slideshow-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.slideshow-close,
.slideshow-prev,
.slideshow-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: background 0.3s;
    z-index: 3001;
}

.slideshow-close:hover,
.slideshow-prev:hover,
.slideshow-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slideshow-close {
    top: -60px;
    right: 0;
}

.slideshow-prev {
    top: 50%;
    left: -70px;
    transform: translateY(-50%);
}

.slideshow-next {
    top: 50%;
    right: -70px;
    transform: translateY(-50%);
}

.slideshow-info {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    color: white;
}

.slideshow-counter {
    font-weight: 500;
    font-size: 1.1rem;
}

.slideshow-delete {
    padding: 10px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--body-font);
    transition: background 0.3s;
}

.slideshow-delete:hover {
    background: #c0392b;
}

.loading-indicator,
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-indicator p,
.empty-state p {
    font-size: 1.2rem;
    margin: 0;
}

/* Gallery Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .slideshow-prev,
    .slideshow-next {
        left: 10px;
        right: 10px;
    }

    .slideshow-prev {
        top: 20%;
    }

    .slideshow-next {
        top: auto;
        bottom: 20%;
    }

    .slideshow-close {
        top: 15px;
        right: 15px;
    }

    .upload-area {
        padding: 40px 15px;
    }
}