/* ============================================================
   style.css — Irton De Ascencao
   ============================================================ */

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

/* --- Base --- */
html {
    font-size: 16px; /* root — all rem values scale from here */
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #272b2f;
    color: #c8cdd3;
    overflow-x: hidden; /* prevent horizontal scroll at any zoom level */
}

/* --- Accent & Highlight --- */
.highlight {
    color: #e5383b;
}

.bold {
    font-weight: 800;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    gap: 2rem;
    padding: 0.875rem 2rem;
    background-color: rgba(23, 25, 28, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 3.25rem;
}

nav a {
    color: #c8cdd3;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

nav a:hover {
    color: #e5383b;
}

nav a i {
    font-size: 0.8rem;
}

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

   Grid: 2 equal side columns + 1 portrait column in the middle.
   Using proportion-based columns (2fr 1fr 2fr) means ALL three
   columns scale together when the viewport changes or the user
   zooms — no column ever grows/shrinks independently.
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 3.25rem;    /* matches nav height, rem so it scales */
    background-color: #272b2f;
    display: grid;
    grid-template-columns: 2fr 1.3fr 2fr; /* 40% · 24% · 40% — portrait slightly wider */
    grid-template-rows: 1fr;
    align-items: start;
    overflow: hidden;
}

/* --- Background image (decorative, right side) --- */
.hero-bg-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.25;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
}

/* ============================================================
   LEFT COLUMN  (grid-column: 1)
   ============================================================ */
.hero-left-col {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    /* clamp: shrinks on small viewports, comfortable on large */
    padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 1.5rem) 3rem clamp(1.5rem, 3vw, 3rem);
    gap: 2rem;
    z-index: 2;
    align-items: flex-start;
    width: 100%;
}

/* --- Bold name --- */
.hero-name {
    padding: 0;
}

.hero-name h1 {
    /* scales smoothly from ~1.8rem on very small to 3.5rem at max */
    font-size: clamp(1.8rem, 3.5vw, 3.5rem);
    font-weight: 700;
    color: #c8cdd3;
    line-height: 1.05;
    letter-spacing: 0.04em;
}

.hero-title {
    margin-top: 0.6rem;
    font-size: clamp(0.7rem, 1vw, 1rem);
    font-weight: 800;
    color: #e5383b;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Left glass card --- */
.glass-left {
    width: 80%;
}

/* --- Projects Block --- */
.projects-block {
    width: 100%;
    max-width: 22rem;          /* rem → scales with zoom */
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    z-index: 2;
}

.projects-icon-box {
    flex-shrink: 0;
    width: clamp(5rem, 8vw, 9.375rem);   /* 80px → 150px based on viewport */
    height: clamp(5rem, 8vw, 9.375rem);
    background: #111213;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8cdd3;
    text-decoration: none;
    box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.5);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.projects-icon-box img {
    width: 55%;
    height: 55%;
    object-fit: contain;
}

.projects-icon-box:hover {
    background: #1a1b1c;
    box-shadow: 0 0.375rem 1.75rem rgba(229, 56, 59, 0.25);
    color: #e5383b;
}

.projects-block-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.3rem;
    flex: 1;
}

.projects-btn-label {
    font-size: clamp(0.85rem, 1.2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #ffffff;
}

.projects-btn-sub {
    font-size: clamp(0.75rem, 1vw, 1rem);
    font-weight: 700;
    font-style: italic;
    color: #7a8390;
    margin-top: 0.3rem;
}

.projects-btn-arrow {
    width: clamp(2.5rem, 4vw, 4.6875rem);   /* 40px → 75px */
    height: clamp(2.5rem, 4vw, 4.6875rem);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5383b;
    margin-top: 0.4rem;
}

.projects-btn-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================================
   RIGHT COLUMN  (grid-column: 3)
   ============================================================ */
.hero-right-col {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: clamp(4rem, 6vw, 5rem) clamp(1rem, 2vw, 2rem) 3rem clamp(0.5rem, 1vw, 1rem);
    gap: 2rem;
    z-index: 2;
}

/* Vertical quote — reads bottom to top */
.hero-quote {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: clamp(0.6rem, 0.8vw, 1rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    align-self: flex-end;
}

/* Skills list */
.hero-skills {
    text-align: right;
}

.hero-skills-heading {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #e5383b;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.hero-skills ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hero-skills ul li {
    font-size: clamp(0.75rem, 1.1vw, 1.2rem);
    font-weight: 300;
    color: #b5b7bb;
    letter-spacing: 0.05em;
}

/* --- Right glass card --- */
.glass-right {
    width: 90%;
    margin-top: auto;
    align-self: flex-end;
}

/* ============================================================
   PORTRAIT  (grid-column: 2)

   Sizing by WIDTH (not height) so it always fills its proportional
   column. As the user zooms or the viewport changes, the column
   width scales and the portrait scales with it automatically.
   ============================================================ */
.hero-portrait {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    align-self: end;
    overflow: hidden;
}

.hero-portrait img {
    width: 100%;          /* fills the proportional column */
    height: auto;         /* aspect ratio preserved */
    max-height: 96vh;     /* safety: never taller than the viewport */
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 0.5rem 2rem rgba(0,0,0,0.6));
}

/* ============================================================
   GLASS CARDS
   ============================================================ */
.glass-card {
    background: rgba(22, 22, 22, 0.575);
    border: 1px solid rgba(20, 18, 18, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: clamp(1rem, 1.5vw, 1.8rem);
    z-index: 2;
}

.glass-card h3 {
    font-size: clamp(0.7rem, 1vw, 1.25rem);
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e5383b;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(229, 56, 59, 0.2);
    padding-bottom: 0.6rem;
}

/* --- Stats inside Technical Summary --- */
.stats {
    margin-bottom: 1.2rem;
}

.stats p {
    font-size: clamp(0.7rem, 0.9vw, 1rem);
    font-weight: 300;
    color: #c8cdd3;
    line-height: 2;
}

.summary-text {
    font-size: clamp(0.6rem, 0.75vw, 0.8rem);
    font-weight: 300;
    line-height: 1.8;
    color: #7a8390;
    margin-bottom: 1.5rem;
}

/* --- Journey list --- */
.journey-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.journey-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.journey-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.journey-role {
    font-size: clamp(0.6rem, 0.8vw, 0.85rem);
    font-weight: 400;
    color: #c8cdd3;
    line-height: 1.5;
}

.journey-meta {
    font-size: clamp(0.55rem, 0.7vw, 0.75rem);
    font-weight: 300;
    color: #7a8390;
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
}

/* ============================================================
   PRODUCT EXPOSURE
   ============================================================ */
.product-exposure {
    width: 90%;
    max-width: 22rem;
}

.product-exposure h3 {
    /* inherits font-size from .glass-card h3 — same as Technical Summary */
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
}

/* 5 columns × 4 rows */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(0.12rem, 0.3vw, 0.3rem);
}

.product-item {
    aspect-ratio: 1;
    background: transparent;
    border: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(2rem, 4vw, 5rem);
    max-width: min(75rem, 90vw);
    margin: clamp(2rem, 4vw, 4rem) auto;
    padding: 0 clamp(1rem, 3vw, 3rem);
}

/* Solid black rounded card behind the text */
.about-card {
    flex: 1;
    background: #0d0d0d;
    border-radius: 1rem;
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
}

.about-text {
    color: #b0b8c1;
    font-size: clamp(0.8rem, 1vw, 1rem);
    line-height: 2;
    font-weight: 400;
}

.about-text h2 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    color: #c8cdd3;
    margin-bottom: clamp(0.8rem, 1.2vw, 1.2rem);
    letter-spacing: 0.04em;
}

.about-text p {
    margin-bottom: 0.8rem;
}

/* Right column: 4 placeholder images evenly spaced */
.about-images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.about-img-placeholder {
    background: #1a1b1c;
    border-radius: 0.75rem;
    border: 1px dashed rgba(200, 205, 211, 0.15);
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
}

.about-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0.75rem;
    display: block;
}

/* ============================================================
   PROFESSIONAL SUMMARY
   ============================================================ */
.intro {
    max-width: min(62.5rem, 90vw);
    margin: clamp(1rem, 2vw, 2rem) auto clamp(3rem, 6vw, 6rem);
    padding: 0 clamp(1rem, 3vw, 3rem);
    font-size: clamp(0.8rem, 1vw, 1rem);
    line-height: 2;
    font-weight: 300;
    color: #b0b8c1;
}

.section-heading {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    color: #c8cdd3;
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
    letter-spacing: 0.04em;
}

/* --- Skills Grid --- */
.skills-grid {
    margin-top: clamp(1rem, 2vw, 2rem);
    text-align: left;
}

.skill-item {
    padding: 0.5rem 0;
    font-size: clamp(0.72rem, 0.9vw, 0.9rem);
    font-weight: 300;
    color: #b0b8c1;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: baseline;
    gap: clamp(0.5rem, 1vw, 1rem);
}

.skill-item:last-child {
    border-bottom: none;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   At high zoom levels the 3-col hero gets cramped.
   Below ~900px (happens around 150%+ zoom on 1440p, or just
   on smaller screens) collapse to a single-column scroll layout.
   ============================================================ */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding-top: 3.25rem;
    }

    .hero-bg-image {
        width: 100%;
        opacity: 0.12;
    }

    .hero-left-col {
        grid-column: 1;
        grid-row: 1;
        padding: 2rem 1.5rem;
    }

    .hero-portrait {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
        max-height: 50vh;
        overflow: hidden;
    }

    .hero-portrait img {
        width: 60%;
        max-height: 50vh;
    }

    .hero-right-col {
        grid-column: 1;
        grid-row: 3;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }

    .hero-quote {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.8rem;
    }

    .hero-skills {
        text-align: left;
    }

    .glass-right {
        width: 100%;
    }

    /* Let product card fill the column on single-column layout */
    .product-exposure {
        width: 100%;
        max-width: 100%;
    }

    /* Stack about section vertically on narrow/zoomed viewports */
    .about {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1.5rem;
        margin: 2rem auto;
    }

    .about-images {
        grid-template-columns: 1fr 1fr;
    }

    .about-text {
        font-size: 0.875rem;
    }

    .about-text h2,
    .section-heading {
        font-size: 1.4rem;
    }

    .intro {
        padding: 0 1.5rem;
        font-size: 0.875rem;
    }

    .skill-item {
        font-size: 0.8rem;
    }

    /* Projects page responsive */
    .projects-page {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem 4rem;
    }

    /* HomeNAS detail responsive */
    .version-block {
        flex-direction: column;
        gap: 0.75rem;
    }

    .version-marker {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .version-marker::after {
        display: none;
    }
}

/* ============================================================
   PAGE HERO  (shared across inner pages)
   ============================================================ */
.page-hero {
    width: 100%;
    padding-top: 3.25rem;   /* clears the fixed nav */
    background-color: #1a1b1d;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-hero-inner {
    max-width: min(72rem, 90vw);
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 3vw, 3rem) clamp(2rem, 3.5vw, 3.5rem);
}

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #7a8390;
    text-decoration: none;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    transition: color 0.2s ease;
}

.page-back:hover {
    color: #e5383b;
}

.page-hero-label {
    font-size: clamp(0.65rem, 0.85vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e5383b;
    margin-bottom: 0.6rem;
}

.page-hero-title {
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 800;
    color: #c8cdd3;
    line-height: 1.05;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.page-hero-sub {
    font-size: clamp(0.8rem, 1.1vw, 1rem);
    font-weight: 300;
    color: #7a8390;
    line-height: 1.7;
    max-width: 44rem;
    margin-bottom: 1.5rem;
}

.page-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================================
   PROJECT CHIPS  (shared)
   ============================================================ */
.project-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: clamp(0.65rem, 0.8vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #c8cdd3;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.375rem;
    padding: 0.25rem 0.65rem;
}

/* ============================================================
   PROJECTS LISTING PAGE
   ============================================================ */
.projects-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2vw, 2rem);
    max-width: min(72rem, 90vw);
    margin: clamp(2.5rem, 4vw, 4rem) auto clamp(4rem, 6vw, 6rem);
    padding: 0 clamp(1rem, 3vw, 3rem);
}

.project-card {
    background: #0d0d0d;
    border-radius: 1rem;
    padding: clamp(1.5rem, 2vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    border-color: rgba(229, 56, 59, 0.25);
    box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.4);
}

.project-card--coming-soon {
    opacity: 0.45;
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-icon-wrap {
    width: 3rem;
    height: 3rem;
    background: #1a1b1c;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.project-icon-wrap img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

.project-icon-wrap--dim {
    color: #7a8390;
    font-size: 1.2rem;
}

.project-tag {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e5383b;
    margin-bottom: 0.2rem;
}

.project-title {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 700;
    color: #c8cdd3;
    letter-spacing: 0.03em;
}

.project-desc {
    font-size: clamp(0.75rem, 0.9vw, 0.875rem);
    font-weight: 300;
    color: #7a8390;
    line-height: 1.8;
    flex: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 1.5rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c8cdd3;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.5rem;
    padding: 0.55rem 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    align-self: flex-start;
}

.project-btn:hover {
    background: rgba(229,56,59,0.12);
    border-color: rgba(229,56,59,0.4);
    color: #e5383b;
}

.project-btn--disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.btn-arrow {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    filter: invert(1);
    opacity: 0.7;
}

/* ============================================================
   PROJECT DETAIL PAGE  (homeNas.html and future pages)
   ============================================================ */
.project-detail {
    max-width: min(56rem, 90vw);
    margin: clamp(2.5rem, 4vw, 4rem) auto clamp(5rem, 8vw, 8rem);
    padding: 0 clamp(1rem, 3vw, 3rem);
}

/* --- Version Timeline --- */
.version-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.version-block {
    display: flex;
    gap: 2rem;
    position: relative;
}

/* Vertical line connecting dots */
.version-block:not(:last-child) .version-marker::after {
    content: '';
    position: absolute;
    top: 2.25rem;
    left: 0.625rem;
    width: 1px;
    bottom: 0;
    background: rgba(255,255,255,0.08);
    transform: translateX(-50%);
}

.version-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    width: 3.5rem;
    position: relative;
    padding-top: 0.25rem;
}

.version-dot {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 50%;
    background: #3a3f45;
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.version-dot--current {
    background: #e5383b;
    border-color: rgba(229,56,59,0.5);
    box-shadow: 0 0 0.75rem rgba(229,56,59,0.4);
}

.version-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #7a8390;
    text-transform: uppercase;
}

.version-label--current {
    color: #e5383b;
}

.version-card {
    flex: 1;
    background: #0d0d0d;
    border-radius: 1rem;
    padding: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.version-card--current {
    border-color: rgba(229,56,59,0.2);
    box-shadow: 0 0.25rem 2rem rgba(229,56,59,0.08);
}

.version-card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e5383b;
    background: rgba(229,56,59,0.12);
    border: 1px solid rgba(229,56,59,0.25);
    border-radius: 0.375rem;
    padding: 0.2rem 0.55rem;
}

.version-title {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 700;
    color: #c8cdd3;
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
}

.version-subtitle {
    font-size: clamp(0.65rem, 0.85vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a8390;
    margin-bottom: 1.2rem;
}

.version-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.version-body p {
    font-size: clamp(0.8rem, 0.95vw, 0.9rem);
    font-weight: 300;
    color: #b0b8c1;
    line-height: 1.9;
}

.version-closing {
    font-weight: 600 !important;
    color: #c8cdd3 !important;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 0.9rem;
    margin-top: 0.4rem;
}

.version-aside {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(229,56,59,0.07);
    border-left: 2px solid #e5383b;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.75rem 1rem;
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    font-weight: 400;
    color: #b0b8c1;
    line-height: 1.6;
}

.version-aside i {
    color: #e5383b;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.inline-link {
    color: #e5383b;
    text-decoration: none;
    font-weight: 600;
}

.inline-link:hover {
    text-decoration: underline;
}

.version-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
 

/* ============================================================
   DEVOPS PROJECT PAGE
   Add these styles to the bottom of style.css
   ============================================================ */

/* --- Explainer block --- */
.devops-explainer {
    background: #0d0d0d;
    border-radius: 1rem;
    padding: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: clamp(2rem, 3vw, 3rem);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.devops-explainer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.devops-explainer-header i {
    color: #e5383b;
    font-size: 1rem;
}

.devops-explainer-header h2 {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 700;
    color: #c8cdd3;
    letter-spacing: 0.03em;
}

.devops-explainer p {
    font-size: clamp(0.78rem, 0.95vw, 0.9rem);
    font-weight: 300;
    color: #b0b8c1;
    line-height: 1.9;
}

/* --- Side-by-side comparison --- */
.devops-compare {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    margin-bottom: clamp(2rem, 3vw, 3rem);
}

.devops-version-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.devops-version-label {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    align-self: flex-start;
}

.devops-version-label--old {
    background: rgba(255,255,255,0.06);
    color: #7a8390;
    border: 1px solid rgba(255,255,255,0.1);
}

.devops-version-label--new {
    background: rgba(229,56,59,0.1);
    color: #e5383b;
    border: 1px solid rgba(229,56,59,0.25);
}

/* Fake browser frame */
.devops-browser-frame {
    border-radius: 0.625rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.devops-browser-frame--new {
    border-color: rgba(229,56,59,0.2);
    box-shadow: 0 0.25rem 1.5rem rgba(229,56,59,0.08);
}

.devops-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: #1a1b1d;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.devops-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.devops-url-bar {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 0.25rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.55rem;
    color: #7a8390;
    letter-spacing: 0.02em;
    margin-left: 0.25rem;
}

.devops-browser-content {
    padding: 1rem;
    min-height: 7rem;
}

.devops-browser-content--old {
    background: #ffffff;
    color: #000000;
}

.devops-browser-content--new {
    background: #272b2f;
}

.devops-version-desc {
    font-size: clamp(0.65rem, 0.8vw, 0.75rem);
    font-weight: 400;
    color: #7a8390;
    text-align: center;
}

.devops-arrow-divider {
    font-size: 1.5rem;
    color: #e5383b;
    flex-shrink: 0;
    opacity: 0.6;
}

/* --- Controls --- */
.devops-controls {
    background: #0d0d0d;
    border-radius: 1rem;
    padding: clamp(1.5rem, 2vw, 2rem);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.devops-controls-title {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 700;
    color: #c8cdd3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.devops-controls-sub {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    font-weight: 300;
    color: #7a8390;
    line-height: 1.7;
}

.devops-btn-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.devops-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0.5rem;
    padding: 0.65rem 1.4rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.devops-btn:active {
    transform: scale(0.97);
}

.devops-btn--update {
    background: #e5383b;
    color: #ffffff;
    border-color: #e5383b;
}

.devops-btn--update:hover {
    background: #c42f32;
    box-shadow: 0 0.25rem 1rem rgba(229,56,59,0.35);
}

.devops-btn--rollback {
    background: transparent;
    color: #c8cdd3;
    border-color: rgba(255,255,255,0.15);
}

.devops-btn--rollback:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
}

/* --- Toast notification --- */
.devops-toast {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.5rem;
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    font-weight: 400;
    line-height: 1.5;
}

.devops-toast--visible {
    display: flex;
}

.devops-toast--update {
    background: rgba(229,56,59,0.1);
    border: 1px solid rgba(229,56,59,0.25);
    color: #e5383b;
}

.devops-toast--rollback {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: #c8cdd3;
}

/* Responsive */
@media (max-width: 900px) {
    .devops-compare {
        flex-direction: column;
        gap: 1.5rem;
    }

    .devops-arrow-divider {
        transform: rotate(90deg);
    }
}