/* ===== About Page ===== */

html:has(.about-page),
.about-page {
    height: auto;
    min-height: 100%;
    background: #0D8E8E;
}

/* ===== Floating Background Shapes ===== */
.floating-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation-fill-mode: forwards;
}

.shape--circle {
    background: rgba(234, 95, 92, 0.08);
}

.shape--ring {
    background: transparent;
    border: 2px solid rgba(245, 185, 24, 0.12);
}

.shape--dot {
    background: rgba(255, 255, 255, 0.06);
}

.shape--1 {
    width: 300px; height: 300px;
    top: 15%; left: -80px;
    animation: floatShape1 14s ease-in-out infinite alternate;
}
.shape--2 {
    width: 180px; height: 180px;
    top: 45%; right: -40px;
    animation: floatShape2 18s ease-in-out infinite alternate;
}
.shape--3 {
    width: 120px; height: 120px;
    bottom: 20%; left: 10%;
    animation: floatShape3 12s ease-in-out infinite alternate;
}
.shape--4 {
    width: 200px; height: 200px;
    top: 30%; right: 8%;
    animation: floatShape4 16s ease-in-out infinite alternate;
}
.shape--5 {
    width: 140px; height: 140px;
    bottom: 35%; left: -30px;
    animation: floatShape5 20s ease-in-out infinite alternate;
}
.shape--6 {
    width: 8px; height: 8px;
    top: 25%; left: 20%;
    animation: floatDot 6s ease-in-out infinite alternate;
}
.shape--7 {
    width: 6px; height: 6px;
    top: 55%; right: 25%;
    animation: floatDot 8s ease-in-out infinite alternate-reverse;
}
.shape--8 {
    width: 10px; height: 10px;
    bottom: 30%; right: 15%;
    animation: floatDot 7s ease-in-out infinite alternate;
}

@keyframes floatShape1 {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.08; }
    100% { transform: translateY(-60px) rotate(20deg); opacity: 0.12; }
}
@keyframes floatShape2 {
    0%   { transform: translateY(0) translateX(0); opacity: 0.06; }
    100% { transform: translateY(-40px) translateX(-30px); opacity: 0.1; }
}
@keyframes floatShape3 {
    0%   { transform: translateY(0) scale(1); opacity: 0.07; }
    100% { transform: translateY(-50px) scale(1.2); opacity: 0.1; }
}
@keyframes floatShape4 {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    100% { transform: translateY(-35px) rotate(-15deg); opacity: 0.15; }
}
@keyframes floatShape5 {
    0%   { transform: translate(0, 0) rotate(0); opacity: 0.08; }
    100% { transform: translate(20px, -45px) rotate(30deg); opacity: 0.12; }
}
@keyframes floatDot {
    0%   { transform: translateY(0); opacity: 0.15; }
    100% { transform: translateY(-20px); opacity: 0.4; }
}

/* ===== Scroll Navbar — wooden board, hidden by default ===== */
.scroll-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: transparent;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.scroll-navbar.visible {
    transform: translateY(0);
}

/* Logo — fixed, hidden by default, slides in with navbar */
.about-page .hero-logo {
    position: fixed;
    top: 24px;
    left: 32px;
    z-index: 501;
    width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transform: translateY(-200%);
    transition: transform 0.5s ease;
}

.about-page .hero-logo.visible {
    transform: translateY(0);
}

/* ===== About Hero ===== */
.about-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.about-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 120px;
    margin-bottom: 24px;
    width: 100%;
    overflow: visible;
}

.about-heading svg {
    display: block;
    overflow: visible;
}

.about-tagline {
    font-family: 'Zen Dots', cursive;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

/* Tagline words — animated individually */
.tagline-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
}

/* ===== Do Good Section ===== */
.about-dogood {
    padding: 100px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    perspective: 800px;
    position: relative;
}

/* Pulsing glow ring behind Do Good */
.about-dogood::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(234, 95, 92, 0.2);
    animation: pulseRing 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(0.6); opacity: 0; }
    50%      { transform: scale(1.2); opacity: 0.3; }
}

.dogood-heading {
    font-family: 'Zen Dots', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    color: #fff;
    line-height: 1.3;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.dg-line {
    display: block;
    will-change: transform, opacity;
}

/* ===== About Info Section ===== */
.about-info {
    padding: 0 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 100px;
    position: relative;
    z-index: 1;
}

.info-block {
    background: #0E5E9E;
    border-radius: 12px;
    padding: 48px 52px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Shimmer sweep on info blocks */
.info-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transition: left 0.8s ease;
    pointer-events: none;
}

.info-block:hover::before {
    left: 100%;
}

.info-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.info-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #EA5F5C;
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
}

/* Animated underline */
.info-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #EA5F5C, #F5B918);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.info-block:hover .info-title::after {
    width: 100%;
}

.info-block p {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 16px;
}

.info-block p:last-child {
    margin-bottom: 0;
}

/* ===== Info Rows — alternating image + text ===== */
.info-row {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.info-row--reverse {
    direction: rtl;
}

.info-row--reverse > * {
    direction: ltr;
}

.info-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.5s ease;
}

.info-image-wrap:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 30px rgba(234, 95, 92, 0.15);
}

/* Coral accent corners — animated */
.info-image-wrap::before,
.info-image-wrap::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 4px solid #EA5F5C;
    border-radius: 8px;
    z-index: 2;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.info-image-wrap::before {
    top: -6px;
    left: -6px;
    border-right: none;
    border-bottom: none;
}

.info-image-wrap::after {
    bottom: -6px;
    right: -6px;
    border-left: none;
    border-top: none;
}

.info-image-wrap:hover::before {
    width: 80px;
    height: 80px;
    top: -10px;
    left: -10px;
}

.info-image-wrap:hover::after {
    width: 80px;
    height: 80px;
    bottom: -10px;
    right: -10px;
}

.info-row--reverse .info-image-wrap::before {
    left: auto;
    right: -6px;
    border-left: none;
    border-right: 4px solid #EA5F5C;
}

.info-row--reverse .info-image-wrap::after {
    right: auto;
    left: -6px;
    border-right: none;
    border-left: 4px solid #EA5F5C;
}

.info-row--reverse .info-image-wrap:hover::before {
    left: auto;
    right: -10px;
}

.info-row--reverse .info-image-wrap:hover::after {
    right: auto;
    left: -10px;
}

.info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s ease;
    filter: saturate(0.9);
}

/* Portrait photos */
.info-image--portrait {
    aspect-ratio: 3 / 4;
    object-position: center top;
}

/* Landscape / group photos — show full width */
.info-image--landscape {
    aspect-ratio: 16 / 10;
    object-position: center center;
}

.info-image-wrap:hover .info-image {
    transform: scale(1.06);
    filter: saturate(1.1);
}

/* Clip-path reveal — initial state set by JS */
.info-image-wrap.clip-reveal {
    clip-path: inset(0 0 0 0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .about-heading { min-height: 80px; }
    .about-tagline { font-size: 0.85rem; }
    .dogood-heading { font-size: clamp(1.6rem, 5vw, 3rem); }
    .info-block { padding: 32px 28px; }
    .info-title { font-size: 1.3rem; }
    .info-block p { font-size: 0.92rem; }
    .about-dogood { padding: 70px 24px; }
    .about-page .hero-logo { width: 140px; }
    .info-row,
    .info-row--reverse { grid-template-columns: 1fr; gap: 30px; }
    .info-row--reverse { direction: ltr; }
    .about-info { gap: 60px; }
    .info-image--portrait { aspect-ratio: 4 / 3; }
    .about-dogood::before { width: 250px; height: 250px; }
    .shape--1, .shape--2, .shape--4 { display: none; }
}

@media (max-width: 580px) {
    .scroll-navbar { padding: 10px 16px; }
    .about-hero { height: 85vh; }
    .about-page .hero-logo { width: 120px; top: 14px; left: 14px; }
    .about-heading { min-height: 60px; }
    .about-tagline { font-size: 0.78rem; }
    .dogood-heading { font-size: clamp(1.4rem, 5vw, 2.2rem); }
    .about-dogood { padding: 50px 20px; }
    .info-block { padding: 28px 20px; }
    .info-title { font-size: 1.1rem; }
    .info-block p { font-size: 0.85rem; }
    .about-info { gap: 50px; padding: 0 16px 60px; }
    .info-row { gap: 24px; }
    .floating-shapes { display: none; }
}
