/* ELITE V.2026.3 — Full Rewrite */
html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #000;
}

/* ═══════════════════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.preloader-logo {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
}

.preloader-bracket {
    color: rgba(0, 240, 255, 0.3);
    font-weight: 300;
}

.preloader-name {
    color: #fff;
}

.preloader-accent {
    color: #00F0FF;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.preloader-terminal {
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: left;
    max-width: 360px;
    margin: 0 auto 28px;
    min-height: 100px;
}

.preloader-line {
    margin-bottom: 6px;
    opacity: 0;
    transform: translateX(-10px);
}

.pre-cmd {
    color: #00F0FF;
}

.pre-ok {
    color: #4ade80;
}

.preloader-progress-track {
    width: 280px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin: 0 auto 12px;
    overflow: hidden;
}

.preloader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00F0FF, #6366f1, #00F0FF);
    background-size: 200% 100%;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    animation: bar-shimmer 1.5s linear infinite;
}

@keyframes bar-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.preloader-percent {
    font-size: 11px;
    color: rgba(0, 240, 255, 0.5);
    letter-spacing: 0.2em;
}

.preloader-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: grid-drift 15s linear infinite;
}

.preloader.done {
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER — Enhanced
   ═══════════════════════════════════════════════════════════════ */
.header-initial {
    background: transparent;
}

.header-scrolled {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

.header-glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0), transparent);
    transition: all 0.5s;
}

.header-scrolled .header-glow-line {
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.logo-img-wrap {
    position: relative;
    display: inline-flex;
}

.logo-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 240, 255, 0.3);
    animation: logo-ring-pulse 3s ease-in-out infinite;
}

@keyframes logo-ring-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.08); }
}

.logo-text {
    transition: text-shadow 0.3s;
}

.header-scrolled .logo-text {
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link-indicator {
    width: 0;
    height: 1px;
    background: #00F0FF;
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}

.nav-link:hover .nav-link-indicator {
    width: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   BASE UTILITIES
   ═══════════════════════════════════════════════════════════════ */

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #00F0FF; border-radius: 10px; }

.title-kinetic {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
    color: transparent;
    opacity: 0.1;
    transition: opacity 1s ease;
}

/* Terminal Cursor */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #00F0FF;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-line { margin-bottom: 4px; color: rgba(255, 255, 255, 0.7); }
.terminal-success { color: #4ade80; }
.terminal-command { color: #00F0FF; }

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

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* CV Shimmer */
.cv-shimmer::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
    animation: shimmer-slide 3s infinite;
    z-index: 1;
}
@keyframes shimmer-slide {
    0%   { left: -75%; }
    60%  { left: 125%; }
    100% { left: 125%; }
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY SECTION — Transparent + Collage Layout
   ═══════════════════════════════════════════════════════════════ */

.gallery-section {
    padding: 8rem 0 6rem;
    background: transparent; /* Transparent — particles show through */
    position: relative;
    overflow: visible;
}

/* Floating neon orbs */
.gallery-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
}

.gallery-orb-1 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    top: 15%; left: -8%;
    animation: orb-float-1 10s ease-in-out infinite;
}

.gallery-orb-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(120, 80, 255, 0.06) 0%, transparent 70%);
    bottom: 10%; right: -5%;
    animation: orb-float-2 12s ease-in-out infinite;
}

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -15px) scale(1.1); }
}
@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.12); }
}

@keyframes grid-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Section Header */
.gallery-title { line-height: 1; letter-spacing: -0.03em; }

/* Filter Buttons */
.gallery-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Geist Mono', monospace;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    position: relative; overflow: hidden;
}

.gallery-filter-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), transparent);
    opacity: 0; transition: opacity 0.3s;
}

.gallery-filter-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.gallery-filter-btn:hover::before { opacity: 1; }

.gallery-filter-btn.active {
    color: #00F0FF;
    border-color: rgba(0, 240, 255, 0.6);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2), inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.filter-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    transition: all 0.3s;
}

.gallery-filter-btn.active .filter-dot {
    box-shadow: 0 0 8px currentColor;
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

/* ═══════════════════════════════════════════════════════════════
   COLLAGE GRID — Masonry / Fan Layout
   ═══════════════════════════════════════════════════════════════ */

.collage-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    max-width: 1300px;
    margin: 0 auto;
    perspective: 1400px;
}

/* Cards placement — asymmetric collage */
.collage-card:nth-child(1) { grid-column: 1 / 8; grid-row: 1; }
.collage-card:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
.collage-card:nth-child(3) { grid-column: 1 / 5; grid-row: 2; }
.collage-card:nth-child(4) { grid-column: 5 / 13; grid-row: 2; }
.collage-card:nth-child(5) { grid-column: 1 / 6; grid-row: 3; }
.collage-card:nth-child(6) { grid-column: 6 / 10; grid-row: 3; }
.collage-card:nth-child(7) { grid-column: 10 / 13; grid-row: 3; }
.collage-card:nth-child(8) { grid-column: 1 / 13; grid-row: 4; }

@media (max-width: 768px) {
    .collage-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .collage-card:nth-child(n) {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
}

.collage-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.collage-card-inner {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(8, 8, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s, box-shadow 0.4s;
    height: 100%;
}

.collage-card:hover .collage-card-inner {
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.08), 0 10px 40px rgba(0,0,0,0.4);
}

/* Card heights for collage variety */
.collage-card:nth-child(1) .collage-card-inner { min-height: 320px; }
.collage-card:nth-child(2) .collage-card-inner { min-height: 320px; }
.collage-card:nth-child(3) .collage-card-inner { min-height: 280px; }
.collage-card:nth-child(4) .collage-card-inner { min-height: 280px; }
.collage-card:nth-child(5) .collage-card-inner { min-height: 260px; }
.collage-card:nth-child(6) .collage-card-inner { min-height: 260px; }
.collage-card:nth-child(7) .collage-card-inner { min-height: 260px; }
.collage-card:nth-child(8) .collage-card-inner { min-height: 200px; }

@media (max-width: 768px) {
    .collage-card:nth-child(n) .collage-card-inner { min-height: 220px; }
}

.collage-img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s;
}

.collage-card:hover .collage-img {
    transform: scale(1.06);
    filter: brightness(0.35) saturate(1.3);
}

/* Overlay */
.collage-overlay {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    z-index: 5;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 40%, rgba(0,5,15,0.92) 100%);
    transition: opacity 0.4s;
}

.collage-card:hover .collage-overlay { opacity: 1; }

.collage-tag {
    display: inline-block;
    width: fit-content;
    padding: 3px 10px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 4px;
    font-family: 'Geist Mono', monospace;
    font-size: 9px; font-weight: 700;
    color: #00F0FF;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.35s 0.1s;
}

.collage-card:hover .collage-tag { transform: translateY(0); opacity: 1; }

.collage-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px; font-weight: 800;
    color: #fff; margin-bottom: 6px;
    line-height: 1.2;
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.35s 0.15s;
}

.collage-card:hover .collage-title { transform: translateY(0); opacity: 1; }

.collage-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    max-width: 300px;
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.35s 0.2s;
}

.collage-card:hover .collage-desc { transform: translateY(0); opacity: 1; }

/* Ghost number */
.collage-number {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 54px; font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1; z-index: 2;
    pointer-events: none;
    transition: all 0.4s;
}

.collage-card:hover .collage-number {
    color: rgba(0, 240, 255, 0.08);
    transform: translateY(-5px);
}

/* Vanilla Tilt glare override */
.js-tilt-glare {
    border-radius: 14px !important;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Premium
   ═══════════════════════════════════════════════════════════════ */

.footer-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,240,255,0.15) 50%, transparent 100%);
    margin-bottom: 0;
    position: absolute;
    top: 0;
}

.footer-glow-line {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 240, 255, 0.06) 20%,
        rgba(0, 240, 255, 0.2) 50%,
        rgba(0, 240, 255, 0.06) 80%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   HERO — Code Block + SplitType + Scroll Indicator
   ═══════════════════════════════════════════════════════════════ */

/* SplitType character animation — Osmo Reveal style */
/* SplitType character animation — Clean Reveal */
.hero-char-split .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    /* Ensure child chars inherit the parent's gradient clipping */
    background: inherit;
    background-clip: inherit;
    -webkit-background-clip: inherit;
    color: inherit;
    transition: none !important;
}

#hero-word-dev {
    /* Base visibility for mask */
}

/* Light Reveal Specifics */
#hero-title {
    -webkit-mask-image: radial-gradient(circle 220px at var(--lamp-x, 50%) var(--lamp-y, 50%), black 0%, transparent 100%);
    mask-image: radial-gradient(circle 220px at var(--lamp-x, 50%) var(--lamp-y, 50%), black 0%, transparent 100%);
}

.hero-reveal {
    opacity: 0;
    transform: translateY(20px);
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

.gallery-title {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
    cursor: default;
    display: inline-block;
    will-change: transform;
    position: relative;
    z-index: 1;
}

.gallery-title:hover {
    transform: scale(1.1) translateY(-6px);
    filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.6));
}

#cv-btn {
    /* Inherits nav-link styles now */
}

/* ═══════════════════════════════════════════════════════════════
   CODE CTA BUTTONS (Pre-footer)
   ═══════════════════════════════════════════════════════════════ */
.code-cta-btn {
    position: relative;
    padding: 1.25rem 2.5rem;
    background: rgba(13, 17, 23, 0.6) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-family: 'Geist Mono', 'Fira Code', monospace !important;
    font-size: 0.85rem !important;
    color: #fff;
    border-radius: 0 !important; /* Square edges */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 260px;
    letter-spacing: 0.05em;
}

.code-cta-btn:hover {
    background: rgba(0, 240, 255, 0.05) !important;
    border-color: rgba(0, 240, 255, 0.6) !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
    transform: translateY(-3px);
}

.code-cta-btn .keyword { color: #569cd6; } /* VS Code Blue */
.code-cta-btn .func { color: #dcdcaa; }    /* VS Code Yellow */
.code-cta-btn .comment { color: #6a9955; } /* VS Code Green */
.code-cta-btn .string { color: #ce9178; }  /* VS Code Orange */
.code-cta-btn .punctuation { color: #949494; }

.cta-cursor {
    width: 8px;
    height: 18px;
    background: #00f0ff;
    display: inline-block;
    animation: cta-blink 1s step-end infinite;
    margin-left: 2px;
    box-shadow: 0 0 8px #00f0ff;
}

@keyframes cta-blink {
    50% { opacity: 0; }
}

/* Hero code snippet block */
.hero-code-block {
    display: flex;
    gap: 0;
    background: rgba(13, 17, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    max-width: 520px;
    font-family: 'Geist Mono', monospace;
    font-size: 13px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
}

.code-line-numbers {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.15);
    font-size: 11px;
    letter-spacing: 0.05em;
    user-select: none;
    line-height: 1.7;
}

.code-content {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.7;
}

.code-line {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.code-keyword { color: #c678dd; font-weight: 600; }
.code-var     { color: #e06c75; }
.code-string  { color: #98c379; }
.code-comment { color: rgba(255, 255, 255, 0.2); font-style: italic; }

.typing-cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: #00F0FF;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

/* Scroll indicator pill */
.scroll-indicator {
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: #00F0FF;
    border-radius: 3px;
    animation: scroll-bounce 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT MODAL — Code Editor Style
   ═══════════════════════════════════════════════════════════════ */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

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

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.contact-editor {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 580px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 240, 255, 0.05);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-modal.active .contact-editor {
    transform: translateY(0) scale(1);
}

/* Editor title bar */
.editor-titlebar {
    display: flex;
    align-items: center;
    background: #1e1e2e;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-dots {
    display: flex;
    gap: 7px;
    margin-right: 14px;
}

.dot-red    { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dot-yellow { width: 12px; height: 12px; border-radius: 50%; background: #febc2e; }
.dot-green  { width: 12px; height: 12px; border-radius: 50%; background: #28c840; }

.editor-filename {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    flex: 1;
    text-align: center;
}

.editor-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.editor-close:hover {
    color: #ff5f57;
    background: rgba(255, 95, 87, 0.1);
}

/* Editor body */
.editor-body {
    background: #0d1117;
    padding: 20px 0;
    font-family: 'Geist Mono', monospace;
    font-size: 13px;
}

.editor-line {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 3px 20px;
    min-height: 28px;
    line-height: 1.6;
}

.editor-line:hover {
    background: rgba(255, 255, 255, 0.02);
}

.line-num {
    color: rgba(255, 255, 255, 0.12);
    font-size: 11px;
    width: 20px;
    text-align: right;
    user-select: none;
    flex-shrink: 0;
}

/* Inline inputs — code style */
.editor-input {
    background: none;
    border: none;
    outline: none;
    color: #98c379;
    font-family: 'Geist Mono', monospace;
    font-size: 13px;
    width: 160px;
    padding: 2px 0;
    border-bottom: 1px solid rgba(152, 195, 121, 0.15);
    transition: border-color 0.3s;
}

.editor-input:focus {
    border-bottom-color: rgba(152, 195, 121, 0.5);
}

.editor-input::placeholder {
    color: rgba(152, 195, 121, 0.25);
    font-style: italic;
}

.editor-input-wide { width: 250px; }

/* Textarea */
.editor-textarea-wrap {
    padding: 0 20px 0 54px;
    position: relative;
}

.editor-textarea {
    width: 100%;
    min-height: 100px;
    max-height: 160px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
}

.editor-textarea:focus {
    border-color: rgba(0, 240, 255, 0.2);
}

.editor-textarea::placeholder {
    color: rgba(255, 255, 255, 0.15);
    font-style: italic;
}

.char-counter {
    position: absolute;
    bottom: 8px;
    right: 28px;
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.15);
}

/* Send button */
.editor-actions {
    padding: 12px 20px 4px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.editor-send-btn {
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: #00F0FF;
    font-family: 'Geist Mono', monospace;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.editor-send-btn:hover {
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.editor-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.send-status {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    color: #4ade80;
}

.send-status.error {
    color: #ff5f57;
}

@media (max-width: 600px) {
    .editor-input { width: 120px; }
    .editor-input-wide { width: 160px; }
    .editor-body { font-size: 11px; }
    .editor-line { padding: 3px 12px; }
    .editor-textarea-wrap { padding-left: 40px; }
}
/* UI REINFORCEMENT */
.gallery-title { transition: all 0.4s ease !important; display: inline-block !important; }
.gallery-title:hover { transform: scale(1.1) translateY(-6px) !important; filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.7)) !important; }
.logo-img-wrap img { display: block !important; }

/* UI FIX: INSTANT VISIBILITY */
.gallery-title { opacity: 1 !important; color: #ffffff !important; transition: transform 0.4s ease !important; }
.gallery-header { opacity: 1 !important; z-index: 20 !important; position: relative; }
