/* ============================================
   WEB DEVELOPMENT PAGE — TERMINAL / CODE AESTHETIC
   Bronze palette, dark editorial
   ============================================ */

:root {
    --bronze:       #b09878;
    --bronze-light: #d4b896;
    --bronze-dark:  #686048;
    --gold:         #d4b87a;
    --bg-0:         #000000;
    --bg-1:         #080808;
    --bg-2:         #0e0e0e;
    --bg-3:         #141414;
    --mono:         'JetBrains Mono', monospace;
}

.web-page {
    background: var(--bg-0);
    font-family: 'Inter', sans-serif;
}

/* ============================================
   MINI CENTERED TERMINAL PRELOADER
   ============================================ */
.web-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(8, 8, 8, 0.9); /* Dark overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the window perfectly */
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.6s;
}

.web-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mini-terminal-window {
    width: 320px; /* Small, compact window */
    background: #050505; /* Deep terminal black */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.window-header {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-header .red { background: #ff5f56; }
.window-header .yellow { background: #ffbd2e; }
.window-header .green { background: #27c93f; }

.window-body {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.window-body .t-path {
    color: #686048;
}

.window-body .t-prompt {
    color: #b09878;
    font-weight: 600;
}

.window-body .t-cursor {
    display: inline-block;
    width: 8px;
    height: 1.1rem;
    background-color: #b09878;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

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

/* ============================================
   HERO
   ============================================ */
.web-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-0);
}

/* Animated grid */
.web-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(176, 152, 120, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(176, 152, 120, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridDrift 30s linear infinite;
    z-index: 0;
}

@keyframes gridDrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(60px, 60px); }
}

/* Glowing orb */
.web-hero-glow {
    position: absolute;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 152, 120, 0.11) 0%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    animation: orbPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes orbPulse {
    0%, 100% { transform: translate(-50%, -55%) scale(1);    opacity: 1;   }
    50%       { transform: translate(-50%, -55%) scale(1.12); opacity: 0.7; }
}

/* Floating code snippets */
.code-float {
    position: absolute;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: rgba(176, 152, 120, 0.07);
    white-space: pre;
    pointer-events: none;
    line-height: 1.6;
    animation: floatCode linear infinite;
    z-index: 0;
}

@keyframes floatCode {
    from { transform: translateY(0)     rotate(-2deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    to   { transform: translateY(-120vh) rotate(-2deg); opacity: 0; }
}

/* Split layout */
.web-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 9rem 0 6rem;
    width: 100%;
}

@media (max-width: 900px) {
    .web-hero-inner { grid-template-columns: 1fr; padding: 8rem 0 4rem; }
    .web-hero-visual { display: none; }
}

/* Eyebrow */
.web-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(176, 152, 120, 0.6);
    margin-bottom: 2rem;
}

.web-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bronze);
    box-shadow: 0 0 10px rgba(176, 152, 120, 0.7);
    animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* Hero title */
.web-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 1.75rem;
}

.web-hero-title .line-bronze {
    background: linear-gradient(135deg, #b09878 0%, #d4b896 50%, #686048 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.web-hero-title .line-muted {
    color: rgba(255, 255, 255, 0.18);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}

.web-hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 2.75rem;
}

.web-hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Metrics strip */
.web-metrics {
    display: flex;
    gap: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.web-metric-num {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, #b09878, #d4b896);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.web-metric-label {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   BROWSER MOCKUP STACK (right column)
   ============================================ */
.web-hero-visual {
    position: relative;
    height: 500px;
}

.browser-card {
    position: absolute;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    background: #0e0e0e;
    transition: transform 0.5s ease;
}

.browser-card:hover {
    transform: translateY(-8px) !important;
}

.bc-main:hover {
    transform: translate(-50%, -56%) !important;
}

.bc-main {
    width: 88%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%) rotate(-1deg);
    animation: browserFloat 7s ease-in-out infinite;
    z-index: 3;
}

.bc-back {
    width: 65%;
    bottom: 5%;
    right: -2%;
    transform: rotate(4deg);
    animation: browserFloat2 9s ease-in-out 2s infinite;
    z-index: 2;
    opacity: 0.7;
}

.bc-far {
    width: 55%;
    top: 4%;
    left: -3%;
    transform: rotate(-3deg);
    animation: browserFloat3 8s ease-in-out 4s infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes browserFloat  {
    0%, 100% { transform: translate(-50%, -52%) rotate(-1deg); }
    50%       { transform: translate(-50%, -56%) rotate(-1deg); }
}
@keyframes browserFloat2 {
    0%, 100% { transform: rotate(4deg) translateY(0);   }
    50%       { transform: rotate(4deg) translateY(-10px); }
}
@keyframes browserFloat3 {
    0%, 100% { transform: rotate(-3deg) translateY(0);  }
    50%       { transform: rotate(-3deg) translateY(-8px); }
}

/* Browser chrome */
.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #161616;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bd-red   { background: #ff5f57; }
.bd-amber { background: #febc2e; }
.bd-green { background: #28c840; }

.browser-url {
    flex: 1;
    margin-left: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: rgba(176, 152, 120, 0.6);
}

/* Code inside mockup */
.browser-content {
    padding: 1.25rem;
}

.code-line {
    font-family: var(--mono);
    font-size: 0.7rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.3);
}

.cl-keyword { color: #b09878; }
.cl-fn      { color: #d4b896; }
.cl-str     { color: rgba(130, 180, 130, 0.75); }
.cl-comment { color: rgba(255, 255, 255, 0.18); }
.cl-num     { color: rgba(180, 140, 100, 0.85); }
.cl-success { color: rgba(130, 200, 130, 0.75); }

/* ============================================
   SERVICES GRID
   ============================================ */
.web-services {
    padding: 8rem 0;
    background: var(--bg-1);
}

.web-section-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(176, 152, 120, 0.6);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.web-section-label::after {
    content: '';
    width: 36px;
    height: 1px;
    background: rgba(176, 152, 120, 0.25);
}

.web-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.web-section-sub {
    color: rgba(255, 255, 255, 0.38);
    font-size: 1rem;
    margin-bottom: 4rem;
}

.web-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .web-services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .web-services-grid { grid-template-columns: 1fr; }
}

/* Service card */
.web-srv-card {
    position: relative;
    padding: 2.25rem;
    background: var(--bg-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.4s ease,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.web-srv-card:hover {
    border-color: rgba(176, 152, 120, 0.28);
    transform: translateY(-8px);
}

/* Bottom glow line on hover */
.web-srv-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(176, 152, 120, 0.5), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.web-srv-card:hover::before {
    transform: scaleX(1);
}

/* Big ghost number */
.web-srv-num {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
    transition: color 0.4s ease;
    pointer-events: none;
}

.web-srv-card:hover .web-srv-num {
    color: rgba(176, 152, 120, 0.08);
}

/* Icon box */
.web-srv-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(176, 152, 120, 0.07);
    border: 1px solid rgba(176, 152, 120, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.web-srv-card:hover .web-srv-icon {
    background: rgba(176, 152, 120, 0.14);
    border-color: rgba(176, 152, 120, 0.3);
}

.web-srv-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.web-srv-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.web-srv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.web-tag {
    padding: 0.2rem 0.65rem;
    background: rgba(176, 152, 120, 0.06);
    border: 1px solid rgba(176, 152, 120, 0.12);
    border-radius: 20px;
    font-family: var(--mono);
    font-size: 0.66rem;
    color: rgba(176, 152, 120, 0.6);
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.web-process {
    padding: 8rem 0;
    background: var(--bg-0);
    position: relative;
    overflow: hidden;
}

.web-process-bg-word {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(8rem, 18vw, 18rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: -10px;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

.web-process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

/* Connector line between step circles */
.web-process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 14px);
    right: calc(12.5% + 14px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(176, 152, 120, 0.2), transparent);
}

@media (max-width: 860px) {
    .web-process-steps { grid-template-columns: 1fr 1fr; }
    .web-process-steps::before { display: none; }
}

@media (max-width: 480px) {
    .web-process-steps { grid-template-columns: 1fr; }
}

.web-proc-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0e0e0e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.web-proc-step:hover .web-proc-num {
    border-color: rgba(176, 152, 120, 0.5);
    background: rgba(176, 152, 120, 0.07);
    color: var(--bronze);
}

.web-proc-step h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.web-proc-step p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.7;
}

/* ============================================
   TERMINAL BLOCK
   ============================================ */
.web-terminal-section {
    padding: 8rem 0;
    background: var(--bg-0);
}

.terminal-block {
    max-width: 720px;
    margin: 5rem auto 0;
    background: #0c0c0c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(176, 152, 120, 0.05);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-bar-label {
    margin-left: 0.5rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
}

.terminal-body {
    padding: 1.75rem 2rem;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.6);
}

.t-prompt  { color: var(--bronze); margin-right: 0.4rem; }
.t-cmd     { color: rgba(255, 255, 255, 0.85); }
.t-out     { color: rgba(255, 255, 255, 0.35); }
.t-success { color: rgba(130, 200, 130, 0.75); }
.t-bronze  { color: var(--bronze-light); }

.t-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--bronze);
    vertical-align: middle;
    margin-left: 2px;
    animation: dotBlink 1s step-end infinite;
}

/* ============================================
   TECH STACK MARQUEE
   ============================================ */
.web-tech {
    padding: 8rem 0;
    background: var(--bg-1);
}

.tech-marquee-wrap {
    overflow: hidden;
    margin-top: 3rem;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.tech-marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: techScroll 28s linear infinite;
    padding-bottom: 0.5rem;
}

.tech-marquee-track.reverse {
    animation-direction: reverse;
    margin-top: 1rem;
}

@keyframes techScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.4rem;
    background: var(--bg-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.tech-pill:hover {
    border-color: rgba(176, 152, 120, 0.3);
    color: var(--bronze-light);
}

.tech-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bronze);
    opacity: 0.6;
    flex-shrink: 0;
}

/* ============================================
   WEB PORTFOLIO GRID SECTION
   web-portfolio.css
   ============================================ */

.web-portfolio {
    padding: 8rem 0;
    background: var(--bg-1);
    overflow: hidden;
}

.web-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

@media (max-width: 1100px) {
    .web-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .web-portfolio-grid { grid-template-columns: 1fr; }
}

/* ── Card ── */
.wp-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-2);
    cursor: default;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.wp-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(176, 152, 120, 0.3);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

/* Bronze glow line on hover */
.wp-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(176, 152, 120, 0.5), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 3;
}

.wp-card:hover::before {
    transform: scaleX(1);
}

/* ── Image wrapper ── */
.wp-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.wp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s ease;
    filter: brightness(0.85);
}

.wp-card:hover .wp-img-wrap img {
    transform: scale(1.06);
    filter: brightness(1);
}

/* Bottom gradient over image */
.wp-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

/* ── Category pill ── */
.wp-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.3rem 0.85rem;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(176, 152, 120, 0.3);
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(176, 152, 120, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ── Card info ── */
.wp-info {
    padding: 1.5rem;
}

.wp-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.wp-desc {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
}

/* ============================================
   3D CINEMATIC PORTFOLIO TUNNEL (CONSOLIDATED)
   ============================================ */

/* 1. Prevent sticky-breaking overflow issues globally */
html, body {
    overflow-x: clip; 
}

/* 2. Main Section Setup */
.focus-portfolio {
    height: 500vh; /* Scroll track length */
    background: #0a0a0a; 
    position: relative;
    overflow: visible !important; /* CRITICAL for sticky to work */
}

/* 3. Ambient Wash (Keeping your moody lighting) */
.focus-portfolio::before {
    content: '';
    position: fixed; 
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 0;
    filter: blur(120px); -webkit-filter: blur(120px);
    background: 
        radial-gradient(circle at 20% 40%, rgba(176, 152, 120, 0.15) 0%, transparent 65%),
        radial-gradient(circle at 85% 75%, rgba(212, 184, 122, 0.12) 0%, transparent 60%);
}

/* 4. Section Title */
.focus-portfolio .container.text-center {
    position: sticky;
    top: 15vh;
    z-index: 20;
    pointer-events: none; 
}

/* 5. The 3D Camera / Stage */
.focus-list {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    perspective: 1500px; 
    transform-style: preserve-3d;
    overflow: hidden !important; 
    z-index: 1;
}

/* 6. The Cards (Forced to center of the tunnel) */
.f-card {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 75vw;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    margin: 0 !important; 
    
    transform: translate(-50%, -50%) translateZ(-5000px); 
    opacity: 0;
    will-change: transform, opacity, filter;
    transform-style: preserve-3d;
}

.f-image-wrap {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 50px 100px rgba(0,0,0,0.9), 0 0 40px rgba(176, 152, 120, 0.1);
    z-index: 1;
}

.f-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85); 
}

/* 7. The Text Box (Stereoscopic floating effect) */
.dark-overlay-box {
    position: absolute;
    bottom: -10%; 
    right: -10%;   
    z-index: 2;
    transform: translateZ(80px); /* 3D pop out */
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 2px solid var(--bronze);
    border-radius: 16px;
    padding: 2.25rem;
    width: 90%;
    max-width: 380px; 
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.f-category {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(176, 152, 120, 0.3);
    border-radius: 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--bronze);
    margin-bottom: 1.5rem;
}

.f-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.f-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE MOBILE RESET (Fixed for 3D & 16:9)
   ============================================ */
@media (max-width: 900px) {
    .focus-portfolio {
        height: auto !important;
        padding: 4rem 0 !important; /* Slightly tighter top/bottom padding */
    }

    .focus-list {
        position: relative !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column;
        gap: 3rem; /* <-- THE FIX: Reduced from 8vh to a much tighter 3rem */
        padding: 0 1.5rem !important;
        overflow: visible !important;
    }

    .f-card {
        width: 100% !important; /* Use full width minus the 1.5rem padding */
        height: auto; 
        aspect-ratio: auto; 
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
    }

    /* Lock the image to perfectly 16:9 */
    .f-image-wrap {
        width: 100%;
        height: auto; 
        aspect-ratio: 16 / 9; 
        position: relative;
    }

    .dark-overlay-box {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: -1.5rem !important; /* Tighter overlap over the image */
        padding: 1.5rem !important;
        transform: none !important; /* Kill the 3D pop on mobile */
    }

    .f-title {
        font-size: 1.5rem;
    }

    .f-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ============================================
   CTA
   ============================================ */
.web-cta {
    padding: 10rem 0;
    background: var(--bg-0);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.web-cta-glow {
    position: absolute;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 152, 120, 0.07) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: orbPulse 7s ease-in-out infinite;
}

.web-cta-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.web-cta-eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(176, 152, 120, 0.6);
    margin-bottom: 2rem;
}

.web-cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.web-cta-title .accent {
    background: linear-gradient(135deg, #b09878 0%, #d4b896 50%, #686048 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.web-cta-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* ============================================
   PREMIUM AGENCY EFFECTS
   ============================================ */

/* Jemný a hladký hover efekt pro karty (žádné skákání) */
.web-srv-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.web-srv-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(176, 152, 120, 0.3); /* Subtilní bronzový dotek */
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                inset 0 0 0 1px rgba(176, 152, 120, 0.1);
}

/* Elegantní gradient pro důležité texty (statický, bez laciného pohybu) */
.text-premium {
    background: linear-gradient(135deg, #ffffff 0%, #b09878 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Profesionální Reveal animace (využívá váš existující skript) */
.reveal-elegant {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-elegant.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Minimalistický styl terminálu */
.terminal-block {
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
}

.terminal-bar {
    background: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.t-prompt { color: #b09878; margin-right: 8px; }
.t-cmd { color: #e0e0e0; }
.t-out { color: #666666; }
.t-success { color: #b09878; } /* Místo zelené použijeme firemní bronzovou pro "success" - působí to luxusněji */

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    .web-hero-actions {
        flex-direction: column;
    }

    .web-metrics {
        gap: 1.5rem;
    }
}

/* ================================================================
   DEZIGNITE — Web Page Section Backgrounds — BALANCED EDITION
   Canvas effects from v2, restrained to premium opacity levels.
   ================================================================ */

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2px, 3px); }
  50%  { transform: translate(3px, -2px); }
  75%  { transform: translate(-3px, 2px); }
  100% { transform: translate(0, 0); }
}

@keyframes hexDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(56px, 100px); }
}

/* ─────────────────────────────────────────────────────────────
   HERO — Perspective grid (canvas) + warm atmosphere
───────────────────────────────────────────────────────────── */
.web-hero {
  background:
    radial-gradient(ellipse 60% 50% at 22% 32%,
      rgba(176, 152, 120, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 45% 60% at 80% 68%,
      rgba(80, 100, 140, 0.06) 0%, transparent 55%),
    #040506;
  overflow: hidden;
}

.web-hero-grid { display: none; }

#web-hero-grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3; /* was 0.55 — much calmer */
}

.web-hero::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
  animation: grainShift 0.4s steps(1) infinite;
}

.web-hero > .container { position: relative; z-index: 2; }

/* ─────────────────────────────────────────────────────────────
   SERVICES — Honeycomb hex + single warm bloom
───────────────────────────────────────────────────────────── */
.web-services {
  position: relative;
  background:
    radial-gradient(ellipse 75% 55% at 98% 55%,
      rgba(176, 152, 120, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 4% 90%,
      rgba(80, 95, 130, 0.05) 0%, transparent 55%),
    linear-gradient(165deg, #070809 0%, #090b0d 50%, #070809 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Honeycomb — opacity pulled way down */
.web-services::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34z' fill='none' stroke='rgba(176,152,120,0.06)' stroke-width='1'/%3E%3Cpath d='M28 100L0 84V50l28-16 28 16v34z' fill='none' stroke='rgba(176,152,120,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  pointer-events: none;
  animation: hexDrift 35s linear infinite;
  z-index: 0;
  mask-image: radial-gradient(ellipse 75% 75% at 55% 45%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 55% 45%, black 20%, transparent 80%);
}

.web-services > .container { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────────────────
   SERVICE CARDS
───────────────────────────────────────────────────────────── */
.web-srv-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 48px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3);
  transition: border-color 0.4s ease, box-shadow 0.4s ease,
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
}

.web-srv-card:hover {
  background: rgba(176, 152, 120, 0.04);
  border-color: rgba(176, 152, 120, 0.22);
  box-shadow:
    0 1px 0 rgba(176, 152, 120, 0.1) inset,
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(176, 152, 120, 0.06);
  transform: translateY(-5px);
}

.web-srv-card:hover .web-srv-icon {
  background: rgba(176, 152, 120, 0.1);
  border-color: rgba(176, 152, 120, 0.3);
}

/* ─────────────────────────────────────────────────────────────
   PORTFOLIO — Quiet deep space
───────────────────────────────────────────────────────────── */
.focus-portfolio {
  background:
    radial-gradient(ellipse 75% 30% at 50% 0%,
      rgba(176, 152, 120, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 60% 25% at 50% 100%,
      rgba(20, 22, 32, 0.5) 0%, transparent 55%),
    #040405;
  isolation: isolate;
}

.focus-portfolio::before {
  content: '';
  position: fixed;
  inset: 0;
  /* Three-layer starfield — very dim */
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1px),
    radial-gradient(circle, rgba(176,152,120,0.4) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 220px 220px, 370px 370px, 520px 520px;
  background-position: 0 0, 110px 55px, 30px 185px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25; /* was 0.4 */
}

.wp-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 16px 48px rgba(0,0,0,0.6);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.wp-card:hover {
  background: rgba(176, 152, 120, 0.03);
  border-color: rgba(176, 152, 120, 0.2);
  box-shadow:
    0 1px 0 rgba(176,152,120,0.08) inset,
    0 40px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(176,152,120,0.05);
  transform: translateY(-8px);
}

/* ─────────────────────────────────────────────────────────────
   TERMINAL — Matrix rain (canvas) at whisper opacity
───────────────────────────────────────────────────────────── */
.web-terminal-section {
  position: relative;
  background:
    radial-gradient(ellipse 50% 45% at 50% 70%,
      rgba(176, 152, 120, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #050607 0%, #040506 100%);
  overflow: hidden;
  isolation: isolate;
}

.web-terminal-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

#matrix-rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07; /* was 0.12 — now a ghost */
}

.web-terminal-section > .container { position: relative; z-index: 2; }

.terminal-block {
  background: #040506;
  border: 1px solid rgba(176, 152, 120, 0.12);
  box-shadow:
    0 0 0 1px rgba(0,0,0,1),
    0 0 0 2px rgba(176,152,120,0.04),
    0 40px 80px rgba(0,0,0,0.85),
    inset 0 1px 0 rgba(176,152,120,0.08);
  position: relative;
}

.terminal-block::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 50% at 50% 100%,
    rgba(176, 152, 120, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.terminal-bar {
  background: linear-gradient(180deg, #0c0d0f 0%, #090a0b 100%);
  border-bottom: 1px solid rgba(176, 152, 120, 0.07);
}

.t-prompt  { color: rgba(176,152,120,0.9); text-shadow: 0 0 14px rgba(176,152,120,0.4); }
.t-success { color: rgba(150,200,150,0.8); text-shadow: 0 0 10px rgba(150,200,150,0.25); }
.t-out     { color: rgba(90,100,110,0.75); }
.t-cursor  { background: rgba(176,152,120,0.85); box-shadow: 0 0 8px rgba(176,152,120,0.6); }

/* ─────────────────────────────────────────────────────────────
   PROCESS SECTION
───────────────────────────────────────────────────────────── */
.web-process {
  position: relative;
  background:
    radial-gradient(ellipse 65% 45% at 50% -5%,
      rgba(176, 152, 120, 0.06) 0%, transparent 55%),
    #060708;
  overflow: hidden;
}

.web-process::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(176,152,120,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,152,120,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 50%,
    black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 50%,
    black 20%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.web-process > .container { position: relative; z-index: 1; }

.web-proc-num {
  background: #080a0c;
  border: 1px solid rgba(176,152,120,0.14);
  box-shadow:
    0 0 0 4px rgba(176,152,120,0.03),
    inset 0 1px 0 rgba(176,152,120,0.08),
    0 4px 16px rgba(0,0,0,0.5);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.web-proc-step:hover .web-proc-num {
  background: rgba(176,152,120,0.06);
  border-color: rgba(176,152,120,0.4);
  color: rgba(176,152,120,0.95);
  box-shadow:
    0 0 0 8px rgba(176,152,120,0.05),
    0 0 20px rgba(176,152,120,0.14),
    inset 0 1px 0 rgba(176,152,120,0.18),
    0 6px 20px rgba(0,0,0,0.5);
  transform: scale(1.08);
}

.web-process-steps::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(176,152,120,0.14) 15%,
    rgba(176,152,120,0.14) 85%,
    transparent 100%);
}

/* ─────────────────────────────────────────────────────────────
   CTA — Black hole rings (canvas) at tasteful opacity
───────────────────────────────────────────────────────────── */
.web-cta {
  position: relative;
  background: #030304;
  overflow: hidden;
  isolation: isolate;
}

.web-cta-glow { display: none; }

#blackhole-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55; /* was 1.0 — halved */
}

.web-cta::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 512px 512px;
  pointer-events: none;
  z-index: 0;
  animation: grainShift 0.5s steps(1) infinite;
}

.web-cta > .container { position: relative; z-index: 2; }

.web-cta-title .text-premium,
.web-cta-title .accent {
  text-shadow: 0 0 50px rgba(176,152,120,0.18);
}

/* ─────────────────────────────────────────────────────────────
   BROWSER MOCKUPS
───────────────────────────────────────────────────────────── */
.browser-card {
  background: linear-gradient(155deg, #131417 0%, #0d0e10 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 -1px 0 rgba(0,0,0,0.5) inset,
    0 40px 80px rgba(0,0,0,0.9),
    0 16px 32px rgba(0,0,0,0.5);
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.browser-card:hover {
  box-shadow:
    0 1px 0 rgba(176,152,120,0.06) inset,
    0 -1px 0 rgba(0,0,0,0.5) inset,
    0 60px 100px rgba(0,0,0,0.9),
    0 0 40px rgba(176,152,120,0.05);
}

.browser-bar {
  background: linear-gradient(180deg, #181a1e 0%, #141618 100%);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ─────────────────────────────────────────────────────────────
   TECH PILLS
───────────────────────────────────────────────────────────── */
.tech-pill {
  background: rgba(176,152,120,0.04);
  border: 1px solid rgba(176,152,120,0.1);
  box-shadow: inset 0 1px 0 rgba(176,152,120,0.06);
  transition: all 0.3s ease;
}

.tech-pill:hover {
  background: rgba(176,152,120,0.09);
  border-color: rgba(176,152,120,0.25);
  color: rgba(212,184,150,0.9);
  transform: translateY(-1px);
}