@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    --bg-bright: rgba(255,255,255,0.75);
    --bg-offwhite: rgba(244,250,240,0.7);
    --accent-green: #64a243;
    --accent-green-dark: #4e7837;
    --accent-yellow: #ffe007;
    --accent-orange: #ff8c42;
    --accent-blue: #3a86d4;
    --text-dark: #2c2b29;
    --text-charcoal: #4a4a44;
    --card-shadow: 0 10px 30px rgba(100, 162, 67, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Nunito', -apple-system, sans-serif;
    background:
        linear-gradient(to bottom,
            rgba(220,90,0,0.22)   0%,     /* deep burnt orange */
            rgba(240,120,0,0.18)  15%,    /* rich mango orange */
            rgba(250,160,0,0.14)  30%,    /* warm amber */
            rgba(252,190,0,0.10)  48%,    /* golden yellow */
            rgba(253,215,60,0.07) 65%,    /* sunshine yellow */
            rgba(254,235,120,0.03) 82%,   /* pale sunny yellow */
            rgba(255,248,200,0.0) 100%    /* warm white fade */
        );
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 1.15rem;
}

/* SCROLL PROGRESS BAR */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-yellow), var(--accent-orange));
    z-index: 9999;
    border-radius: 0 4px 4px 0;
    transition: width 0.1s linear;
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: space-between;
    padding: 1.1rem 5%;
    align-items: center;
    background: linear-gradient(to right,
        #b84400 0%,    /* deep burnt mango */
        #d96000 18%,   /* rich mango */
        #f07d00 36%,   /* mango orange */
        #f5a000 54%,   /* warm amber */
        #f8bc00 72%,   /* golden pineapple */
        #f5c842 88%,   /* soft pineapple gold */
        #f2d060 100%   /* warm pineapple glow */
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.35);
    transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

nav.nav-scrolled {
    padding: 0.6rem 5%;
    background: linear-gradient(to right,
        #a03a00 0%,    /* deep burnt mango (scrolled) */
        #c25500 18%,   /* rich mango */
        #d97000 36%,   /* mango orange */
        #e09000 54%,   /* warm amber */
        #e8aa00 72%,   /* golden pineapple */
        #e8ba38 88%,   /* soft pineapple gold */
        #e6c455 100%   /* warm pineapple glow */
    );
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'Fredoka One', cursive;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
    margin-left: 0.6rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 224, 7, 0.7);
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    padding: 2px;
    background: white;
}

nav.nav-scrolled .logo-img { height: 55px; }

.logo-img-footer {
    height: 60px;
}

.footer-logo {
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo .logo-text-footer {
    font-size: 1.6rem;
    font-weight: 400;
    color: white !important;
    margin-left: 0.6rem;
    letter-spacing: 0;
    font-family: 'Alex Brush', cursive;
}

.footer-logo .logo-accent-footer { color: var(--accent-yellow) !important; }

/* Left-align body text in cards and bio modals */
.card p, .team-card p.bio, .tos-body p { text-align: left; }

.team-cta {
    margin-top: 3rem;
    text-align: center;
}

.team-cta p {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-charcoal);
}

.logo-text {
    font-size: 2.15rem;
    font-weight: 400;
    letter-spacing: 0;
    color: #ffffff;
    font-family: 'Alex Brush', cursive;
}

.logo-accent { color: var(--accent-yellow); }

nav.nav-scrolled .logo-text { font-size: 1.85rem; }

ul { display: flex; list-style: none; gap: 1.5rem; align-items: center; margin: 0; padding: 0; }

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
}

nav ul a:not(.btn-primary) {
    color: #3b1200;
    text-shadow: 0 1px 2px rgba(255,255,255,0.25);
}
nav ul a:not(.btn-primary):hover {
    color: #7a2e00;
}

nav ul a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

nav ul a:not(.btn-primary):hover::after { width: 100%; }

/* HERO SECTION */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 3rem 5%;
    position: relative;
    background:
        linear-gradient(to bottom,
            rgba(255,255,255,0.78) 0%,
            rgba(255,248,220,0.82) 50%,
            rgba(255,253,240,0.88) 100%
        ),
        url('img/sg.jpg') center center / cover no-repeat;
    background-attachment: fixed, fixed;
}

/* FLOATING BACKGROUND ORBS */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(30px, -40px) scale(1.05); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(-25px, 30px) scale(0.95); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(20px, 25px) scale(1.08); }
}
@keyframes float4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(-30px, -20px) scale(0.97); }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.orb-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #a8d98a, #64a243);
    top: -80px; right: 5%;
    animation: float1 9s ease-in-out infinite;
}

.orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #fff59d, #ffe007);
    bottom: -60px; left: 8%;
    animation: float2 11s ease-in-out infinite;
}

.orb-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, #90caf9, #3a86d4);
    top: 30%; left: 35%;
    animation: float3 13s ease-in-out infinite;
}

.orb-4 {
    width: 160px; height: 160px;
    background: radial-gradient(circle, #ffcc80, #ff8c42);
    bottom: 10%; right: 20%;
    animation: float4 10s ease-in-out infinite;
}

/* TYPED TEXT CURSOR */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.nowrap { white-space: nowrap; }

.cursor {
    display: inline-block;
    color: var(--accent-green);
    font-weight: 300;
    animation: blink 0.8s step-end infinite;
    margin-left: 2px;
}

/* HERO ENTRANCE ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content { max-width: 1000px; }

.hero-content h1 {
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.1s;
}

.hero-content p {
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.3s;
}

.hero-content .hero-btns {
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.5s;
}

h1 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 1.5rem; color: var(--text-dark); font-weight: 400; font-family: 'Fredoka One', cursive; text-align: left; }
h2 { font-size: 2.8rem; font-weight: 400; color: var(--text-dark); margin-bottom: 1rem; font-family: 'Fredoka One', cursive; }
h3 { font-size: 1.5rem; font-weight: 400; color: var(--text-dark); font-family: 'Fredoka One', cursive; }
p { color: var(--text-charcoal); font-size: 1.2rem; }

/* BUTTONS */
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    color: white !important;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(100, 162, 67, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 25px rgba(100, 162, 67, 0.45);
}

.btn-secondary {
    border: 2.5px solid var(--accent-green);
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    color: var(--accent-green-dark) !important;
    font-weight: 800;
    font-size: 1rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.04);
    background: var(--accent-green);
    color: white !important;
}

/* WAVE DIVIDERS */
.wave-divider {
    line-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* SECTION SEPARATOR */
.section-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    margin: 0;
    line-height: 0;
}
.section-separator svg {
    display: block;
    width: 100%;
    height: 20px;
}

/* SECTIONS */
.services, .science-section, .who-section, .team-section {
    padding: 90px 5%;
    text-align: left;
}

.science-section {
    background: transparent;
}

.who-section {
    background: transparent;
}

.team-section {
    background: transparent;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-intro {
    max-width: 820px;
    margin: 0 0 2.5rem 0;
    color: var(--text-charcoal);
    line-height: 1.9;
    font-size: 1.1rem;
    text-align: left;
}

.science-header p {
    max-width: 700px;
    margin: 0 0 2rem 0;
    font-size: 1.15rem;
    line-height: 1.85;
    text-align: left;
}

/* TWO-COLUMN SECTION LAYOUT WITH ICON */
.section-two-col {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.section-icon-wrap {
    flex-shrink: 0;
    font-size: 9rem;
    color: var(--icon-color, #64a243);
    opacity: 0.75;
    line-height: 1;
    filter: drop-shadow(0 6px 24px var(--icon-color, #64a243));
    transition: opacity 0.3s, transform 0.3s;
}

.section-icon-wrap:hover {
    opacity: 1;
    transform: scale(1.1) rotate(-5deg);
}

.section-icon { display: block; }

@media (max-width: 900px) {
    .section-icon-wrap { display: none; }
}

/* STATS SECTION */
.stats-section {
    background: rgba(78, 120, 55, 0.82);
    padding: 70px 5%;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.4rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

/* CARDS */
#what-we-do {
    background: transparent;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(100, 162, 67, 0.1);
    text-align: left;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:nth-child(1) { border-top: 4px solid #ff6eb4; }
.card:nth-child(2) { border-top: 4px solid #ffd700; }
.card:nth-child(3) { border-top: 4px solid #a8b4c0; }

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(100, 162, 67, 0.18);
}

.card i {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
    transition: transform 0.3s ease;
}

.card:nth-child(1) i { color: #ff6eb4; animation: bulbBlink 2.4s ease-in-out infinite; }
.card:nth-child(2) i { color: #ffd700; animation: trophyShine 2s ease-in-out infinite; }
.card:nth-child(3) i { color: #a8b4c0; animation: robotFloat 1.8s ease-in-out infinite; }

.card:hover i { transform: scale(1.25) rotate(-5deg); }

/* 💡 Lightbulb — blink + glow */
@keyframes bulbBlink {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px #ff6eb4) drop-shadow(0 0 14px #ff6eb4); }
    40%       { opacity: 0.3; filter: none; }
    55%       { opacity: 1; filter: drop-shadow(0 0 10px #ff6eb4) drop-shadow(0 0 24px #ffb3d9); }
    70%       { opacity: 0.5; filter: none; }
    85%       { opacity: 1; filter: drop-shadow(0 0 8px #ff6eb4) drop-shadow(0 0 18px #ff6eb4); }
}

/* 🏆 Trophy — pulsing shine */
@keyframes trophyShine {
    0%, 100% { filter: drop-shadow(0 0 4px #ffd700); transform: scale(1); }
    50%       { filter: drop-shadow(0 0 16px #ffd700) drop-shadow(0 0 32px #fffacd); transform: scale(1.12); }
}

/* 🤖 Robot — bouncy wiggle */
@keyframes robotFloat {
    0%   { transform: translateY(0)     rotate(0deg)  scale(1); }
    15%  { transform: translateY(-11px) rotate(-6deg) scale(1.06); }
    30%  { transform: translateY(4px)   rotate(5deg)  scale(0.97); }
    45%  { transform: translateY(-8px)  rotate(-4deg) scale(1.04); }
    60%  { transform: translateY(3px)   rotate(6deg)  scale(0.98); }
    75%  { transform: translateY(-6px)  rotate(-3deg) scale(1.03); }
    90%  { transform: translateY(2px)   rotate(3deg)  scale(0.99); }
    100% { transform: translateY(0)     rotate(0deg)  scale(1); }
}

.team-card {
    background: var(--bg-bright);
    padding: 2.5rem 2.5rem;
    border-radius: 24px;
    border: 2px solid rgba(100, 162, 67, 0.1);
    box-shadow: var(--card-shadow);
    text-align: left;
    width: 100%;
    max-width: 520px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(100, 162, 67, 0.15);
}

.card-container, .science-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    justify-content: center;
    justify-items: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    justify-content: center;
    justify-items: center;
}

.science-step {
    text-align: center;
    max-width: 350px;
}

.step-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(100, 162, 67, 0.25);
    display: block;
    margin-bottom: -5px;
    text-align: center;
}

.member-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.bio-read-more {
    background: none;
    border: 2px solid var(--accent-green);
    color: var(--accent-green-dark);
    border-radius: 50px;
    padding: 0.45rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.bio-read-more:hover {
    background: var(--accent-green);
    color: white;
    transform: scale(1.04);
}

.member-gmail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff8c00, #f5c800);
    color: #3b1200;
    font-size: 0.82rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    padding: 0.35rem 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(255,140,0,0.35);
    white-space: nowrap;
}
.member-gmail-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(255,140,0,0.5);
    color: #3b1200;
}

/* Contact Us block below team intros */
.team-contact {
    text-align: center;
    margin-top: 2.5rem;
}
.team-contact-prompt {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-charcoal);
    margin-bottom: 0.6rem;
}
.btn-contact-us {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #64a243, #3a7a20);
    color: white;
    border-radius: 50px;
    padding: 0.65rem 1.8rem;
    font-size: 0.98rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 12px rgba(58,122,32,0.35);
}
.btn-contact-us:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(58,122,32,0.45);
    color: white;
}

.bio-modal-top {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
}

.bio-modal-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(100, 162, 67, 0.25);
}

.bio-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.4rem;
    flex-wrap: wrap;
}

.bio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    background: #f0fae8;
    color: var(--accent-green-dark) !important;
    transition: background 0.2s ease;
}
.bio-link:hover { background: #d4f0be; }
.bio-link-disabled { opacity: 0.4; pointer-events: none; }
.bio-link-gmail { background: #fdecea; color: #c0392b !important; }
.bio-link-gmail:hover { background: #f9c9c5; }

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 0 1.2rem 0;
    display: block;
    border: 4px solid rgba(100, 162, 67, 0.2);
    box-shadow: 0 6px 20px rgba(100, 162, 67, 0.18);
}

.credentials {
    color: var(--accent-green-dark);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: block;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 50px 5%;
    background:
        linear-gradient(135deg,
            rgba(44, 62, 31, 0.88),
            rgba(78, 120, 55, 0.85)
        ),
        url('img/sg.jpg') center center / cover no-repeat;
    color: white;
}
footer .logo { color: white; margin-bottom: 1rem; display: block; }
footer p { color: rgba(255,255,255,0.8); }

.footer-join {
    margin: 1.8rem 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.footer-join-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92) !important;
    margin: 0;
}

.btn-footer-join {
    display: inline-block;
    padding: 0.65rem 2rem;
    background: var(--accent-yellow);
    color: var(--text-dark) !important;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(255, 224, 7, 0.35);
}

.btn-footer-join:hover {
    background: #ffd000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 224, 7, 0.5);
}

.tos-trigger-wrap { margin-top: 1rem; }
.tos-link {
    background: none;
    border: none;
    color: rgba(0,0,0,0.5);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'Nunito', sans-serif;
    transition: color 0.2s ease;
}
.tos-link:hover { color: rgba(5,5,5,0.95); }

/* TERMS OF SERVICE MODAL */
.tos-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.tos-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.tos-box {
    background: #fff;
    border-radius: 24px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease both;
}

.tos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.tos-header h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
}

.tos-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}
.tos-close:hover { color: var(--text-dark); }

.tos-body {
    overflow-y: auto;
    padding: 1.5rem 2rem;
    flex: 1;
    color: var(--text-charcoal);
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
}

.tos-body h3 {
    font-size: 0.95rem;
    color: var(--accent-green-dark);
    margin: 1.5rem 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tos-subtitle {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.tos-footer-note {
    margin-top: 1.5rem;
    font-style: italic;
    color: #888;
    font-size: 0.88rem;
}

.tos-footer {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid #eee;
    text-align: right;
    flex-shrink: 0;
}

/* CHATBOT WIDGET */
#chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
}

#chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(100, 162, 67, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: white;
    font-size: 1.4rem;
}

#chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 28px rgba(100, 162, 67, 0.5);
}

#chat-icon-close { display: none; }

#chat-widget.open #chat-icon-open { display: none; }
#chat-widget.open #chat-icon-close { display: block; }

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

#chat-window {
    display: none;
    flex-direction: column;
    width: 460px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: chatSlideUp 0.25s ease both;
}

#chat-widget.open #chat-window { display: flex; }

#chat-header {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.chat-name { font-weight: 800; font-size: 0.95rem; }
.chat-status { font-size: 0.75rem; opacity: 0.85; }

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
}
.chat-close-btn:hover { opacity: 1; }

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #f8fdf5;
}

.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }

.chat-bubble {
    max-width: 80%;
    padding: 0.7rem 1rem;
    border-radius: 16px;
    font-size: 1rem;
    line-height: 1.5;
    font-family: 'Nunito', sans-serif;
}

.chat-msg.bot .chat-bubble {
    background: white;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-typing .chat-bubble {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.7rem 1rem;
}

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%            { transform: translateY(-5px); opacity: 1; }
}

.typing-dot {
    width: 7px; height: 7px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: typingDot 1.2s ease infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* BOOKING SLOT FORM */
.chat-form-bubble { max-width: 92% !important; padding: 0.8rem 1rem !important; }

.slot-form { display: flex; flex-direction: column; gap: 0.55rem; }

.slot-intro { font-size: 0.85rem; margin: 0 0 0.3rem 0; }

.chat-pricing-link {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #64a243, #3a7a20);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(100,162,67,0.3);
    transition: transform 0.15s ease, filter 0.15s ease;
    font-family: inherit;
}
.chat-pricing-link:hover { transform: translateY(-2px); filter: brightness(1.1); }

.email-fallback-btns {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.7rem;
}
.email-fallback-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.email-fallback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    filter: brightness(1.08);
}
.email-fallback-btn:active { transform: translateY(0); }
.gmail-btn {
    background: linear-gradient(135deg, #ea4335, #c5271b);
}
.tg-btn {
    background: linear-gradient(135deg, #29a0d8, #1a6fa8);
}

.slot-pricing {
    background: rgba(100,162,67,0.08);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.slot-pricing-row { font-size: 0.82rem; color: #3a5c1f; }
.slot-pricing-note { font-size: 0.75rem; opacity: 0.7; }
.slot-divider { height: 1px; background: rgba(100,162,67,0.2); margin: 0.2rem 0; }

.slot-row { display: flex; flex-direction: column; gap: 0.2rem; }

.slot-form label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.slot-req { color: #e53e3e; }
.slot-opt { font-weight: 600; color: #888; font-size: 0.72rem; }

.slot-input {
    width: 100%;
    padding: 0.42rem 0.6rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background: #fafafa;
    transition: border-color 0.2s;
}
.slot-input:focus { outline: none; border-color: var(--accent-green); background: #fff; }

.slot-notes {
    resize: vertical;
    min-height: 64px;
    line-height: 1.45;
}

.slot-submit-btn {
    margin-top: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    color: white;
    border: none;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s, transform 0.2s;
}
.slot-submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }

#chat-input-area {
    display: flex;
    align-items: center;
    padding: 0.7rem;
    border-top: 1px solid #eee;
    gap: 0.5rem;
    background: white;
    flex-shrink: 0;
}

#chat-input {
    flex: 1;
    border: 1.5px solid #e0e0e0;
    border-radius: 50px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    color: var(--text-dark);
}
#chat-input:focus { border-color: var(--accent-green); }

#chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    border: none;
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
#chat-send:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    .bio-read-more {
        font-size: 0.78rem;
        padding: 0.35rem 0.9rem;
    }

    .tos-box {
        max-width: 100%;
        width: 100%;
        max-height: 88vh;
        border-radius: 20px;
    }

    #chat-widget {
        bottom: 1rem;
        right: 1rem;
    }

    #chat-window {
        width: calc(100vw - 2rem);
        height: 70vh;
        max-height: 520px;
        border-radius: 16px;
    }

    #chat-toggle {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
}

/* HAMBURGER BUTTON */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- MOBILE RESPONSIVENESS --- */

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 2.2rem; }

    nav {
        flex-wrap: wrap;
        padding: 0.9rem 5%;
        position: relative;
    }

    .hamburger { display: flex; }

    #nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        gap: 0;
        padding: 0;
    }

    #nav-menu.open {
        max-height: 400px;
        padding: 0.5rem 0 1rem;
    }

    #nav-menu li { width: 100%; }

    #nav-menu a {
        display: block;
        padding: 0.8rem 1rem;
        font-size: 1.05rem;
        border-radius: 12px;
    }

    #nav-menu a:not(.btn-primary):hover { background: #f0fae8; }

    #nav-menu a.btn-primary {
        margin-top: 0.5rem;
        text-align: center;
    }

    nav ul a:not(.btn-primary)::after { display: none; }

    .hero {
        text-align: left;
        justify-content: flex-start;
        padding-top: 3rem;
    }

    .hero-btns { justify-content: flex-start; }
    .card, .team-card { padding: 1.8rem 1.4rem; }
    .team-card { max-width: 100%; }
    .member-photo { width: 90px; height: 90px; }
    .team-card h3 { font-size: 1rem; }
    .team-card .bio { font-size: 0.88rem; }
    .stat-number { font-size: 2.4rem; }

    .tos-body { padding: 1rem 1.2rem; }
    .tos-header { padding: 1.2rem 1.2rem 0.8rem; }
    .tos-footer { padding: 0.8rem 1.2rem 1.2rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.9rem; }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}
