/* ══════════════════════════════════════════════════
   ABOUT PAGE — House of Ambava
   Ultra-smooth animations & elegant layout
   ══════════════════════════════════════════════════ */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .about-page * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ── Keyframes ── */
@keyframes labelLineExpand {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes imageReveal {
    from { opacity: 0; transform: scale(1.08) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes frameReveal {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes logoSpin {
    from { opacity: 0; transform: rotate(-90deg) scale(0.6); }
    to   { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes quotePulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.15); opacity: 0.9; }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes borderDraw {
    from { stroke-dashoffset: 600; }
    to   { stroke-dashoffset: 0; }
}

/* ── Reveal Animation Base ── */
.anim-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.anim-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Slide-from-left variant */
.anim-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.anim-reveal-left.is-revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Slide-from-right variant */
.anim-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.anim-reveal-right.is-revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-fade variant */
.anim-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.anim-scale.is-revealed {
    opacity: 1;
    transform: scale(1);
}

/* ── Hero Banner ── */
.about-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 30px 60px 20px;
    text-align: center;
    background: linear-gradient(
        180deg,
        var(--bg) 0%,
        color-mix(in srgb, var(--primary) 8%, var(--bg)) 100%
    );
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--primary) 6%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--primary) 4%, transparent) 0%, transparent 40%);
    pointer-events: none;
}

/* Floating decorative orbs */
.about-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 5%, transparent) 0%, transparent 70%);
    top: -50px;
    right: -80px;
    animation: floatSoft 6s ease-in-out infinite;
    pointer-events: none;
}

.about-hero-inner {
    position: relative;
    max-width: 800px;
    z-index: 1;
}

.about-hero-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-label-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--primary);
    transform-origin: center;
    transform: scaleX(0);
}

.about-hero-label.is-revealed .hero-label-line {
    animation: labelLineExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.about-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--text) 0%, var(--primary) 50%, var(--text) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero-title.is-revealed {
    animation: shimmer 3s ease-in-out 0.5s 1;
}

.about-hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted, color-mix(in srgb, var(--text) 65%, transparent));
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Story Section ── */
.about-story {
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Left Column — Images */
.about-image-col {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.about-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrapper:hover .about-main-image {
    transform: scale(1.03);
}

.about-image-frame {
    position: absolute;
    inset: -12px;
    border: 2px solid color-mix(in srgb, var(--primary) 25%, transparent);
    border-radius: 20px;
    pointer-events: none;
    transition: border-color 0.5s ease, inset 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrapper:hover .about-image-frame {
    border-color: color-mix(in srgb, var(--primary) 50%, transparent);
    inset: -16px;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: color-mix(in srgb, var(--primary) 8%, var(--bg-surface));
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--primary);
}

.about-image-placeholder i {
    font-size: 48px;
    opacity: 0.5;
}

.about-image-placeholder span {
    font-size: 14px;
    opacity: 0.6;
}

.about-secondary-wrapper {
    position: relative;
    width: 55%;
    margin-top: -60px;
    margin-left: auto;
    margin-right: -20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-secondary-wrapper:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.16);
}

.about-secondary-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-secondary-wrapper:hover .about-secondary-image {
    transform: scale(1.03);
}

/* Right Column — Text */
.about-text-col {
    padding-top: 20px;
}

/* Brand Logo + Name */
.about-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.about-brand-logo {
    width: 56px;
    height: 56px;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-brand-logo.brand-logo {
    width: auto !important;
    height: 35px !important;
    object-fit: contain;
}

.about-brand.is-revealed .about-brand-logo {
    animation: logoSpin 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.about-brand:hover .about-brand-logo {
    transform: rotate(15deg) scale(1.1);
}

.about-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--text);
}

/* Founder */
.about-founder {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
    position: relative;
}

.about-founder::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-founder.is-revealed::after {
    width: 100%;
}

.founder-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.founder-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
}

/* Story Text */
.about-story-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-muted, color-mix(in srgb, var(--text) 75%, transparent));
}

.about-story-text p {
    margin-bottom: 20px;
}

.about-story-text p:last-child {
    margin-bottom: 0;
}

/* ── Quote Section ── */
.about-quote {
    padding: 60px;
    background: color-mix(in srgb, var(--primary) 5%, var(--bg));
    position: relative;
    overflow: hidden;
}

.about-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.about-quote::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.about-quote.section-visible::before,
.about-quote.section-visible::after {
    opacity: 0.3;
}

.about-quote-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-mark {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 24px;
    opacity: 0.6;
}

.quote-mark i {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-quote-inner.is-revealed .quote-mark i {
    animation: quotePulse 2.5s ease-in-out 0.8s 1;
}

.about-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 24px;
}

.about-quote cite {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    font-style: normal;
}

/* ── Mission Section ── */
.about-mission {
    padding: 80px 60px;
}

.about-mission-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.mission-header {
    text-align: center;
    margin-bottom: 40px;
}

.mission-label {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--text);
}

.mission-text {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-muted, color-mix(in srgb, var(--text) 75%, transparent));
}

.mission-text p {
    margin-bottom: 16px;
}

.mission-text p:last-child {
    margin-bottom: 0;
}

/* Values Grid */
.about-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--primary) 10%, transparent);
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s ease;
}

/* Gradient glow on hover */
.value-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.value-card:hover::before {
    opacity: 1;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
    border-color: color-mix(in srgb, var(--primary) 35%, transparent);
}

.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border-radius: 50%;
    color: var(--primary);
    font-size: 22px;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.5s ease,
                box-shadow 0.5s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.15) translateY(-2px);
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 20%, transparent);
}

.value-icon i {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover .value-icon i {
    transform: scale(1.1);
}

.value-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.value-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted, color-mix(in srgb, var(--text) 60%, transparent));
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
    .about-story-grid {
        gap: 50px;
    }

    .about-values {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 24px 24px 16px;
        min-height: auto;
    }

    .about-story {
        padding: 50px 24px;
    }

    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-col {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-secondary-wrapper {
        margin-right: 0;
    }

    .about-text-col {
        padding-top: 0;
    }

    .about-brand-name {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .about-quote {
        padding: 50px 24px;
    }

    .about-mission {
        padding: 50px 24px;
    }

    .about-values {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .value-card {
        padding: 28px 16px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 20px 16px 14px;
    }

    .about-hero-label {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .hero-label-line {
        width: 24px;
    }

    .about-story {
        padding: 32px 14px;
    }

    .about-brand {
        gap: 12px;
        margin-bottom: 28px;
    }

    .about-brand-logo {
        width: 44px;
        height: 44px;
    }

    .about-brand-name {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .founder-name {
        font-size: 1.3rem;
    }

    .about-story-text {
        font-size: 0.92rem;
    }

    .about-quote {
        padding: 32px 16px;
    }

    .about-quote blockquote {
        font-size: 1.2rem;
    }

    .about-mission {
        padding: 32px 14px;
    }

    .about-values {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .value-card {
        padding: 22px 14px;
    }
}
