/* ─── DESIGN TOKENS ─── */
:root {
    --bg:          #f4f6f8;
    --surface:     #ffffff;
    --surface-2:   #eef1f5;
    --border:      rgba(100,120,150,0.15);
    --accent:      #5b9bd5;
    --accent-dark: #2f6fa8;
    --text:        #1a2535;
    --text-muted:  #5a6a7e;
    --glass-bg:    rgba(255,255,255,0.01);
    --overlay:     rgba(15,25,45,0.52);
    --radius:      10px;
    --radius-lg:   18px;
}

html { scroll-behavior: auto; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ─── NAVIGATION ─── */
.site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 56px;
}
.logo img { height: 44px; }
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

/* ─── HERO ─── */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
    animation: heroZoom 12s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.00); }
}
.hero-slide-1 { background-image: url('Images/busy-cargo-port.jpg'); }
.hero-slide-2 { background-image: url('Images/vessel in port.jpg'); }
.hero-slide-3 { background-image: url('Images/Roofer_at_Work.png'); }
.hero-slide-4 { background-image: url('Images/Nighttime_Driving_Reflections.png'); }

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: var(--overlay); pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none; z-index: 3;
}
.hero-glass {
    position: relative; z-index: 2;
    width: min(820px, 88vw);
    padding: 56px 48px;
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 400;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.hero h1 em { font-style: italic; color: #a8d4f5; }
.hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    max-width: 480px;
    margin: 0 auto 32px;
    font-weight: 300;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-weight: 600; font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(47,111,168,0.4);
    transition: background 0.2s, transform 0.15s;
}
.hero-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.hero-cta .dot {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.4); }
}
.slide-indicators {
    position: absolute; bottom: 148px; right: 56px; z-index: 2;
    display: flex; gap: 7px; align-items: center;
}
.slide-dot {
    width: 26px; height: 3px; border-radius: 2px;
    background: rgba(255,255,255,0.3); cursor: pointer;
    transition: background 0.3s, width 0.3s;
}
.slide-dot.active { background: rgba(255,255,255,0.9); width: 36px; }

/* ─── LAYOUT ─── */
section { padding: 80px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }

h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
    text-align: center;
    margin-bottom: 12px;
}
.section-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 48px;
    font-weight: 300;
}

/* ─── ANSWER-FIRST SUMMARY ─── */
.answer-first {
    background: linear-gradient(135deg, rgba(91,155,213,0.08) 0%, rgba(47,111,168,0.05) 100%);
    border: 1px solid rgba(91,155,213,0.25);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 48px;
}
.answer-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 8px;
    text-align: left;
}
.answer-text {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.65;
    font-weight: 400;
    text-align: left;
}

/* ─── WHAT IS SELFTY ─── */
.selfty-intro { background: var(--surface); }
.selfty-intro p {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 10px;
}

/* ─── ACCORDION ─── */
.accordion-wrap { margin-top: 40px; }
.acc-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--surface);
}
.acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: background 0.15s;
    user-select: none;
}
.acc-header:hover { background: var(--surface-2); }
.acc-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.25s;
}
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-body-inner {
    padding: 0 22px 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.acc-body-inner p + p { margin-top: 12px; }
.acc-item.open .acc-body { max-height: 1000px; }

/* ─── COMPASS SECTION ─── */
.compass-section { background: var(--surface-2); }
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.compass-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin: 0 auto;
}
.compass-layer-rose {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
}
.compass-layer-rose img {
    width: 85%; height: 85%;
    object-fit: contain;
    animation: compassSpin 20s linear infinite;
    transform-origin: center center;
}
.compass-layer-text {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.compass-layer-text img { width: 100%; height: 100%; object-fit: contain; }
@keyframes compassSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.feature-list { list-style: none; margin-top: 24px; }
.feature-list li {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px 0; border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.fi-icon {
    width: 38px; height: 38px;
    background: rgba(91,155,213,0.12);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.fi-icon svg { width: 20px; height: 20px; fill: var(--accent); }
.fi-text h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.fi-text p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }

/* ─── TEAM SECTION ─── */
.team-section { background: var(--surface); }
.team-wave-wrap {
    position: relative; overflow: hidden;
    padding: 64px 24px 80px;
}
.team-wave-bg {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    background: linear-gradient(180deg, #e8f4fd 0%, #d0e8f7 50%, #b8d9f0 100%);
}
.team-wave-bg svg {
    position: absolute; bottom: 0; width: 200%; height: 60%;
}
.wave1 { animation: waveMove 9s linear infinite; opacity: 0.5; }
.wave2 { animation: waveMove 14s linear infinite reverse; opacity: 0.35; bottom: -10px; }
.wave3 { animation: waveMove 6s linear infinite; opacity: 0.25; bottom: -20px; }
.wave2, .wave3 { position: absolute; width: 200%; }
@keyframes waveMove {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.team-wave-wrap .team-grid { position: relative; z-index: 1; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.team-card:last-child:nth-child(3n + 1) { grid-column: 2 / 3; }
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px 22px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.team-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); transform: translateY(-3px); }
.team-card img {
    width: 90px; height: 90px;
    border-radius: 50%;
    object-fit: cover;
    object-position: var(--photo-pos, center);
    margin-bottom: 14px;
    border: 3px solid var(--surface-2);
}
.team-card h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem; font-weight: 400; margin-bottom: 4px;
}
.team-role {
    font-size: 0.78rem; color: var(--accent-dark);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 10px;
}
.team-bio { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; font-weight: 300; }
.team-li-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px; color: var(--accent-dark); text-decoration: none;
    font-size: 0.82rem; font-weight: 600;
}
.team-li-link:hover { text-decoration: underline; }
.team-li-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ─── WHITEPAPER CTA ─── */
.whitepaper-cta {
    background: linear-gradient(135deg, #1a2f4e 0%, #2a4a72 100%);
    color: #fff; text-align: center; padding: 80px 24px;
}
.whitepaper-cta h2 { color: #fff; }
.whitepaper-cta .section-intro { color: rgba(255,255,255,0.72); }
.btn-primary {
    display: inline-block; background: var(--accent); color: #fff;
    padding: 13px 32px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.9rem; text-decoration: none;
    margin-top: 8px;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(47,111,168,0.4);
}
.btn-primary:hover { background: #4a8bc5; transform: translateY(-1px); }

/* ─── FAQ SECTION ─── */
.faq-section { background: var(--surface); }

/* ─── UN SDG ─── */
.sdg-section { background: var(--surface-2); }

/* ─── CONTACT ─── */
.contact-section { background: var(--surface); }
.contact-section > .container-narrow > p {
    text-align: center; color: var(--text-muted);
}

/* ─── CONTACT BUTTONS WITH IMAGES ─── */
.contact-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 40px 0 60px;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 18px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.contact-btn-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    display: block;
}

/* LinkedIn */
.contact-btn--li {
    background: linear-gradient(135deg, #0a66c2 0%, #0d7be0 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(10,102,194,0.25);
}
.contact-btn--li:hover {
    background: linear-gradient(135deg, #084f9a 0%, #0a66c2 100%);
    transform: translateY(-2px);
}


/* ─── TEAM BUTTON (BLUE GRADIENT TILE) ─── */
.contact-btn--team {
    background: linear-gradient(135deg, #5b9bd5 0%, #2f6fa8 100%);
    border: none;
    color: #fff;
    box-shadow: 0 6px 20px rgba(47,111,168,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.25s ease;
}

.contact-btn--team:hover {
    background: linear-gradient(135deg, #4a8bc5 0%, #2a5f90 100%);
    transform: translateY(-2px);
}

/* Team icon */
.contact-btn--team .contact-btn-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
}

/* Text */
.contact-btn--team .contact-btn-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.contact-btn--team .contact-btn-sub {
    font-size: 0.78rem;
    opacity: 0.85;
    color: #e8f4fd;
}
/* Text */
.contact-btn--team .contact-btn-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.contact-btn--team .contact-btn-sub {
    font-size: 0.78rem;
    opacity: 0.85;
    color: #e8f4fd;
}

/* Outline */
.contact-btn--outline {
    background: var(--surface-2);
    border: 1.5px solid rgba(91,155,213,0.25);
    color: var(--text);
    box-shadow: 0 3px 10px rgba(91,155,213,0.08);
}
.contact-btn--outline:hover {
    background: var(--surface);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Image styling */
.contact-btn-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
}

/* Text */
.contact-btn-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.contact-btn-sub {
    font-size: 0.78rem;
    opacity: 0.8;
    font-weight: 400;
}


.privacy-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 40px;
}
.privacy-box h2 { text-align: left; font-size: 1.4rem; margin-bottom: 14px; }
.privacy-box p { text-align: left; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; }
.btn-outline {
    display: inline-block;
    border: 1.5px solid var(--accent);
    color: var(--accent-dark);
    padding: 9px 22px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.85rem; text-decoration: none;
    transition: background 0.2s;
}
.btn-outline:hover { background: rgba(91,155,213,0.1); }

/* ─── FOOTER ─── */
footer {
    background: var(--text);
    color: rgba(255,255,255,0.6);
    padding: 48px 56px;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 32px; flex-wrap: wrap;
}
footer p { font-size: 0.85rem; line-height: 1.8; }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
footer a:hover { color: #fff; }
.footer-links p { line-height: 2; }

/* ─── HERO ENTRANCE ANIMATIONS ─── */
.site-header { animation: fadeDown 0.8s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero h1    { animation: fadeUp 0.8s 0.5s cubic-bezier(0.22,1,0.36,1) both; }
.hero-sub   { animation: fadeUp 0.8s 0.7s cubic-bezier(0.22,1,0.36,1) both; }
.hero-cta   { animation: fadeUp 0.8s 0.9s cubic-bezier(0.22,1,0.36,1) both; }
.slide-indicators { animation: fadeIn 0.7s 1.3s ease both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0; transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-group > * {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
                transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.reveal-group.visible > *:nth-child(1) { transition-delay: 0s;    opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.1s;  opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.2s;  opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.3s;  opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(5) { transition-delay: 0.4s;  opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(6) { transition-delay: 0.5s;  opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(7) { transition-delay: 0.6s;  opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */

@media (max-width: 768px) {
    nav { padding: 18px 20px; }
    .nav-links { display: none; }
    .hero-glass { padding: 36px 24px; }
    .split-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .team-card:last-child:nth-child(3n + 1) { grid-column: auto; }
    footer { padding: 40px 20px; }
    .slide-indicators { display: none; }
}
@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
}
