
/* =========================================
   TECH BY IT — PREMIUM DIGITAL AGENCY
========================================= */

:root {
    --bg: #080f1e;
    --surface: #101a2d;
    --surface-alt: #0c1526;
    --text: #f1f5f9;
    --muted: #9baac0;
    --primary: #2563eb;
    --accent: #22d3ee;
    --border: #223047;
    --header: rgba(8, 15, 30, .9);
    --gradient: linear-gradient(110deg, #60a5fa, #22d3ee, #818cf8);
    --shadow: 0 20px 50px rgba(0, 0, 0, .2);
    --radius: 18px;
}

html[data-theme="light"] {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #edf2f8;
    --text: #0f172a;
    --muted: #526178;
    --accent: #0369a1;
    --border: #d7e1ee;
    --header: rgba(248, 250, 252, .94);
    --gradient: linear-gradient(110deg, #1d4ed8, #0891b2, #4338ca);
    --shadow: 0 15px 40px rgba(15, 23, 42, .07);
}

/* ================= RESET ================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: clip;
    transition: background .25s, color .25s;
}

body.modal-open {
    overflow: hidden;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

p {
    color: var(--muted);
}

h1, h2, h3, h4 {
    line-height: 1.2;
    letter-spacing: -.025em;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

::selection {
    background: #2563eb;
    color: white;
}

.container {
    width: min(1240px, 92%);
    margin-inline: auto;
}

.section {
    padding-block: 95px;
    position: relative;
}

.alternate {
    background: var(--surface-alt);
    border-block: 1px solid var(--border);
}

.gradient-text {
    background: var(--gradient);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradientMove 7s linear infinite alternate;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 2.3px;
    margin-bottom: 16px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(120deg, #2563eb, #1d4ed8);
    border: 1px solid transparent;
    color: #fff;
    padding: 14px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    position: relative;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 20%,
        #ffffff25 50%,
        transparent 80%
    );
    transform: translateX(-120%);
    transition: transform .65s;
    pointer-events: none;
}

.button:hover::before {
    transform: translateX(120%);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px #2563eb40;
}

.button.secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.button.secondary:hover {
    border-color: var(--accent);
}

.icon-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 20px;
}

.text-button {
    color: var(--accent);
    background: none;
    border: 0;
    font-size: 13px;
    font-weight: 650;
}

.text-button:hover {
    text-decoration: underline;
}

/* ================= GLOBAL EFFECTS ================= */

#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    z-index: 999;
    background: linear-gradient(90deg, #2563eb, #22d3ee);
}

#cursorGlow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #2563eb0b, transparent 65%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.header, main, .footer {
    position: relative;
    z-index: 1;
}

.live-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 15px #22d3ee;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 0 7px #22d3ee00,
                    0 0 18px #22d3ee;
    }
}

/* ================= HEADER ================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    padding: 3px;
    border-radius: 10px;
    background: #000;
    border: 1px solid #ffffff16;
}

.brand-text {
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -1px;
    line-height: 1.15;
}

.brand-text span {
    color: var(--accent);
}

.brand-text small {
    display: block;
    font-size: 8px;
    color: var(--muted);
    letter-spacing: 1.8px;
    margin-top: 5px;
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: color .2s;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .25s;
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

nav a.active::after,
nav a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-cta {
    padding: 11px 18px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 32px;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: transform .25s, opacity .25s;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================= HERO ================= */

.hero {
    min-height: min(780px, 90vh);
    padding: 95px 0 110px;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 40%, #2563eb25, transparent 55%),
        radial-gradient(ellipse at 0% 100%, #0891b215, transparent 45%);
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-grid-background {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#64748b0c 1px, transparent 1px),
        linear-gradient(90deg, #64748b0c 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, transparent, black, transparent);
    pointer-events: none;
}

.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 45px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(52px, 6.6vw, 94px);
    line-height: 1.03;
    letter-spacing: -.065em;
    font-weight: 850;
    margin-bottom: 25px;
}

.typing-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: monospace;
    font-size: 13px;
    color: var(--accent);
    font-weight: 650;
    margin-bottom: 20px;
    min-height: 26px;
}

.typing-line > span:first-child {
    color: var(--muted);
}

.typing-cursor {
    width: 2px;
    height: 16px;
    background: var(--accent);
    animation: blink .8s steps(2) infinite;
}

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

.hero-content > p {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-benefits {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    margin-top: 25px;
}

.hero-enter {
    animation: heroEnter .8s both;
}

.hero-enter:nth-child(2) { animation-delay: .1s; }
.hero-enter:nth-child(3) { animation-delay: .2s; }
.hero-enter:nth-child(4) { animation-delay: .3s; }
.hero-enter:nth-child(5) { animation-delay: .4s; }
.hero-enter:nth-child(6) { animation-delay: .5s; }

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= HERO VISUAL ================= */

.hero-visual {
    position: relative;
    min-height: 500px;
    display: grid;
    place-items: center;
    isolation: isolate;
    transform: perspective(1000px)
        rotateX(var(--rx, 0deg))
        rotateY(var(--ry, 0deg));
    transition: transform .2s ease-out;
}

.visual-glow {
    position: absolute;
    width: 85%;
    aspect-ratio: 1;
    background: radial-gradient(circle, #2563eb30, transparent 65%);
    filter: blur(25px);
    z-index: -1;
}

.orbit {
    position: absolute;
    border: 1px solid #60a5fa40;
    border-radius: 50%;
}

.orbit-1 {
    width: 220px;
    height: 220px;
}

.orbit-2 {
    width: 320px;
    height: 320px;
    border-style: dashed;
    animation: rotate 40s linear infinite;
}

.orbit-3 {
    width: 420px;
    height: 420px;
    animation: rotate 65s linear infinite reverse;
}

.orbit-2::after,
.orbit-3::after {
    content: "";
    position: absolute;
    top: 15%;
    left: 15%;
    width: 9px;
    height: 9px;
    background: #22d3ee;
    border-radius: 50%;
    box-shadow: 0 0 20px #22d3ee;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.tech-core {
    width: 165px;
    height: 165px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 35px;
    color: #fff;
    background: linear-gradient(145deg, #1d4ed8, #0891b2);
    box-shadow:
        0 0 80px #2563eb55,
        inset 0 0 30px #ffffff15;
    border: 1px solid #ffffff30;
    animation: float 5s ease-in-out infinite;
    z-index: 2;
}

.core-symbol {
    font-family: monospace;
    font-size: 55px;
    font-weight: 850;
    line-height: 1.2;
}

.tech-core small {
    font-size: 10px;
    letter-spacing: 3px;
}

.tech-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 12px 15px;
    box-shadow: var(--shadow);
    font-size: 12px;
    font-weight: 650;
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.tech-node span {
    color: var(--accent);
    font-size: 19px;
}

.node-1 { top: 10%; left: 4%; }
.node-2 { top: 23%; right: 0; animation-delay: -.8s; }
.node-3 { bottom: 17%; left: 0; animation-delay: -1.5s; }
.node-4 { bottom: 10%; right: 4%; animation-delay: -2s; }
.node-5 { top: 1%; right: 23%; animation-delay: -3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.system-label {
    position: absolute;
    bottom: 0;
    font-family: monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 2px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
}

.scroll-indicator > span {
    width: 20px;
    height: 30px;
    border: 1px solid var(--muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator > span::after {
    content: "";
    width: 3px;
    height: 7px;
    border-radius: 5px;
    background: var(--accent);
    position: absolute;
    top: 5px;
    left: 8px;
    animation: scrollDown 1.8s infinite;
}

@keyframes scrollDown {
    to {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* ================= MARQUEE ================= */

.technology-strip {
    overflow: hidden;
    background: var(--surface);
    border-block: 1px solid var(--border);
    padding-block: 18px;
}

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

.marquee-group {
    display: flex;
    align-items: center;
    gap: 35px;
    padding-right: 35px;
}

.marquee span {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.marquee i {
    font-style: normal;
    color: var(--accent);
}

.technology-strip:hover .marquee {
    animation-play-state: paused;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ================= HEADINGS ================= */

.section-heading {
    margin-bottom: 45px;
}

.section-heading.centered {
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
}

.section-heading h2,
.about-content h2,
.contact-content h2,
.faq-layout h2,
.blog-banner h2 {
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.18;
    letter-spacing: -.04em;
}

.section-heading p {
    margin-top: 20px;
    font-size: 16px;
}

/* ================= STATISTICS ================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 30px 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .25s, box-shadow .25s;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.stat-icon {
    color: var(--accent);
    display: block;
    font-size: 27px;
    margin-bottom: 16px;
}

.stat-card > strong {
    display: block;
    font-size: clamp(35px, 4vw, 48px);
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 12px;
}

.stat-card h3 {
    font-size: 17px;
    margin-bottom: 9px;
}

.stat-card p {
    font-size: 13px;
}

/* ================= ABOUT ================= */

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

.about-visual {
    min-height: 440px;
    position: relative;
    background: radial-gradient(circle, #2563eb20, transparent 70%);
    border: 1px solid var(--border);
    border-radius: 25px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.about-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#64748b12 1px, transparent 1px),
        linear-gradient(90deg, #64748b12 1px, transparent 1px);
    background-size: 30px 30px;
}

.about-logo {
    width: 190px;
    aspect-ratio: 1;
    border-radius: 30px;
    background: #000;
    border: 1px solid #3b82f680;
    display: grid;
    place-items: center;
    padding: 15px;
    box-shadow: 0 0 70px #2563eb40;
    z-index: 1;
}

.about-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-floating {
    position: absolute;
    padding: 15px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.about-floating span {
    display: block;
    color: var(--accent);
    font-size: 9px;
    letter-spacing: 1px;
}

.about-floating strong {
    font-size: 16px;
}

.about-float-1 { top: 9%; left: 6%; }
.about-float-2 { top: 24%; right: 5%; animation-delay: -2s; }
.about-float-3 { bottom: 9%; left: 8%; animation-delay: -4s; }

.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 16px;
}

.about-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 13px;
    color: var(--accent);
    margin: 25px 0 30px;
}

/* ================= SERVICES ================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    isolation: isolate;
    transition: border-color .3s, box-shadow .3s;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(
        300px circle at var(--mx, 50%) var(--my, 50%),
        #2563eb19,
        transparent 75%
    );
    opacity: 0;
    transition: opacity .3s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: #3b82f690;
    box-shadow: 0 12px 40px #2563eb12;
}

.service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    background: #2563eb16;
    border: 1px solid #2563eb30;
    border-radius: 14px;
    font-size: 27px;
    font-weight: 700;
    color: var(--accent);
    transition: transform .3s;
}

.service-card:hover .service-icon {
    transform: rotate(-8deg) scale(1.1);
}

.service-number {
    color: var(--muted);
    opacity: .5;
    font-size: 25px;
    font-family: monospace;
}

.service-card h3 {
    font-size: 21px;
    margin-bottom: 14px;
}

.service-card p {
    font-size: 14px;
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    display: grid;
    gap: 9px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-bottom: 25px;
}

.service-card li {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 9px;
}

.service-card li::before {
    content: "✓";
    color: var(--accent);
    flex-shrink: 0;
}

.service-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-top: auto;
    align-self: flex-start;
}

.service-link:hover {
    text-decoration: underline;
}

/* ================= PORTFOLIO ================= */

.portfolio-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 20px;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter {
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 9px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 650;
    transition: .25s;
}

.filter:hover {
    border-color: var(--accent);
}

.filter.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

#portfolioSearch {
    width: min(250px, 100%);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 11px 15px;
    font-size: 13px;
}

.portfolio-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .3s, border-color .3s;
    animation: projectAppear .5s both;
}

@keyframes projectAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px #2563eb20;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 13px;
    background: #111827;
    color: #94a3b8;
}

.browser-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
}

.browser-dot:nth-child(1) { background: #f87171; }
.browser-dot:nth-child(2) { background: #fbbf24; }
.browser-dot:nth-child(3) { background: #34d399; }

.browser-title {
    font-size: 10px;
    margin-left: auto;
    margin-right: auto;
}

/* The actual hover-to-scroll effect */

.project-viewport {
    display: block;
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #e2e8f0;
    text-align: left;
    cursor: ns-resize;
}

.project-viewport img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    transform: translateY(0);
    transition: transform 1.5s ease-in-out;
    will-change: transform;
}

.project-viewport.scrolling img {
    transform: translateY(var(--distance, 0px));
    transition: transform var(--duration, 8s) linear;
}

.preview-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 13px;
    border-radius: 30px;
    background: #0f172ae8;
    color: white;
    font-size: 10px;
    white-space: nowrap;
    transition: opacity .25s;
    pointer-events: none;
}

.project-viewport.scrolling .preview-hint {
    opacity: 0;
}

.project-viewport.image-error {
    display: grid;
    place-items: center;
    background: var(--surface-alt);
    color: var(--muted);
    cursor: default;
}

.project-body {
    padding: 22px;
}

.project-category {
    color: var(--accent);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.project-body h3 {
    font-size: 20px;
    margin: 8px 0 15px;
}

.project-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.preview-button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 13px;
    font-size: 12px;
}

.preview-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.project-index {
    font-family: monospace;
    color: var(--muted);
    font-size: 12px;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.empty-state {
    padding: 40px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 15px;
}

/* ================= PROCESS ================= */

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.process-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    background: var(--surface);
    overflow: hidden;
}

.process-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #22d3ee);
    transition: width .5s;
}

.process-card:hover::after {
    width: 100%;
}

.process-number {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #2563eb15;
    border: 1px solid #3b82f650;
    color: var(--accent);
    font-family: monospace;
    font-size: 20px;
    margin-bottom: 25px;
}

.process-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.process-card p {
    font-size: 14px;
}

/* ================= ADVANTAGES ================= */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.advantage {
    padding: 30px 25px;
    border-left: 2px solid var(--border);
    transition: border-color .25s;
}

.advantage:hover {
    border-color: var(--accent);
}

.advantage > span {
    display: block;
    color: var(--accent);
    font-size: 32px;
    margin-bottom: 20px;
}

.advantage h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.advantage p {
    font-size: 14px;
}

/* ================= CLIENT RELATIONSHIPS ================= */

.client-panel {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
}

.client-highlight {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px;
    background: linear-gradient(140deg, #172554, #164e63);
    color: #fff;
}

.client-highlight > strong {
    font-size: clamp(65px, 8vw, 110px);
    letter-spacing: -7px;
    line-height: 1;
}

.client-highlight > strong span {
    color: #67e8f9;
    font-size: .6em;
}

.client-highlight h3 {
    font-size: 24px;
    margin-top: 15px;
}

.client-highlight p {
    color: #cbd5e1;
    margin-top: 12px;
}

.client-content {
    padding: 40px;
}

.client-content > h3 {
    font-size: 23px;
    margin-bottom: 25px;
}

.commitment {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.commitment > span {
    color: var(--accent);
    font-size: 20px;
}

.commitment strong {
    font-size: 15px;
}

.commitment p {
    font-size: 13px;
    margin-top: 5px;
}

/* ================= BLOG ================= */

.blog-banner {
    padding: clamp(25px, 5vw, 60px);
    border: 1px solid var(--border);
    border-radius: 25px;
    background:
        radial-gradient(ellipse at 80% 50%, #2563eb20, transparent 55%),
        var(--surface);
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 40px;
    overflow: hidden;
}

.blog-banner p {
    margin: 20px 0 25px;
    max-width: 550px;
}

.blog-art {
    min-height: 280px;
    position: relative;
    display: grid;
    place-items: center;
}

.blog-paper {
    position: absolute;
    width: 190px;
    height: 250px;
    border-radius: 15px;
    border: 1px solid #60a5fa80;
    box-shadow: 0 15px 40px #0003;
}

.paper-back {
    background: #1e40af;
    transform: rotate(15deg) translateX(20px);
}

.paper-front {
    background: linear-gradient(140deg, #0f172a, #164e63);
    color: white;
    transform: rotate(-8deg);
    padding: 22px;
    animation: paperFloat 6s ease-in-out infinite;
}

.paper-front > span {
    font-size: 10px;
    letter-spacing: 3px;
    color: #67e8f9;
}

.paper-front > strong {
    display: block;
    font-size: 30px;
    margin: 15px 0 25px;
}

.paper-front > div {
    height: 6px;
    background: #ffffff25;
    border-radius: 4px;
    margin-bottom: 12px;
}

.paper-front > div:nth-of-type(2) { width: 80%; }
.paper-front > div:nth-of-type(3) { width: 60%; }

.paper-front > small {
    font-size: 8px;
    color: #94a3b8;
}

@keyframes paperFloat {
    50% {
        transform: rotate(-5deg) translateY(-12px);
    }
}

/* ================= FAQ ================= */

.faq-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 65px;
    align-items: start;
}

.faq-layout > div:first-child p {
    margin: 20px 0 25px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    list-style: none;
    cursor: pointer;
    padding: 20px;
    font-size: 15px;
    font-weight: 650;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    color: var(--accent);
    font-size: 23px;
    font-weight: 400;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details[open] {
    border-color: #3b82f670;
}

.faq-list details p {
    padding: 0 20px 20px;
    font-size: 14px;
}

/* ================= CONTACT ================= */

.contact-section {
    background:
        radial-gradient(ellipse at 10% 50%, #2563eb18, transparent 50%),
        var(--surface-alt);
    border-top: 1px solid var(--border);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

.contact-content > p {
    margin: 25px 0 30px;
    font-size: 16px;
}

.email-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    max-width: 450px;
    transition: border-color .25s;
}

.email-card:hover {
    border-color: var(--accent);
}

.email-icon {
    color: var(--accent);
    font-size: 28px;
}

.email-card small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.email-card strong {
    font-size: 17px;
    overflow-wrap: anywhere;
}

.email-card > span:last-child {
    margin-left: auto;
    color: var(--accent);
}

#copyEmail {
    margin-top: 15px;
}

.contact-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    margin-top: 30px;
}

.contact-form {
    padding: 35px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 24px;
}

.contact-form > p {
    font-size: 14px;
    margin: 10px 0 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-field {
    display: grid;
    gap: 7px;
    margin-bottom: 17px;
    min-width: 0;
}

.form-field label {
    font-size: 12px;
    font-weight: 650;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-width: 0;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 14px;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--accent);
    outline: none;
}

.submit-button {
    width: 100%;
}

.form-note {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 12px;
}

/* ================= FOOTER ================= */

.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 35px;
    padding-bottom: 45px;
}

.footer-company p {
    margin-top: 20px;
    font-size: 13px;
}

.footer-links h4 {
    font-size: 15px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 11px;
    overflow-wrap: anywhere;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-block: 25px;
    color: var(--muted);
    font-size: 12px;
}

/* ================= PORTFOLIO MODAL ================= */

#portfolioModal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(1050px, 94vw);
    height: 92vh;
    height: 92dvh;
    max-height: 92vh;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    overflow: hidden;
}

#portfolioModal[open] {
    display: flex;
    flex-direction: column;
    animation: modalEnter .3s both;
}

@keyframes modalEnter {
    from { opacity: 0; transform: scale(.97); }
    to { opacity: 1; transform: scale(1); }
}

#portfolioModal::backdrop {
    background: #020617df;
    backdrop-filter: blur(10px);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    border-bottom: 1px solid var(--border);
}

.preview-header .eyebrow {
    margin-bottom: 5px;
}

.preview-content {
    overflow: auto;
    flex: 1;
    min-height: 0;
    background: #fff;
}

.preview-content img {
    width: 100%;
    height: auto;
}

/* ================= SCROLL AND TOAST ================= */

.back-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 22px;
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .25s;
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 15px);
    padding: 13px 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    font-size: 13px;
    transition: .25s;
    max-width: 90vw;
}

.toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ================= REVEAL ANIMATIONS ================= */

html.animations-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.2, .65, .3, 1);
}

html.animations-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
    nav { gap: 15px; }
    .nav-cta { display: none; }
    .hero-layout { gap: 20px; }
    .hero-visual { min-height: 440px; }
    .orbit-3 { width: 350px; height: 350px; }
    .service-card { padding: 23px; }
    .project-viewport { height: 360px; }
    .about-layout, .contact-layout { gap: 35px; }
}

@media (max-width: 850px) {
    .section { padding-block: 65px; }
    .navbar { min-height: 72px; }
    .menu-toggle { display: block; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 20px 5%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    nav.open { display: flex; }

    nav a {
        padding: 12px 0;
    }

    nav a::after { display: none; }

    .hero {
        padding: 65px 0 90px;
        min-height: auto;
    }

    .hero-layout,
    .about-layout,
    .faq-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-content { text-align: center; }

    .hero-content > p { margin-inline: auto; }

    .hero-actions,
    .hero-benefits,
    .typing-line {
        justify-content: center;
    }

    .hero-visual {
        width: min(480px, 100%);
        margin-inline: auto;
    }

    .stats-grid,
    .services-grid,
    .portfolio-grid,
    .process-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-visual { min-height: 370px; }

    .client-panel { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-layout { gap: 30px; }
}

@media (max-width: 520px) {
    .section { padding-block: 55px; }

    .brand img {
        width: 43px;
        height: 43px;
    }

    .brand-text { font-size: 18px; }
    .brand-text small { font-size: 7px; letter-spacing: 1px; }

    .hero h1 {
        font-size: 55px;
        letter-spacing: -.055em;
    }

    .hero-content > p { font-size: 15px; }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 1.4px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 350px;
    }

    .orbit-1 { width: 165px; height: 165px; }
    .orbit-2 { width: 230px; height: 230px; }
    .orbit-3 { width: 290px; height: 290px; }

    .tech-core {
        width: 115px;
        height: 115px;
        border-radius: 25px;
    }

    .core-symbol { font-size: 38px; }

    .tech-node {
        font-size: 9px;
        padding: 8px;
        gap: 5px;
    }

    .tech-node span { font-size: 14px; }

    .services-grid,
    .portfolio-grid,
    .process-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid { gap: 12px; }

    .stat-card { padding: 20px 15px; }
    .stat-card h3 { font-size: 14px; }
    .stat-card p { font-size: 12px; }

    .about-checks { grid-template-columns: 1fr; }

    .about-floating { padding: 10px 13px; }
    .about-floating strong { font-size: 13px; }

    .about-logo { width: 150px; }

    .project-viewport {
        height: 440px;
    }

    #portfolioSearch { width: 100%; }

    .blog-banner {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .blog-art { min-height: 280px; }

    .client-highlight,
    .client-content {
        padding: 28px;
    }

    .contact-form { padding: 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    .footer-grid {
        gap: 25px;
    }

    .footer-company,
    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .preview-header {
        padding: 14px;
    }
}

@media (pointer: coarse) {
    #cursorGlow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    html.animations-ready .reveal {
        opacity: 1;
        transform: none;
    }

    #particleCanvas,
    #cursorGlow {
        display: none;
    }
}
