/* ========================================================
   PREMIUM WEBSITE DEVELOPMENT DUBAI SHOWCASE PAGE
   ======================================================== */

.dev-showcase-page {
    background: #010409;
    /* Ultra dark mode */
    color: #c9d1d9;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Exclusive WebGL Canvas */
#dev-nexus-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

/* Base Hero Overrides */
.dev-hero {
    padding-top: 180px;
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
}

.dev-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.tech-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 85, 0.1);
    border: 1px solid rgba(0, 255, 85, 0.4);
    color: #00FF55;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    letter-spacing: 2px;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 255, 85, 0.2);
}

.neon-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glow-green {
    color: #00FF55;
    text-shadow: 0 0 10px #00FF55, 0 0 30px #00FF55;
}

.glow-green-text {
    color: #00FF55;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
}

.terminal-type::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.pulse-glow-btn {
    box-shadow: 0 0 20px rgba(0, 255, 85, 0.4);
    background: rgba(0, 255, 85, 0.1);
    border: 1px solid #00FF55;
    color: #00FF55;
}

.pulse-glow-btn:hover {
    background: #00FF55;
    color: #000;
    box-shadow: 0 0 40px rgba(0, 255, 85, 0.8);
}

/* ========================================================
   TECH STACK MARQUEE
   ======================================================== */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(0, 255, 85, 0.2);
    border-bottom: 1px solid rgba(0, 255, 85, 0.2);
    padding: 20px 0;
    position: relative;
    z-index: 2;
    display: flex;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 20s linear infinite;
}

.tech-tag {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 40px;
    letter-spacing: 2px;
    transition: 0.3s ease;
}

.tech-tag:hover {
    color: #00FF55;
    text-shadow: 0 0 15px rgba(0, 255, 85, 0.8);
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assume track width is doubled by repeated items */
}

/* ========================================================
   SVG CONNECTION VECTOR
   ======================================================== */
.svg-connector {
    position: relative;
    z-index: 2;
    margin: -10px auto;
}

.data-pulse-line {
    stroke-dasharray: 20 10;
    animation: stroke-pulse 2s linear infinite;
}

@keyframes stroke-pulse {
    to {
        stroke-dashoffset: -30;
    }
}

/* ========================================================
   IDE CODE BLOCKS (The Development Standard)
   ======================================================== */
.ide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .ide-grid {
        grid-template-columns: 1fr;
    }
}

.ide-card {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: 0.4s ease;
    position: relative;
}

.ide-card:hover {
    border-color: #00FF55;
    box-shadow: 0 20px 50px rgba(0, 255, 85, 0.15);
    transform: translateY(-10px);
}

.ide-header {
    background: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.ide-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.filename {
    margin-left: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #8b949e;
}

.ide-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    /* For the overlay */
}

/* Syntax Highlighting */
.code-comment {
    color: #8b949e;
    display: block;
    margin-bottom: 10px;
}

.code-line {
    margin: 0;
    color: #c9d1d9;
}

.code-indent {
    margin: 0 0 0 20px;
    color: #c9d1d9;
}

.code-indent-2 {
    margin: 0 0 0 40px;
    color: #c9d1d9;
}

.keyword {
    color: #ff7b72;
}

.string {
    color: #a5d6ff;
}

.function {
    color: #d2a8ff;
}

.plain-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(5px);
    padding: 30px 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Hover reveals the explanation */
.ide-card:hover .plain-text-overlay {
    opacity: 1;
}

/* ========================================================
   AI SEO TERMINAL & MATRIX CONSOLE
   ======================================================== */
.split-terminal {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.terminal-sidebar {
    text-align: left;
    padding-right: 20px;
}

.terminal-window.dual-pane {
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pulse-glow-border {
    animation: borderPulse 4s infinite alternate;
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 85, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    100% {
        box-shadow: 0 0 40px rgba(0, 255, 85, 0.4), inset 0 1px 0 rgba(0, 255, 85, 0.4);
    }
}

.terminal-split-body {
    display: flex;
    height: calc(100% - 35px);
    /* Subtract header height */
}

/* Left: Console */
.console-pane {
    flex: 1.2;
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #00FF55;
    text-align: left;
    position: relative;
    overflow-y: hidden;
    /* Hide scrollbar for aesthetics */
    border-right: 1px solid rgba(0, 255, 85, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Always type from bottom up */
}

.terminal-line {
    margin: 0 0 8px 0;
}

.terminal-sys {
    color: #8b949e;
}

.terminal-success {
    color: #00FF55;
}

.terminal-warn {
    color: #ffbd2e;
}

.terminal-prompt {
    color: #a5d6ff;
    margin-right: 10px;
}

.terminal-type::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

/* Right: Matrix */
.terminal-matrix-pane {
    flex: 1.5;
    position: relative;
    background: #02040a;
    overflow: hidden;
}

#matrix-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 255, 85, 0.05) 50%, transparent 100%);
    background-size: 100% 20px;
    animation: scanline 4s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        background-position: 0 -100px;
    }

    100% {
        background-position: 0 400px;
    }
}

@media (max-width: 900px) {
    .split-terminal {
        grid-template-columns: 1fr;
    }

    .terminal-sidebar {
        padding-right: 0;
        text-align: center;
    }

    .terminal-window.dual-pane {
        height: auto;
        min-height: 500px;
    }

    .terminal-split-body {
        flex-direction: column;
        height: 500px;
    }

    .console-pane {
        flex: 1;
        border-right: none;
        border-bottom: 1px solid rgba(0, 255, 85, 0.2);
    }

    .terminal-matrix-pane {
        flex: 1;
        min-height: 250px;
    }
}

/* ========================================================
   PERFORMANCE DRAG RACE (Show, Don't Tell)
   ======================================================== */
.drag-race-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.race-track {
    position: relative;
}

.track-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    font-weight: 600;
}

.track-metric {
    font-weight: 800;
    min-width: 120px;
    text-align: right;
}

.track-bar-bg {
    width: 100%;
    height: 30px;
    background: #0d1117;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid #30363d;
}

.border-glow {
    border: 1px solid rgba(0, 255, 85, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 85, 0.1);
}

.track-bar-fill {
    height: 100%;
    width: 0%;
    /* JS will animate to 100% */
    border-radius: 15px;
    position: relative;
    transition: width linear;
    /* Timing logic handled in JS */
}

.bar-red {
    background: linear-gradient(90deg, #5c1e1e 0%, #ff5f56 100%);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.bar-green {
    background: linear-gradient(90deg, #0a4f21 0%, #00FF55 100%);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.5), 0 0 20px rgba(0, 255, 85, 0.5);
}

.car-indicator {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.glow-car {
    background: #fff;
    box-shadow: 0 0 20px #fff, 0 0 40px #00FF55;
}

/* ========================================================
   LIQUID TYPOGRAPHY (Organic Text Anim)
   ======================================================== */
.liquid-text {
    background: linear-gradient(to right,
            #ffffff 20%,
            #00FF55 40%,
            #00FF55 60%,
            #ffffff 80%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquidFlow 4s linear infinite;
    display: inline-block;
}

@keyframes liquidFlow {
    to {
        background-position: 200% center;
    }
}

/* ========================================================
   GLOBAL HELPERS
   ======================================================== */
.mt-5 {
    margin-top: 50px;
}

.mb-5 {
    margin-bottom: 50px;
}
/* Fix physics canvas from blocking scroll events */
#physics-blocks-container {
    pointer-events: none !important;
}

#dom-physics-layer {
    pointer-events: none !important;
}

.physics-dom-block {
    pointer-events: auto !important; /* Allow grabbing the individual blocks */
}
