/* Zee Tech Foundation - Ocean Deep static site */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #dbe3ec;
  --text: #0c2340;
  --muted: #56657a;
  --primary: #0c2340;
  --primary-2: #1a4a6e;
  --accent: #2d8a9e;
  --highlight: #5cbdb9;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 6px 20px -8px rgba(12,35,64,.18);
  --font-heading: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--font-heading); color: var(--text); margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--font-heading); font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
/* .brand-logo { width: 36px; height: 36px; object-fit: contain; display: block; } */
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.brand-name { font-size: 1.05rem; }
.brand-name span { color: var(--accent); }
.nav-links { display: none; gap: .25rem; }
.nav-links a { padding: .5rem .75rem; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .92rem; }
.nav-links a:hover { background: #eef2f7; text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-cta { display: none; }
.menu-btn { background: none; border: 1px solid var(--border); border-radius: 8px; padding: .45rem .6rem; cursor: pointer; }
@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; align-items: center; }
  .menu-btn { display: none; }
}
.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; padding: .5rem 1.25rem 1rem; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: .65rem .5rem; border-radius: 8px; color: var(--text); font-weight: 500; }
.mobile-nav a:hover { background: #eef2f7; text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem 1.15rem; border-radius: 999px; font-weight: 600; font-family: var(--font-body); font-size: .92rem; border: 1px solid transparent; cursor: pointer; transition: transform .05s ease, background .2s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #256f80; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: #0a1b31; }
.btn-ghost { background: #eef2f7; color: var(--text); }
.btn-ghost:hover { background: #e2e8ef; }

/* Hero */
.hero { position: relative; color: #fff; background: linear-gradient(135deg, #0c2340 0%, #1a4a6e 60%, #2d8a9e 100%); overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(92,189,185,.35), transparent 45%), radial-gradient(circle at 85% 80%, rgba(45,138,158,.35), transparent 50%); }
.hero-inner { position: relative; padding: 5rem 1.5rem 5.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 700; color: var(--highlight); margin-bottom: .75rem; }
.hero h1 { color: #fff; max-width: 780px; }
.hero p.lead { max-width: 620px; color: rgba(255,255,255,.85); font-size: 1.08rem; margin-top: 1rem; }
.hero-actions { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); }
.hero-image img { width: 100%; height: 420px; object-fit: cover; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-image img { height: 280px; } }

/* Page hero (compact) */
.page-hero { color: #fff; background: linear-gradient(135deg, #0c2340, #1a4a6e); padding: 4rem 0; border-bottom: 1px solid var(--border); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; }

/* Sections */
section.block { padding: 4rem 0; }
section.block.alt { background: #eef2f7; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { color: var(--accent); }
.section-image{
    width:100%;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    object-fit:cover;
}

/* Grid cards */
.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-top: .25rem; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: #eaf6f8; color: var(--accent); display: grid; place-items: center; font-weight: 700; margin-bottom: .75rem; }

/* Team cards */
.team-card { text-align: center; }
.team-card .team-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid #fff; box-shadow: 0 8px 24px -10px rgba(12,35,64,.35); transition: transform .3s ease, box-shadow .3s ease; }
.team-card:hover .team-img { transform: scale(1.05); box-shadow: 0 12px 32px -12px rgba(12,35,64,.45); }
.team-card h3 { margin-top: 0; }
@media (max-width: 600px) { .team-card .team-img { width: 100px; height: 100px; } }

.stat { text-align: left; }
.stat .num { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat .lbl { color: var(--muted); margin-top: .25rem; font-size: .95rem; }

/* Forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .65rem .75rem; border: 1px solid var(--border); background: #fff; border-radius: 8px; color: var(--text); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .hint { color: var(--muted); font-size: .8rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; }
.table th { background: #f2f5f9; font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #eaf6f8; color: var(--accent); }
.badge.gray { background: #eef2f7; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.timeline li { display: flex; gap: 1rem; align-items: flex-start; }
.timeline .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.timeline .body strong { display: block; font-family: var(--font-heading); }
.timeline .body small { color: var(--muted); }

/* CTA banner */
.cta-banner { background: linear-gradient(135deg, #0c2340, #2d8a9e); color: #fff; border-radius: 16px; padding: 3rem; text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 1.5rem; }

/* Footer */
.site-footer { background: #0c2340; color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .75rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Toast */
.toast { position: fixed; top: 20px; right: 20px; background: #0c2340; color: #fff; padding: .85rem 1.1rem; border-radius: 10px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); z-index: 100; opacity: 0; transform: translateY(-8px); transition: .25s; font-size: .92rem; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #1a7a4b; }
.toast.error { background: #a83223; }

/* Auth pages */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 3rem 1rem; background: #eef2f7; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 2rem; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.muted { color: var(--muted); }
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; }

/* ============ Animations ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slideFade { 0% { opacity: 0; transform: scale(1.02); } 10%,90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

.hero-image { animation: fadeUp .9s ease both; }
.hero h1, .hero p.lead, .hero-actions, .page-hero h1, .page-hero p { animation: fadeUp .7s ease both; }
.hero p.lead { animation-delay: .1s; }
.hero-actions { animation-delay: .2s; }

.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(12,35,64,.35); border-color: var(--highlight); }
.btn { transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(12,35,64,.4); }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.stat .num { display: inline-block; }
.stat:hover .num { animation: floaty 2s ease-in-out infinite; }

/* ============ Form pages with background image ============ */
.form-bg { position: relative; min-height: calc(100vh - 64px); padding: 4rem 0; background-size: cover; background-position: center; background-attachment: fixed; }
.form-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(12,35,64,.85), rgba(26,74,110,.75) 60%, rgba(45,138,158,.65)); }
.form-bg > .container { position: relative; z-index: 1; }
.form-bg .form-intro { color: #fff; text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.form-bg .form-intro h1 { color: #fff; }
.form-bg .form-intro p { color: rgba(255,255,255,.85); }
.form-bg .card { background: rgba(255,255,255,.97); backdrop-filter: blur(6px); animation: fadeUp .6s ease both; }
.form-bg-apply { background-image: url("images/hero.jpg"); }
.form-bg-donate { background-image: url("images/handover.jpg"); }
.form-bg-partner { background-image: url("images/refurbish.jpg"); }

/* ============ Terms checkbox ============ */
.field-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.field-check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--accent); flex: 0 0 auto; }
.field-check label { font-weight: 500; color: var(--text); }
.field-check a { color: var(--accent); font-weight: 600; }

/* ============ Home hero slider ============ */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider .slides { position: relative; }
.hero-slide { display: none; animation: fadeIn .6s ease; }
.hero-slide.active { display: block; }
.hero-video { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); background: #000; }
.hero-video video, .hero-video iframe { width: 100%; height: 420px; object-fit: cover; display: block; border: 0; }
@media (max-width: 860px) { .hero-video video, .hero-video iframe { height: 280px; } }
.slider-dots { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 5; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.slider-dots button.active { background: #fff; transform: scale(1.3); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; z-index: 5; display: grid; place-items: center; transition: background .2s; }
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-arrow.prev { left: 1rem; } .slider-arrow.next { right: 1rem; }

/* ============ Partners marquee ============ */
.partners { padding: 3.5rem 0; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.partners h2 { text-align: center; font-size: 1.1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .18em; font-weight: 600; margin-bottom: 2rem; }
.partners-track-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.partners-track { display: flex; gap: 3rem; width: max-content; animation: marquee 30s linear infinite; }
.partners-track:hover { animation-play-state: paused; }
.partner-logo { flex: 0 0 auto; display: grid; place-items: center; height: 60px; padding: 0 1.5rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; transition: opacity .2s, transform .2s; }
.partner-logo:hover { opacity: 1; transform: translateY(-3px); }
.partner-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: .5rem; display: inline-block; }

