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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0a0a0a;
    color: #f5f5f5;
    line-height: 1.6;
}

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

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

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 6%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */

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

.logo img {
    display: block;
    width: 52px;
    height: 52px;
    filter: invert(1);
    transition: opacity 0.2s ease;
}

.logo:hover img {
    opacity: 0.75;
}

/* Navigation */

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #999;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
}

/* =========================
   MAIN
   ========================= */

main {
    max-width: 1200px;
    margin: auto;
    padding: 0 6%;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

/* Main hero text */

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

/* Large background logo */

.hero-logo {
    position: absolute;
    z-index: 1;

    width: 430px;
    height: 430px;

    right: 4%;
    top: 50%;

    transform: translateY(-50%);

    opacity: 0.055;
    pointer-events: none;
}

.hero-logo img {
    display: block;
    width: 100%;
    height: 100%;
    filter: invert(1);
}

/* Hero typography */

.eyebrow,
.section-label {
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 24px;
}

.hero h1 {
    max-width: 900px;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 32px;
}

.hero h1 span {
    color: #666;
}

.hero-description {
    max-width: 600px;
    color: #999;
    font-size: 18px;
    margin-bottom: 36px;
}

/* Hero buttons */

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-buttons a {
    padding: 12px 22px;
    border: 1px solid #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

.hero-buttons a:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* =========================
   SECTIONS
   ========================= */

section {
    padding: 120px 0;
    border-top: 1px solid #222;
}

section h2 {
    font-size: clamp(32px, 5vw, 56px);
    letter-spacing: -2px;
    margin-bottom: 50px;
}

/* =========================
   PROJECTS
   ========================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.projects-grid article {
    min-height: 250px;
    padding: 28px;
    border: 1px solid #222;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.projects-grid article:hover {
    border-color: #555;
    transform: translateY(-4px);
}

.projects-grid span {
    font-family: monospace;
    color: #555;
}

.projects-grid h3 {
    margin-top: 50px;
    margin-bottom: 12px;
    font-size: 22px;
}

.projects-grid p {
    color: #777;
    font-size: 14px;
}

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

#about {
    max-width: 800px;
}

#about p:not(.section-label) {
    color: #999;
    font-size: 18px;
    margin-bottom: 24px;
}

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

#contact {
    min-height: 500px;
}

#contact p:not(.section-label) {
    color: #999;
    margin-bottom: 20px;
}

#contact a {
    font-size: 20px;
    border-bottom: 1px solid #555;
    padding-bottom: 4px;
}

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

footer {
    border-top: 1px solid #222;
    padding: 30px 6%;
    color: #555;
    font-family: monospace;
    font-size: 12px;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    header {
        padding: 16px 5%;
    }

    .logo img {
        width: 44px;
        height: 44px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 12px;
    }

    main {
        padding: 0 5%;
    }

    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 16px;
    }

    /*
       Smaller, partially visible watermark
       behind the hero on mobile.
    */
    .hero-logo {
        width: 260px;
        height: 260px;
        right: -60px;
        top: 62%;
        opacity: 0.045;
    }

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

    section {
        padding: 90px 0;
    }
}
