@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&family=Black+Han+Sans&display=swap');

:root {
    --prussian-blue: #0a3947;
    --red-accent: #ca2e3a;
    --white: #ffffff;
    --gold-accent: #e9b43a;
    --blue-accent: #00479f;
    --light-bg: #f8f9fa;
    --text-color: #343a40;
    --heading-font: 'Black Han Sans', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: var(--body-font);
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: radial-gradient(
        circle 800px at var(--mouse-x) var(--mouse-y),
        rgba(10, 57, 71, 0.1),
        transparent 40%
    );
}

.preloader-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: var(--prussian-blue);
    z-index: 999;
    transition: opacity 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.preloader-bg.hidden {
    opacity: 0;
    pointer-events: none;
}
.main-title {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    color: var(--white);
    font-family: var(--heading-font);
    font-size: clamp(3rem, 10vw, 8rem);
    text-align: center;
    line-height: 1.1;
    transition: all 1s cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.main-title.in-hero {
    position: absolute;
    z-index: 5;
}
.title-line {
    display: block;
}
.main-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) scale(0.5);
    animation: reveal-char 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
@keyframes reveal-char {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.8s ease 1s, background-color 0.3s ease;
}
body.loaded nav,
body.subpage-loaded nav {
    opacity: 1;
    transition: opacity 0.5s ease;
}
body.subpage-loaded nav {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
}
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--white);
    mix-blend-mode: difference;
    z-index: 1010;
}
body.subpage-loaded .nav-logo {
    color: var(--prussian-blue);
    mix-blend-mode: normal;
}
body.nav-open .nav-logo {
    color: var(--white);
    mix-blend-mode: normal;
}

.nav-logo img {
    height: 80px;
    margin-right: 10px;
    transition: transform 0.4s ease;
}
.nav-logo:hover img {
    transform: rotate(10deg);
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li a {
    padding: 20px 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    color: var(--white);
    mix-blend-mode: difference;
    transition: color 0.3s ease;
}
body.subpage-loaded nav ul li a {
    color: var(--prussian-blue);
    mix-blend-mode: normal;
}
nav ul li a:hover {
    color: var(--red-accent);
}
nav ul li a.active {
    color: var(--gold-accent) !important;
}

.hamburger-menu {
    display: none;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1010;
}
.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}
body.subpage-loaded .hamburger-menu .bar {
    background-color: var(--prussian-blue);
}
body.nav-open .hamburger-menu .bar {
    background-color: var(--white);
}
body.nav-open .hamburger-menu .bar1 {
    transform: rotate(45deg) translate(7px, 7px);
}
body.nav-open .hamburger-menu .bar2 {
    opacity: 0;
}
body.nav-open .hamburger-menu .bar3 {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    background-image: linear-gradient(rgba(10, 57, 71, 0.8), rgba(10, 57, 71, 0.8)), url('assets/team/team.png');
    background-size: cover;
    background-position: center;
}
.hero-floatie-container {
    position: absolute;
    width: 100%; height: 100%;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease 2s;
    pointer-events: none;
}
body.loaded .hero-floatie-container {
    opacity: 1;
}
.floatie-snack {
    position: absolute;
    font-size: clamp(2.5rem, 5vw, 4rem);
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}
.snack-1 { top: 20%; left: 15%; }
.snack-2 { top: 30%; left: 80%; }
.snack-3 { top: 70%; left: 10%; }
.snack-4 { top: 65%; left: 75%; }
.snack-5 { top: 15%; left: 55%; }
.snack-6 { top: 80%; left: 40%; }
.scroll-indicator {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.8s ease 2s;
}
body.loaded .scroll-indicator {
    opacity: 1;
}

.page-header {
    padding: 180px 0 80px 0;
    text-align: center;
    background-color: var(--prussian-blue);
    color: var(--white);
}
.page-header h1 {
    color: var(--white);
    font-size: clamp(3rem, 7vw, 5rem);
}
.page-header p {
    font-size: 1.2rem;
    opacity: .9;
    max-width: 600px;
    margin: 1rem auto 0;
}
.page-section {
    padding: 100px 0;
    position: relative;
    perspective: 1500px;
}
.alt-bg {
    background-color: var(--light-bg);
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    text-align: center;
    margin-bottom: 50px;
}
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 50px auto;
}
.parallax-card {
    transition: transform .5s cubic-bezier(.25,1,.5,1), box-shadow .5s ease;
}
.parallax-card:hover {
    transform: translateZ(50px) translateY(-10px) !important;
    box-shadow: 0 25px 50px rgba(10,57,71,.2);
}
.box-preview-grid,
.team-grid,
.box-item-grid {
    display: grid;
    gap: 30px;
}
.box-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.box-item-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.box-preview-card,
.team-member,
.box-item {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(10,57,71,.1);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
}
.card-image-wrapper {
    height: 250px;
    overflow: hidden;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.box-preview-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}
.card-content {
    padding: 25px;
}
.card-content h3 {
    font-size: 1.8rem;
}
.team-member {
    text-align: center;
    padding: 25px;
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}
.box-item {
    text-align: center;
}
.box-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.box-item span {
    display: block;
    padding: 20px;
    font-weight: 700;
}
.snack-list {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 20px auto;
    max-width: 400px;
}
.snack-list li {
    background: var(--white);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(10,57,71,.07);
    font-weight: 500;
}
.founder-note {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
}
.founder-note.reverse {
    flex-direction: row-reverse;
}
.founder-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}
.donation-methods {
    text-align: center;
}
.btn {
    text-decoration: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: all .3s cubic-bezier(.25,1,.5,1);
    border: 2px solid transparent;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
}
.btn-primary {
    background-color: var(--gold-accent);
    color: var(--prussian-blue);
}
.btn-primary:hover {
    background-color: var(--red-accent);
    color: var(--white);
    transform: translateY(-5px) scale(1.05);
}

.form-container {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(10,57,71,.1);
    max-width: 800px;
    margin: 0 auto;
}
.form-container iframe {
    width: 100%;
    height: 850px;
    border: none;
}

footer {
    background: var(--prussian-blue);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    margin-top: auto;
}
footer p {
    margin: 0;
    font-size: .9rem;
    opacity: .8;
}
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .main-title {
        /* FINAL FIX: Using a more conservative clamp() to ensure "Culture" doesn't break. */
        /* This sets a smaller minimum size and a less aggressive scaling factor. */
        font-size: clamp(2.4rem, 9.5vw, 5rem);
    }
    .hero {
        background-attachment: scroll;
    }
    .founder-note {
        flex-direction: column;
    }
    .founder-note.reverse {
        flex-direction: column-reverse;
    }
    .snack-showcase {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .hamburger-menu {
        display: flex;
    }
    nav ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--prussian-blue);
        z-index: 1005; 
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    nav ul.nav-active {
        transform: translateX(0);
    }
    nav ul li a {
        color: var(--white);
        mix-blend-mode: normal;
        font-size: 2rem;
        padding: 20px 0;
    }
    body.subpage-loaded nav ul li a {
        color: var(--white);
    }
    .form-container {
        padding: 10px;
    }
    .form-container iframe {
        height: 900px;
    }
}
