/* =========================================================================
   1. STRUCTURAL PALETTE PRESETS & RESET
   ========================================================================= */
:root {
    --bg-main: #060911;         
    --bg-card: #0d1527;         
    --text-primary: #e2e8f0;    
    --text-secondary: #566885;  
    --accent-glow: #818cf8;     
    --accent-success: #34d399;  
    --accent-warning: #f59e0b;  
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* =========================================================================
   2. TOP NAVIGATION HUD FRAME
   ========================================================================= */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    background: rgba(6, 9, 17, 0.75);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(86, 104, 133, 0.15);
}

.nav-brand {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
}

.nav-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.icon-link {
    color: var(--text-secondary);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.icon-link:hover {
    color: var(--accent-glow);
}

/* =========================================================================
   3. INTERACTIVE SCROLL STAGING
   ========================================================================= */
.scroll-wrapper {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;                
    pointer-events: none;      
}

.hero-container, .about-container {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 2.5rem 2.5rem 2.5rem;
}

/* =========================================================================
   4. SECTION 1: HERO VIEWPORT & SPLIT GRID
   ========================================================================= */
.hero-container {
    transform: translateY(0%);
}

.hero-split {
    max-width: 1240px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
}

/* STATUS BADGES */
.badge-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

@keyframes statusPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 3px;        
    font-size: 0.72rem;
    font-weight: 500;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    animation: statusPulse 1.8s infinite ease-in-out;
}

.status-success {
    background: rgba(52, 211, 153, 0.05);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: var(--accent-success);
}
.status-success .status-dot { background-color: var(--accent-success); }

.status-warning {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--accent-warning);
}
.status-warning .status-dot { background-color: var(--accent-warning); }

/* TYPOGRAPHY */
.hero-text h1 {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.current-occupation {
    color: var(--accent-glow);
    font-size: 1rem;
    margin-top: 0.4rem;
    margin-bottom: 0.8rem;
    display: inline-flex;
    align-items: center;
}

/* BLINKING TERMINAL CARET BLOCK */
.current-occupation::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background-color: var(--accent-glow);
    margin-left: 6px;
    border-radius: 1px;
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* QUOTE CARD CONTAINER (PREVENTS TENGGELAM IN BACKGROUND DOTS) */
.hero-lead {
    margin: 0.2rem 0;
    max-width: 560px;
    padding: 0.85rem 1.1rem;
    background: rgba(13, 21, 39, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(86, 104, 133, 0.22);
    border-left: 3px solid var(--accent-glow);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-lead p {
    color: var(--text-primary);
    font-size: 0.82rem;
    line-height: 1.65;
    letter-spacing: -0.01em;
    font-style: italic;
}

.quote-author {
    display: block;
    margin-top: 0.45rem;
    color: var(--accent-glow);
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* DUAL TECH PILLS WRAPPER & TICKERS */
.tech-pills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 520px;
    margin-top: 0.2rem;
}

.tech-pills-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.tech-pills-track {
    display: flex;
    gap: 0.6rem;
    width: max-content;
}

.track-forward {
    animation: scrollTicker 22s linear infinite;
}

.track-reverse {
    animation: scrollTickerReverse 25s linear infinite;
}

.tech-pills-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollTickerReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.pill {
    background: rgba(13, 21, 39, 0.7);
    border: 1px solid rgba(129, 140, 248, 0.3);
    color: var(--text-primary);
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    user-select: none;
}

/* RIGHT COLUMN: PROMINENT PROFILE CARD */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.profile-card {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid rgba(129, 140, 248, 0.35);
    background: var(--bg-card);
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SCROLL PROMPT */
.scroll-prompt {
    position: absolute;
    bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--text-secondary);
    font-size: 0.68rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.scroll-prompt:hover { color: var(--accent-glow); }

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.prompt-arrow {
    animation: bounceArrow 1.5s infinite ease-in-out;
}

/* =========================================================================
   5. SECTION 2: ABOUT VIEWPORT CORE LAYOUT
   ========================================================================= */
.about-container {
    transform: translateY(100%);
}

.about-content-box {
    text-align: left;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.section-bracket {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.about-main-layout {
    border-left: 1px dashed rgba(86, 104, 133, 0.3);
    padding-left: 1.5rem;
    margin-left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.bio-text-block {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bio-paragraph {
    color: var(--text-primary);
    font-size: 0.82rem;
    line-height: 1.65;
    letter-spacing: -0.01em;
}

.comment-text {
    color: var(--text-secondary);
    font-style: italic;
}

/* ABOUT SECTION ANALYTICS SKILLS BLOCK */
.analytics-skills-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.skills-title {
    color: var(--accent-glow);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.74rem;
    color: var(--text-primary);
    background: rgba(13, 21, 39, 0.45);
    border: 1px solid rgba(86, 104, 133, 0.2);
    padding: 0.45rem 0.75rem;
    border-radius: 4px;
}

.skill-tag .skill-dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent-glow);
    border-radius: 50%;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.2rem;
}

.metric-card {
    background: rgba(13, 21, 39, 0.4);
    border: 1px solid rgba(86, 104, 133, 0.15);
    padding: 0.8rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-number {
    color: var(--accent-glow);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* =========================================================================
   6. RESPONSIVE BREAKPOINTS (MOBILE & TABLET ADJUSTMENTS)
   ========================================================================= */
@media (max-width: 868px) {
    .top-nav {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }

    .hero-container {
        padding: 4.5rem 1.25rem 2.5rem 1.25rem;
        overflow-y: auto;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .badge-row {
        justify-content: center;
    }

    .tech-pills-wrapper {
        max-width: 100%;
    }

    .profile-card {
        max-width: 210px;
        margin: 0 auto;
    }

    .scroll-prompt {
        display: none;
    }
}