/* ============================================================
   Saab Infotech Computers — style.css
   Premium Dark Mode IT Hardware Website
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Variables & Design Tokens
   ---------------------------------------------------------- */
:root {
    --bg-base:       #050507;
    --bg-surface:    #0c0c10;
    --bg-elevated:   #141418;
    --bg-card:       #101014;

    --txt-primary:   rgba(255,255,255,0.95);
    --txt-secondary: rgba(255,255,255,0.60);
    --txt-muted:     rgba(255,255,255,0.30);

    --cyan:          hsl(195,100%,50%);
    --cyan-dim:      hsla(195,100%,50%,0.12);
    --cyan-glow:     hsla(195,100%,50%,0.25);

    --purple:        hsl(278,88%,60%);
    --purple-dim:    hsla(278,88%,60%,0.12);
    --purple-glow:   hsla(278,88%,60%,0.30);

    --border:        rgba(255,255,255,0.07);
    --border-hover:  rgba(255,255,255,0.15);

    --font-body:     'Inter', system-ui, sans-serif;
    --font-display:  'Orbitron', sans-serif;

    --radius:        10px;
    --ease:          cubic-bezier(.16,1,.3,1);
}

/* ----------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-base);
    color: var(--txt-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body { overflow-x: hidden; }

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ----------------------------------------------------------
   2b. Ambient Neon Cloud Layer
   ---------------------------------------------------------- */
.neon-cloud-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.neon-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
    will-change: transform;
}

.neon-blob-cyan   { background: radial-gradient(circle, var(--cyan) 0%, transparent 70%); }
.neon-blob-purple { background: radial-gradient(circle, var(--purple) 0%, transparent 70%); }

.blob-1 {
    width: 520px; height: 520px;
    top: -10%; left: -8%;
    animation: driftA 34s ease-in-out infinite;
}
.blob-2 {
    width: 620px; height: 620px;
    top: 30%; right: -12%;
    animation: driftB 42s ease-in-out infinite;
}
.blob-3 {
    width: 480px; height: 480px;
    bottom: -12%; left: 20%;
    animation: driftC 38s ease-in-out infinite;
}
.blob-4 {
    width: 440px; height: 440px;
    top: 60%; left: -10%;
    animation: driftD 46s ease-in-out infinite;
}

@keyframes driftA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(120px, 80px) scale(1.15); }
    66%      { transform: translate(60px, -60px) scale(.9); }
}
@keyframes driftB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-100px, 60px) scale(.9); }
    66%      { transform: translate(-50px, -100px) scale(1.1); }
}
@keyframes driftC {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(90px, -80px) scale(1.2); }
}
@keyframes driftD {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(70px, 60px) scale(.95); }
}

/* Keep it subtle and cheap on mobile */
@media (max-width: 768px) {
    .neon-blob { filter: blur(60px); opacity: .25; }
    .blob-1, .blob-2, .blob-3, .blob-4 { width: 320px; height: 320px; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .neon-blob { animation: none; }
}


.loading-overlay {
    position: fixed; inset: 0;
    background: var(--bg-base);
    z-index: 9999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 20px;
    transition: opacity .6s var(--ease);
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }

.loader-ring {
    width: 48px; height: 48px;
    border: 3px solid rgba(255,255,255,.05);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loader-text {
    font-family: var(--font-display);
    font-size: .75rem;
    letter-spacing: .18em;
    color: var(--txt-muted);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------
   4. Header
   ---------------------------------------------------------- */
.glass-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 900;
    padding: 18px 0;
    background: rgba(5,5,7,.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: padding .3s var(--ease), background .3s var(--ease);
}
.glass-header.compact {
    padding: 10px 0;
    background: rgba(5,5,7,.95);
}

.header-inner {
    width: 100%;
    margin: 0;
    padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: .06em;
}
.logo-accent { color: var(--cyan); text-shadow: 0 0 14px var(--cyan-glow); }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
    padding: 8px 14px;
    font-size: .88rem; font-weight: 500;
    color: var(--txt-secondary);
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--txt-primary); background: rgba(255,255,255,.05); }
.nav-cta {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 600;
    color: var(--txt-primary);
}
.nav-cta:hover { background: var(--cyan); color: #000; border-color: var(--cyan); box-shadow: 0 0 16px var(--cyan-glow); }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 4px;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--txt-primary);
    border-radius: 2px;
    transition: .3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------
   5. Hero Section
   ---------------------------------------------------------- */
.hero-section {
    position: relative;
    z-index: 1;
    height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
    background: var(--bg-base);
}

.hero-bg-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: brightness(0.5) saturate(1.15);
    transition: opacity 1.8s ease-in-out;
    z-index: 0;
}

.hero-bg-video.is-active {
    opacity: 1;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-video { transition: none; }
}

.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 40%, transparent 30%, var(--bg-base) 80%);
    z-index: 1;
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 820px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid var(--border-hover);
    border-radius: 20px;
    font-size: .75rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 28px;
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

.hero-heading {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 22px;
}
.hero-brand {
    display: block;
    font-size: clamp(2.4rem, 7vw, 5rem);
    letter-spacing: .04em;
}
.hero-sub {
    display: block;
    font-size: clamp(1.4rem, 4vw, 2.8rem);
    letter-spacing: .18em;
    background: linear-gradient(135deg, #fff 20%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.accent { color: var(--cyan); }

.hero-body {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--txt-secondary);
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block; padding: 14px 30px;
    border-radius: var(--radius); font-weight: 600; font-size: .95rem;
    transition: all .3s var(--ease);
}
.btn-primary {
    background: var(--cyan); color: #000;
    box-shadow: 0 4px 24px var(--cyan-dim);
}
.btn-primary:hover { background: #fff; box-shadow: 0 4px 30px rgba(255,255,255,.25); transform: translateY(-2px); }
.btn-ghost {
    background: rgba(255,255,255,.04); color: var(--txt-primary);
    border: 1px solid var(--border-hover);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-full { width: 100%; text-align: center; }

/* Scroll cue */
.scroll-cue {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--txt-muted); font-size: .72rem; letter-spacing: .1em;
    text-transform: uppercase;
    animation: bounce 2.4s infinite;
}
.scroll-mouse {
    width: 22px; height: 34px;
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 12px;
    display: flex; justify-content: center; padding-top: 5px;
}
.scroll-ball {
    width: 4px; height: 6px;
    background: var(--cyan);
    border-radius: 2px;
    animation: scrollball 1.5s ease-out infinite;
}
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-6px); }
}
@keyframes scrollball {
    0%   { opacity:1; transform: translateY(0); }
    100% { opacity:0; transform: translateY(10px); }
}

/* ----------------------------------------------------------
   6. Shared Section Styles
   ---------------------------------------------------------- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.content-section { padding: 120px 0; position: relative; z-index: 1; overflow: hidden; }

/* Local ambient neon blobs for opaque sections the fixed global layer can't show through */
.section-neon-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.content-section .container { position: relative; z-index: 1; }

.section-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.section-label {
    font-family: var(--font-display);
    font-size: .72rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}
.section-heading::after {
    content: '';
    position: absolute; left: 0; bottom: -8px;
    width: 40px; height: 2px;
    background: var(--cyan);
}

.section-subtext {
    font-size: 1.05rem;
    color: var(--txt-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin-top: 20px;
    margin-bottom: 60px;
}

/* ----------------------------------------------------------
   7. Scroll Reveal Animation
   ---------------------------------------------------------- */
.reveal-item {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger siblings inside grid */
.cards-grid .reveal-item:nth-child(2) { transition-delay: .15s; }
.cards-grid .reveal-item:nth-child(3) { transition-delay: .30s; }

/* ----------------------------------------------------------
   8. Cards Grid
   ---------------------------------------------------------- */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.product-card {
    background: #000;
    border: 2px solid var(--cyan-dim);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color .3s, box-shadow .3s;
    box-shadow: 0 0 0px transparent;
}
.product-card:hover,
.product-card:focus-within {
    animation: cardGlowPulse 2.2s ease-in-out infinite;
}
@keyframes cardGlowPulse {
    0%, 100% {
        border-color: hsla(195,100%,50%,0.35);
        box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 6px hsla(195,100%,55%,0.4), 0 0 12px hsla(195,100%,50%,0.2);
    }
    50% {
        border-color: hsl(195,100%,60%);
        box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 16px hsla(195,100%,60%,0.9), 0 0 32px hsla(195,100%,50%,0.5), inset 0 0 16px hsla(195,100%,50%,0.2);
    }
}

.card-img-wrap {
    position: relative;
    background: #000;
    height: 300px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease), filter .5s;
    filter: brightness(0.92) contrast(1.05);
}
.product-card:hover .card-img { filter: brightness(1.05) contrast(1.08); }

.card-img-glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 100%, var(--cyan-dim) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
}
.product-card:hover .card-img-glow,
.product-card:focus-within .card-img-glow {
    opacity: 1;
}
/* Vignette to blend photo edges into the black card, avoiding any washed-out/muddy look */
.card-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    box-shadow: inset 0 0 50px 12px #000;
    pointer-events: none;
}

.card-body {
    padding: 32px;
    flex: 1;
    display: flex; flex-direction: column;
    gap: 12px;
}

.card-cat {
    font-family: var(--font-display);
    font-size: .7rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: var(--cyan);
}
.card-title { font-size: 1.45rem; font-weight: 700; }
.card-desc  { font-size: .92rem; color: var(--txt-secondary); line-height: 1.6; }

.card-specs {
    display: flex; flex-direction: column; gap: 7px;
    margin-top: 4px;
}
.card-specs li {
    font-size: .84rem; color: var(--txt-secondary);
    padding-left: 16px;
    position: relative;
}
.card-specs li::before {
    content: '▸';
    position: absolute; left: 0;
    color: var(--cyan);
}

.card-btn {
    display: inline-block; margin-top: auto;
    padding: 11px 22px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .88rem; font-weight: 600;
    transition: all .25s var(--ease);
    align-self: flex-start;
}
.card-btn:hover {
    background: var(--cyan); color: #000;
    border-color: var(--cyan);
    box-shadow: 0 0 14px var(--cyan-glow);
}

/* ----------------------------------------------------------
   9. Gaming Section
   ---------------------------------------------------------- */
.gaming-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: var(--bg-base);
}

.gaming-video-wrap {
    position: absolute; inset: 0;
    overflow: hidden;
    z-index: 0;
}

.bg-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Gaming canvas layers on top of the video for extra glow/energy particles */
#gaming-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
}

.gaming-video-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(5,5,7,.55) 0%, var(--bg-base) 90%);
    z-index: 2;
    pointer-events: none;
}

.video-credit {
    position: relative; z-index: 2;
    text-align: center;
    font-size: .68rem;
    color: var(--txt-muted);
    max-width: 680px;
    margin: -30px auto 0;
    padding: 0 24px;
}

.gaming-content {
    position: relative; z-index: 2;
}

.gaming-header {
    text-align: center;
    margin-bottom: 60px;
}
.gaming-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .72rem; font-weight: 900;
    letter-spacing: .22em;
    color: var(--purple);
    text-shadow: 0 0 20px var(--purple-glow);
    margin-bottom: 14px;
}
.gaming-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -.02em;
    color: #fff;
    margin-bottom: 16px;
    position: relative; display: inline-block;
}
.gaming-heading::after {
    content: '';
    position: absolute; left: 50%; bottom: -8px;
    transform: translateX(-50%);
    width: 40px; height: 2px;
    background: var(--purple);
}
.gaming-subtext {
    font-size: 1.05rem;
    color: rgba(255,255,255,.6);
    line-height: 1.6; max-width: 600px;
    margin: 20px auto 0;
}

/* Gaming card overrides */
.gaming-card {
    border-color: var(--purple-dim);
    position: relative;
    box-shadow: 0 0 0px transparent;
}
.gaming-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
    opacity: 0;
    transition: opacity .4s;
}
.gaming-card:hover,
.gaming-card:focus-within {
    animation: cardGlowPulsePurple 2.2s ease-in-out infinite;
}
@keyframes cardGlowPulsePurple {
    0%, 100% {
        border-color: hsla(278,88%,60%,0.35);
        box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 6px hsla(278,88%,65%,0.4), 0 0 12px hsla(278,88%,60%,0.2);
    }
    50% {
        border-color: hsl(278,88%,68%);
        box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 16px hsla(278,88%,68%,0.9), 0 0 32px hsla(278,88%,60%,0.5), inset 0 0 16px hsla(278,88%,60%,0.2);
    }
}
.gaming-card:hover::before,
.gaming-card:focus-within::before { opacity: 1; }

.gaming-cat   { color: var(--purple) !important; }
.card-img-glow.gaming-glow {
    background: radial-gradient(circle at 50% 100%, var(--purple-dim) 0%, transparent 60%);
}
.gaming-card:hover .card-img-glow.gaming-glow,
.gaming-card:focus-within .card-img-glow.gaming-glow {
    opacity: 1;
}
.gaming-specs li::before { color: var(--purple) !important; }
.gaming-btn:hover {
    background: var(--purple) !important; color: #fff !important;
    border-color: var(--purple) !important;
    box-shadow: 0 0 18px var(--purple-glow) !important;
}

/* ----------------------------------------------------------
   10. Workspace Scrollytelling — Each Slide Has Its Own BG
   ---------------------------------------------------------- */
.workspace-section { position: relative; }

/* Fixed video sits behind all 3 slides for a continuous ambient backdrop */
.ws-video-wrap {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.ws-video-wrap .bg-video { filter: brightness(0.55) saturate(1.1); }

.ws-slide-full {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}

/* Dark overlay: left side for slides 1&3, right for slide 2 */
.ws-slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5,5,7,.92) 0%,
        rgba(5,5,7,.82) 38%,
        rgba(5,5,7,.35) 65%,
        transparent 100%
    );
    z-index: 1;
}
.overlay-right {
    background: linear-gradient(
        270deg,
        rgba(5,5,7,.92) 0%,
        rgba(5,5,7,.82) 38%,
        rgba(5,5,7,.35) 65%,
        transparent 100%
    );
}
.overlay-center {
    background: rgba(5,5,7,.72);
}

.ws-slide-content {
    position: relative; z-index: 2;
    padding: 80px 8%;
    max-width: 600px;
    width: 100%;
}
.ws-slide-content.right-align { margin-left: auto; }
.ws-slide-content.center-align { margin: 0 auto; text-align: center; }

.ws-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .68rem; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--cyan); opacity: .8;
    margin-bottom: 14px;
}
.ws-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 14px;
    line-height: 1.2;
}
.ws-text {
    font-size: .97rem;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    margin-bottom: 22px;
}

.ws-points {
    display: flex; flex-direction: column; gap: 9px;
    margin-bottom: 28px;
}
.ws-points li {
    font-size: .86rem; color: rgba(255,255,255,.65);
    padding-left: 20px; position: relative;
}
.ws-points li::before {
    content: '▸';
    position: absolute; left: 0;
    color: var(--cyan);
}
.ws-points-center { list-style: none; padding: 0; }
.ws-points-center li { padding-left: 20px; }

.ws-stats {
    display: flex; gap: 28px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.ws-stats-center { justify-content: center; }
.ws-stat {
    display: flex; flex-direction: column;
    gap: 3px;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 900;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan-glow);
    line-height: 1;
}
.stat-label {
    font-size: .72rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.4);
}
.ws-cta { margin-top: 28px; }

/* Use absolute (not fixed) video positioning on mobile — iOS handles fixed poorly and it saves battery */
@media (max-width: 768px) {
    .ws-video-wrap { position: absolute; }
    .ws-slide-content { padding: 60px 6%; }
}

/* ----------------------------------------------------------
   11. Peripherals Section
   ---------------------------------------------------------- */
.peripherals-section { background: var(--bg-surface); }

.peripherals-cta-wrap {
    text-align: center;
    margin-top: 48px;
}

.infra-section { background: var(--bg-base); }
.infra-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) {
    .infra-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .infra-grid { grid-template-columns: 1fr; }
}

.peripherals-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.peripherals-img {
    max-height: 420px; object-fit: contain;
    filter: drop-shadow(0 0 32px var(--cyan-dim));
    transition: filter .4s, transform .4s var(--ease);
}
.peripherals-img-wrap:hover .peripherals-img {
    filter: drop-shadow(0 0 48px var(--cyan-glow));
    transform: scale(1.04) rotate(1deg);
}

/* Tabs */
.tabs-bar {
    display: flex; gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.tab-btn {
    padding: 10px 20px;
    background: none; border: none;
    font-size: .9rem; font-weight: 600;
    color: var(--txt-secondary);
    position: relative;
    transition: color .2s;
}
.tab-btn.active { color: var(--cyan); }
.tab-btn.active::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0;
    height: 2px; background: var(--cyan);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane h3  { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.tab-pane p   { font-size: .93rem; color: var(--txt-secondary); line-height: 1.6; margin-bottom: 20px; }
.tab-pane ul  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.tab-pane li  {
    font-size: .86rem; color: var(--txt-secondary);
    padding-left: 18px; position: relative;
}
.tab-pane li::before { content: '✔'; position: absolute; left: 0; color: var(--cyan); }

/* ----------------------------------------------------------
   12. Contact Section
   ---------------------------------------------------------- */
.contact-section { background: var(--bg-base); border-top: 1px solid var(--border); }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.contact-logo { font-size: 1.6rem; margin-bottom: 24px; }
.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
}
.contact-desc {
    font-size: .97rem; color: var(--txt-secondary);
    line-height: 1.65; margin-bottom: 36px;
}

.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-detail-item { display: flex; gap: 16px; align-items: flex-start; }
.detail-icon {
    font-size: 1.4rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 10px; border-radius: 8px;
    line-height: 1; flex-shrink: 0;
}
.contact-detail-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.contact-detail-item p  { font-size: .88rem; color: var(--txt-secondary); line-height: 1.5; }

/* Form */
.contact-form-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}
.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 700;
    margin-bottom: 28px;
    padding-left: 14px;
    border-left: 3px solid var(--cyan);
}
.form-row { margin-bottom: 18px; }
.form-row label {
    display: block;
    font-size: .75rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--txt-secondary); margin-bottom: 7px;
}
.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 11px 14px;
    color: var(--txt-primary);
    font-family: var(--font-body);
    font-size: .93rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-dim);
}
.form-row select option { background: var(--bg-elevated); color: var(--txt-primary); }

/* ----------------------------------------------------------
   13. Footer
   ---------------------------------------------------------- */
#main-footer {
    position: relative;
    z-index: 1;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding-top: 72px;
}
.footer-inner {
    display: flex; justify-content: space-between; gap: 48px;
    padding-bottom: 60px;
    flex-wrap: wrap;
}
.footer-brand {
    max-width: 340px;
}
.footer-brand .logo { margin-bottom: 14px; white-space: nowrap; }
.footer-brand p { font-size: .88rem; color: var(--txt-secondary); line-height: 1.6; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
    font-size: .78rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: 16px; color: var(--txt-primary);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .86rem; color: var(--txt-secondary); transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--cyan); padding-left: 4px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.04);
    padding: 24px 0;
    text-align: center;
}
.footer-bottom p { font-size: .8rem; color: var(--txt-muted); }

/* ----------------------------------------------------------
   14. Responsive
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .cards-grid, .peripherals-layout, .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .peripherals-img { max-height: 300px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed; top: 0; right: -100%;
        width: 72%; height: 100vh;
        background: rgba(5,5,7,.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 20px;
        transition: right .5s var(--ease);
    }
    .nav-menu.open { right: 0; }

    .hero-brand { font-size: 2.2rem; }
    .hero-sub   { font-size: 1.3rem; }

    .workspace-slide { padding: 0 6%; }
    .ws-card { max-width: 100%; }

    .footer-inner, .footer-cols { flex-direction: column; gap: 28px; }
    .footer-brand { max-width: 100%; }
    .footer-brand .logo { white-space: normal; }
}
