/* =========================================================
   DOQUALITY
   ========================================================= */

:root {
    --background: hsl(214, 35%, 7%);
    --background-soft: hsl(214, 32%, 9%);

    --surface: hsl(214, 29%, 11%);
    --surface-hover: hsl(214, 28%, 14%);

    --primary: hsl(213, 94%, 62%);
    --primary-light: hsl(213, 100%, 72%);
    --purple: hsl(265, 85%, 68%);

    --text: hsl(214, 25%, 96%);
    --text-secondary: hsl(214, 15%, 69%);
    --text-muted: hsl(214, 12%, 50%);

    --border: hsla(214, 30%, 85%, 0.10);
    --border-hover: hsla(213, 94%, 62%, 0.35);

    --radius-small: 8px;
    --radius: 14px;
    --radius-large: 22px;

    --max-width: 1200px;
}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 70% 10%,
            hsla(220, 80%, 30%, 0.10),
            transparent 35%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

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

::selection {
    background: var(--primary);
    color: white;
}


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: hsla(214, 35%, 7%, 0.82);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
}

.navbar {
    width: min(var(--max-width), calc(100% - 4rem));

    height: 72px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;

    font-weight: 700;
    font-size: 1.15rem;
}

.brand-mark {
    color: var(--primary);

    font-family: monospace;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);

    font-size: 0.92rem;

    transition:
        color 160ms ease,
        transform 160ms ease;
}

.nav-links a:hover {
    color: var(--text);
    transform: translateY(-1px);
}


/* =========================================================
   GENERAL
   ========================================================= */

.section {
    width: min(var(--max-width), calc(100% - 4rem));

    margin: auto;

    padding: 8rem 0;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 1.5rem;

    color: var(--primary);

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.18em;
}

.section-heading {
    max-width: 720px;

    margin-bottom: 4rem;
}

.section-heading h2,
.about-section h2 {
    margin: 0;

    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;

    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 600px;

    margin-top: 1.5rem;

    color: var(--text-secondary);

    font-size: 1.08rem;
}


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

.hero {
    position: relative;

    width: min(var(--max-width), calc(100% - 4rem));

    min-height: calc(100vh - 72px);

    margin: auto;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;
    gap: 6rem;

    overflow: hidden;
}

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

.hero h1 {
    max-width: 800px;

    margin: 0;

    font-size: clamp(3.5rem, 6.5vw, 6.5rem);
    line-height: 0.98;

    letter-spacing: -0.055em;
}

.hero h1 span {
    display: block;

    color: var(--text-secondary);
}

.hero-description {
    max-width: 650px;

    margin: 2rem 0;

    color: var(--text-secondary);

    font-size: 1.18rem;
}

.hero-description strong {
    color: var(--text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 0.8rem;
}

.button {
    min-height: 48px;

    padding: 0 1.4rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.8rem;

    border-radius: var(--radius-small);

    font-size: 0.95rem;
    font-weight: 650;

    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--primary);
    color: white;

    box-shadow:
        0 8px 30px hsla(213, 94%, 55%, 0.15);
}

.button-primary:hover {
    background: var(--primary-light);
}

.button-secondary {
    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--text);
}

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


/* =========================================================
   HERO CODE WINDOW
   ========================================================= */

.hero-code {
    position: relative;
    z-index: 2;
}

.code-window {
    overflow: hidden;

    background: hsla(214, 30%, 10%, 0.85);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow:
        0 30px 80px hsla(220, 100%, 3%, 0.45);
}

.code-header {
    height: 48px;

    padding: 0 1rem;

    display: flex;
    align-items: center;

    gap: 1rem;

    border-bottom: 1px solid var(--border);

    color: var(--text-muted);

    font-family: monospace;
    font-size: 0.75rem;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--text-muted);
}

.code-window pre {
    margin: 0;

    padding: 2rem;

    overflow-x: auto;
}

.code-window code {
    color: var(--text-secondary);

    font-family:
        "JetBrains Mono",
        "Fira Code",
        monospace;

    font-size: 0.92rem;
    line-height: 1.9;
}

.code-purple {
    color: var(--purple);
}

.code-blue {
    color: var(--primary-light);
}

.hero-glow {
    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    filter: blur(120px);

    pointer-events: none;
}

.hero-glow-one {
    right: -200px;
    top: 50px;

    background: hsla(213, 100%, 55%, 0.13);
}

.hero-glow-two {
    left: -300px;
    bottom: -100px;

    background: hsla(270, 100%, 60%, 0.07);
}


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

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1rem;
}

.service-card {
    min-height: 280px;

    padding: 2rem;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.service-card:hover {
    transform: translateY(-4px);

    background: var(--surface-hover);

    border-color: var(--border-hover);
}

.service-icon {
    margin-bottom: 4rem;

    color: var(--primary);

    font-family: monospace;
    font-size: 0.8rem;
}

.service-card h3 {
    margin: 0 0 0.8rem;

    font-size: 1.35rem;
}

.service-card p {
    margin: 0;

    color: var(--text-secondary);
}


/* =========================================================
   DEMOS
   ========================================================= */

.demos-section {
    border-top: 1px solid var(--border);
}

.project-card {
    overflow: hidden;

    display: grid;
    grid-template-columns: 1.35fr 0.65fr;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);
}

.project-visual {
    min-height: 500px;

    padding: 4rem;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 20% 20%,
            hsla(213, 100%, 55%, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            hsl(215, 45%, 12%),
            hsl(224, 45%, 8%)
        );
}

.fake-app {
    width: 100%;
    height: 330px;

    overflow: hidden;

    display: flex;

    background: hsl(214, 30%, 9%);

    border: 1px solid hsla(214, 30%, 90%, 0.15);
    border-radius: 10px;

    box-shadow:
        0 35px 70px hsla(220, 100%, 3%, 0.5);

    transform: perspective(1000px)
               rotateY(3deg)
               rotateX(1deg);
}

.fake-sidebar {
    width: 75px;

    padding: 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 1rem;

    background: hsl(220, 45%, 14%);
}

.fake-logo {
    width: 36px;
    height: 36px;

    margin-bottom: 1.5rem;

    display: grid;
    place-items: center;

    background: var(--primary);

    border-radius: 8px;

    font-size: 0.7rem;
    font-weight: 800;
}

.fake-sidebar span {
    width: 30px;
    height: 6px;

    background: hsla(214, 30%, 90%, 0.15);

    border-radius: 10px;
}

.fake-content {
    flex: 1;

    padding: 1.5rem;
}

.fake-topbar {
    height: 20px;

    margin-bottom: 2rem;

    border-bottom: 1px solid var(--border);
}

.fake-title {
    width: 35%;
    height: 18px;

    margin-bottom: 1.5rem;

    background: hsla(214, 30%, 90%, 0.12);

    border-radius: 4px;
}

.fake-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 0.8rem;
}

.fake-stats span {
    height: 70px;

    background: hsl(214, 27%, 13%);

    border: 1px solid var(--border);
    border-radius: 7px;
}

.fake-chart {
    position: relative;

    height: 130px;

    margin-top: 1rem;

    overflow: hidden;

    background: hsl(214, 27%, 13%);

    border: 1px solid var(--border);
    border-radius: 7px;
}

.chart-line {
    position: absolute;

    width: 120%;
    height: 3px;

    left: -10%;
    top: 60%;

    background: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        var(--purple),
        transparent
    );

    transform: rotate(-7deg);

    box-shadow: 0 0 15px var(--primary);
}

.project-info {
    padding: 3rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-number {
    color: var(--primary);

    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 0.15em;
}

.project-info h3 {
    margin: 1rem 0;

    font-size: 2.6rem;

    letter-spacing: -0.04em;
}

.project-description {
    color: var(--text-secondary);
}

.tech-list {
    margin: 1.5rem 0 2rem;

    display: flex;
    flex-wrap: wrap;

    gap: 0.5rem;
}

.tech-list span {
    padding: 0.35rem 0.65rem;

    background: hsla(213, 94%, 62%, 0.08);

    border: 1px solid hsla(213, 94%, 62%, 0.15);
    border-radius: 100px;

    color: var(--primary-light);

    font-size: 0.75rem;
}

.project-link {
    display: flex;
    align-items: center;

    gap: 0.7rem;

    color: var(--primary-light);

    font-weight: 650;
}


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

.about-section {
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 7rem;
}

.about-copy {
    padding-top: 2.5rem;
}

.about-copy p {
    color: var(--text-secondary);

    font-size: 1.05rem;
}

.about-copy .about-highlight {
    color: var(--text);

    font-size: 1.35rem;
}


/* =========================================================
   PRINCIPLES
   ========================================================= */

.principles {
    width: min(var(--max-width), calc(100% - 4rem));

    margin: 0 auto 8rem;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.principle {
    padding: 2.5rem;

    border-right: 1px solid var(--border);
}

.principle:last-child {
    border-right: 0;
}

.principle > span {
    display: block;

    margin-bottom: 3rem;

    color: var(--primary);

    font-family: monospace;
    font-size: 0.75rem;
}

.principle strong {
    display: block;

    font-size: 1.15rem;
}

.principle p {
    margin-bottom: 0;

    color: var(--text-secondary);

    font-size: 0.9rem;
}


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

.contact-section {
    position: relative;

    width: min(var(--max-width), calc(100% - 4rem));

    margin: 0 auto 8rem;

    padding: 7rem 2rem;

    overflow: hidden;

    text-align: center;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);
}

.contact-section h2 {
    margin: 0;

    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;

    letter-spacing: -0.05em;
}

.contact-section p {
    max-width: 580px;

    margin: 2rem auto;

    color: var(--text-secondary);

    font-size: 1.05rem;
}

.contact-button {
    position: relative;
    z-index: 2;
}

.contact-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    left: 50%;
    top: 100%;

    transform: translate(-50%, -50%);

    background: hsla(213, 100%, 55%, 0.13);

    border-radius: 50%;

    filter: blur(100px);
}


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

footer {
    border-top: 1px solid var(--border);
}

.footer-content {
    width: min(var(--max-width), calc(100% - 4rem));

    min-height: 110px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;

    color: var(--text-muted);

    font-size: 0.85rem;
}


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

@media (max-width: 900px) {

    .hero {
        min-height: auto;

        padding: 7rem 0;

        grid-template-columns: 1fr;

        gap: 4rem;
    }

    .hero-code {
        max-width: 650px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .service-icon {
        margin-bottom: 2rem;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-visual {
        min-height: auto;

        padding: 2rem;
    }

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

        gap: 2rem;
    }

    .principles {
        grid-template-columns: 1fr;
    }

    .principle {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .principle:last-child {
        border-bottom: 0;
    }
}


@media (max-width: 650px) {

    .navbar,
    .hero,
    .section,
    .principles,
    .contact-section,
    .footer-content {
        width: min(100% - 2rem, var(--max-width));
    }

    .navbar {
        height: 64px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        display: none;
    }

    .nav-links a:last-child {
        display: block;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 15vw, 5rem);
    }

    .section {
        padding: 5rem 0;
    }

    .project-visual {
        padding: 1rem;
    }

    .fake-app {
        height: 240px;
    }

    .fake-sidebar {
        width: 50px;
    }

    .project-info {
        padding: 2rem;
    }

    .contact-section {
        padding: 5rem 1.5rem;

        margin-bottom: 4rem;
    }

    .footer-content {
        padding: 2rem 0;

        flex-direction: column;

        align-items: flex-start;

        gap: 0.5rem;
    }

}