:root {
    --bg: #050505;
    --surface: #0f1115;
    --text: #f5f7fa;
    --muted: #9ba3af;
    --accent: #00e5ff;

    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 229, 255, 0.25);

    --glass-bg: rgba(255, 255, 255, 0.03);

    --max-width: 1200px;

    --transition-fast: 0.25s ease;
    --transition-normal: 0.3s ease;

    --space-tight: 1rem;
    --space-normal: 1.5rem;
    --space-medium: 2rem;
    --space-section: 4rem;
    --space-hero: 5rem;

    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 20px;

    --shadow-card: 0 10px 50px rgba(0, 0, 0, 0.35);
    --shadow-accent: 0 8px 30px rgba(0, 229, 255, 0.25);
}

/* RESET */

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

html {
    scroll-behavior: smooth;
}

@media (min-width: 481px) {
    html {
        scroll-snap-type: y mandatory;
    }
}

body {
    background: var(--bg);
    color: var(--text);

    font-family: "Sora", sans-serif;
    line-height: 1.7;
    letter-spacing: -0.015em;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* GLOBAL */

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

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

ul {
    list-style: none;
}

.container {
    width: min(90%, var(--max-width));
    margin-inline: auto;
}

.panel {
    position: relative;

    display: flex;
    align-items: center;

    height: 100vh;
    overflow: hidden;

    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.panel .container {
    padding-top: calc(80px - 1.5rem);
}

/* BACKGROUND */

.bg-tint-section {
    position: relative;
    overflow: hidden;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        linear-gradient(
            rgba(5, 5, 5, 0.9),
            rgba(5, 5, 5, 0.92)
        ),
        url("../../images/bgtint.jpg") center / cover no-repeat;

    opacity: 0.75;
    pointer-events: none;
}

.bg-tint-section .container {
    position: relative;
    z-index: 2;
}

/* HEADER */

.header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(12px);

    background: rgba(5, 5, 5, 0.92);
    border-bottom: 1px solid var(--border);
}

#topnav {
    width: min(90%, var(--max-width));
    height: 80px;
    margin-inline: auto;

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: auto;
    height: 42px;
}

#topnav nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-medium);
}

#topnav nav a {
    color: var(--muted);

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

    transition: color var(--transition-fast);
}

#topnav nav a:hover {
    color: #fff;
}

/* ACTIVE NAVIGATION */

#topnav nav a.active-nav {
    position: relative;
    color: var(--accent);
}

#topnav nav a.active-nav::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 100%;
    height: 2px;

    border-radius: 999px;
    background: var(--accent);
}

/* TYPOGRAPHY */

h1,
h2,
h3,
h4,
nav,
.button,
.eyebrow {
    font-family: "Sora", sans-serif;
}

h1,
h2,
h3 {
    font-weight: 600;
}

p {
    color: var(--muted);
    font-weight: 400;
}

.hero-title,
h1,
h2 {
    letter-spacing: -0.04em;
}

.hero-title {
    max-width: 620px;
    margin-bottom: var(--space-normal);

    font-size: clamp(2.6rem, 4vw, 4.4rem);
    line-height: 1.05;
}

h2 {
    margin-bottom: var(--space-normal);

    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
}

h3 {
    margin-bottom: var(--space-tight);

    font-size: 1.35rem;
}

h4 {
    margin-bottom: 0.75rem;

    font-size: 1rem;
}

.large-copy {
    max-width: 1000px;
    margin-bottom: var(--space-medium);

    font-size: 1.15rem;
}

.eyebrow {
    margin-bottom: var(--space-tight);

    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* SECTION HEADINGS */

.section-heading {
    margin-bottom: var(--space-section);
}

.section-heading h2 {
    max-width: 900px;
}

/* GRID SYSTEM */

.hero-layout,
.grid-3,
.gallery-grid,
.advantage-grid,
.team-grid,
.contact-layout {
    display: grid;
}

/* HERO */

.hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-hero);
    align-items: center;
}

.hero-copy {
    max-width: 580px;
    margin-bottom: 2.5rem;

    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-tight);
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-self: center;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    height: auto;

    object-fit: cover;

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

    box-shadow: var(--shadow-card);
}

/* BUTTONS */

.button,
.socials a,
.contact-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button {
    padding: 1rem 2rem;

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

    font-weight: 600;

    cursor: pointer;
    transition:
        transform var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.primary {
    background: var(--accent);
    color: #000;
}

.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.secondary {
    border: 1px solid var(--accent);
    color: #fff;
}

.secondary:hover {
    background: var(--accent);
    color: #000;
}

/* GLASS SYSTEM */

.card,
.team-card,
.contact-card,
.advantage-item {
    backdrop-filter: blur(8px);

    background: var(--glass-bg);
    border: 1px solid var(--border);
}

/* CARDS */

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-medium);
}

.card {
    height: 100%;
    padding: var(--space-medium);

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

    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal);
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
}

/* SOLUTIONS */

#solutions {
    display: flex;
    align-items: center;

    padding: 2rem 0;
}

#solutions .section-heading {
    margin-bottom: var(--space-normal);
}

#solutions .grid-3 {
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

#solutions .card {
    padding: 1.75rem;
}

/* GALLERY */

.gallery-section {
    margin-top: 2rem;
}

.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-tight);

    align-items: stretch;
}

.gallery-grid img {
    width: 100%;
    height: 180px;

    object-fit: cover;

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

    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal);
}

.gallery-grid img:hover {
    transform: scale(1.02);
    border-color: var(--border-accent);
}

/* WHY US */

#about-company .advantage-grid {
    grid-template-columns: repeat(4, 1fr);
}

.advantage-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-medium);

    max-width: 1400px;
    margin-inline: auto;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    min-height: 240px;
    padding: var(--space-medium);

    border-left: 2px solid var(--accent);
    border-radius: 0 12px 12px 0;
}

/* ABOUT */

#team .section-heading {
    margin-bottom: var(--space-normal);
}

.team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-normal);

    align-items: stretch;
}

.team-card {
    display: flex;
    flex-direction: column;

    padding: var(--space-tight);

    border-radius: var(--radius-medium);
}

.founder-image {
    width: 100%;
    height: 220px;
    margin-bottom: var(--space-tight);

    object-fit: cover;

    border-radius: 14px;
}

.founder-name {
    color: #fff;

    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

/* CONTACT */

#contact {
    min-height: auto;
    padding-bottom: 2rem;
}

#contact .section-heading {
    margin-bottom: var(--space-medium);
}

.contact-layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;

    align-items: stretch;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-normal);
}

.contact-card {
    padding: var(--space-normal);

    border-radius: var(--radius-medium);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-tight);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.2rem;

    color: #fff;

    font-size: 1rem;

    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    transition:
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;

    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
}

.contact-form textarea {
    min-height: 200px;
    resize: vertical;
}

/* SOCIALS */

.socials {
    display: flex;
    gap: var(--space-tight);
}

.socials a {
    width: 42px;
    height: 42px;

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

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.socials a:hover {
    transform: translateY(-2px);

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

/* CONTACT FOOTER */

.contact-footer {
    margin-top: 1rem;
    padding-top: 1rem;

    background: #050505;
    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 0.9rem;
}

.privacy-note {
    font-size: 0.75rem;
    text-align: center;
}

.privacy-note a {
    text-decoration: underline;
}

/* SECTION CTA */

.section-cta {
    display: flex;
    justify-content: center;

    margin-top: 1.25rem;
}

.section-cta .button {
    min-width: 260px;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    html {
        scroll-snap-type: none;
    }

    .panel {
        padding: 5rem 0;
    }

    #topnav {
        width: 100%;
        padding-inline: 5vw;
    }

    .hero-layout,
    .grid-3,
    .gallery-grid,
    .advantage-grid,
    .team-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-image img {
        max-width: 100%;
    }

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

    .button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    html,
    body {
        min-height: 100%;
        height: auto !important;

        overflow-x: hidden;
        overflow-y: auto !important;

        scroll-snap-type: none !important;
    }

    body {
        overflow-y: auto;
    }

    main {
        height: auto;
        overflow: visible;
    }

    /* HEADER */

    .header-wrap {
        position: relative;
    }

    #topnav {
        flex-direction: column;
        gap: 1rem;

        height: auto;
        padding: 1rem 5vw;
    }

    #topnav nav {
        display: none;
    }

    .logo img {
        width: auto;
        height: 60px;
    }

    /* GLOBAL LAYOUT */

    .container {
        width: 92%;
        margin-block: 0;
    }

    .panel {
        display: block;

        min-height: auto !important;
        height: auto !important;

        overflow: visible !important;

        padding: 1rem 0 2rem;

        scroll-snap-align: unset;
        scroll-snap-stop: normal;
    }

    #hero,
    #solutions,
    #industries,
    #about-company,
    #contact {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .section-heading {
        margin-bottom: 0.75rem;
    }

    /* HERO */

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
    }

    .hero-title {
        margin-bottom: 1rem;

        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-copy,
    .large-copy {
        margin-bottom: 1rem;

        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;

        margin-bottom: 1rem;
    }

    /* TYPOGRAPHY */

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    /* GRID SYSTEM */

    .grid-3,
    .advantage-grid,
    .contact-layout,
    .team-grid,
    .gallery-grid,
    #about-company .advantage-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* SOLUTIONS */

    .gallery-section,
    #team {
        display: none;
    }

    /* CARDS */

    .card,
    .advantage-item,
    .contact-card,
    .team-card {
        padding: 1.1rem;
    }

    .advantage-item {
        min-height: auto;
    }

    .advantage-item p {
        display: none;
    }

    /* CONTACT */

    .contact-layout {
        gap: 1.5rem;
    }

    .contact-form textarea {
        min-height: 160px;
    }

    .contact-footer {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }

    /* BUTTONS */

    .button {
        width: 100%;
        padding: 0.9rem 1.25rem;
    }
}