:root {
    --bg-base: #0a0a0a; /* Very dark grey, almost black */
    
    /* Grayscales */
    --gray-900: #121212;
    --gray-800: #1a1a1a;
    --gray-600: #4a4a4a;
    --gray-400: #888888;
    --gray-200: #e0e0e0;
    
    /* Accents (Only one Green) */
    --accent: #80EF80;
    
    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(128, 239, 128, 0.3); /* Green glow on hover */
    
    --text-main: #f0f0f0;
    --text-muted: #888888;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {

    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* LAVA LAMP BACKGROUND (Grayscale, very subtle) */
.lava-lamp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    filter: blur(150px);
    pointer-events: none;
    opacity: 0.4; /* Very subtle */
}
.blob {
    position: absolute;
    border-radius: 50%;
    transition: transform 2s cubic-bezier(0.1, 0.8, 0.3, 1);
}
.blob-1 { width: 50vw; height: 50vw; background: var(--gray-800); top: -10%; left: -10%; }
.blob-2 { width: 60vw; height: 60vw; background: var(--gray-600); top: 40%; right: -10%; }
.blob-3 { width: 45vw; height: 45vw; background: var(--gray-900); bottom: -10%; left: 30%; }
.blob-4 { width: 40vw; height: 40vw; background: rgba(128, 239, 128, 0.05); top: 20%; left: 40%; } /* Hint of green */

/* HERO & ASCII CANVAS */
.hero-wrapper {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    max-height: 100vh; /* Locks the hero to exactly one screen - next section never peeks in */
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 10vh; /* Prevent overlap at the very top */
}
#ascii-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7; /* Keep it subtle */
}

.hero-container {
    display: block;
    z-index: 10;
}
.hero-text-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 640px; /* Keeps text clear of the full-bleed photo on the right */
}
.hello-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--gray-400);
    text-transform: uppercase;
    margin-bottom: -1rem; /* Pull the name up slightly closer */
}
.huge-name {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: var(--gray-200);
}
.intro-box {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12); /* Hairline instead of a boxed card */
}
.intro-box h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gray-400);
    margin-bottom: 1rem;
    line-height: 1.4;
}
.accent {
    color: var(--accent);
    font-weight: 600;
}
.tagline {
    font-size: 1.1rem;
    color: var(--gray-400);
    font-style: italic;
    margin-bottom: 2rem;
}
.contact-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.contact-links a {
    color: var(--gray-200);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: color 0.3s, background-size 0.3s;
    padding-bottom: 2px;
}
.contact-links a:hover {
    color: var(--accent);
    background-size: 100% 1px;
}

/* Full-bleed editorial photo - breaks out of the .container grid entirely
   and sits behind the text. */
.hero-image-side {
    position: absolute;
    top: 8vh;
    right: 4vw;
    height: calc(100% - 10vh);
    width: clamp(260px, 28vw, 460px);
    z-index: 1;
}
.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* GENERAL VERTICAL SECTIONS */
.vertical-section {
    padding: 8rem 2rem;
    position: relative;
}
/* Skills follows directly after the typewriter reveal - cut the extra top padding
   so it doesn't add another gap on top of the sticky text's own runway. */
.section-skills {
    padding-top: 2rem;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--gray-200);
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

/* GLASS PANEL BASE */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.glass-panel:hover {
    border-color: var(--glass-highlight);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}
.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}
.glass-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gray-200);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* BENTO GRID (Irregular) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 2rem;
}
.bento-about { grid-column: span 2; }
.bento-langs { grid-column: span 1; }
.bento-skills { grid-column: span 3; }

.bento-about p { font-size: 1.1rem; line-height: 1.8; color: var(--gray-400); }
.lang-list { display: flex; flex-direction: column; gap: 1.5rem; }
.lang span { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--gray-200); }
.progress-track { width: 100%; height: 4px; background: rgba(255,255,255,0.05); }
.progress-fill { height: 100%; background: var(--gray-600); transition: width 1s; }
.bento-langs:hover .progress-fill { background: var(--accent); }

.clean-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;}
.clean-list li { font-size: 0.95rem; color: var(--gray-400); line-height: 1.6; }
.clean-list strong { 
    color: var(--accent); 
    display: block;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    margin-bottom: 0.3rem;
}

/* IRREGULAR GRID (Ventures & Footer) */
.irregular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 2rem;
}
.ig-large { grid-column: span 2; grid-row: span 2; }
.ig-small { grid-column: span 1; grid-row: span 1; }
.ig-tall { grid-column: span 1; grid-row: span 2; }

.year-badge { font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 1px; color: var(--accent); margin-bottom: 1rem; display: inline-block;}
.ig-large h3, .ig-small h3 { font-size: 2rem; margin-bottom: 0.5rem; font-family: var(--font-heading); letter-spacing: -1px;}
.ig-small h3 { font-size: 1.4rem; }
.ig-large h4, .ig-small h4 { font-size: 1rem; font-weight: 400; color: var(--gray-400); margin-bottom: 1.5rem;}
.ig-large p, .ig-small p { color: var(--gray-400); line-height: 1.6; font-size: 0.95rem; }

/* HORIZONTAL SCROLL JACKING */
.horizontal-scroll-wrapper {
    height: 400vh; 
    position: relative;
}
.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-base);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.hz-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-family: var(--font-heading);
    font-weight: 800;
    color: rgba(255,255,255,0.02);
    z-index: 0;
    white-space: nowrap;
    pointer-events: none;
}
.horizontal-content {
    display: flex;
    width: max-content;
    padding: 0 10vw;
    align-items: center;
    height: 100vh;
    gap: 3rem;
    will-change: transform;
    z-index: 1;
}
.hz-panel { flex: 0 0 450px; }
.card-timeline { padding: 3rem 2.5rem; height: 100%; }
.time-accent { color: var(--accent); font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 1rem;}
.card-timeline h3 { font-size: 1.8rem; margin-bottom: 0.5rem; letter-spacing: 0; }
.card-timeline h4 { font-size: 1rem; font-weight: 400; color: var(--gray-400); margin-bottom: 1.5rem; }
.card-timeline p { color: var(--gray-400); line-height: 1.6; font-size: 0.95rem;}

/* FOOTER SECTION (Impact & Edu) */
.big-metrics { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem;}
.big-metrics div { font-size: 1rem; color: var(--gray-400); display: flex; align-items: baseline; gap: 1rem;}
.big-metrics .num { font-size: 3rem; font-family: var(--font-heading); font-weight: 800; color: var(--gray-200); line-height: 1;}
.small-text { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6;}
.mt-4 { margin-top: 2rem; }

.edu-block h4 { font-size: 1.1rem; color: var(--gray-200); margin-bottom: 0.5rem; margin-top: 1rem;}
.edu-block p { font-size: 0.9rem; color: var(--gray-400); margin-bottom: 1rem;}

/* FADE IN ANIMATION */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-image-side { width: clamp(220px, 32vw, 400px); }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-about, .bento-langs, .bento-skills { grid-column: span 1; }
    .irregular-grid { grid-template-columns: 1fr; }
    .ig-large, .ig-small, .ig-tall { grid-column: span 1; grid-row: span 1; }
    
    .horizontal-scroll-wrapper { height: auto !important; }
    .sticky-container { position: relative; height: auto; border: none; }
    .hz-bg-text { display: none; }
    .horizontal-content { 
        flex-direction: row; 
        width: 100%; 
        height: auto;
        align-items: stretch; 
        padding: 2rem 1rem; 
        transform: none !important; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; /* Firefox */
    }
    .horizontal-content::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .hz-panel { 
        flex: 0 0 85vw; 
        width: auto; 
        margin-bottom: 0; 
        margin-right: 1rem; 
        scroll-snap-align: center; 
    }
}

/* NEW STYLES FOR GLITCH VENTURE */
.glitch-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    transition: filter 0.3s;
}
.glitch-link:hover {
    filter: brightness(1.2);
    text-decoration: underline;
}

.glitch-screen {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    opacity: 0.8;
    filter: grayscale(80%);
    transition: all 0.5s ease;
    display: block;
}
.glitch-screen:hover {
    opacity: 1;
    filter: grayscale(0%);
    border-color: var(--glass-highlight);
}

/* ADJUST SKILLS FULL LIST */
.full-skills li {
    margin-bottom: 0.5rem;
}

/* -----------------------------------------------------------
   TOOLS & SOFTWARE SECTION
----------------------------------------------------------- */
.section-tools {
    padding: 4rem 0;
}
.tools-panel {
    padding: 3rem;
}
.tools-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}
.tools-header .header-icon {
    color: #1cc6a4; /* Cyan/Teal from screenshot */
    font-size: 1.8rem;
}
.tools-header h2 {
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 2px;
}
.tools-category {
    margin-bottom: 2.5rem;
}
.tools-panel h3.cat-title {
    color: var(--accent);
    font-size: 1.15rem;
    font-family: var(--font-heading);
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: normal;
}
.tools-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem 1.5rem;
    align-items: start;
}
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.tool-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--gray-200);
}
.tool-fa {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Specific Adobe Icons (Boxes with letters) */
.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1.5px solid;
}
.adobe-ps { color: #31a8ff; border-color: #31a8ff; }
.adobe-id { color: #ff3366; border-color: #ff3366; }
.adobe-pr { color: #ea77ff; border-color: #ea77ff; }
.adobe-au { color: #9999ff; border-color: #9999ff; }
.adobe-ae { color: #9999ff; border-color: #9999ff; }

/* Specific FA Colors */
.ms-vs { color: #854cc7; }
.html-icon { color: #e34f26; }
.css-icon { color: #264de4; }
.js-icon { color: #f7df1e; }
.php-icon { color: #777bb3; }
.wp-icon { color: #21759b; }
.winscp-icon { color: #42d674; }
.antigravity-icon { color: #80ef80; }
.ga-icon { color: #f9ab00; }
.gsc-icon { color: #4285f4; }
.gads-icon { color: #fbbc04; }
.meta-icon { color: #0668e1; }
.semrush-icon { color: #ff642d; }
.frog-icon { color: #80ef80; }
.gtmetrix-icon { color: #2d82bb; }
.chatgpt-icon { color: #10a37f; }
.claude-icon { color: #d97757; }
.gemini-icon { color: #8e75ff; }
.midjourney-icon { color: #ffffff; }
.fl-icon { color: #ff8c00; }
.ms-office { color: #eb3c00; }
.woo-icon { color: #96588a; }
.filezilla-icon { color: #bf0000; }
.ahrefs-icon { color: #ff6633; }
.gtm-icon { color: #4285f4; }
.hubspot-icon { color: #ff7a59; }
.figma-icon { color: #a259ff; }
.capcut-icon { color: #00d9c0; }
.monday-icon { color: #ff3d57; }
.asana-icon { color: #f06a6a; }



/* --- SCROLL TYPEWRITER --- */
.scroll-typewriter {
    min-height: 0; /* No scroll-jacking runway needed - this is a simple reveal-on-scroll block */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem; /* Fixed breathing room above and below, regardless of scroll behavior */
    position: relative;
    background-color: transparent;
}
.typewriter-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.typewriter-text {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(66, 214, 116, 0.1);
    background: linear-gradient(to right, #42D674 50%, rgba(66, 214, 116, 0.1) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.1s ease-out;
}

@media (max-width: 768px) {
    .typewriter-text {
        font-size: 2.5rem;
    }
}

/* --- PC DASHBOARD INTERFACE --- */
.section-dashboard {
    padding: 6rem 0;
    background-color: transparent;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}
.dash-widget {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-height: 250px;
}
.widget-topbar {
    background-color: #222;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #333;
}
.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.bg-red { background-color: #ff5f56; }
.bg-yellow { background-color: #ffbd2e; }
.bg-green { background-color: #27c93f; }
.widget-title {
    color: #888;
    font-family: monospace;
    font-size: 0.85rem;
    margin-left: auto;
}
.widget-content {
    padding: 1.5rem;
    flex: 1;
}

/* Code Editor Widget */
.code-font {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ddd;
}
.c-keyword { color: #c678dd; }
.c-var { color: #e5c07b; }
.c-prop { color: #61afef; }
.c-string { color: #98c379; }
.c-num { color: #d19a66; }
.c-comment { color: #7f848e; font-style: italic; }
.code-line { display: block; }
.ind-1 { padding-left: 1.5rem; }

/* Pills Widget */
.relative-box { position: relative; height: 100%; }
.center-flex { display: flex; align-items: center; justify-content: center; }
.pill {
    position: absolute;
    padding: 0.5rem 1rem;
    border: 1px solid;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.pill-1 { color: #ff5f56; border-color: #ff5f56; top: 10%; left: 10%; transform: rotate(-15deg); }
.pill-2 { color: #61afef; border-color: #61afef; top: 20%; right: 10%; transform: rotate(10deg); }
.pill-3 { color: #98c379; border-color: #98c379; bottom: 20%; left: 15%; transform: rotate(5deg); }
.pill-4 { color: #e5c07b; border-color: #e5c07b; bottom: 10%; right: 15%; transform: rotate(-10deg); }
.pill-5 { color: #c678dd; border-color: #c678dd; top: 40%; left: 35%; transform: rotate(-5deg); }
.pill-6 { color: #42D674; border-color: #42D674; bottom: 40%; right: 25%; transform: rotate(15deg); }

/* List Widget */
.widget-list .widget-topbar { padding: 0; background: transparent; }
.tab { padding: 0.8rem 1.5rem; font-size: 0.9rem; color: #888; cursor: pointer; border-bottom: 2px solid transparent; }
.active-tab { color: #42D674; border-bottom: 2px solid #42D674; }
.scrollable-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 0 1.5rem;
}
/* Scrollbar for list */
.scrollable-list::-webkit-scrollbar { width: 6px; }
.scrollable-list::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.list-item {
    border-bottom: 1px dashed #333;
    padding: 1rem 0;
}
.list-item:last-child { border-bottom: none; }
.li-title { font-weight: 600; color: #ddd; margin-bottom: 0.3rem; }
.li-org { font-size: 0.8rem; color: #888; }

/* File Explorer Widget */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-content: center;
}
.file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    text-decoration: none;
    color: #bbb;
    font-size: 0.85rem;
    transition: transform 0.2s;
}
.file-icon:hover { transform: translateY(-3px); color: #fff; }
.file-icon i { font-size: 2.5rem; }
.text-blue { color: #61afef; }
.text-red { color: #ff5f56; }

/* --- LAVA LAMP BACKGROUND --- */
.lava-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -999;
    overflow: hidden;
    background: #0d0d0d;
    filter: blur(100px); pointer-events: none;
}
.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: moveBlob infinite alternate ease-in-out;
}
.blob1 {
    width: 45vw; height: 45vw;
    background: var(--accent); /* Green */
    top: -10%; left: -10%;
    animation-duration: 25s;
}
.blob2 {
    width: 40vw; height: 40vw;
    background: #4252D6; /* Blue */
    bottom: -20%; right: -10%;
    animation-duration: 28s;
}
.blob3 {
    width: 35vw; height: 35vw;
    background: #D642A4; /* Pink */
    top: 40%; left: 60%;
    animation-duration: 32s;
}
.blob4 {
    width: 30vw; height: 30vw;
    background: #D6A442; /* Orange */
    bottom: 30%; left: 10%;
    /* No animation for reactive blob, handled by JS */
    transition: top 2s cubic-bezier(0.1, 0.9, 0.2, 1), left 2s cubic-bezier(0.1, 0.9, 0.2, 1);
}

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15vw, 10vh) scale(1.1); }
    66% { transform: translate(-10vw, 20vh) scale(0.9); }
    100% { transform: translate(5vw, -15vh) scale(1.2); }
}




/* Fix stacking context for main content */
.main-content, header {
    position: relative;
    z-index: 10;
}

/* --- PROJECT GALLERY: sticky title + small draggable strip --- */
.section-gallery {
    position: relative;
    padding-top: 0; /* Otherwise this stacks with the topbar's own margin-top for a huge gap */
    padding-left: 0;
    padding-right: 0;
}
/* The title sticks in place once reached, and stays stuck for as long as
   #gallery (its containing block - title + strip + the carousel's scroll
   room) is still being scrolled through. It's only ever hidden from view
   because the carousel/footer overlays (higher z-index, opaque) rise up
   and cover it - it's never removed or toggled. */
.gallery-sticky-title-wrap {
    position: sticky;
    top: 0;
    z-index: 6;
    padding-top: 2vh; /* Breathing room from the very top edge once stuck */
}
.gallery-title-wrap {
    padding: 0 2rem; /* The section itself is edge-to-edge for the slider; the title keeps the normal gutter */
}
.gallery-slider {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    opacity: 1; /* driven directly by scroll progress, see script.js - no CSS transition, so it tracks 1:1 */
}
.gallery-slider.is-dragging {
    cursor: grabbing;
}
.gallery-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
}
.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: 190px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.35s ease, border-color 0.35s ease;
    -webkit-user-select: none;
    user-select: none;
}
.gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 768px) {
    .gallery-item { width: 220px; height: 140px; }
}

/* --- PROJECT GALLERY: big carousel, a fixed full-screen layer that rises
   from below and covers the title+strip as you scroll through
   #gallery-pin-wrapper (its dedicated scroll-room spacer, right below it in
   the DOM). Driven by JS (scroll progress -> translateY), same technique as
   the footer overlay below. --- */
.gallery-pin-wrapper {
    height: 35vh; /* short enough to start almost immediately, long enough for the fade+rise to read as smooth across a few scroll ticks */
}
/* Pure scroll-room padding so the page has enough total height for
   #gallery-pin-wrapper's top to actually reach negative values (otherwise,
   being the last real content, the browser can't scroll far enough and the
   carousel reveal would never complete). Not visible - the fixed overlays
   cover it once revealed. */
.gallery-trailing-space {
    height: 100vh;
}
.carousel-overlay {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
    transform: translateY(100%);
    will-change: transform;
}

/* Header: PORTFOLIO kicker + current client name, top-right */
.carousel-header {
    position: absolute;
    top: 6vh;
    right: 4vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    text-align: right;
    pointer-events: none;
}
.carousel-header-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}
.carousel-header-client {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.carousel-viewport {
    position: relative;
    width: min(56vw, 960px);
    max-width: 90vw;
    max-height: 64vh; /* leaves the neighboring slides peeking at the sides */
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: visible;
    flex-shrink: 0;
    cursor: grab;
}
.carousel-viewport.is-dragging {
    cursor: grabbing;
}
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0 1.25rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
/* Decorative peek clones at either end of the track - not clickable */
.carousel-slide-clone {
    cursor: default;
    pointer-events: none;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    opacity: 0.35;
    transform: scale(0.82);
    filter: blur(1px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), filter 0.7s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.carousel-slide.active img {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}
.carousel-slide.active img:hover {
    border-color: var(--accent);
}

/* Small progress dots under the carousel */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-shrink: 0;
}
.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s ease, width 0.3s ease;
}
.carousel-dot.active {
    background: var(--accent);
    width: 18px;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .carousel-viewport { width: 84vw; max-width: 94vw; max-height: 56vh; aspect-ratio: 4 / 3; }
    .carousel-slide { padding: 0 0.6rem; }
    .carousel-header { top: 3vh; right: 5vw; }
    .gallery-title-wrap h2 { font-size: clamp(2.2rem, 9vw, 3rem) !important; }
}

/* --- GALLERY LIGHTBOX --- */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 4vh 4vw;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.gallery-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    cursor: zoom-out;
}

/* --- CONTACT CTA FOOTER BANNER --- */
.cta-footer {
    background: var(--accent);
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
}
/* Slim bar fixed to the bottom of the screen - rises into view together with
   the carousel (same scroll trigger, #gallery-pin-wrapper) and then just
   stays there, visible the whole time you're on the carousel screen, instead
   of needing extra scroll to cover the full viewport. */
.cta-footer-overlay {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding: 0.75rem 2rem;
    z-index: 20;
    display: flex;
    align-items: center;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    will-change: transform;
}
.cta-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.cta-footer-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: #0a0a0a;
    letter-spacing: -0.02em;
}
.cta-footer-btn {
    background: #0a0a0a;
    color: var(--accent);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s ease, background 0.3s ease;
}
.cta-footer-btn:hover {
    transform: scale(1.05);
    background: #1a1a1a;
}
@media (max-width: 600px) {
    .cta-footer-overlay { padding: 0.75rem 1.5rem; }
    .cta-footer-inner { justify-content: center; text-align: center; }
    .cta-footer-btn { width: 100%; }
}

/* Separate overlay so it doesn't get blurred */
.lava-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.6) 0%, rgba(10,10,10,1) 100%);
    z-index: -998;
    pointer-events: none;
}


/* --- PREMIUM DESIGN UPGRADES --- */

/* 3. Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0; left: 0;
    width: 0%; height: 3px;
    background: var(--accent);
    z-index: 10001;
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.1s ease-out;
}

/* 4. Fade & Slide Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 5. Glassmorphism Tweaks */
.vertical-section, .widget-list, .widget-card {
    background: rgba(18, 18, 18, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.vertical-section:hover, .widget-list:hover, .widget-card:hover {
    border-color: rgba(66, 214, 116, 0.15) !important;
    box-shadow: 0 10px 40px rgba(66, 214, 116, 0.05) !important;
}



/* Custom System Cursor (Green) */
body, a, button, .tab, .card, .btn-primary, .btn-outline, .widget-list, .vertical-section {
    cursor: url("data:image/svg+xml;utf8,<svg width='24' height='24' viewBox='0 0 24 24' fill='%2342D674' xmlns='http://www.w3.org/2000/svg'><path d='M5.5 2.5L20 10.5L12 13L9.5 21L5.5 2.5Z' stroke='white' stroke-width='1.5'/></svg>"), auto !important;
}



/* 6. Sticky Navigation Menu */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9998; /* Just below progress bar */
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 0.9rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

body.nav-visible .sticky-nav {
    transform: translateY(0);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5vw;
}

.sticky-nav ul.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.sticky-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.sticky-nav a:hover {
    color: var(--accent);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    color: #000;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(133, 227, 100, 0.35);
    font-weight: 800;
}

.lang-divider {
    color: var(--gray-600);
    font-size: 0.8rem;
    user-select: none;
}

@media (max-width: 768px) {
    .sticky-nav ul {
        gap: 1.5rem;
    }
    .sticky-nav a {
        font-size: 0.8rem;
    }
}

/* Certificate List Styles */
.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cert-item:last-child {
    border-bottom: none;
}
.cert-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cert-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.cert-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.cert-link {
    font-size: 0.85rem;
    color: var(--gray-400);
    text-decoration: none;
    margin-top: 0.2rem;
    transition: color 0.2s;
}
.cert-link:hover {
    color: var(--accent);
}






/* --- WHATSAPP MODAL & CONTACT BUTTON --- */
.contact-fab {
    position: fixed;
    top: 50%;
    left: -150px; /* Hidden off-screen initially */
    opacity: 0;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left top;
    background: var(--accent);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 0 0 12px 12px;
    cursor: none;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(133, 227, 100, 0.2);
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, padding 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s, bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Reveal FAB exactly when nav is visible */
.contact-visible .contact-fab {
    left: 0;
    opacity: 1;
}
.contact-fab:hover {
    background: #fff;
    padding-top: 1.2rem; /* Expands outwards when hovered */
}

.wa-modal {
    position: fixed;
    inset: 0;
    background-color: var(--accent);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}
.wa-modal.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}
.wa-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: transparent;
    border: none;
    color: #000;
    font-size: 4rem;
    cursor: none;
    font-weight: 300;
    line-height: 1;
    padding: 0;
    transition: transform 0.3s;
}
.wa-close:hover {
    transform: rotate(90deg);
}
.wa-link {
    font-size: clamp(3rem, 12vw, 10rem);
    font-family: var(--font-heading);
    font-weight: 800;
    color: #000;
    text-decoration: none;
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
    transition: transform 0.3s, opacity 0.3s;
    cursor: none;
}
.wa-link:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* --- MOBILE SPECIFIC FIXES --- */
@media (pointer: coarse) {
    /* Disable custom cursor entirely */
    .custom-cursor, .custom-cursor-follower {
        display: none !important;
    }
    /* Re-enable regular cursor for interactive elements */
    a, button, .dash-tab, .list-item, .contact-fab, .wa-close, .wa-link, body {
        cursor: auto !important;
    }
}
@media (max-width: 768px) {
    .hero-image-side {
        display: none;
    }
    .hello-text {
        margin-left: 5vw;
    }
    .huge-name {
        font-size: clamp(3.5rem, 18vw, 6rem); /* ensure it doesn't overflow */
        word-break: break-word;
    }
    
    .contact-fab {
        top: auto;
        bottom: -150px; /* Hidden off-screen bottom initially */
        left: 50%;
        transform: translateX(-50%); /* Centered horizontally, not rotated */
        transform-origin: center center;
        border-radius: 12px 12px 0 0; /* Rounded on top */
        width: 100%;
        max-width: 350px;
        text-align: center;
    }

    /* Reveal FAB exactly when nav is visible */
    .contact-visible .contact-fab {
        left: 50%;
        bottom: 0;
    }

    .wa-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 3rem;
    }
}








@media (max-width: 768px) {
    .dash-widget, .glass-panel {
        padding-right: 1.5rem !important;
    }
    .hero-wrapper {
        min-height: auto;
        max-height: none; /* Desktop locks to one screen; mobile content can exceed it */
        overflow: visible;
        padding-top: 15vh;
        padding-bottom: 5vh;
        align-items: flex-start;
    }
    .hello-text {
        color: var(--accent);
        margin-top: 5vh;
        margin-left: 5vw;
    }
    .huge-name {
        margin-left: 5vw;
    }
    .tools-category-grid {
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .clean-list {
        display: flex !important;
        flex-direction: column !important;
    }
}
/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 1rem;
    position: relative;
    z-index: 10000;
}
.hamburger-menu span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-main);
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1.5rem;
    }
    .hamburger-menu {
        display: block;
        order: 2;
        margin-left: auto;
        padding: 0.5rem;
    }
    .lang-switch {
        order: 1;
    }
    .sticky-nav {
        padding: 0.4rem 0;
    }
    .sticky-nav ul.nav-links {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(10, 10, 10, 0.98);
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        gap: 2.5rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        padding: 0;
    }
    .sticky-nav.menu-open ul.nav-links {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
    .sticky-nav a {
        font-size: 1.5rem !important;
        letter-spacing: 3px;
    }
    /* Hamburger Animation to X */
    .sticky-nav.menu-open .hamburger-menu span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .sticky-nav.menu-open .hamburger-menu span:nth-child(2) {
        opacity: 0;
    }
    .sticky-nav.menu-open .hamburger-menu span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}



