/* ================================================================
   DevSoft Innovations — Darkest Black Premium CSS
   ================================================================ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Poppins:wght@300;400;600;700;800;900&display=swap');

/* ================================================================
   VARIABLES
================================================================ */
:root {
    /* The darkest blacks */
    --black: #000000;
    --black-rich: #050505;
    --black-card: #0a0a0a;
    --black-raised: #0f0f0f;
    --black-3: #141414;
    --black-4: #1a1a1a;

    /* Borders */
    --border-dim: rgba(255, 255, 255, 0.05);
    --border-mid: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.14);

    /* Text */
    --white: #ffffff;
    --text-1: #f0f0f0;
    --text-2: #a0a0a0;
    --text-3: #666666;

    /* Accent */
    --accent: #e8890a;
    --accent-light: #ffb347;
    --accent-dim: rgba(232, 137, 10, 0.15);
    --accent-glow: rgba(232, 137, 10, 0.3);

    /* Code colours */
    --c-kw: #f97583;
    --c-mod: #79b8ff;
    --c-fn: #b392f0;
    --c-str: #9ecbff;
    --c-num: #ffab70;
    --c-comment: #6a737d;

    /* Type */
    --font-main: 'Space Grotesk', sans-serif;
    --font-head: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --fast: 0.2s;
    --mid: 0.35s;
    --slow: 0.6s;

    /* Radius */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 9999px;
}

/* ================================================================
   RESET
================================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--black-rich);
    color: var(--text-1);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    color: var(--white);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

/* ================================================================
   UTILITIES
================================================================ */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    padding: 110px 0;
}

.sec-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(232, 137, 10, 0.3);
    background: var(--accent-dim);
    border-radius: var(--r-pill);
    padding: 5px 14px;
    margin-bottom: 18px;
}

.sec-heading {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: var(--white);
}

.sec-subtext {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 580px;
    line-height: 1.8;
}

.sec-header {
    margin-bottom: 64px;
}

.sec-header.centered {
    text-align: center;
}

.sec-header.centered .sec-subtext {
    margin: 0 auto;
}

/* ================================================================
   SCROLLBAR
================================================================ */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: rgba(232, 137, 10, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

::selection {
    background: rgba(232, 137, 10, 0.25);
    color: var(--white);
}

/* ================================================================
   NAVBAR
================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 22px 0;
    transition: padding var(--mid) var(--ease), background var(--mid) var(--ease);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dim);
    padding: 14px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.3px;
}

.logo-img {
    height: 42px;
    width: 42px;
    object-fit: contain;
    /* Removes the black background — only the white icon shows on dark bg */
    mix-blend-mode: screen;
    flex-shrink: 0;
}

.logo-text {
    color: var(--white);
}

.logo-accent {
    color: var(--accent);
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.2px;
    transition: color var(--fast) var(--ease);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.3s var(--ease);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-store {
    padding: 9px 22px;
    background: var(--accent);
    color: #000 !important;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.83rem;
    transition: filter var(--fast);
}

.nav-store::after {
    display: none;
}

.nav-store:hover {
    filter: brightness(1.12);
    color: #000 !important;
}

/* Explore link */
.nav-explore {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid rgba(232, 137, 10, 0.35);
    border-radius: var(--r-pill);
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    font-size: 0.83rem;
    transition: all 0.25s var(--ease);
}

.nav-explore::after {
    display: none;
}

.nav-explore:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    background: rgba(232, 137, 10, 0.07);
}

.nav-explore-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 800;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    color: var(--accent);
    background: rgba(232, 137, 10, 0.12);
    border: 1px solid rgba(232, 137, 10, 0.3);
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.4;
}


/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger .line {
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--fast);
}

/* Mobile open */
@media(max-width:900px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px 32px;
        border-left: 1px solid var(--border-dim);
        transition: right 0.4s var(--ease);
        z-index: 9998;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.8);
    }

    .hamburger.toggle .line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.toggle .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle .line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ================================================================
   HERO
================================================================ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* Background image — falls back to deep black if homebg.jpg missing */
    background:
        url('homebg.jpg') center center / cover no-repeat,
        linear-gradient(145deg, #000000 0%, #0a0a0a 100%);
}

/* Overlay: darkens the image so text pops */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.62) 50%,
            rgba(0, 0, 0, 0.80) 100%);
    z-index: 1;
}

/* Content */
.hero-center {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 28px;
}

.hero-name-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
}

.hero-name {
    font-family: var(--font-head);
    font-size: clamp(3.8rem, 11vw, 10rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -4px;
    color: var(--white);
    text-shadow: 0 4px 60px rgba(0, 0, 0, 0.6);
    margin-bottom: 0;
}

/* Second line — outlined text for contrast */
.hero-name-outline {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.7);
    color: transparent;
}

.hero-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 32px auto 24px;
    box-shadow: 0 0 16px var(--accent-glow);
}

.hero-tagline {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    font-weight: 400;
    margin-bottom: 40px;
}

.hero-cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.93rem;
    border-radius: var(--r-pill);
    letter-spacing: 0.3px;
    transition: filter var(--fast), transform var(--fast);
    box-shadow: 0 4px 28px var(--accent-glow);
}

.btn-hero-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.93rem;
    border-radius: var(--r-pill);
    backdrop-filter: blur(8px);
    transition: border-color var(--fast), color var(--fast), transform var(--fast);
}

.btn-hero-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    position: relative;
    margin: 0 auto;
}

.scroll-dot {
    width: 3px;
    height: 7px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 22px;
    }
}

/* ================================================================
   STATS STRIP
================================================================ */
.stats-strip {
    background: var(--black-card);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    padding: 52px 0;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-cell {
    text-align: center;
    padding: 0 20px;
}

.stat-n {
    display: block;
    font-family: var(--font-head);
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    vertical-align: super;
    line-height: 1;
}

.stat-cell p {
    font-size: 0.82rem;
    color: var(--text-2);
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border-mid);
}

@media(max-width:600px) {
    .stat-divider {
        display: none;
    }

    .stats-row {
        gap: 36px 0;
    }
}

/* ================================================================
   ABOUT
================================================================ */
.about-section {
    background: var(--black-rich);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 137, 10, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-para {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 20px;
}

.mv-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

.mv-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--black-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-md);
    padding: 20px 22px;
    transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease);
}

.mv-card:hover {
    border-color: rgba(232, 137, 10, 0.2);
    transform: translateX(4px);
}

.mv-icon-box {
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
}

.mv-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.mv-card p {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.6;
}

/* About image */
.about-img-frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border-mid);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.about-img-frame img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.about-img-frame:hover img {
    transform: scale(1.04);
}

.about-img-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.6) 0%, transparent 50%);
}

.about-img-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 5;
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-sm);
    padding: 8px 16px;
    font-size: 0.82rem;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-img-caption i {
    color: var(--accent);
}

/* ================================================================
   SERVICES
================================================================ */
.services-section {
    background: var(--black-card);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-dim);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.svc-card {
    background: var(--black-card);
    padding: 42px 34px;
    position: relative;
    transition: background var(--mid) var(--ease);
    overflow: hidden;
}

.svc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(232, 137, 10, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.svc-card:hover::before {
    opacity: 1;
}

.svc-card:hover {
    background: var(--black-raised);
}

.svc-num {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-3);
    font-family: var(--font-mono);
    margin-bottom: 20px;
    display: block;
}

.svc-icon {
    width: 52px;
    height: 52px;
    background: var(--black-3);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 22px;
    transition: background var(--mid), border-color var(--mid), color var(--mid);
}

.svc-card:hover .svc-icon {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.svc-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.svc-card p {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.8;
}

/* ================================================================
   TECH SECTION — 3D COMPUTER
================================================================ */
.tech-section {
    background: var(--black-rich);
    position: relative;
    overflow: hidden;
}

.tech-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 137, 10, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tech-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ── 3D Monitor ── */
.monitor-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.monitor-3d {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.8));
    width: 100%;
    max-width: 480px;
}

/* Screen bezel */
.monitor-screen {
    width: 100%;
    background: #0a0c10;
    border: 3px solid #222;
    border-bottom-width: 6px;
    border-radius: 12px 12px 4px 4px;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 60px rgba(0, 0, 0, 0.9),
        0 0 120px rgba(232, 137, 10, 0.04);
    position: relative;
}

/* Subtle screen glow from code colors */
.monitor-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(121, 184, 255, 0.015) 0%, transparent 40%);
    pointer-events: none;
}

/* Top bar — traffic lights */
.screen-topbar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    background: #111316;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot-r,
.dot-y,
.dot-g {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-r {
    background: #ff5f57;
}

.dot-y {
    background: #febc2e;
}

.dot-g {
    background: #28c840;
}

.screen-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    flex: 1;
    text-align: center;
    transition: color 0.3s;
}

/* Code body */
.screen-body {
    padding: 18px 18px 14px;
    min-height: 280px;
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.code-block {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.code-line {
    line-height: 1.65;
    white-space: nowrap;
    overflow: hidden;
    color: #cdd9e5;
}

/* Code syntax colours */
.c-kw {
    color: var(--c-kw);
}

.c-mod {
    color: var(--c-mod);
}

.c-fn {
    color: var(--c-fn);
}

.c-str {
    color: var(--c-str);
}

.c-num {
    color: var(--c-num);
}

.c-comment {
    color: var(--c-comment);
    font-style: italic;
}

.screen-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 300;
    font-size: 0.85rem;
    animation: blink 1.1s step-end infinite;
    margin-top: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Monitor neck and base */
.monitor-neck {
    width: 28px;
    height: 26px;
    background: linear-gradient(180deg, #1e1e1e 0%, #282828 100%);
    border-left: 1px solid #333;
    border-right: 1px solid #333;
}

.monitor-base {
    width: 130px;
    height: 12px;
    background: linear-gradient(180deg, #242424 0%, #1a1a1a 100%);
    border-radius: 0 0 8px 8px;
    border: 1px solid #2a2a2a;
    border-top: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Language pills */
.lang-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px;
}

.lang-pill {
    padding: 7px 18px;
    background: var(--black-3);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all var(--fast) var(--ease);
}

.lang-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-pill.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Tech info cards */
.tech-cards-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tech-info-card {
    display: none;
    flex-direction: column;
    gap: 16px;
    background: var(--black-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-lg);
    padding: 36px 32px;
    animation: techFadeIn 0.35s var(--ease);
}

.tech-info-card.active {
    display: flex;
}

@keyframes techFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-badge-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tech-emoji {
    font-size: 2.8rem;
    line-height: 1;
}

.tech-name-big {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.tech-use {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.8;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tech-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 5px 14px;
    background: var(--black-3);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-pill);
    color: var(--text-2);
    letter-spacing: 0.5px;
}

/* ================================================================
   PROJECTS
================================================================ */
.projects-section {
    background: var(--black-card);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.proj-card {
    background: var(--black-rich);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color var(--mid), transform var(--mid) var(--ease), box-shadow var(--mid);
}

.proj-card:hover {
    border-color: rgba(232, 137, 10, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* Thumbnail area */
.proj-thumb {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Clean logo-based thumbnail — no emoji */
.proj-thumb-clean {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.proj-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg);
    padding: 22px;
    transition: background 0.3s var(--ease);
}

.proj-card:hover .proj-logo-wrap {
    background: rgba(232, 137, 10, 0.08);
    border-color: rgba(232, 137, 10, 0.2);
}

.proj-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* invert so the black logo renders white on dark bg */
    filter: invert(1) brightness(1);
    transition: filter 0.3s var(--ease), transform 0.4s var(--ease);
}

.proj-card:hover .proj-logo-img {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(5deg) brightness(1.1);
    transform: scale(1.08);
}

/* Hide old emoji icon (not used on real cards) */
.proj-thumb-icon {
    display: none;
}

.proj-cat {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-pill);
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
}

.proj-body {
    padding: 28px 26px 32px;
}

.proj-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.proj-body p {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 20px;
}

.proj-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.proj-stack code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 12px;
    background: var(--black-3);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-pill);
    color: var(--c-mod);
    letter-spacing: 0.3px;
}

/* ================================================================
   WHY CHOOSE US
================================================================ */
.why-section {
    background: var(--black-rich);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.why-card {
    background: var(--black-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-lg);
    padding: 38px 34px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    transition: border-color var(--mid), transform var(--mid) var(--ease);
}

.why-card:hover {
    border-color: rgba(232, 137, 10, 0.18);
    transform: translateY(-4px);
}

.why-icon-box {
    width: 54px;
    height: 54px;
    background: var(--accent-dim);
    border: 1px solid rgba(232, 137, 10, 0.2);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: background var(--mid), color var(--mid);
}

.why-card:hover .why-icon-box {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.why-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.8;
}

/* ================================================================
   CTA
================================================================ */
.cta-section {
    background: var(--black-card);
    border-top: 1px solid var(--border-dim);
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(232, 137, 10, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-heading {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--white);
}

.cta-accent {
    color: var(--accent);
}

.cta-sub {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.btn-cta-primary {
    padding: 15px 38px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--r-pill);
    box-shadow: 0 4px 28px var(--accent-glow);
    transition: filter var(--fast), transform var(--fast);
}

.btn-cta-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
}

.btn-cta-ghost {
    padding: 15px 38px;
    border: 1px solid var(--border-bright);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--r-pill);
    transition: border-color var(--fast), color var(--fast);
}

.btn-cta-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cta-contact-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-contact-row span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-2);
}

.cta-contact-row i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
    background: var(--black);
    border-top: 1px solid var(--border-dim);
    padding: 70px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand-name {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
}

.footer-brand-name span {
    color: var(--accent);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 260px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--black-card);
    border: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-2);
    transition: border-color var(--fast), color var(--fast);
}

.footer-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.footer-links-col h5 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 20px;
}

.footer-links-col ul li {
    margin-bottom: 12px;
}

.footer-links-col ul li a,
.footer-links-col ul li span {
    font-size: 0.88rem;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--fast);
}

.footer-links-col ul li a:hover {
    color: var(--accent);
}

.footer-links-col i {
    color: var(--accent);
    font-size: 0.8rem;
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-dim);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-bar p {
    font-size: 0.82rem;
    color: var(--text-3);
}

.footer-bottom-links {
    display: flex;
    gap: 22px;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--text-3);
    transition: color var(--fast);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1100px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .tech-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .section {
        padding: 70px 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-img-frame img {
        height: 320px;
    }

    .hero-name {
        font-size: clamp(3rem, 12vw, 6rem);
        letter-spacing: -2px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 18px;
    }

    .section {
        padding: 55px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        justify-content: center;
    }

    .hero-name {
        font-size: clamp(2.5rem, 13vw, 4rem);
        letter-spacing: -1.5px;
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: center;
    }

    .cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }

    .lang-pills {
        gap: 6px;
    }

    .tech-name-big {
        font-size: 1.5rem;
    }

    .monitor-screen {
        font-size: 0.7rem;
    }

    .screen-body {
        min-height: 200px;
        padding: 14px;
    }
}