:root {
    --container: 1240px;
    --radius: 22px;
    --radius-lg: 30px;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
    --header-height: 84px;
}

html[data-theme="dark"] {
    --bg: #020b24;
    --bg-soft: #071533;
    --surface: #0a1738;
    --surface-2: #0d1d46;

    --text: #f8fbff;
    --muted: #9fb0cf;
    --line: rgba(255, 255, 255, 0.08);

    --primary: #4f8cff;
    --primary-2: #2f6df6;
    --accent: #9b5cff;

    --section-light-bg: #f5f7fb;
    --section-light-surface: #ffffff;
    --section-light-text: #151b2c;
    --section-light-muted: #74809a;
    --section-light-line: #e7edf5;
}

html[data-theme="light"] {
    --bg: #f3f7ff;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-2: #f7f9fe;

    --text: #151b2c;
    --muted: #6f7d96;
    --line: rgba(21, 27, 44, 0.08);

    --primary: #4f8cff;
    --primary-2: #2f6df6;
    --accent: #8f4fff;

    --section-light-bg: #08142f;
    --section-light-surface: #0d1c42;
    --section-light-text: #f8fbff;
    --section-light-muted: #a9b7d3;
    --section-light-line: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    padding-top: var(--header-height);
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.navbar {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    box-shadow: 0 12px 28px rgba(155, 92, 255, 0.28);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.nav-menu a {
    font-weight: 500;
    color: var(--muted);
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--text);
}

.nav-menu a:hover::after {
    width: 100%;
}

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

.theme-toggle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
}

/* ANCHOR OFFSET */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 18px);
}

#home {
    scroll-margin-top: var(--header-height);
}

/* GENERAL SECTION */
.section {
    padding: 110px 0;
}

.section-dark {
    background:
        radial-gradient(circle at top right, rgba(79, 140, 255, 0.08), transparent 22%),
        radial-gradient(circle at left center, rgba(155, 92, 255, 0.07), transparent 18%),
        var(--bg);
    color: var(--text);
}

.section-light {
    background: var(--section-light-bg);
    color: var(--section-light-text);
}

.section-light .btn-outline {
    border-color: var(--section-light-line);
    color: var(--section-light-text);
}

.section-light .section-label,
.section-light p,
.section-light span {
    color: var(--section-light-muted);
}

/* HERO */
.hero-section {
    padding-top: 28px;
    padding-bottom: 72px;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 46px;
    align-items: center;
}

.hero-content {
    padding-top: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 20px;
}

.eyebrow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    margin-bottom: 18px;
    max-width: 720px;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    max-width: 700px;
}

.hero-description {
    font-size: 1.08rem;
    max-width: 640px;
    color: var(--muted);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 155px;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 14px 30px rgba(47, 109, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--line);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: #fff;
    margin-top: 14px;
    box-shadow: 0 14px 30px rgba(155, 92, 255, 0.2);
}

.hero-help {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-help strong {
    display: block;
    color: var(--text);
    font-size: 1.2rem;
}

.hero-help p {
    color: var(--muted);
}

.hero-avatars {
    display: flex;
    flex-shrink: 0;
}

.hero-avatars span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    background: linear-gradient(135deg, #a9b7c9, #73839b);
    margin-left: -10px;
}

.hero-avatars span:first-child {
    margin-left: 0;
}

.hero-image-wrap {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 34px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

/* ABOUT */
.two-col {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.intro-text h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    color: var(--section-light-text);
}

.intro-text p {
    font-size: 1.06rem;
    margin-bottom: 18px;
}

.stacked-cards {
    display: grid;
    gap: 22px;
}

.info-card,
.service-card,
.portfolio-card,
.blog-card,
.experience-card,
.contact-box {
    border-radius: var(--radius);
}

.info-card {
    background: var(--section-light-surface);
    border: 1px solid var(--section-light-line);
    border-left: 5px solid var(--accent);
    padding: 28px 30px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    color: var(--section-light-text);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

/* HEADINGS */
.section-heading {
    margin-bottom: 42px;
}

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

.section-heading.between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.section-dark .section-heading p {
    color: var(--muted);
}

.section-light .section-heading p {
    color: var(--section-light-muted);
}

.section-label {
    display: inline-block;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: lowercase;
}

/* CARDS GRID */
.services-grid,
.portfolio-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* SERVICES */
.service-card {
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border: 1px solid var(--line);
    padding: 34px 28px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--primary) 26%, var(--line));
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 22px;
}

.service-card h3 {
    font-size: 1.9rem;
    line-height: 1.15;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--muted);
    margin-bottom: 24px;
}

.link-arrow {
    color: var(--primary);
    font-weight: 700;
}

/* PORTFOLIO */
.portfolio-card {
    background: var(--section-light-surface);
    overflow: hidden;
    border: 1px solid var(--section-light-line);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-6px);
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-body {
    padding: 28px;
}

.portfolio-category {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.portfolio-body h3 {
    font-size: 1.9rem;
    line-height: 1.2;
    color: var(--section-light-text);
    margin-bottom: 10px;
}

.portfolio-body p {
    margin-bottom: 22px;
}

.portfolio-link {
    display: inline-flex;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--section-light-line);
    color: var(--section-light-text);
    font-weight: 700;
}

/* CLIENTS */
.clients-section .section-heading {
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 50px;
}

.clients-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 26px;
    align-items: center;
    text-align: center;
}

.clients-row span {
    font-size: 2rem;
    font-weight: 800;
    opacity: 0.55;
    color: var(--section-light-muted);
}

/* BLOG */
.view-more {
    font-weight: 700;
    color: var(--text);
}

.blog-card {
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 20px;
}

.blog-body h3 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 16px 0 14px;
}

.blog-body p {
    color: var(--muted);
    font-weight: 700;
}

.blog-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
}

/* EXPERIENCE */
.experience-grid {
    display: grid;
    gap: 22px;
}

.experience-card {
    background: var(--section-light-surface);
    border: 1px solid var(--section-light-line);
    box-shadow: var(--shadow);
    padding: 26px 28px;
}

.experience-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    margin-bottom: 14px;
}

.experience-top h3 {
    font-size: 1.35rem;
    color: var(--section-light-text);
}

.experience-top span,
.experience-card p {
    color: var(--section-light-muted);
}

/* CONTACT */
.contact-section {
    padding-bottom: 120px;
}

.contact-box {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 44px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.contact-box h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.contact-box p {
    max-width: 700px;
    margin: 0 auto 24px;
    color: var(--muted);
}

.contact-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 {
    transition-delay: 0.15s;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .hero-grid,
    .two-col,
    .services-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .clients-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-image {
        height: 520px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 24px;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 132px;
    }

    .navbar {
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
    }

    .nav-menu {
        justify-content: center;
    }

    .section-heading.between,
    .experience-top {
        flex-direction: column;
    }

    .contact-box {
        padding: 28px 20px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 84px 0;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .clients-row span {
        font-size: 1.4rem;
    }

    .portfolio-body,
    .service-card,
    .info-card,
    .experience-card {
        padding: 22px 20px;
    }

    .hero-help {
        align-items: flex-start;
    }

    .hero-image {
        height: 420px;
        border-radius: 24px;
    }
    /* FOOTER */
    .site-footer {
        background: color-mix(in srgb, var(--bg) 94%, black 6%);
        color: var(--text);
        border-top: 1px solid var(--line);
        padding-top: 70px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.9fr 0.9fr;
        gap: 40px;
        padding-bottom: 36px;
    }

    .footer-brand-link {
        display: inline-flex;
        margin-bottom: 18px;
    }

    .footer-brand p {
        max-width: 420px;
        color: var(--muted);
    }

    .footer-links-group h4 {
        font-size: 1rem;
        margin-bottom: 16px;
        color: var(--text);
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-links a,
    .footer-links span {
        color: var(--muted);
        transition: var(--transition);
    }

    .footer-links a:hover {
        color: var(--text);
        transform: translateX(4px);
    }

    .footer-bottom {
        border-top: 1px solid var(--line);
        padding: 20px 0 28px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .footer-bottom p {
        color: var(--muted);
        font-size: 0.95rem;
    }
    @media (max-width: 900px) {
        .footer-grid {
            grid-template-columns: 1fr;
            gap: 28px;
        }

        .footer-bottom {
            flex-direction: column;
            align-items: flex-start;
        }
    }
}