:root {
    --bg: #0b1020;
    --panel: #121a2f;
    --text: #f5f7fb;
    --muted: #aab3c5;
    --accent: #5ea4ff;
    --accent-2: #8bd3ff;
    --border: rgba(255, 255, 255, 0.1);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(94, 164, 255, 0.12), transparent 30%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    max-width: var(--max-width);
    margin: 0 auto;
    padding: 22px 30px;

    background: rgba(11, 16, 32, 0.8);
    backdrop-filter: blur(12px);
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--muted);
    transition: 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

main,
footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

section {
    padding: 100px 0;
}

.hero {
    min-height: 82vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 900px;
}

.eyebrow,
.section-label {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.95;
    margin-bottom: 28px;
    letter-spacing: -0.04em;
}

.hero h2 {
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    line-height: 1.15;
    font-weight: 600;
    max-width: 900px;
    margin-bottom: 30px;
}

.hero h2 span {
    color: var(--accent-2);
}

.hero-description {
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 760px;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons a {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: 0.2s ease;
}

.hero-buttons a:first-child {
    background: var(--accent);
    color: #08111f;
    font-weight: 700;
    border-color: transparent;
}

.hero-buttons a:hover {
    transform: translateY(-2px);
}

/* ========================================
   HOMEPAGE HERO
======================================== */

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 70px;

    align-items: center;

    width: 100%;
}

.hero-text {
    min-width: 0;
}

.hero-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo img {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 5;

    object-fit: cover;
    object-position: center;

    border-radius: 22px;

    border: 1px solid var(--border);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.35);
}

section > h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

#about > p:last-child,
#contact > p:not(.section-label) {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.08rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 40px;
}

.project-card {
    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.02)
    );

    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    min-height: 260px;

    transition: 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(94, 164, 255, 0.45);
}

.project-card > p:first-child {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.project-card p {
    color: var(--muted);
}

.project-card span {
    display: inline-block;
    margin-top: 24px;
    font-weight: 700;
}

.experience-item {
    padding: 26px 0;
    border-top: 1px solid var(--border);
}

.experience-item:last-child {
    border-bottom: 1px solid var(--border);
}

.experience-item h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.experience-item p {
    color: var(--muted);
    max-width: 800px;
}

#skills > p:last-child {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 2;
    max-width: 900px;
}

#contact a {
    display: inline-block;
    margin-top: 24px;
    color: var(--accent-2);
    font-size: 1.1rem;
}

footer {
    padding-top: 30px;
    padding-bottom: 40px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

.projects-intro {
    color: var(--muted);
    max-width: 700px;
    font-size: 1.08rem;
    margin-bottom: 45px;
}


/* Featured Project */

.featured-project {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;

    padding: 40px;
    margin-bottom: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(94, 164, 255, 0.10),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid rgba(94, 164, 255, 0.25);
    border-radius: 22px;
}

.featured-project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-project h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.featured-project-content > p:not(.project-category) {
    color: var(--muted);
    font-size: 1.05rem;
}


/* Temporary image area */

.project-placeholder {
    min-height: 330px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(94,164,255,0.15),
            rgba(139,211,255,0.04)
        );

    border: 1px dashed rgba(255,255,255,0.20);
    border-radius: 16px;

    color: var(--muted);
}


/* Categories */

.project-category {
    color: var(--accent) !important;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    margin-bottom: 16px;
}


/* Project tags */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 22px;
}

.project-tags span {
    padding: 6px 10px;

    border: 1px solid var(--border);
    border-radius: 100px;

    color: var(--muted);

    font-size: 0.78rem;
}


/* Project links */

.project-link {
    display: inline-block;

    margin-top: 25px;

    color: var(--accent-2);
    font-weight: 700;

    transition: 0.2s ease;
}

.project-link:hover {
    transform: translateX(5px);
}

@media (max-width: 800px) {
    nav {
        padding: 18px 20px;
    }

    main,
    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-links {
        gap: 14px;
        font-size: 0.9rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 72px 0;
    }

    .hero {
        min-height: 76vh;
    }
    .featured-project {
    grid-template-columns: 1fr;
    padding: 25px;
}

.project-placeholder {
    min-height: 240px;
}
.featured-project-image {
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    min-height: 330px;

    object-fit: contain;

    transition: transform 0.4s ease;
}

.featured-project:hover .featured-project-image img {
    transform: scale(1.03);
}
/* ========================================
   PROJECT CASE STUDY
======================================== */

.project-page main {
    max-width: var(--max-width);
    margin: 0 auto;
}

.project-hero {
    padding-top: 90px;
    padding-bottom: 60px;
}

.back-link {
    display: inline-block;
    color: var(--muted);
    margin-bottom: 45px;
    transition: 0.2s ease;
}

.back-link:hover {
    color: var(--accent-2);
    transform: translateX(-4px);
}

.project-hero h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    max-width: 1050px;
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin-bottom: 30px;
}

.project-subtitle {
    max-width: 820px;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1.7;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    margin-top: 55px;
    padding-top: 30px;

    border-top: 1px solid var(--border);
}

.project-meta div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-meta span {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-meta strong {
    font-size: 0.95rem;
}

.project-visual {
    padding-top: 20px;
    padding-bottom: 110px;
}

.project-visual img {
    display: block;
    width: 100%;
    max-height: 650px;

    object-fit: contain;

    padding: 30px;

    background: white;
    border-radius: 22px;
}

.case-study-section {
    border-top: 1px solid var(--border);
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.case-study-grid h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
}

.case-study-text {
    color: var(--muted);
    font-size: 1.08rem;
}

.case-study-text p + p {
    margin-top: 22px;
}

.wide-text {
    max-width: 850px;
    color: var(--muted);
    font-size: 1.08rem;
    margin-bottom: 30px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;

    margin-top: 40px;
}

.comparison-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(255,255,255,0.025);
}

.comparison-card h3 {
    font-size: 1.7rem;
    margin-bottom: 14px;
}

.comparison-card p {
    color: var(--muted);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    margin-top: 45px;
}

.process-step {
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: 16px;
}

.process-step > span {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.process-step h3 {
    margin: 12px 0 10px;
}

.process-step p {
    color: var(--muted);
    font-size: 0.95rem;
}

.testing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;

    margin-top: 45px;
}

.testing-grid > div {
    padding: 28px;

    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.testing-grid h3 {
    margin-bottom: 12px;
}

.testing-grid p {
    color: var(--muted);
}

.results-section h2 {
    max-width: 900px;
}

.result-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    margin: 50px 0;
}

.result-stat {
    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(94,164,255,0.13),
            rgba(255,255,255,0.025)
        );

    border: 1px solid rgba(94,164,255,0.25);
    border-radius: 18px;
}

.result-stat span {
    display: block;

    color: var(--accent-2);

    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;

    margin-bottom: 10px;
}

.result-stat p {
    color: var(--muted);
}

.result-summary {
    max-width: 850px;
}

.conclusion-section {
    text-align: center;
}

.conclusion-section .section-label {
    text-align: left;
}

.conclusion-text {
    max-width: 900px;

    margin: 0 auto 25px;

    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.5;
}

.large-tags {
    max-width: 900px;
}

.large-tags span {
    font-size: 0.9rem;
    padding: 8px 13px;
}

.next-project {
    border-top: 1px solid var(--border);
    text-align: center;
}

.next-project p {
    color: var(--muted);
    margin-bottom: 10px;
}

.next-project a {
    color: var(--accent-2);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
}


/* ========================================
   HOMEPAGE PROJECT CARD IMAGES
======================================== */

.project-card {
    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.02)
    );

    border: 1px solid var(--border);
    border-radius: 18px;

    padding: 30px;
    min-height: 260px;

    min-width: 0;
    overflow: hidden;

    transition: 0.25s ease;
}


.project-card-image {
    width: 100%;
    height: 230px;
    margin-bottom: 25px;

    background: white;
    border-radius: 12px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-image img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}


/* ========================================
   PROJECT PAGE MOBILE
======================================== */

@media (max-width: 800px) {

    .project-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .testing-grid {
        grid-template-columns: 1fr;
    }

    .result-stat-grid {
        grid-template-columns: 1fr;
    }

}
}
/* PTCA card image fix */

.ptca-card-image {
    width: 100%;
    height: 230px;

    overflow: hidden;
    background: white;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}


.ptca-card-image img {
    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;

    display: block;
}
.project-grid {
    min-width: 0;
}

.project-card {
    min-width: 0;
    max-width: 100%;
}

.project-card-image {
    max-width: 100%;
}

/* ========================================
   CASE STUDY TECHNICAL IMAGES
======================================== */

.case-study-image {
    margin: 40px 0;
}

.case-study-image img {
    display: block;

    width: 100%;
    max-height: 700px;

    object-fit: contain;

    background: white;
    border-radius: 18px;
    padding: 16px;
}

.case-study-image-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;

    margin: 40px 0;
}

.case-study-image-grid > div {
    min-width: 0;
}

.case-study-image-grid img {
    display: block;

    width: 100%;
    height: 360px;

    object-fit: contain;

    background: white;
    border-radius: 16px;
    padding: 14px;
}

.image-caption {
    margin-top: 10px;

    color: var(--muted);

    font-size: 0.88rem;
    line-height: 1.5;

    text-align: center;
}

@media (max-width: 800px) {

    .case-study-image-grid {
        grid-template-columns: 1fr;
    }

    .case-study-image-grid img {
        height: auto;
        max-height: 450px;
    }

}


/* ========================================
   ACHIEVEMENTS / CERTIFICATIONS
======================================== */

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 40px;
}

.achievement-card {
    padding: 28px;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02)
    );

    border: 1px solid var(--border);
    border-radius: 18px;

    transition: 0.25s ease;
}

.achievement-card:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 164, 255, 0.4);
}

.achievement-type {
    color: var(--accent);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;

    margin-bottom: 12px;
}

.achievement-card h3 {
    font-size: 1.35rem;
    margin-bottom: 5px;
}

.achievement-meta {
    color: var(--accent-2);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.achievement-card > p:last-child {
    color: var(--muted);
}


/* ========================================
   NBC FEATURE BUTTON
======================================== */

a.achievement-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 22px;
    padding: 12px 20px;

    background: #4f8cff;
    color: #ffffff;

    border: 2px solid #74a5ff;
    border-radius: 10px;

    font-size: 0.95rem;
    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 0 18px rgba(79, 140, 255, 0.35);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

a.achievement-link:hover {
    background: #6ca0ff;
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 0 28px rgba(79, 140, 255, 0.65);

    text-decoration: none;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 800px) {

    .achievement-grid {
        grid-template-columns: 1fr;
    }

}
/* ========================================
   PROJECT DOCUMENT / POSTER
======================================== */

.project-document {
    margin-top: 45px;
    padding: 30px;

    background: linear-gradient(
        145deg,
        rgba(79, 140, 255, 0.10),
        rgba(255, 255, 255, 0.03)
    );

    border: 1px solid rgba(79, 140, 255, 0.35);
    border-radius: 18px;
}

.project-document-label {
    margin-bottom: 10px;

    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.project-document h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.project-document > p:not(.project-document-label) {
    max-width: 700px;
    color: var(--muted);
    line-height: 1.7;
}

.document-button {
    display: inline-flex;
    align-items: center;

    margin-top: 20px;
    padding: 12px 20px;

    background: #4f8cff;
    color: #ffffff;

    border: 1px solid #74a5ff;
    border-radius: 10px;

    font-weight: 700;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.document-button:hover {
    transform: translateY(-3px);

    background: #6ca0ff;
    color: #ffffff;

    box-shadow: 0 10px 30px rgba(79, 140, 255, 0.30);

    text-decoration: none;
}
/* ========================================
   DARK BLUE THEME RESTORE
======================================== */

:root {
    --bg: #07111f;
    --bg-soft: #0c1728;
    --surface: #101c2e;
    --surface-2: #14243a;
    --text: #f5f7fb;
    --muted: #a8b6c8;
    --accent: #5ea4ff;
    --accent-2: #7fc8ff;
    --border: rgba(255, 255, 255, 0.10);
}

/* Main page */
html,
body {
    background: #07111f;
    color: #f5f7fb;
}

body {
    background:
        radial-gradient(circle at top right, rgba(94, 164, 255, 0.10), transparent 35%),
        #07111f;
}

/* Navigation */
header,
nav {
    background: rgba(7, 17, 31, 0.95);
    color: #f5f7fb;
    border-color: rgba(255, 255, 255, 0.08);
}

nav a,
header a {
    color: #f5f7fb;
}

/* Main sections */
main,
section {
    color: #f5f7fb;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff;
}

p {
    color: #a8b6c8;
}

.eyebrow,
.section-label {
    color: #5ea4ff;
}

/* Cards */
.project-card,
.achievement-card,
.process-step,
.comparison-card,
.result-stat,
.project-document {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.055),
        rgba(255, 255, 255, 0.025)
    );
    border-color: rgba(255, 255, 255, 0.10);
    color: #f5f7fb;
}

/* Links */
a {
    color: #7fc8ff;
}

.project-link {
    color: #7fc8ff;
}

/* Buttons */
.primary-button,
.document-button {
    background: #4f8cff;
    color: white;
}

.secondary-button {
    color: #f5f7fb;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Footer */
footer {
    background: #07111f;
    color: #a8b6c8;
    border-color: rgba(255, 255, 255, 0.10);
}