@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hide floating badges on mobile so only the photo shows */
@media (max-width: 900px) {
    .index-page .hero__badge-float {
        display: none !important;
    }
}

:root {
    --bg: #ffffff;
    --ink: #111110;
    --ink2: #4b4b46;
    --ink3: #9a9a93;
    --border: #e8e5df;
    --accent: #1d4ed8;
    --accent2: #dbeafe;
    --green: #16a34a;
    --green-bg: #dcfce7;
    --surface: #f7f6f3;
}

[data-theme="dark"] {
    --bg: #0d0d12;
    --ink: #f1f1ee;
    --ink2: #a8a8a2;
    --ink3: #6b6b65;
    --border: #2a2a35;
    --accent: #60a5fa;
    --accent2: #1e3a8a;
    --green: #22c55e;
    --green-bg: #1b4332;
    --surface: #16161e;
}

html[data-theme="dark"] {
    background: var(--bg);
    color: var(--ink);
}

body {
    background: var(--bg);
    color: var(--ink);
}

main {
    background: var(--bg);
}

.index-page .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    padding: clamp(2rem, 8vw, 9rem) clamp(1rem, 6vw, 10rem);
    max-width: 1200px;
    width: min(1100px, 100%);
    margin: 0 auto; 
    font-family: 'Sora', sans-serif;
    background: var(--bg);
}

/* ── LEFT ── */

.hero__available {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-bg);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.hero__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

.hero__name {
    font-size: clamp(2.4rem, 3.8vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.hero__name-accent {
    color: var(--accent);
}

.hero__role {
    font-size: 1rem;
    font-weight: 400;
    color: #000000 !important;
    letter-spacing: 0.02em;
    margin-bottom: 1.4rem;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

.hero__bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #000000 !important;
    max-width: 440px;
    margin-bottom: 1.75rem;
}

/* Ensure readable colors in dark mode */
[data-theme="dark"] .hero__role,
[data-theme="dark"] .hero__bio {
    color: #ffffff98 !important;
}

.hero__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.hero__chip {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink2);
    transition: all 0.18s;
    cursor: default;
}

.hero__chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent2);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    transition: all 0.2s;
    cursor: pointer;
}

.hero__btn--primary {
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
}

.hero__btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

[data-theme="dark"] .hero__btn--primary {
    background: #60a5fa;
    color: #000;
    border: 1px solid #60a5fa;
}

[data-theme="dark"] .hero__btn--primary:hover {
    background: #93c5fd;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.hero__btn--outline {
    background: transparent;
    color: var(--ink2);
    border: 1px solid var(--border);
}

.hero__btn--outline:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--surface);
}

/* ── RIGHT ── */

.hero__right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__photo-wrap {
    position: relative;
    width: 360px;
    /* keep aspect ratio so the image scales on small screens */
    aspect-ratio: 360 / 420;
    height: auto;
    z-index: 1;
    max-width: 100%;
}

.hero__photo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 24px;
    display: block;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
}

/* Placeholder when no photo */
.hero__photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    border: 2px dashed var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--ink3);
    font-size: 13px;
    position: relative;
    z-index: 2;
}

/* Decorative rings behind photo */
.hero__photo-ring {
    position: absolute;
    border-radius: 28px;
    border: 1px solid var(--border);
    z-index: 1;
}

.hero__photo-ring--1 {
    inset: -10px;
    opacity: 0.5;
}

.hero__photo-ring--2 {
    inset: -22px;
    opacity: 0.25;
}

/* prevent horizontal overflow on small screens */
.index-page .hero {
    overflow-x: hidden;
}

/* Floating info badges */
.hero__badge-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    z-index: 10;
    min-width: 100px;
    animation: floatBadge 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .hero__badge-float {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__badge-float--tl {
    top: 10px;
    left: -120px; /* move further left to avoid overlapping the photo */
    animation-delay: 0s;
}

.hero__badge-float--br {
    bottom: 30px;
    right: -120px; /* move further right to avoid overlapping the photo */
    animation-delay: 2s;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero__badge-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.hero__badge-title {
    font-size: 13px;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 2px;
}

.hero__badge-sub {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.7) !important;
}

[data-theme="dark"] .hero__badge-title {
    color: #fff !important;
}

[data-theme="dark"] .hero__badge-sub {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .index-page .hero {
        /* switch to flex column so we can reorder visually on mobile */
        display: flex;
        flex-direction: column;
        align-items: center;
        grid-template-columns: none;
        padding: 5rem 1.75rem;
        gap: 3.5rem;
        text-align: center;
    }

    .hero__left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* show the right column first on mobile */
    .index-page .hero__right {
        order: 1;
        width: 100%;
    }

    .index-page .hero__left {
        order: 2;
        width: 100%;
    }

    /* further adjust badges for very small screens so they don't cover the photo */
    @media (max-width: 480px) {
        .index-page .hero__badge-float {
            min-width: 110px;
            padding: 6px 10px;
            gap: 6px;
            font-size: 13px;
            margin: 0.4rem auto;
            z-index: 1; /* ensure photo remains on top */
            opacity: 0.95;
            transform: none;
        }

        .index-page .hero__badge-icon {
            font-size: 1rem;
        }

        .index-page .hero__badge-title {
            font-size: 12px;
            margin-bottom: 0;
        }

        .index-page .hero__badge-sub {
            font-size: 10px;
        }

        /* make sure the photo sits above badges on very small screens */
        .index-page .hero__photo {
            z-index: 3;
        }
    }

    .hero__role {
        border-left: none;
        border-bottom: 3px solid var(--accent);
        padding: 0 0 8px;
    }

    .hero__bio {
        text-align: left;
    }

    .hero__photo-wrap {
        width: min(280px, 80vw);
        aspect-ratio: 360 / 420;
        height: auto;
        margin: 0 auto;
    }

    /* reposition badges into the document flow on small screens to avoid overflow */
    .hero__badge-float {
        position: relative;
        margin: 0.6rem auto;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        min-width: 180px;
    }
    .hero__badge-float--tl,
    .hero__badge-float--br {
        /* reset absolute placements */
        left: auto;
        right: auto;
    }
}




