/* =====================================================
   TECH WITH ABBY
   QR CODE PROJECT WEBSITE
===================================================== */


/* ================= ROOT VARIABLES ================= */

:root {
    --brown-dark: #2b1710;
    --brown: #5a3825;
    --brown-medium: #795548;
    --brown-light: #a67c62;

    --cream: #f8f2eb;
    --cream-dark: #eee2d5;

    --white: #ffffff;
    --black: #1b1410;
    --gray: #746b65;

    --border: rgba(90, 56, 37, 0.15);

    --max-width: 1150px;
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--cream);
    color: var(--black);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}


/* ================= GENERAL ================= */

.container {
    width: min(90%, var(--max-width));
    margin: auto;
}

.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 750px;
    margin-bottom: 65px;
}

.section-heading.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2,
.explanation-box h2,
.project-card h2,
.final-content h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.08;
    margin-bottom: 25px;
}

.section-heading h2 span,
.explanation-box h2 span,
.project-card h2 span,
.final-content h2 span {
    color: var(--brown-light);
}

.eyebrow {
    color: var(--brown);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 50px;
    margin-top: 20px;
}

.eyebrow.light {
    color: #c8a58d;
}


/* ================= NAVBAR ================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(248, 242, 235, 0.94);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.nav-container {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-family: "Playfair Display", serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--brown-dark);
}

.logo span {
    color: var(--brown-light);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);

    transition: 0.3s ease;
}

nav a:hover {
    color: var(--brown);
}


/* ================= HERO ================= */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(166, 124, 98, 0.18),
            transparent 30%
        ),
        var(--cream);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 80px;
}

.hero-text h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(3.3rem, 7vw, 6.5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
}

.hero-text h1 span {
    color: var(--brown-light);
}

.hero-description {
    max-width: 600px;
    font-size: 1.08rem;
    color: var(--gray);
    margin-bottom: 35px;
}


/* ================= BUTTONS ================= */

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 15px 24px;

    border-radius: 50px;

    font-weight: 700;
    font-size: 0.9rem;

    transition: 0.3s ease;
}

.primary-button {
    background: var(--brown-dark);
    color: white;
}

.primary-button:hover {
    background: var(--brown);
    transform: translateY(-3px);
}

.secondary-button {
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
}

.secondary-button:hover {
    background: white;
    color: var(--brown-dark);
}


/* ================= QR VISUAL ================= */

.hero-visual {
    text-align: center;
}

.qr-card {
    position: relative;

    width: min(420px, 100%);
    aspect-ratio: 1;

    margin: auto;

    background: white;
    padding: 35px;

    border-radius: 30px;

    box-shadow:
        0 30px 80px rgba(43, 23, 16, 0.16);
}

.qr-pattern {
    position: relative;

    width: 100%;
    height: 100%;

    background: white;

    border: 18px solid white;

    overflow: hidden;
}


/* Finder squares */

.finder {
    position: absolute;

    width: 25%;
    aspect-ratio: 1;

    background: var(--brown-dark);

    border: 14px solid white;

    outline: 10px solid var(--brown-dark);
}

.finder-one {
    top: 0;
    left: 0;
}

.finder-two {
    top: 0;
    right: 0;
}

.finder-three {
    bottom: 0;
    left: 0;
}


/* Small decorative data squares */

.qr-dots {
    position: absolute;

    top: 32%;
    left: 32%;

    width: 60%;
    height: 60%;

    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.qr-dots span {
    background: var(--brown-dark);
}

.qr-dots span:nth-child(2n),
.qr-dots span:nth-child(5n) {
    opacity: 0.8;
}

.scan-line {
    position: absolute;

    left: 10%;
    right: 10%;
    top: 50%;

    height: 3px;

    background: var(--brown-light);

    box-shadow: 0 0 18px rgba(166, 124, 98, 0.8);

    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0%,
    100% {
        top: 20%;
    }

    50% {
        top: 80%;
    }
}

.scan-label {
    margin-top: 20px;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;

    color: var(--brown);
}


/* ================= TWO COLUMN ================= */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.large-text {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    line-height: 1.3;
    color: var(--brown);
}

.two-column p {
    color: var(--gray);
    margin-bottom: 20px;
}


/* ================= DARK SECTION ================= */

.section-dark {
    background: var(--brown-dark);
    color: white;
}

.section-dark .section-heading h2 {
    color: white;
}

.section-dark .section-heading p:last-child {
    color: #c9bbb2;
}


/* ================= FEATURE CARDS ================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    padding: 40px;

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;

    background: rgba(255,255,255,0.045);

    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.08);
}

.feature-number {
    color: #c8a58d;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
}

.feature-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #c9bbb2;
}


/* ================= PROCESS ================= */

.process {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.process-step {
    text-align: center;
}

.step-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--brown-dark);
    color: white;

    font-weight: 700;
}

.process-step h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--gray);
    font-size: 0.9rem;
}

.process-arrow {
    color: var(--brown-light);
    font-size: 2rem;
}


/* ================= EXPLANATION ================= */

.explanation {
    padding: 100px 0;

    background: var(--brown);
    color: white;
}

.explanation-box {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.explanation-box h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.explanation-box p:last-child {
    max-width: 700px;
    margin: auto;
    color: #e2d5cc;
}


/* ================= FACTS ================= */

.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fact {
    padding: 35px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(255,255,255,0.35);

    transition: 0.3s ease;
}

.fact:hover {
    transform: translateY(-5px);
    border-color: var(--brown-light);
}

.fact > span {
    color: var(--brown-light);
    font-size: 0.75rem;
    font-weight: 700;
}

.fact h3 {
    margin: 15px 0 8px;

    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
}

.fact p {
    color: var(--gray);
}


/* ================= PROJECT ================= */

.project-section {
    padding: 110px 0;
    background: var(--cream-dark);
}

.project-card {
    max-width: 900px;
    margin: auto;

    padding: 65px;

    background: white;

    border-radius: 30px;

    box-shadow: 0 25px 70px rgba(43, 23, 16, 0.1);
}

.project-card > p {
    max-width: 700px;
    color: var(--gray);
}

.project-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-top: 45px;
    padding-top: 30px;

    border-top: 1px solid var(--border);
}

.project-details div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-details strong {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brown-light);
}

.project-details span {
    font-weight: 600;
}


/* ================= FINAL ================= */

.final-section {
    padding: 130px 0;

    background: var(--brown-dark);

    color: white;

    text-align: center;
}

.final-content {
    max-width: 850px;
    margin: auto;
}

.final-content h2 {
    font-size: clamp(3rem, 7vw, 6rem);
}

.final-content > p:not(.eyebrow) {
    max-width: 600px;
    margin: 0 auto 35px;

    color: #c9bbb2;
}


/* ================= FOOTER ================= */

footer {
    background: #1b0d08;
    color: #b9aaa0;
}

.footer-content {
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 0.8rem;
}

.footer-content strong {
    color: white;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 950px) {

    nav {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        max-width: 500px;
        width: 100%;
        margin: auto;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .process {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .project-details {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .section {
        padding: 75px 0;
    }

    .hero {
        padding: 70px 0;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }

    .qr-card {
        padding: 20px;
        border-radius: 20px;
    }

    .feature-card,
    .fact {
        padding: 28px;
    }

    .project-card {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .footer-content {
        padding: 25px 0;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }
}