:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f8;
    --text-primary: #111111;
    --text-secondary: #555555;
    --accent: #4f8cff;
    --accent-alt: #ffb86c;
    --card-border: #e8e8eb;
    --shadow-soft: 0 12px 30px rgba(17, 17, 17, 0.08);
    --radius: 18px;
    --container: min(1100px, calc(100% - 1.5rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: radial-gradient(circle at 90% 10%, rgba(255, 184, 108, 0.2), transparent 45%),
        radial-gradient(circle at 15% 5%, rgba(79, 140, 255, 0.16), transparent 40%),
        var(--bg-primary);
}

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

a {
    color: inherit;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    z-index: 1000;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    backdrop-filter: blur(8px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.site-header nav {
    width: 100%;
    display: none;
}

.brand {
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-toggle {
    border: 1px solid var(--card-border);
    background: #ffffff;
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    min-height: 44px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.site-header.is-open nav {
    display: block;
}

.nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.4rem;
    padding-top: 0.2rem;
}

.nav-list a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.55rem 0.35rem;
    min-height: 44px;
    transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: var(--accent);
}

.section {
    padding: 3.6rem 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.hero {
    position: relative;
    overflow: clip;
    padding: 4.3rem 0 3.4rem;
}

.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.hero-abstract {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(1px);
    opacity: 0.65;
}

.orb-one {
    width: clamp(170px, 46vw, 360px);
    height: clamp(170px, 46vw, 360px);
    top: -42px;
    right: -60px;
    background: radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.95), rgba(79, 140, 255, 0.26));
    animation: float-slow 11s ease-in-out infinite;
}

.orb-two {
    width: clamp(130px, 38vw, 260px);
    height: clamp(130px, 38vw, 260px);
    left: -55px;
    top: 30%;
    background: radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.88), rgba(255, 184, 108, 0.35));
    animation: float-slow 14s ease-in-out infinite reverse;
}

.orb-three {
    width: clamp(130px, 34vw, 250px);
    height: clamp(130px, 34vw, 250px);
    right: 18%;
    bottom: -80px;
    background: radial-gradient(circle at 40% 28%, rgba(255, 255, 255, 0.95), rgba(122, 236, 255, 0.26));
    animation: float-slow 12s ease-in-out infinite;
}

.mesh {
    position: absolute;
    inset: 8% -7% auto;
    height: min(440px, 78vw);
    background: radial-gradient(circle at 20% 30%, rgba(79, 140, 255, 0.12), transparent 45%),
        radial-gradient(circle at 72% 25%, rgba(255, 184, 108, 0.16), transparent 52%),
        radial-gradient(circle at 65% 80%, rgba(79, 140, 255, 0.09), transparent 48%);
}

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

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(79, 140, 255, 0.12);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    margin: 0 0 0.9rem;
}

h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0;
}

h1 {
    font-size: clamp(2.1rem, 7vw, 4rem);
}

h2 {
    font-size: clamp(1.7rem, 5vw, 2.5rem);
}

h3 {
    font-size: 1.2rem;
}

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

.lead {
    font-size: clamp(1.03rem, 4vw, 1.25rem);
    margin-top: 0.9rem;
    max-width: 34ch;
}

.hero-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    min-height: 48px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(120deg, #4f8cff, #3c79ea);
    box-shadow: 0 10px 18px rgba(79, 140, 255, 0.28);
}

.btn-secondary {
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid var(--card-border);
}

.section-body > p {
    margin: 1rem 0 0;
    max-width: 720px;
}

.card-grid,
.tool-list {
    margin-top: 1.6rem;
    display: grid;
    gap: 1rem;
}

.card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: 0 3px 8px rgba(17, 17, 17, 0.04);
}

.project-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(79, 140, 255, 0.4);
}

.projects-cta {
    margin-top: 1.25rem;
}

.tool-card {
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: rgba(255, 184, 108, 0.2);
    right: -24px;
    bottom: -34px;
}

.gallery-grid {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.gallery-item {
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 4px 14px rgba(17, 17, 17, 0.08);
    background: #ffffff;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.04);
}

.contact-wrap {
    display: grid;
    gap: 1.4rem;
}

.contact-email {
    margin-top: 1rem;
}

.contact-email a {
    color: var(--accent);
    font-weight: 700;
}

.contact-form {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.1rem;
    box-shadow: 0 6px 18px rgba(17, 17, 17, 0.06);
}

.field + .field {
    margin-top: 0.9rem;
}

textarea {
    resize: vertical;
    min-height: 130px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d7d7db;
    border-radius: 12px;
    padding: 0.72rem 0.85rem;
    font: inherit;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.2);
}

.error-message {
    min-height: 1.2rem;
    margin: 0.35rem 0 0;
    color: #c01840;
    font-size: 0.9rem;
}

.form-status {
    min-height: 1.2rem;
    margin-top: 0.75rem;
    font-weight: 600;
    color: #27784d;
}

.site-footer {
    background: #111111;
    color: #efefef;
    padding: 2.4rem 0 1.25rem;
}

.site-footer p,
.site-footer a {
    color: #d6d6d7;
    text-decoration: none;
}

.footer-grid {
    display: grid;
    gap: 1rem;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff;
}

.footer-links,
.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
}

.footer-links a:hover,
.social-links a:hover,
.footer-links a:focus-visible,
.social-links a:focus-visible {
    color: var(--accent-alt);
}

.copyright {
    margin: 1.2rem 0 0;
    font-size: 0.9rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox img {
    max-width: min(980px, 96vw);
    max-height: 78vh;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    background: #ffffff;
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 700px) {
    :root {
        --container: min(1100px, calc(100% - 2rem));
    }

    .section {
        padding: 5rem 0;
    }

    .nav-toggle {
        display: none;
    }

    .nav-list {
        display: flex;
        gap: 1rem;
        padding-top: 0;
        overflow-x: visible;
    }

    .site-header nav {
        display: block;
        width: auto;
    }

    .nav-list a {
        padding: 0;
        min-height: 0;
    }

    .card-grid,
    .tool-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-wrap {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        align-items: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .orb {
        animation: none;
    }
}
