css
/* =========================================================
   ENGINEERING PORTFOLIO
   Complete stylesheet
========================================================= */


/* =========================================================
   1. RESET / GLOBAL
========================================================= */

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

html {
    scroll-behavior: smooth;
}

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

    font-family: "Inter", Arial, sans-serif;

    line-height: 1.6;

    min-height: 100vh;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   2. VARIABLES
========================================================= */

:root {
    --background: #f3ead8;
    --surface: #f3ead8;
    --surface-2: #c3a98a;
    --border: #cfc1aa;
    --border-light: #b9a98f;

    --text: #25221e;
    --muted: #6f685e;
    --muted-dark: #8a8175;

    --accent: #a94f1c;
    --accent-bright: #c4632a;

    --max-width: 1200px;
}


/* =========================================================
   3. NAVIGATION
========================================================= */

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background: rgba(243, 234, 216, 0.92);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.nav-container {

    width: 100%;

    max-width: var(--max-width);

    height: 76px;

    margin: 0 auto;

    padding: 0 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* Logo */

.logo {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: -0.02em;
}

.logo-symbol {

    color: var(--accent);

    font-family: "Space Mono", monospace;

    font-size: 15px;
}


/* Navigation */

nav {

    display: flex;

    align-items: center;

    gap: 35px;
}

nav a {

    color: var(--muted);

    font-size: 13px;

    transition: color 0.2s ease;
}

nav a:hover {

    color: var(--text);
}

nav a.active {

    color: var(--text);
}


/* Contact button */

.nav-contact {

    padding: 9px 16px;

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

    color: var(--text);

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.nav-contact:hover {

    border-color: var(--accent);

    color: var(--accent);
}


/* =========================================================
   4. SHARED TYPOGRAPHY
========================================================= */

.eyebrow,
.section-number,
.project-type,
.experience-date {

    font-family: "Space Mono", monospace;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.eyebrow {

    color: var(--accent);

    font-size: 11px;

    margin-bottom: 24px;
}

.section-number {

    color: var(--accent);

    font-size: 10px;
}

.section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 55px;
}

.section-heading h2 {

    margin-top: 15px;

    font-size: clamp(40px, 5vw, 64px);

    line-height: 0.95;

    letter-spacing: -0.055em;
}

.section-description {

    max-width: 410px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.8;
}

.section-link {

    color: var(--accent);

    font-family: "Space Mono", monospace;

    font-size: 10px;

    white-space: nowrap;
}

.section-link:hover {

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


/* =========================================================
   5. BUTTONS
========================================================= */

.hero-buttons {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;
}

.button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 20px;

    font-size: 12px;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.button-primary {

    background: var(--accent);

    color: #081018;
}

.button-primary:hover {

    background: var(--accent-bright);

    transform: translateY(-2px);
}

.button-secondary {

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

    color: var(--text);
}

.button-secondary:hover {

    border-color: var(--border-light);

    transform: translateY(-2px);
}


/* =========================================================
   6. HOME — HERO
========================================================= */

.hero {

    width: 100%;

    max-width: var(--max-width);

    min-height: 700px;

    margin: 0 auto;

    padding: 100px 30px;

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 70px;
}

.hero-content {

    max-width: 650px;
}

.hero h1 {

    margin-bottom: 30px;

    font-size: clamp(55px, 7vw, 90px);

    line-height: 0.95;

    letter-spacing: -0.065em;
}

.hero h1 span {

    color: var(--muted);
}

.hero-description {

    max-width: 540px;

    margin-bottom: 38px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   7. HOME — BLUEPRINT GRAPHIC
========================================================= */

.hero-graphic {

    display: flex;

    align-items: center;

    justify-content: center;
}

.blueprint {

    position: relative;

    width: 420px;

    height: 420px;

    overflow: hidden;

    border: 1px solid #294050;

    background-color: #f3ead8;

    background-image:
        linear-gradient(
            rgba(169, 79, 28, 0.10) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(169, 79, 28, 0.12) 1px,
            transparent 1px
        );

    background-size: 25px 25px;
}

.blueprint-grid {

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(109, 183, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(109, 183, 255, 0.08) 1px,
            transparent 1px
        );

    background-size: 125px 125px;
}

.technical-circle {

    position: absolute;

    width: 220px;

    height: 220px;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    border: 1px solid var(--accent);

    border-radius: 50%;
}

.technical-circle::before {

    content: "";

    position: absolute;

    inset: 25px;

    border: 1px dashed var(--accent);

    border-radius: 50%;
}

.circle-inner {

    position: absolute;

    width: 65px;

    height: 65px;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    border: 1px solid var(--accent);

    border-radius: 50%;
}

.crosshair {

    position: absolute;

    background: rgba(109, 183, 255, 0.65);
}

.crosshair.horizontal {

    width: 100%;

    height: 1px;

    top: 50%;

    left: 0;
}

.crosshair.vertical {

    width: 1px;

    height: 100%;

    top: 0;

    left: 50%;
}

.blueprint-label {

    position: absolute;

    left: 20px;

    bottom: 18px;

    color: var(--accent);

    font-family: "Space Mono", monospace;

    font-size: 10px;
}


/* =========================================================
   8. HOME — FEATURED PROJECTS
========================================================= */

.section {

    width: 100%;

    max-width: var(--max-width);

    margin: 0 auto;

    padding: 120px 30px;
}

.featured-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.featured-project {

    display: block;

    overflow: hidden;

    background: var(--surface);

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

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.featured-project:hover {

    transform: translateY(-5px);

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

.featured-image {

    position: relative;

    height: 270px;

    overflow: hidden;

    background: var(--surface-2);
}

.featured-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.featured-project:hover .featured-image img {

    transform: scale(1.04);
}

.project-number {

    position: absolute;

    top: 18px;

    right: 18px;

    color: var(--accent);

    font-family: "Space Mono", monospace;

    font-size: 10px;
}

.featured-content {

    padding: 25px;
}

.project-type {

    color: var(--accent);

    font-size: 9px;
}

.featured-content h3 {

    margin: 12px 0;

    font-size: 22px;

    line-height: 1.1;

    letter-spacing: -0.035em;
}

.featured-content p {

    margin-bottom: 22px;

    color: var(--surface-2);

    font-size: 13px;

    line-height: 1.75;
}

.card-link {

    color: var(--accent);

    font-family: "Space Mono", monospace;

    font-size: 10px;
}

.card-link:hover {

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


/* =========================================================
   9. HOME — EXPERIENCE PREVIEW
========================================================= */

.experience-preview {

    border-top: 1px solid var(--border);
}

.experience-list {

    border-top: 1px solid var(--border);
}

.experience-preview-item {

    display: grid;

    grid-template-columns: 200px 1fr 40px;

    align-items: center;

    gap: 40px;

    padding: 34px 0;

    border-bottom: 1px solid var(--border);

    transition:
        padding 0.2s ease,
        background 0.2s ease;
}

.experience-preview-item:hover {

    padding-left: 10px;
}

.experience-date {

    color: var(--accent);

    font-size: 10px;
}

.experience-info h3 {

    margin-bottom: 3px;

    font-size: 21px;

    letter-spacing: -0.02em;
}

.experience-info p {

    color: var(--muted);

    font-size: 13px;
}

.experience-info span {

    display: block;

    margin-top: 8px;

    color: var(--muted-dark);

    font-size: 11px;
}

.experience-arrow {

    color: var(--accent);

    font-size: 20px;
}


/* =========================================================
   10. HOME — ABOUT
========================================================= */

.about-preview {

    width: 100%;

    max-width: var(--max-width);

    margin: 0 auto;

    padding: 120px 30px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    border-top: 1px solid var(--border);
}

.about-preview h2 {

    margin-top: 20px;

    font-size: clamp(45px, 5vw, 65px);

    line-height: 0.95;

    letter-spacing: -0.055em;
}

.about-preview > div:last-child {

    padding-top: 25px;
}

.about-preview > div:last-child p {

    max-width: 560px;

    margin-bottom: 20px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.9;
}


/* =========================================================
   11. HOME — CONTACT
========================================================= */

.contact-section {

    padding: 140px 30px;

    text-align: center;

    border-top: 1px solid var(--border);
}

.contact-section h2 {

    margin: 25px 0 30px;

    font-size: clamp(55px, 8vw, 100px);

    line-height: 0.9;

    letter-spacing: -0.065em;
}

.contact-section > p:not(.section-number) {

    max-width: 500px;

    margin: 0 auto 35px;

    color: var(--muted);

    font-size: 14px;
}

.contact-button {

    display: inline-flex;

    align-items: center;

    gap: 20px;

    padding: 15px 22px;

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

    font-family: "Space Mono", monospace;

    font-size: 11px;

    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.contact-button:hover {

    border-color: var(--accent);

    color: var(--accent);
}


/* =========================================================
   12. PAGE HEADERS
========================================================= */

.page-header {

    width: 100%;

    max-width: var(--max-width);

    margin: 0 auto;

    padding: 120px 30px 90px;

    border-bottom: 1px solid var(--border);
}

.page-header h1 {

    margin: 25px 0 35px;

    font-size: clamp(65px, 9vw, 115px);

    line-height: 0.88;

    letter-spacing: -0.07em;
}

.page-header h1 span {

    color: var(--muted);
}

.page-header > p:last-child {

    max-width: 600px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.85;
}


/* =========================================================
   13. PROJECTS PAGE
========================================================= */

.project-collection {

    width: 100%;

    max-width: var(--max-width);

    margin: 0 auto;

    padding: 80px 30px 140px;
}

.project-row {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    min-height: 380px;
    border-top: 1px solid var(--border);
    transition: padding 0.25s ease;
}

.project-row:last-child {

    border-bottom: 1px solid var(--border);
}

.project-row:hover {

    padding-left: 8px;
}

.project-row-image {
    height: 320px;
    overflow: hidden;
    background: var(--surface-2);
}

.project-row-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.project-row:hover .project-row-image img {

    transform: scale(1.03);
}

.project-row-content {

    padding: 60px 50px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.project-row-number {

    margin-bottom: 30px;

    color: var(--muted-dark);

    font-family: "Space Mono", monospace;

    font-size: 11px;
}

.project-row-content h2 {

    margin: 14px 0 20px;

    font-size: 38px;

    line-height: 1.05;

    letter-spacing: -0.045em;
}

.project-row-content p {

    max-width: 530px;

    margin-bottom: 25px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.85;
}


/* Tags */

.tags {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 25px;
}

.tags span {

    padding: 5px 8px;

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

    color: #aab2b9;

    font-family: "Space Mono", monospace;

    font-size: 9px;
}

.project-row-content .card-link {

    margin-top: auto;
}


/* =========================================================
   14. EXPERIENCE PAGE
========================================================= */

.experience-collection {

    width: 100%;

    max-width: var(--max-width);

    margin: 0 auto;

    padding: 80px 30px 140px;
}

.experience-card {

    padding: 50px 0;

    border-top: 1px solid var(--border);
}

.experience-card:last-child {

    border-bottom: 1px solid var(--border);
}

.experience-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 40px;
}

.experience-card-body {

    display: grid;

    grid-template-columns: 35% 65%;

    gap: 60px;
}

.experience-image {

    height: 350px;

    overflow: hidden;

    background: #11171d;
}

.experience-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}

.experience-details h2 {

    margin-bottom: 7px;

    font-size: 38px;

    line-height: 1;

    letter-spacing: -0.045em;
}

.experience-details h3 {

    margin-bottom: 25px;

    color: var(--muted);

    font-size: 14px;

    font-weight: 500;
}

.experience-details > p {

    max-width: 650px;

    margin-bottom: 25px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.85;
}

.experience-details ul {

    margin: 0 0 25px 18px;

    color: var(--muted);

    font-size: 13px;

    line-height: 2;
}


/* =========================================================
   15. FOOTER
========================================================= */

footer {

    min-height: 80px;

    padding: 25px 30px;

    border-top: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    color: var(--muted-dark);

    font-family: "Space Mono", monospace;

    font-size: 9px;
}

footer div {

    display: flex;

    align-items: center;

    gap: 25px;
}

footer a:hover {

    color: var(--text);
}


/* =========================================================
   16. TABLET
========================================================= */

@media (max-width: 900px) {

    .hero {

        grid-template-columns: 1fr;

        min-height: auto;

        padding-top: 80px;

        padding-bottom: 100px;
    }

    .hero-graphic {

        justify-content: flex-start;
    }

    .featured-grid {

        grid-template-columns: 1fr;
    }

    .about-preview {

        grid-template-columns: 1fr;

        gap: 40px;
    }

    .experience-card-body {

        grid-template-columns: 1fr;

        gap: 35px;
    }

    .experience-image {

        height: 300px;
    }
}


/* =========================================================
   17. MOBILE
========================================================= */

@media (max-width: 600px) {

    /* Navigation */

    .nav-container {

        height: 68px;

        padding: 0 20px;
    }

    nav {

        display: none;
    }

    .nav-contact {

        display: none;
    }


    /* Hero */

    .hero {

        padding: 70px 20px 90px;

        gap: 60px;
    }

    .hero h1 {

        font-size: 52px;
    }

    .hero-description {

        font-size: 15px;
    }

    .blueprint {

        width: 100%;

        max-width: 420px;

        height: 330px;
    }

    .technical-circle {

        width: 175px;

        height: 175px;
    }


    /* Sections */

    .section {

        padding: 90px 20px;
    }

    .section-heading {

        display: block;

        margin-bottom: 45px;
    }

    .section-link {

        display: inline-block;

        margin-top: 25px;
    }


    /* Featured projects */

    .featured-image {

        height: 240px;
    }


    /* Experience */

    .experience-preview-item {

        grid-template-columns: 1fr 30px;

        gap: 10px;
    }

    .experience-date {

        grid-column: 1 / -1;

        margin-bottom: 5px;
    }

    .experience-info h3 {

        font-size: 18px;
    }


    /* About */

    .about-preview {

        padding: 90px 20px;
    }

    .about-preview h2 {

        font-size: 45px;
    }


    /* Contact */

    .contact-section {

        padding: 100px 20px;
    }

    .contact-section h2 {

        font-size: 55px;
    }


    /* Page headers */

    .page-header {

        padding: 80px 20px 60px;
    }

    .page-header h1 {

        font-size: 65px;
    }


    /* Project collection */

    .project-collection {

        padding: 50px 20px 90px;
    }

    .project-row {

        min-height: auto;
    }

    .project-row-image {

        min-height: 250px;

        height: 250px;
    }

    .project-row-content {

        padding: 40px 0;
    }

    .project-row-content h2 {

        font-size: 30px;
    }


    /* Experience collection */

    .experience-collection {

        padding: 50px 20px 90px;
    }

    .experience-card {

        padding: 40px 0;
    }

    .experience-card-header {

        align-items: flex-start;

        gap: 20px;
    }

    .experience-image {

        height: 250px;
    }

    .experience-details h2 {

        font-size: 30px;
    }


    /* Footer */

    footer {

        flex-direction: column;

        justify-content: center;

        text-align: center;

        padding: 30px 20px;
    }
}

/* PROJECTS PAGE — CARD GRID */

.project-collection {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.project-row {
    display: block;
    min-height: 0;
    border: 1px solid var(--border);
    padding: 0;
}

.project-row:hover {
    padding-left: 0;
    transform: translateY(-4px);
}

.project-row-image {
    height: 250px;
    min-height: 0;
    overflow: hidden;
}

.project-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-row-content {
    padding: 24px;
}

.project-row-number {
    margin-bottom: 15px;
}

/* Tablet: two cards per row */
@media (max-width: 900px) {
    .project-collection {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phone: one card per row */
@media (max-width: 600px) {
    .project-collection {
        grid-template-columns: 1fr;
    }

    .project-row-image {
        height: 250px;
    }

    .project-row-content {
        padding: 24px;
    }
}

/* ABOUT ME — HEADING ABOVE IMAGE AND TEXT */

.about-preview {
    display: block;
}

.about-heading {
    margin-bottom: 35px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-description p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

/* Mobile */
@media (max-width: 700px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-image {
        max-width: 100%;
    }
}

/* INDIVIDUAL PROJECT PAGE — INTRO + IMAGE */

.project-detail-hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 30px 70px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.project-detail-header {
    padding: 0;
}

.project-detail-header h1 {
    font-size: clamp(40px, 5vw, 65px);
    line-height: 1.05;
    margin: 20px 0 25px;
}

.project-detail-intro {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.project-detail-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--surface);
}

.project-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* MOBILE */
@media (max-width: 700px) {
    .project-detail-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 70px 20px 50px;
    }

    .project-detail-image {
        height: 300px;
    }
}

/* INDIVIDUAL PROJECT SECTIONS */

.project-detail-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 30px;

    border-top: 1px solid var(--border);
}

/* Text column */
.project-detail-content {
    min-width: 0;
}

.project-detail-content h2 {
    margin-bottom: 25px;
}

/* Image column */
.project-detail-section .project-detail-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: var(--surface);
}

.project-detail-section .project-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile layout */
@media (max-width: 700px) {
    .project-detail-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 20px;
    }

    .project-detail-section .project-detail-image {
        height: 280px;
    }
}

/* =========================================================
   FINAL IMAGE SETTINGS
   ========================================================= */

img { border: none !important; }

/* HOMEPAGE HERO — fills the box and may crop */
.hero-image { width: 100%; height: 100%; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover !important; display: block; border: none !important; }

/* PROJECT CARD IMAGES — show the entire picture */
.project-row-image { overflow: hidden; background: var(--surface-2); }
.project-row-image img { width: 100%; height: 100%; object-fit: contain !important; display: block; border: none !important; }
.project-row:hover .project-row-image img { transform: none; }

/* FEATURED PROJECT IMAGES — show the entire picture */
.featured-image { overflow: hidden; background: var(--surface-2); }
.featured-image img { width: 100%; height: 100%; object-fit: contain !important; display: block; border: none !important; }

/* INDIVIDUAL PROJECT IMAGES — show the entire picture */
.project-detail-image { overflow: hidden; background: transparent; }
.project-detail-image img { width: 100%; height: 100%; object-fit: contain !important; display: block; border: none !important; }

/* EXPERIENCE IMAGES — show the entire picture */
.experience-image { overflow: hidden; background: transparent; }
.experience-image img { width: 100%; height: 100%; object-fit: contain !important; display: block; border: none !important; }

/* ABOUT IMAGE — show the entire picture */
.about-image { overflow: hidden; }
.about-image img { width: 100%; height: auto; object-fit: contain !important; display: block; border: none !important; }

/* IMAGE FRAME — show the entire picture */
.image-frame { border: none !important; overflow: hidden; max-width: 100%; max-height: 100%; }
.image-frame img { display: block; width: 100%; height: 100%; object-fit: contain !important; border: none !important; }
