/* ==========================================================================
   LANDING PAGE STYLES (INDEX.HTML)
   ========================================================================== */

/* ==========================================================================
   HERO SECTION & 3D PANEL
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 132px 0 70px;
    color: var(--text);
    background:
        linear-gradient(90deg, rgba(247,244,238,0.055) 1px, transparent 1px),
        linear-gradient(rgba(247,244,238,0.055) 1px, transparent 1px),
        linear-gradient(135deg, #0b1014, #11191f 48%, #20313a);
    background-size: 84px 84px, 84px 84px, auto;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease;
}

html[data-theme="dark"] .hero {
    background:
        linear-gradient(90deg, rgba(247,244,238,0.02) 1px, transparent 1px),
        linear-gradient(rgba(247,244,238,0.02) 1px, transparent 1px),
        linear-gradient(135deg, #040608, #0b1014 48%, #141f24);
    background-size: 84px 84px, 84px 84px, auto;
}

.hero::after {
    content: "";
    position: absolute;
    right: -8%;
    top: 12%;
    width: 44vw;
    height: 72vh;
    border: 1px solid rgba(247, 244, 238, 0.12);
    transform: rotate(10deg);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 22px;
}

h1, h2, h3 {
    margin: 0;
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0;
}

h1 {
    max-width: 890px;
    font-size: clamp(4.4rem, 9vw, 8.2rem);
}

.hero-copy {
    max-width: 740px;
    margin: 28px 0 0;
    color: rgba(247, 244, 238, 0.76);
    font-size: clamp(1.05rem, 1.8vw, 1.27rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

/* --- Responsive Identity Panel Structure --- */
.identity-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
    border-radius: 8px;
    border: 1px solid rgba(247, 244, 238, 0.16);
    background: linear-gradient(180deg, rgba(247,244,238,0.10), rgba(247,244,238,0.035)), #152129;
    box-shadow: var(--shadow);
    overflow: hidden;
}

@media (min-width: 1021px) {
    .identity-panel {
        min-height: 620px;
        transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
        transition: transform 0.16s ease-out;
    }
}

.identity-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(247,244,238,0.06) 1px, transparent 1px),
        linear-gradient(rgba(247,244,238,0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    z-index: 1;
    pointer-events: none;
}

.identity-card {
    position: relative;
    z-index: 2;
    padding: 26px;
    border-radius: 8px;
    border: 1px solid rgba(247, 244, 238, 0.18);
    background: rgba(11, 16, 20, 0.44);
    backdrop-filter: blur(14px);
}

.avatar {
    width: 124px;
    height: 124px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(247, 244, 238, 0.25);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 4.4rem;
    line-height: 1;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: rgba(247, 244, 238, 0.82);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 7px rgba(99, 196, 111, 0.13);
}

.mini-terminal {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
}

@media (min-width: 1021px) {
    .mini-terminal {
        position: absolute;
        left: 28px;
        right: 28px;
        bottom: 28px;
        transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -10px), 0);
        transition: transform 0.16s ease-out;
    }
    .identity-card {
        position: absolute;
        left: 28px;
        right: 28px;
        top: 28px;
    }
}

.terminal-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 76px;
    padding: 16px;
    border: 1px solid rgba(247, 244, 238, 0.14);
    border-radius: 8px;
    background: rgba(247, 244, 238, 0.92);
    color: #0b1014;
}

.terminal-row strong {
    font-size: 1.7rem;
    line-height: 1;
}

.terminal-row span {
    color: var(--muted-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

/* ==========================================================================
   EXPERTISE BENTO GRID SECTION
   ========================================================================== */

.section-head {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 46px;
    align-items: end;
    margin-bottom: 44px;
}

.kicker {
    color: var(--rose);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-dark .kicker {
    color: var(--teal);
}

h2 {
    font-size: clamp(2.9rem, 5.4vw, 5.6rem);
}

.lede {
    margin: 0;
    color: var(--muted-dark);
    font-size: 1.08rem;
}

.section-dark .lede {
    color: rgba(247, 244, 238, 0.72);
}

.bento {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    gap: 16px;
}

.tile {
    min-height: 290px;
    padding: 28px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.48);
    transition: transform 0.32s ease, box-shadow 0.32s ease, background-color 0.32s ease, border-color 0.32s ease;
}

html[data-theme="dark"] .tile {
    background: rgba(255, 255, 255, 0.02);
}

.tile:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .tile:hover {
    background: rgba(255, 255, 255, 0.04);
}

.tile.large {
    grid-row: span 2;
    min-height: 596px;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(40, 198, 168, 0.18), rgba(76, 125, 255, 0.08)),
        var(--ink);
    border-color: rgba(247, 244, 238, 0.12);
}

html[data-theme="dark"] .tile.large {
    background:
        linear-gradient(180deg, rgba(40, 198, 168, 0.15), rgba(76, 125, 255, 0.05)),
        #060a0d;
}

.tile i {
    color: var(--blue);
}

.tile.large i {
    color: var(--teal);
}

.tile h3 {
    margin-top: 24px;
    font-size: 2rem;
    line-height: 1.05;
}

.tile p {
    color: var(--muted-dark);
    margin: 16px 0 0;
}

.tile.large p {
    color: rgba(247, 244, 238, 0.72);
    font-size: 1.05rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.tag {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    color: var(--muted-dark);
    background: rgba(247, 244, 238, 0.52);
    font-size: 0.76rem;
    font-weight: 850;
    transition: background-color 0.32s ease, border-color 0.32s ease;
}

html[data-theme="dark"] .tag {
    background: rgba(247, 244, 238, 0.04);
}

.tile.large .tag {
    color: rgba(247, 244, 238, 0.82);
    border-color: rgba(247, 244, 238, 0.16);
    background: rgba(247, 244, 238, 0.08);
}

/* ==========================================================================
   LIVE ANALYTICS CHART COMPONENT
   ========================================================================== */

.analytics-widget {
    margin-top: 20px;
    background: rgba(11, 16, 20, 0.04);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background-color 0.32s, border-color 0.32s;
}

html[data-theme="dark"] .analytics-widget {
    background: rgba(255, 255, 255, 0.02);
}

.widget-controls {
    display: flex;
    gap: 6px;
}

.widget-btn {
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
    background: rgba(11, 16, 20, 0.04);
    border: 1px solid var(--line-dark);
    color: var(--muted-dark);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.22s ease;
}

html[data-theme="dark"] .widget-btn {
    background: rgba(247, 244, 238, 0.06);
    color: var(--text);
}

.widget-btn:hover {
    background: rgba(11, 16, 20, 0.08);
    color: var(--ink);
}

html[data-theme="dark"] .widget-btn:hover {
    background: rgba(247, 244, 238, 0.10);
}

.widget-btn.active {
    background: var(--ink);
    color: var(--text);
    border-color: var(--ink);
}

html[data-theme="dark"] .widget-btn.active {
    background: var(--teal);
    color: var(--ink);
    border-color: var(--teal);
}

.chart-container {
    position: relative;
    width: 100%;
    height: 125px;
}

.chart-tooltip {
    position: absolute;
    background: var(--ink);
    color: var(--text);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 850;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%);
    margin-top: -8px;
    transition: opacity 0.15s, left 0.15s, top 0.15s;
    z-index: 10;
}

.chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-path {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: d 0.4s ease;
}

.chart-grid-line {
    stroke: var(--line-dark);
    stroke-dasharray: 4 4;
}

.chart-dot {
    transition: cy 0.4s ease, cx 0.4s ease;
    cursor: pointer;
}

/* ==========================================================================
   MISSION SECTION
   ========================================================================== */

.mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mission-copy {
    padding: 34px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(247, 244, 238, 0.06);
}

.mission-copy p {
    margin: 0;
    color: rgba(247, 244, 238, 0.78);
    font-size: 1.07rem;
}

.mission-copy p + p {
    margin-top: 18px;
}

.stack {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.stack-item {
    min-height: 150px;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(247, 244, 238, 0.07);
    color: rgba(247, 244, 238, 0.78);
    transition: transform 0.32s ease, background-color 0.32s ease;
}

.stack-item:hover {
    transform: translateY(-5px);
    background: rgba(247, 244, 238, 0.12);
}

.stack-item strong {
    display: block;
    color: var(--text);
    margin: 13px 0 8px;
    font-size: 1.1rem;
}

/* ==========================================================================
   EXPERIENCE / CAREER TRACK TIMELINE
   ========================================================================== */

.timeline {
    border-top: 1px solid var(--line-dark);
}

.role {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 36px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line-dark);
    position: relative;
}

.role::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
    transition: width 0.75s ease;
}

.role.in-view::before {
    width: 100%;
}

.date {
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

html[data-theme="dark"] .date {
    color: var(--teal);
}

.role h3 {
    font-size: 2rem;
}

.company {
    margin-top: 6px;
    color: var(--muted-dark);
    font-weight: 850;
}

.role p {
    max-width: 880px;
    margin: 14px 0 0;
    color: #415057;
}

html[data-theme="dark"] .role p {
    color: #a5b0b3;
}

/* ==========================================================================
   METRICS & CREDENTIALS
   ========================================================================== */

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    background: var(--line);
    gap: 1px;
}

.metric {
    min-height: 230px;
    padding: 28px;
    background: var(--panel);
    transition: transform 0.32s ease, background-color 0.32s ease;
}

.metric:hover {
    transform: translateY(-5px);
    background: #1d2b34;
}

.metric strong {
    display: block;
    color: var(--amber);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 18px;
}

.metric span {
    display: block;
    color: rgba(247, 244, 238, 0.76);
    font-weight: 750;
}

.credentials {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 46px;
    align-items: start;
}

.credential-list {
    display: grid;
    gap: 14px;
}

.credential {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    padding: 22px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.46);
    transition: background-color 0.32s, border-color 0.32s;
}

html[data-theme="dark"] .credential {
    background: rgba(255, 255, 255, 0.02);
}

.icon-box {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--text);
    background: var(--ink);
    transition: background-color 0.32s, color 0.32s;
}

html[data-theme="dark"] .icon-box {
    background: rgba(247, 244, 238, 0.12);
}

.credential h3 {
    font-size: 1.45rem;
}

.credential p {
    margin: 8px 0 0;
    color: var(--muted-dark);
}

/* ==========================================================================
   CONTACT SECTION & FORM
   ========================================================================== */

.contact-shell {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 36px;
    padding: 40px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--text);
    box-shadow: var(--shadow);
    transition: background-color 0.4s, box-shadow 0.4s;
}

html[data-theme="dark"] .contact-shell {
    background: var(--night);
}

.contact-shell h2 {
    color: var(--text);
}

.contact-shell .lede {
    color: rgba(247, 244, 238, 0.72);
    margin-top: 20px;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 8px;
    color: rgba(247, 244, 238, 0.84);
    border: 1px solid rgba(247, 244, 238, 0.16);
    background: rgba(247, 244, 238, 0.06);
    font-size: 0.86rem;
    font-weight: 850;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.social:hover {
    transform: translateY(-2px);
    background: rgba(247, 244, 238, 0.11);
}

.quote-box {
    display: grid;
    align-content: end;
    min-height: 330px;
    padding: 28px;
    border-radius: 8px;
    border: 1px solid rgba(247, 244, 238, 0.14);
    background:
        linear-gradient(135deg, rgba(40, 198, 168, 0.22), rgba(76, 125, 255, 0.12)),
        rgba(247, 244, 238, 0.06);
}

.quote-box p {
    margin: 0;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.98;
}

/* --- Interactive Polished Contact Form --- */
.contact-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.form-group {
    display: grid;
    gap: 6px;
    position: relative;
}

.form-input {
    width: 100%;
    min-height: 46px;
    background: rgba(247, 244, 238, 0.05);
    border: 1px solid rgba(247, 244, 238, 0.15);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s, background-color 0.25s;
}

.form-input:focus {
    border-color: var(--teal);
    background: rgba(247, 244, 238, 0.09);
}

textarea.form-input {
    min-height: 110px;
    resize: vertical;
}

.form-error {
    font-size: 0.72rem;
    color: var(--rose);
    font-weight: 800;
    display: none;
    margin-top: 2px;
}

.form-input.invalid {
    border-color: var(--rose);
}

.form-success-msg {
    display: none;
    background: rgba(99, 196, 111, 0.12);
    border: 1px solid var(--green);
    color: var(--green);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 800;
    margin-top: 14px;
}

.form-success-msg svg {
    margin-bottom: 8px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE LAYOUT CHANGES
   ========================================================================== */

@media (max-width: 1020px) {
    .hero-grid,
    .section-head,
    .mission,
    .credentials,
    .contact-shell {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
    }

    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .tile.large {
        grid-column: 1 / -1;
        min-height: 360px;
    }

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

@media (max-width: 680px) {
    .wrap,
    .topbar {
        width: min(100% - 28px, 1180px);
    }

    .topbar {
        top: 10px;
    }

    .nav {
        padding: 12px;
    }

    .brand span:last-child {
        display: none;
    }

    .btn.nav-cta {
        width: 40px;
        height: 40px;
        padding: 0;
        font-size: 0;
    }

    h1 {
        font-size: 3.8rem;
    }

    section {
        padding: 76px 0;
    }

    .hero {
        padding-top: 116px;
    }

    .hero-grid,
    .bento,
    .stack,
    .metrics,
    .role {
        grid-template-columns: 1fr;
    }

    .terminal-row {
        grid-template-columns: 1fr;
    }

    .tile.large {
        grid-column: auto;
    }

    .footer-row {
        flex-direction: column;
        gap: 12px;
    }
}
