
/* =================================
   CSY Portfolio - Project Detail
   Jellyfish Detection
================================= */

/* 1. Global Settings */

body {
    margin: 0;
    background: #101827;
    color: #F5F2EA;
    font-family: Arial, "Microsoft JhengHei", sans-serif;
}

.project-detail-hero,
.project-detail-section {
    box-sizing: border-box;
}


/* 2. Project Header */

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 8%;

    border-bottom: 1px solid #344056;
}

.project-header .logo {
    color: #FFFFFF;
    font-size: 30px;
    font-weight: 900;
    text-decoration: none;
}

.project-header > a:last-child {
    color: #F5F2EA;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;

    transition: 0.3s;
}

.project-header > a:last-child:hover {
    color: #FF8A55;
}


/* 3. Project Hero */

.project-detail-hero {
    padding: 100px 8% 80px;
}

.project-detail-hero > p:first-child {
    color: #FF8A55;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: bold;
}

.project-detail-hero h1 {
    font-size: clamp(55px, 9vw, 110px);
    line-height: 0.95;
    letter-spacing: -5px;

    margin: 35px 0;
}

.project-detail-hero > p:nth-of-type(2) {
    color: #AAB5C5;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 45px;
}

.project-detail-hero img {
    display: block;

    width: 100%;
    max-width: 850px;
    max-height: 520px;

    object-fit: contain;
    object-position: center;

    background: #172B48;

    margin: 0 auto;
}


/* 4. Project Content Sections */

.project-detail-section {
    padding: 75px 8%;

    border-top: 1px solid #344056;
}

.project-detail-section > p:first-child {
    color: #FF8A55;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: bold;
}

.project-detail-section h2 {
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -1px;

    margin: 25px 0;
}

.project-detail-section > p:not(:first-child) {
    color: #AAB5C5;
    font-size: 16px;
    line-height: 2;

    max-width: 850px;
}


/* 5. Technology Tags */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 30px;
}

.project-tags span {
    border: 1px solid #536075;
    border-radius: 30px;

    padding: 12px 22px;

    color: #F5F2EA;
    font-size: 13px;

    transition: 0.3s;
}

.project-tags span:hover {
    background: #477BFF;
    border-color: #477BFF;
}


/* 6. Detection Results */

.project-detail-section img {
    display: block;

    width: 100%;
    max-width: 700px;

    height: auto;

    margin: 35px 0;

    background: #172B48;
}


/* 7. Project Footer */

.project-detail-footer {
    padding: 45px 8%;

    background: #172B48;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.project-detail-footer a {
    color: #FF8A55;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;

    transition: 0.3s;
}

.project-detail-footer a:hover {
    color: #FFFFFF;
}

.project-detail-footer p {
    color: #AAB5C5;
    font-size: 11px;
}


/* 8. Responsive Design */

@media (max-width: 768px) {

    .project-header {
        padding: 20px 6%;
    }

    .project-detail-hero {
        padding: 75px 6% 55px;
    }

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

    .project-detail-section {
        padding: 55px 6%;
    }

    .project-detail-footer {
        padding: 35px 6%;

        flex-direction: column;
        align-items: flex-start;
    }

}

/* =========================
   Project Overview
========================= */

.project-overview-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 60px;

    margin-top: 40px;
}

.overview-main h3,
.objective-content h3 {
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.2;
    color: #477BFF;
}

.overview-main p,
.objective-content p {
    color: #AAB5C5;
    font-size: 16px;
    line-height: 2;
    max-width: 650px;
}

.overview-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-content: start;
}

.info-item {
    border-top: 1px solid #536075;
    padding-top: 18px;
}

.info-item span {
    display: block;
    color: #FF8A55;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.info-item strong {
    color: #F5F2EA;
    font-size: 15px;
}


/* =========================
   Project Objective
========================= */

.objective-content {
    margin-top: 35px;
    max-width: 850px;
}

.objective-content h3 {
    margin-bottom: 30px;
}


/* Responsive */

@media (max-width: 768px) {

    .project-overview-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .overview-info {
        grid-template-columns: 1fr 1fr;
    }

}

/* =========================
   Detection Classes
========================= */

.detection-classes h2 span {
    color: #477BFF;
}

.classes-intro {
    max-width: 700px;
    color: #AAB5C5;
    line-height: 2;
    margin-top: 25px;
}

.classes-grid {
    display: grid;

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

    gap: 25px;

    margin-top: 50px;
}

.class-card {
    background: #172B48;
    overflow: hidden;

    transition: transform 0.3s ease,
                background 0.3s ease;
}

.class-card:hover {
    transform: translateY(-6px);
    background: #203B60;
}

.class-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0B1423;
}

.class-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s ease;
}

.class-card:hover .class-image img {
    transform: scale(1.05);
}

.class-info {
    padding: 25px;
}

.class-info span {
    color: #FF8A55;
    font-size: 11px;
    letter-spacing: 2px;
}

.class-info h3 {
    color: #F5F2EA;
    font-size: 28px;
    margin: 12px 0 5px;
}

.class-info p {
    color: #AAB5C5;
    font-size: 13px;
    margin: 0;
}


/* Responsive */

@media (max-width: 768px) {

    .classes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .class-info h3 {
        font-size: 24px;
    }

}

/* =========================
   Development Process
========================= */

.development-process h2 span {
    color: #477BFF;
}

.process-intro {
    max-width: 750px;

    color: #AAB5C5;
    font-size: 15px;
    line-height: 2;

    margin-top: 25px;
}


/* Process List */

.process-list {
    margin-top: 55px;

    display: flex;
    flex-direction: column;
}


/* Individual Process Card */

.process-card {
    display: grid;

    grid-template-columns: 90px 1fr;

    gap: 30px;

    padding: 35px 25px;

    border-top: 1px solid #536075;

    transition: background 0.3s ease;
}

.process-card:last-child {
    border-bottom: 1px solid #536075;
}

.process-card:hover {
    background: #172B48;
}


/* Step Number */

.process-number {
    color: #FF8A55;

    font-size: 38px;
    font-weight: 900;

    letter-spacing: -2px;
}


/* Process Content */

.process-content span {
    color: #477BFF;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 2px;
}

.process-content h3 {
    color: #F5F2EA;

    font-size: 23px;

    margin: 12px 0;
}

.process-content p {
    color: #AAB5C5;

    font-size: 14px;
    line-height: 2;

    max-width: 650px;
}


/* Responsive */

@media (max-width: 768px) {

    .process-card {
        grid-template-columns: 55px 1fr;

        gap: 15px;

        padding: 28px 10px;
    }

    .process-number {
        font-size: 28px;
    }

    .process-content h3 {
        font-size: 19px;
    }

}

/* ==============================
   Experimental Results
============================== */

.experimental-results {
    padding: 80px 0;
}

.result-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.result-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #101b2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.image-caption {
    display: block;
    padding: 14px 18px;
    color: #aab8ca;
    font-size: 13px;
}

.result-information h3 {
    color: #ffffff;
    font-size: 26px;
    margin: 16px 0;
}

.result-information > p {
    color: #aab8ca;
    line-height: 1.8;
    margin-bottom: 28px;
}

.result-tag {
    display: inline-block;
    color: #ff9d52;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
}

.result-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.result-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.result-label {
    display: block;
    color: #aab8ca;
    font-size: 12px;
    margin-bottom: 10px;
}

.result-item strong {
    display: block;
    color: #ff9d52;
    font-size: 30px;
    margin-bottom: 6px;
}

.result-item small {
    color: #8999ad;
}

.result-note {
    padding: 18px;
    border-left: 3px solid #ff9d52;
    background: rgba(255, 157, 82, 0.06);
}

.result-note strong {
    color: #ffffff;
}

.result-note p {
    color: #aab8ca;
    line-height: 1.7;
    margin-top: 8px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .result-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .result-information h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .result-data {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   Learning & Reflection
============================== */

.learning-reflection {
    padding: 80px 0;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.learning-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: transform 0.3s ease,
                border-color 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-5px);
    border-color: #ff9d52;
}

.learning-number {
    display: inline-block;
    color: #ff9d52;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.learning-card h3 {
    color: #ff9d52;
    font-size: 19px;
    margin-bottom: 8px;
}

.learning-card h4 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 18px;
}

.learning-card p {
    color: #aab8ca;
    font-size: 14px;
    line-height: 1.9;
}

/* Responsive */
@media (max-width: 900px) {
    .learning-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .learning-grid {
        grid-template-columns: 1fr;
    }

    .learning-card {
        padding: 24px;
    }
}
