/* --- High-Contrast Fixed Palette Themes (No Bleeding White Gradients) --- */
html[data-theme="slate"] {
    --bg-app: #03060f;
    --card-surface: rgba(10, 17, 34, 0.85);
    --card-border: rgba(255, 255, 255, 0.09);
    --text-main: #ffffff;
    --text-alt: #cbd5e1;
    --accent-prime: #f59e0b;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    --btn-text: #03060f;
    --aura-color: rgba(245, 158, 11, 0.04);
    --dock-bg: rgba(9, 14, 28, 0.9);
    --btn-resume-shadow: rgba(245, 158, 11, 0.2);
}

html[data-theme="midnight"] {
    --bg-app: #020617;
    --card-surface: rgba(15, 23, 42, 0.85);
    --card-border: rgba(56, 189, 248, 0.2);
    --text-main: #ffffff;
    --text-alt: #94a3b8;
    --accent-prime: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
    --btn-text: #020617;
    --aura-color: rgba(56, 189, 248, 0.05);
    --dock-bg: rgba(15, 23, 42, 0.9);
    --btn-resume-shadow: rgba(56, 189, 248, 0.25);
}

html[data-theme="velvet"] {
    --bg-app: #06030e;
    --card-surface: rgba(20, 10, 38, 0.85);
    --card-border: rgba(192, 132, 252, 0.22);
    --text-main: #ffffff;
    --text-alt: #cbd5e1;
    --accent-prime: #c084fc;
    --accent-gradient: linear-gradient(135deg, #c084fc 0%, #9333ea 50%, #6b21a8 100%);
    --btn-text: #06030e;
    --aura-color: rgba(192, 132, 252, 0.05);
    --dock-bg: rgba(15, 8, 30, 0.9);
    --btn-resume-shadow: rgba(192, 132, 252, 0.25);
}

html[data-theme="light-white"] {
    --bg-app: #f8fafc;
    --card-surface: rgba(255, 255, 255, 0.95);
    --card-border: rgba(15, 23, 42, 0.12);
    --text-main: #0f172a;
    --text-alt: #475569;
    --accent-prime: #2563eb;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    --btn-text: #ffffff;
    --aura-color: rgba(37, 99, 235, 0.04);
    --dock-bg: rgba(255, 255, 255, 0.9);
    --btn-resume-shadow: rgba(37, 99, 235, 0.15);
}

html[data-theme="aurora-gradient"] {
    --bg-app: #040209;
    --card-surface: rgba(9, 4, 20, 0.85);
    --card-border: rgba(0, 242, 254, 0.25);
    --text-main: #ffffff;
    --text-alt: #00f2fe;
    --accent-prime: #acfe09;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #7000ff 50%, #fd297b 100%);
    --btn-text: #ffffff;
    --aura-color: rgba(0, 242, 254, 0.06);
    --dock-bg: rgba(6, 3, 15, 0.9);
    --btn-resume-shadow: rgba(253, 41, 123, 0.3);
}

/* --- Core Reset Ecosystem --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    display: flex;
    justify-content: center;
}

/* --- High-Performance Fluid Background Aura Trailer Layer --- */
.dynamic-aura-lens {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    /* Renders a soft glowing lens that reads your active --aura-color custom variable theme values dynamically */
    background: radial-gradient(600px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), var(--aura-color) 0%, transparent 100%);
    /* Handles glow color smoothing beautifully when clicking through your active themes panel */
    transition: background 0.4s ease;
    will-change: transform;
}

.application-master-shell {
    position: relative;
    width: 100%;
    max-width: 1140px;
    padding: 2.5rem 1.5rem 8rem 1.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

/* --- Header System Component Engine --- */
.utility-top-deck {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.branding-tag-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: 1px solid var(--card-border);
}

html[data-theme="light-white"] .branding-tag-container {
    background: rgba(15, 23, 42, 0.03);
}

.terminal-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-prime);
    box-shadow: 0 0 10px var(--accent-prime);
}

.branding-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 700;
}

.mono-bracket {
    color: var(--accent-prime);
    font-weight: 800;
}

/* --- Theme Selection Dropdown Engine --- */
.theme-toggle-main-trigger {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--card-surface);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.theme-toggle-main-trigger:hover {
    transform: scale(1.05);
}

.theme-dropdown-ecosystem {
    position: relative;
}

.theme-dropdown-overlay-track {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--card-surface);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    padding: 0.65rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 185px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
}

.theme-dropdown-ecosystem.open-active .theme-dropdown-overlay-track {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.theme-pill-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.theme-pill-trigger:hover,
.theme-pill-trigger.active {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light-white"] .theme-pill-trigger:hover,
html[data-theme="light-white"] .theme-pill-trigger.active {
    background: rgba(15, 23, 42, 0.05);
}

.theme-lbl {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.color-dot.slate {
    background: #f59e0b;
}

.color-dot.midnight {
    background: #38bdf8;
}

.color-dot.velvet {
    background: #c084fc;
}

.color-dot.light-white {
    background: #2563eb;
}

.color-dot.aurora-gradient {
    background: linear-gradient(45deg, #00f2fe, #fd297b);
}

/* --- Structural Architecture Grid Layout --- */
.home-content {
    position: relative;
    width: 100%;
    padding: 1rem 0;
}

.content-split-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.content-text-panel {
    display: flex;
    flex-direction: column;
}

.home-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 1.2rem;
}

.gradient-name-span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role-terminal-line {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-alt);
    margin-bottom: 3.2rem;
}

.typing-text {
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    border-bottom: 2px solid var(--accent-prime);
}

/* --- Action Button / High-Contrast Controls --- */
.integrated-action-panel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn.resume-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.05rem 2.5rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--accent-gradient);
    color: var(--btn-text) !important;
    box-shadow: 0 10px 25px var(--btn-resume-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn.resume-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--btn-resume-shadow);
    filter: brightness(1.1);
}

/* --- Inline Icon Matrix Panel --- */
.socials-inline-rack {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.social-node {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-alt);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

html[data-theme="light-white"] .social-node {
    background: rgba(15, 23, 42, 0.02);
}

.social-node:hover {
    color: var(--btn-text) !important;
    background: var(--accent-gradient);
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 8px 20px var(--btn-resume-shadow);
}

/* --- Static Profile Frame Wrapper --- */


/* --- Static Profile Frame Wrapper --- */

/* --- Static Profile Frame Wrapper --- */
.image-showcase-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.geometric-shape-mask-wrapper {
    position: relative;
    width: 320px;
    height: 320px;

    /* Perfect asymmetric theme glow: radiates continuously and matches active palette automatically */
    filter: drop-shadow(0 0 16px var(--btn-resume-shadow));

    /* Smooth color blending when switching theme configurations */
    transition: filter 0.4s ease;
}

/* Locked asymmetric geometry shape match matching your profile image clip-path */
.geometric-shape-mask-wrapper,
.geometric-shape-mask-wrapper .geometric-image-content-inner-core {
    clip-path: polygon(28% 0%, 100% 0%, 100% 72%, 72% 100%, 0% 100%, 0% 28%);
}

.geometric-border-glow-contour {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    z-index: 1;
    padding: 3px;
    /* Controls border gradient outline line thickness */
}

.geometric-image-content-inner-core {
    position: absolute;
    top: 3px;
    /* Keeps your inner photo beautifully separated from the background edge */
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--bg-app);
    z-index: 2;
    overflow: hidden;
}

.geometric-image-content-inner-core img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --- Glass Floating Navigation Dock --- */
.floating-dock-navigation {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 3rem);
    max-width: 660px;
}

.dock-pill-track {
    background: var(--dock-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--card-border);
    padding: 0.55rem;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.dock-action-item {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    /* Slightly increased gap for visual breathing room */
    padding: 0.6rem 0.5rem;
    border-radius: 30px;
    color: var(--text-alt);
    transition: all 0.25s ease;
    position: relative;
    flex: 1;
    /* Distributes buttons completely evenly across the bar */
    min-width: 0;
}

.dock-action-item i {
    font-size: 1.05rem;
    color: inherit;
}

.dock-label {
    font-size: 0.75rem;
    font-weight: 700;
    /* Made bolder to match image_f2349b.png */
    color: inherit;
    white-space: nowrap;
    /* Prevents text from splitting onto two rows */
}

.dock-action-item:hover {
    color: var(--text-main);
}

.dock-action-item.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light-white"] .dock-action-item.active {
    background: rgba(15, 23, 42, 0.05);
    color: var(--accent-prime);
}

.active-dot {
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-prime);
    opacity: 0;
}

.dock-action-item.active .active-dot {
    opacity: 1;
}

.stage-transition-wrapper {
    animation: viewRevealCore 0.4s ease forwards;
}

@keyframes viewRevealCore {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .content-split-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .image-showcase-container {
        justify-content: center;
        order: -1;
    }

    .integrated-action-panel {
        justify-content: center;
    }

    .home-content h2 {
        font-size: 2.6rem;
    }

    .role-terminal-line {
        font-size: 1.35rem;
        margin-bottom: 2rem;
    }

    .geometric-shape-mask-wrapper {
        width: 270px;
        height: 270px;
    }
}

/* --- Optimized Mobile Responsive Rules Engine --- */
@media (max-width: 768px) {
    .floating-dock-navigation {
        width: calc(100% - 1rem);
        /* Widens navigation shell bar on mobile devices */
        bottom: 1rem;
        /* Keeps it closely anchored near display baseline */
    }

    .dock-pill-track {
        padding: 0.4rem;
        /* Slimmer inner container tracking padding */
    }

    .dock-action-item {
        padding: 0.5rem 0.2rem;
        /* Tightens padding to prevent grid clipping */
        gap: 3px;
    }

    .dock-action-item i {
        font-size: 1.05rem;
        /* Marginally scales icons down on smaller frames */
    }

    .dock-label {
        font-size: 0.65rem;
        /* Gracefully shrinks font layout engine matrix instead of drop-killing it */
    }
}

@media (max-width: 380px) {
    .dock-label {
        font-size: 0.58rem;
        /* Seamless micro-scaling for small devices like iPhone SE */
    }
}



/* --- High-Performance Custom Vercel-Style Cursor Engine --- */
/* --- High-Performance Custom Vercel-Style Cursor Engine --- */
@media (min-width: 993px) {

    /* --- High-Performance Native Cursor Engine --- */
    html,
    body,
    a,
    button,
    .dock-action-item,
    .theme-pill-trigger,
    .social-node {
        cursor: auto !important;
        /* Reverts entirely back to your computer's native mouse pointer */
    }

    a,
    button,
    .dock-action-item,
    .theme-pill-trigger,
    .social-node,
    i {
        cursor: pointer !important;
        /* Forces the native operating system hand pointer on links and clickables */
    }

    /* --- PRESERVE MOUSE POINTER DESIGN ACROSS ANY RESOLUTION & VIEW MODE --- */
    .custom-cursor-core {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background-color: var(--text-main);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
        transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    }






    /* --- High-Performance Image Loader & Spinner System --- */
    /* --- ABSOLUTE REMOVAL OF SHIMMER & BACKGROUND EFFECTS --- */
    .image-showcase-container,
    .geometric-image-content-inner-core,
    .geometric-image-content-inner-core img {
        background: transparent !important;
        background-image: none !important;
        animation: none !important;
        -webkit-animation: none !important;
    }

    /* Erase the image loader elements from existence */
    .img-loading-spinner,
    .img-error-fallback,
    .img-error-container::after {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Ensure your photo is fully visible on a clean background */
    .geometric-image-content-inner-core img {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Spinner Element */
    .img-loading-spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 30px;
        height: 30px;
        border: 3px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        border-top-color: var(--accent-prime);
        animation: spin-loader 0.8s infinite linear;
        z-index: 5;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    html[data-theme="light-white"] .img-loading-spinner {
        border: 3px solid rgba(15, 23, 42, 0.1);
        border-top-color: var(--accent-prime);
    }

    /* Fallback Broken Image Icon Placement Wrapper */
    .img-error-fallback {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: var(--card-surface);
        color: var(--text-alt);
        font-size: 1.5rem;
        gap: 8px;
        z-index: 4;
    }

    .img-error-fallback span {
        font-size: 0.75rem;
        font-family: 'JetBrains Mono', monospace;
        opacity: 0.6;
    }

    /* Handle Image Opacity State Change */
    .geometric-image-content-inner-core img,
    .box-container img {
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Target element when image has loaded completely */
    .img-loaded-container .img-loading-spinner {
        opacity: 0;
    }

    .img-loaded-container img {
        opacity: 1 !important;
    }

    /* Target element if image fails */
    .img-error-container .img-loading-spinner {
        display: none !important;
    }

    /* --- Loader Keyframes --- */
    @keyframes spin-loader {
        to {
            transform: translate(-50%, -50%) rotate(360deg);
        }
    }

    @keyframes skeleton-shimmer {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    
}
