/* ==========================================================================
   HOME SECTION STYLES
   ========================================================================== */

.home-section {
    width: 100%;
    max-width: 1440px;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 20px 48px 10px 48px; /* Aligned with 1440px header grid */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.home-hero-card {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

/* Seamless Background Overlay */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 1;
    background: transparent;
    border-radius: 0;
}

/* Centered Hero Image Wrapper & Revealed State Styles */
.hero-center-img-wrapper {
    position: absolute;
    top: calc(50% - 10px); /* Lifted upward to maximize upper space and eliminate empty headroom */
    left: 50%; /* Truly centered in visual canvas */
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 98vh;
    max-width: 98vw;
    border-radius: 0;
    overflow: visible;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.8s ease;
}

@media (max-width: 1024px) {
    .hero-center-img-wrapper {
        left: 50% !important; /* Perfect center across all viewport sizes */
    }
}

.hero-center-img {
    max-height: 96vh;
    max-width: 100%;
    width: auto;
    height: 96vh;
    object-fit: contain;
    border-radius: 0;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
    outline: none !important;
    background: transparent !important;

    /* Hyper-Curvy Sweeping U-Shaped Bottom Oval Vignette Mask (Dark Mode Default) */
    -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 36%, 
                        rgba(0, 0, 0, 1) 0%, 
                        rgba(0, 0, 0, 1) 28%, 
                        rgba(0, 0, 0, 0.7) 55%, 
                        rgba(0, 0, 0, 0.2) 80%, 
                        rgba(0, 0, 0, 0) 98%);
    mask-image: radial-gradient(ellipse 58% 54% at 50% 36%, 
                rgba(0, 0, 0, 1) 0%, 
                rgba(0, 0, 0, 1) 28%, 
                rgba(0, 0, 0, 0.7) 55%, 
                rgba(0, 0, 0, 0.2) 80%, 
                rgba(0, 0, 0, 0) 98%);
}

body.dark-mode .hero-center-img {
    box-shadow: none !important;
    filter: none !important;
}

/* Revealed State: Fades and scales in smoothly over 0.8s at original size */
.hero-center-img-wrapper.hero-img-revealed {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1.15);
}

/* GPU-Accelerated Hardware Hero Container */
.hero-container {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    padding: 40px 0 20px 0;
    box-sizing: border-box;
    transform-origin: 0 0;
    will-change: transform;
}

.hero-line-1 {
    margin-top: auto;
}

/* 3-Line Hero Typography — Crisp Display Scale with GPU Transformation */
.hero-line {
    font-family: 'Oswald', sans-serif !important;
    font-size: clamp(1.05rem, 1.45vw, 1.35rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
    padding: 0;
    opacity: 0;
    width: 100%;
    max-width: clamp(340px, 42vw, 620px);
    display: block;
    min-height: auto;
    text-align: left;
    white-space: nowrap;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    transition: font-size 1.1s cubic-bezier(0.16, 1, 0.3, 1), 
                max-width 1.1s cubic-bezier(0.16, 1, 0.3, 1), 
                line-height 1.1s cubic-bezier(0.16, 1, 0.3, 1), 
                letter-spacing 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.3s ease;
    will-change: transform, opacity;
}

.hero-line-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(115%);
    filter: blur(4px);
    will-change: transform, opacity, filter;
}

.hero-line.hero-intro-text-centered {
    text-align: center !important;
    white-space: nowrap !important;
}

body.dark-mode .hero-line {
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* Entrance Animations — Letters Rising Up from Bottom */
@keyframes heroLettersRiseUp {
    0% {
        opacity: 0;
        transform: translateY(115%);
        filter: blur(4px);
    }
    40% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-fade-item {
    opacity: 1 !important;
}

.hero-line-1.hero-fade-item .hero-line-inner {
    animation: heroLettersRiseUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.hero-line-2.hero-fade-item .hero-line-inner {
    animation: heroLettersRiseUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}
.hero-line-3.hero-fade-item .hero-line-inner {
    animation: heroLettersRiseUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

/* Allow 3D circular motion arc to render without clipping during centered intro */
.hero-line-2.hero-roles-active {
    overflow: visible !important;
}

/* ==========================================================================
   Hero Roles 3D Circular Motion Flash Controller (Middle Intro)
   ========================================================================== */

.hero-role-wheel-container {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    perspective: 750px;
    transform-style: preserve-3d;
    overflow: visible;
}

.hero-role-item {
    display: inline-block;
    white-space: nowrap;
    backface-visibility: hidden;
    transform-origin: 50% 50% -28px;
    will-change: transform, opacity, filter;
}

/* Incoming role entering along bottom vertical circular arc */
.hero-role-item.role-circle-enter {
    animation: roleEnterCircularArc 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Outgoing role exiting along top vertical circular arc */
.hero-role-item.role-circle-exit {
    position: absolute;
    left: 50%;
    top: 0;
    transform-origin: 50% 50% -28px;
    animation: roleExitCircularArc 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes roleEnterCircularArc {
    0% {
        transform: translateY(85%) rotateX(-75deg) scale(0.88);
        opacity: 0;
        filter: blur(2px);
    }
    60% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(0) rotateX(0deg) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes roleExitCircularArc {
    0% {
        transform: translateX(-50%) translateY(0) rotateX(0deg) scale(1);
        opacity: 1;
        filter: blur(0);
    }
    40% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) translateY(-85%) rotateX(75deg) scale(0.88);
        opacity: 0;
        filter: blur(2px);
    }
}



.hero-container.hero-settled {
    gap: 6px !important;
}

/* Settled State: Permanent 100% Opacity & Refined Proportions in Bottom-Left */
.hero-line.hero-settled,
.hero-line.hero-line-shifted {
    overflow: visible !important;
    animation: none !important;
    opacity: 1 !important;
    text-align: left !important;
    white-space: nowrap !important;
    color: #ffffff !important;
    font-size: clamp(1.25rem, 2.4vw, 2.2rem) !important;
    max-width: clamp(340px, 48vw, 720px) !important;
    line-height: 1.12 !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6) !important;
}

.hero-line.hero-settled .hero-line-inner,
.hero-line.hero-line-shifted .hero-line-inner {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

body.dark-mode .hero-line.hero-settled,
body.dark-mode .hero-line.hero-line-shifted {
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6) !important;
}

.hero-container.hero-settled .hero-line-1,
.hero-container.hero-shifted-container .hero-line-1 {
    margin-top: auto !important;
}

.hero-bg-overlay.hero-settled {
    animation: none !important;
    opacity: 1 !important;
}

/* Scroll To Explore Caption */
.scroll-explore {
    position: absolute;
    bottom: 28px;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    text-transform: uppercase;
}

body.dark-mode .scroll-explore {
    color: rgba(255, 255, 255, 0.55);
}

.scroll-explore.hero-settled {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Right-Aligned Minimal Skills List (Vertical Infinite Marquee Loop) */
.hero-skills-right {
    position: absolute;
    top: 70px;
    bottom: 20px; /* Aligned with hero text 20px bottom level */
    right: 0;
    z-index: 4;
    width: 240px;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 1.1s ease;
}

.hero-skills-right.hero-skills-revealed {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-skills-header-wrapper {
    width: 100%;
    text-align: right;
    margin-bottom: 14px;
    z-index: 5;
    flex-shrink: 0;
    padding-right: 1px;
}

.hero-skills-title {
    font-family: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.hero-skills-marquee-container {
    width: 100%;
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    mask-image: none;
    -webkit-mask-image: none;
}

.hero-skills-track {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 13px;
    animation: verticalSkillsMarquee 32s linear infinite;
    will-change: transform;
}

.hero-skills-right:hover .hero-skills-track {
    animation-play-state: paused;
}

@keyframes verticalSkillsMarquee {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.hero-skills-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 13px;
}

.hero-skill-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 3px 2px 3px 6px;
    border-radius: 6px;
    background: transparent;
    transition: transform 0.25s ease;
    cursor: default;
}

.hero-skill-item:hover {
    transform: translateX(-4px);
}

.hero-skill-name {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem; /* ~15.2px */
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-align: right;
    line-height: 1.2;
}

.hero-skill-icon,
.hero-skill-icon * {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 1.25 !important;
    display: inline-block;
    transition: stroke 0.25s ease, transform 0.25s ease;
}

.hero-skill-item:hover .hero-skill-icon,
.hero-skill-item:hover .hero-skill-icon * {
    stroke: #ffffff;
    transform: scale(1.15);
}

.hero-skill-tech-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.75);
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.hero-skill-item:hover .hero-skill-tech-logo {
    filter: brightness(0) invert(1) opacity(1);
    transform: scale(1.12);
}

@media (max-width: 1024px) {
    .hero-skills-right {
        display: none;
    }
}

/* Profile Intro Card (def-card) */
.intro-card,
.def-card {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    text-align: center;
    gap: 0;
    transition: none;
}

.intro-card:hover {
    transform: none;
    box-shadow: none;
}

/* Background decorations dashed lines */
.card-bg-decorations {
    display: none !important;
}

.card-img-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    height: 73%;
    flex: 0 0 73%;
    border-radius: 0;
    overflow: visible;
    margin: -16px auto 0 auto;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
}

.card-avatar {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 0;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    transform: none;
    transition: transform 0.4s ease;

    /* Hyper-Curvy Sweeping Vignette Mask (Identical to Main/Home Tab Hero Photo) */
    -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 36%, 
                        rgba(0, 0, 0, 1) 0%, 
                        rgba(0, 0, 0, 1) 32%, 
                        rgba(0, 0, 0, 0.75) 60%, 
                        rgba(0, 0, 0, 0.25) 82%, 
                        rgba(0, 0, 0, 0) 98%);
    mask-image: radial-gradient(ellipse 58% 54% at 50% 36%, 
                rgba(0, 0, 0, 1) 0%, 
                rgba(0, 0, 0, 1) 32%, 
                rgba(0, 0, 0, 0.75) 60%, 
                rgba(0, 0, 0, 0.25) 82%, 
                rgba(0, 0, 0, 0) 98%);
}

.intro-card:hover .card-avatar,
.def-card:hover .card-avatar {
    transform: none;
}

.card-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 27%;
    flex: 0 0 27%;
    width: 100%;
    padding: 18px 0 0 0;
    box-sizing: border-box;
    gap: 6px;
    text-align: center;
    margin: 0 auto;
}

.card-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 auto;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    width: 100%;
}

.card-description {
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
    padding: 0 12px;
    width: 88%;
    max-width: 88%;
    box-sizing: border-box;
}

.card-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 4px auto 0 auto;
    width: 100%;
}

.social-link {
    color: #ffffff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.3s ease, 
                opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.12);
    color: #cccccc;
    opacity: 1;
}

/* Resume Trigger Button */
.resume-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent);
    color: #121212;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.resume-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.25);
}

/* Resume Modal Overlay */
.resume-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.resume-modal.active {
    opacity: 1;
    pointer-events: all;
}

/* Modal Box */
.modal-box {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.resume-modal.active .modal-box {
    transform: translateY(0);
}

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
    background-color: #f0f0f0;
    color: #000000;
}

/* Resume Selector Tabs */
.resume-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 5px;
    width: 100%;
}

.resume-tab {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background-color: #fcfcfc;
    color: #555555;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.resume-tab:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
    border-color: #ccc;
}

.resume-tab.active {
    background-color: #ffffff;
    color: #121212;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.resume-tab:active {
    transform: scale(0.98);
}

/* Dual Content switcher */
.preview-role-content {
    display: none;
}

.preview-role-content.active {
    display: block;
    animation: fadeIn 0.35s ease forwards;
}

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

.preview-item-description {
    font-size: 0.8rem;
    color: #666666;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* Resume Preview Area (Placeholder Resume Layout) */
.resume-preview-container {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fafafa;
    height: 380px;
    padding: 20px;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    text-align: left;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

.preview-header {
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.preview-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.preview-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin: 2px 0 0 0;
    text-transform: uppercase;
}

.preview-section {
    margin-bottom: 12px;
}

.preview-section-title {
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.preview-item {
    margin-bottom: 8px;
}

.preview-item-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.preview-item-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 1px 0;
}

.preview-line {
    height: 6px;
    background-color: var(--badge-bg);
    border-radius: 3px;
    margin-bottom: 4px;
}

.preview-line.short {
    width: 60%;
}

.preview-line.medium {
    width: 80%;
}

/* Choices Buttons */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.action-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.action-btn.secondary {
    background-color: #f0f0f0;
    color: #333333;
}

.action-btn.secondary:hover {
    background-color: #e5e5e5;
}

.action-btn.primary {
    background-color: #ffffff;
    color: #121212;
}

.action-btn.primary:hover {
    background-color: #e0e0e0;
}

/* Minimal Statistics Row (Styled Cards) */
.intro-stats {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    border-top: 1px solid #eeeeee;
    padding-top: 30px;
    flex-wrap: wrap; /* Wraps cleanly on smaller viewports */
}

.stat-item {
    background-color: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px; /* Rounded corners */
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1; /* Distributes width equally */
    min-width: 130px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px); /* Very subtle hover lift */
    border-color: #ffffff; /* Turns white on hover */
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff; /* Monochrome white color */
    line-height: 1.1;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* ==========================================================================
   SECTION SEPARATOR BANNER (HOMEPAGE TO MAIN CONTENT DIVIDER)
   ========================================================================== */
.section-separator-banner {
    width: 100%;
    max-width: none;
    margin: 48px 0 20px 0;
    padding: 36px 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0) 0%, rgba(30, 30, 30, 0.45) 50%, rgba(18, 18, 18, 0) 100%);
}

.separator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.separator-line {
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Oswald', sans-serif !important;
}

.separator-line-1 {
    font-size: clamp(1.25rem, 3.2vw, 2.6rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    -webkit-font-smoothing: antialiased;
}

.separator-line-2 {
    font-size: clamp(1.2rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #ffffff; /* Brand Monochrome White */
    line-height: 1.15;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
    -webkit-font-smoothing: antialiased;
}

.separator-scroll-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.6);
}

.separator-chevron {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.7);
    animation: separatorBounce 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes separatorBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(5px);
    }
    60% {
        transform: translateY(2px);
    }
}

/* ==========================================================================
   HOME SECTION LIGHT MODE OVERRIDES (Reverse Color Distribution)
   ========================================================================== */
body.theme-light .home-section {
    background: transparent;
}

body.theme-light .hero-line,
body.theme-light .hero-line.hero-settled,
body.theme-light .hero-line.hero-line-shifted,
body.theme-light .hero-lead-text,
body.theme-light .hero-title-main {
    color: #0a0a0a !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #0a0a0a !important;
}

body.theme-light .scroll-explore {
    color: #475569 !important;
}

body.theme-light .hero-skills-title {
    color: #475569 !important;
}

body.theme-light .hero-skill-name {
    color: #0a0a0a !important;
}

body.theme-light .hero-skill-icon,
body.theme-light .hero-skill-icon * {
    stroke: #0a0a0a !important;
}

body.theme-light .hero-skill-item:hover .hero-skill-icon,
body.theme-light .hero-skill-item:hover .hero-skill-icon * {
    stroke: #000000 !important;
}

body.theme-light .hero-skill-tech-logo {
    filter: brightness(0) opacity(0.85);
}

body.theme-light .hero-skill-item:hover .hero-skill-tech-logo {
    filter: brightness(0) opacity(1);
}

body.theme-light .section-separator-banner {
    border-top: 1px solid rgba(10, 10, 10, 0.08) !important;
    border-bottom: 1px solid rgba(10, 10, 10, 0.08) !important;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0) 0%, rgba(236, 239, 243, 0.5) 50%, rgba(248, 249, 250, 0) 100%) !important;
}

body.theme-light .separator-line-1,
body.theme-light .separator-line-2 {
    color: #0a0a0a !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #0a0a0a !important;
}

body.theme-light .separator-scroll-caption {
    color: #475569 !important;
}

body.theme-light .separator-chevron {
    stroke: #475569 !important;
}

/* Photo Display Switching (Default / Dark Mode vs Light Mode) */
.photo-light {
    display: none !important;
}

.photo-dark {
    display: block !important;
}

body.theme-light .photo-dark {
    display: none !important;
}

body.theme-light .photo-light {
    display: block !important;
}

/* ONLY IN LIGHT MODE: Hero Image & Avatar Cutout Handling (Hyper-Curvy Vignette Mask) */
body.theme-light .hero-center-img {
    -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 36%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 1) 28%, rgba(0, 0, 0, 0.7) 55%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0) 98%) !important;
    mask-image: radial-gradient(ellipse 58% 54% at 50% 36%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 1) 28%, rgba(0, 0, 0, 0.7) 55%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0) 98%) !important;
    filter: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
}

body.theme-light .card-avatar {
    -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 36%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 1) 32%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.25) 82%, rgba(0, 0, 0, 0) 98%) !important;
    mask-image: radial-gradient(ellipse 58% 54% at 50% 36%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 1) 32%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.25) 82%, rgba(0, 0, 0, 0) 98%) !important;
    filter: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS: HERO SECTION & PRESENTATION IMAGE
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Precision Viewport Fit — Eliminate awkward overflow & unnecessary scroll */
    .home-section {
        height: calc(100dvh - 54px) !important;
        min-height: calc(100dvh - 54px) !important;
        max-height: calc(100dvh - 54px) !important;
        padding: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .home-hero-card {
        width: 100% !important;
        height: 100% !important;
        padding: 0 16px !important;
        overflow: hidden !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    /* 2. Hero Presentation Image: Truly Centered in Mobile Viewport */
    .hero-center-img-wrapper {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.98) !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 86% !important;
        max-height: calc(100dvh - 90px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 2 !important;
        pointer-events: none !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }

    /* Scale 1.0 for full shoulder/toga visibility without awkward cropping */
    .hero-center-img-wrapper.hero-img-revealed {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .hero-center-img {
        width: auto !important;
        max-width: min(94vw, 420px) !important;
        height: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* 3. Mobile Vignette Masks: Dark/Default Vertically Oval Vignette & Light Mode Signature Smiley Curve */
    .hero-center-img,
    #hero-center-img,
    body.dark-mode .hero-center-img,
    body.theme-default .hero-center-img,
    body.theme-night .hero-center-img {
        -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 36%, 
                            rgba(0, 0, 0, 1) 0%, 
                            rgba(0, 0, 1) 28%, 
                            rgba(0, 0, 0, 0.7) 55%, 
                            rgba(0, 0, 0, 0.2) 80%, 
                            rgba(0, 0, 0, 0) 98%) !important;
        mask-image: radial-gradient(ellipse 58% 54% at 50% 36%, 
                    rgba(0, 0, 0, 1) 0%, 
                    rgba(0, 0, 1) 28%, 
                    rgba(0, 0, 0, 0.7) 55%, 
                    rgba(0, 0, 0, 0.2) 80%, 
                    rgba(0, 0, 0, 0) 98%) !important;
    }

    body.theme-light .hero-center-img {
        -webkit-mask-image: radial-gradient(ellipse 90% 52% at 50% 38%, 
                            rgba(0, 0, 0, 1) 0%, 
                            rgba(0, 0, 1) 62%, 
                            rgba(0, 0, 0, 0.6) 78%, 
                            rgba(0, 0, 0, 0) 90%) !important;
        mask-image: radial-gradient(ellipse 90% 52% at 50% 38%, 
                    rgba(0, 0, 0, 1) 0%, 
                    rgba(0, 0, 1) 62%, 
                    rgba(0, 0, 0, 0.6) 78%, 
                    rgba(0, 0, 0, 0) 90%) !important;
    }

    /* 4. Bottom Hero Typography Placement */
    .hero-container {
        position: relative !important;
        z-index: 5 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        padding: 0 4px 20px 4px !important;
        box-sizing: border-box !important;
        pointer-events: none !important;
    }

    .hero-container * {
        pointer-events: auto;
    }

    .hero-line {
        font-family: 'Oswald', sans-serif !important;
        font-size: clamp(1.1rem, 5vw, 1.6rem) !important;
        font-weight: 800 !important;
        line-height: 1.18 !important;
        max-width: 100% !important;
        letter-spacing: 0.025em !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.7) !important;
    }

    .hero-line.hero-intro-text-centered {
        text-align: center !important;
        margin: 0 auto !important;
        white-space: nowrap !important;
    }

    /* Enlarge prominently when settled in bottom-left */
    .hero-line.hero-settled,
    .hero-line.hero-line-shifted {
        font-family: 'Oswald', sans-serif !important;
        font-size: clamp(1.55rem, 7.2vw, 2.25rem) !important;
        font-weight: 800 !important;
        line-height: 1.12 !important;
        max-width: 100% !important;
        text-align: left !important;
        letter-spacing: 0.02em !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.92), 0 0 6px rgba(0, 0, 0, 0.75) !important;
    }

    body.theme-light .hero-line,
    body.theme-light .hero-line.hero-settled,
    body.theme-light .hero-line.hero-line-shifted,
    body.light-mode .hero-line,
    body.light-mode .hero-line.hero-settled,
    body.light-mode .hero-line.hero-line-shifted {
        color: #0f172a !important;
        text-shadow: 0 1px 6px rgba(255, 255, 255, 0.95), 0 0 1px rgba(255, 255, 255, 0.8) !important;
    }

    .hero-role-item {
        transform-origin: 50% 50% -20px;
    }
}

/* Landscape Phones Refinement */
@media (max-width: 900px) and (orientation: landscape) {
    .home-section {
        height: auto !important;
        min-height: calc(100dvh - 54px) !important;
    }
    .hero-center-img-wrapper {
        top: 50% !important;
        height: 85% !important;
        max-height: calc(100dvh - 70px) !important;
    }
    .hero-center-img {
        max-height: calc(100dvh - 70px) !important;
        max-width: 50vw !important;
    }
}

/* Extra Small Phones Refinements (<= 360px) */
@media (max-width: 360px) {
    .hero-center-img-wrapper {
        top: 50% !important;
        height: 82% !important;
        max-height: calc(100dvh - 90px) !important;
    }

    .hero-center-img {
        max-width: 90vw !important;
        max-height: 100% !important;
        object-position: center center !important;
    }

    .hero-line {
        font-size: 1.25rem !important;
    }

    .hero-line.hero-settled,
    .hero-line.hero-line-shifted {
        font-size: 1.45rem !important;
        line-height: 1.12 !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 330px) {
    .hero-line.hero-settled,
    .hero-line.hero-line-shifted {
        font-size: 1.3rem !important;
        white-space: nowrap !important;
    }
}



