:root {
    --background: #393939;
    --surface: #292929;
    --green: #48ef25;
    --green-hover: #39ce1b;
    --text: #f5f5f5;
    --muted: #cccccc;
    --border: #555555;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--background);
    background-image: url("../images/circuit-background.svg");
    background-size: cover;
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */

.site-header {
    background: var(--surface);
    border-bottom: 3px solid var(--green);
    padding: 20px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.navigation a {
    color: var(--text);
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.navigation a:hover,
.navigation a.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 280px;
    max-width: 100%;
    height: auto;
}

/* Main content */

main {
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin: auto;
}

.hero {
    text-align: center;
    padding: 70px 25px 50px;
}

.eyebrow {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 5px;
    font-weight: bold;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 76px);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero p {
    font-size: 21px;
    color: var(--muted);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 32px;
}

/* Buttons */

.button {
    display: inline-block;
    background: var(--green);
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 12px;
    transition: background 0.2s, transform 0.2s;
}

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

a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* Projects */

.projects {
    padding: 15px 4% 60px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
    color: var(--muted);
    font-size: 25px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.section-heading::before,
.section-heading::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--green);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--surface);
    border: 2px solid var(--green);
    border-radius: 22px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: transform 0.2s;
}

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

.project-icon {
    width: 100px;
    flex-shrink: 0;
    color: var(--green);
}

.project-content {
    border-left: 1px solid var(--border);
    padding-left: 28px;
}

.project-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.project-content .button {
    font-size: 16px;
    padding: 12px 20px;
}

/* Footer */

.site-footer {
    background: var(--surface);
    border-top: 3px solid var(--green);
    padding: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* Responsive layout */

@media (max-width: 1000px) {
    .site-header {
        flex-direction: column-reverse;
    }

    .navigation {
        justify-content: center;
        gap: 20px;
    }

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

@media (max-width: 600px) {
    .navigation a {
        font-size: 14px;
    }

    .hero {
        padding: 45px 20px;
    }

    .hero p {
        font-size: 17px;
    }

    .eyebrow {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .project-card {
        flex-direction: column;
        text-align: center;
    }

    .project-content {
        border-left: none;
        padding-left: 0;
    }

    .section-heading {
        font-size: 18px;
    }

    .brand img {
        width: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

/* Official product logos */

img.project-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}
