/* =============================================
   AOUSTIN Evan - Portfolio BTS SIO
   ============================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0b0b1a;
    color: #c8c8e0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: 60px;
    background-color: #10102a;
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: #a78bfa;
}

.navbar-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.navbar-links a {
    color: #9b9bc0;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: #a78bfa;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7c3aed;
    transition: width 0.3s;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    background: radial-gradient(ellipse at center top, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
}

.hero-subtitle {
    font-size: 1rem;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.hero-title span {
    color: #a78bfa;
}

.hero-school {
    font-size: 1.1rem;
    color: #7a7a9e;
    margin-bottom: 50px;
}

.hero-summary {
    margin-top: 40px;
}

.hero-summary h3 {
    font-size: 1.1rem;
    color: #9b9bc0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero-summary-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-summary-links a {
    padding: 10px 28px;
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 30px;
    color: #a78bfa;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.hero-summary-links a:hover {
    background-color: rgba(124, 58, 237, 0.15);
    border-color: #a78bfa;
}

/* --- Sections --- */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.section-underline {
    width: 50px;
    height: 4px;
    background: #7c3aed;
    border-radius: 2px;
    margin-bottom: 50px;
}

/* --- Cards --- */
.card {
    background: linear-gradient(135deg, #12122e 0%, #16163a 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    transition: border-color 0.3s;
}

.card:hover {
    border-color: rgba(124, 58, 237, 0.45);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.card-date {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid #7c3aed;
    border-radius: 20px;
    color: #a78bfa;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 20px;
}

.card-description {
    color: #9b9bc0;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-skills-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6b6b8d;
    margin-bottom: 12px;
    margin-top: 25px;
}

/* --- Tags --- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 20px;
    color: #c0b3e8;
    font-size: 0.85rem;
    background: rgba(124, 58, 237, 0.08);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 28px;
    background: #7c3aed;
    color: #ffffff;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

/* --- Grids --- */
.stages-grid,
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stages-grid .card,
.projects-grid .card {
    margin-bottom: 0;
}

/* --- Veille --- */
.veille-card {
    max-width: 600px;
}

.veille-page {
    min-height: 100vh;
}

.page-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 110px 40px 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: #a78bfa;
    font-size: 0.95rem;
}

.page-intro {
    max-width: 780px;
    color: #9b9bc0;
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 20px;
}

.page-tags {
    margin-top: 30px;
}

.page-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.timeline {
    display: grid;
    gap: 24px;
}

.timeline-card {
    position: relative;
    padding-left: 34px;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 16px;
    width: 2px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.95) 0%, rgba(124, 58, 237, 0.15) 100%);
}

.timeline-card::after {
    content: '';
    position: absolute;
    top: 42px;
    left: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12);
}

.timeline-year {
    display: inline-block;
    margin-bottom: 14px;
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.insights-grid,
.warning-grid,
.sources-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.key-points {
    display: grid;
    gap: 18px;
    color: #9b9bc0;
}

.key-points strong {
    color: #ffffff;
}

.compact-card {
    padding: 30px;
}

.step-photo-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-photo-placeholder {
    width: 220px;
    min-height: 140px;
    border: 2px dashed rgba(124, 58, 237, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a7a9e;
    font-size: 0.9rem;
    flex-shrink: 0;
    text-align: center;
}

.step-photo-row img.step-img {
    width: 360px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-photo-row img.step-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.4);
}

.source-card {
    display: block;
    height: 100%;
}

.source-card:hover .card-title {
    color: #c4b5fd;
}

.curation-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.curation-source {
    font-size: 0.75rem;
    color: #7a7a9e;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Stage Pages --- */
.stage-page {
    min-height: 100vh;
}

.company-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 30px 0 10px;
}

.company-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 14px;
    transition: border-color 0.3s;
}

.company-logo:hover {
    border-color: rgba(124, 58, 237, 0.4);
}

.activity-screenshot {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.activity-screenshot img {
    max-width: 100%;
    width: 800px;
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    object-fit: contain;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s;
}

.activity-screenshot img:hover {
    border-color: rgba(124, 58, 237, 0.5);
    transform: scale(1.02);
}

.activity-screenshot.multi {
    gap: 20px;
    align-items: flex-start;
}

.activity-screenshot.multi a {
    flex: 1;
    display: flex;
}

.activity-screenshot.multi img {
    width: 100%;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.project-gallery .activity-screenshot {
    margin: 0;
}

.project-gallery .activity-screenshot a {
    display: flex;
    width: 100%;
}

.project-gallery .activity-screenshot img {
    width: 100%;
}

.project-gallery.mixed-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.mixed-gallery .gallery-item a {
    justify-content: center;
    align-items: center;
}

.mixed-gallery .gallery-item--desktop {
    grid-column: span 2;
}

.mixed-gallery .gallery-item--desktop img {
    width: 100%;
    max-height: 340px;
    object-fit: contain;
}

.mixed-gallery .gallery-item--mobile img {
    width: auto;
    max-width: min(100%, 240px);
    max-height: 500px;
    margin: 0 auto;
    object-fit: contain;
}

.activity-label {
    display: block;
    font-size: 0.9rem;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.tech-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    flex-wrap: wrap;
}

.tech-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 14px;
    transition: border-color 0.3s, background 0.3s;
}

.tech-node:hover {
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.tech-node img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.tech-node img.invert-dark {
    filter: brightness(0) invert(1);
}

.tech-node span {
    font-size: 0.8rem;
    color: #9b9bc0;
    font-weight: 500;
}

.tech-connector {
    width: 40px;
    height: 2px;
    background: rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.tasks-grid .card {
    margin-bottom: 0;
}

/* --- PDF Report Section --- */
.pdf-report-section {
    text-align: center;
}

.pdf-report-desc {
    color: #9b9bc0;
    margin-bottom: 24px;
    font-size: 1rem;
}

.btn-pdf {
    display: inline-block;
    margin-bottom: 32px;
}

.pdf-viewer-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.25);
    background: #12122e;
}

.pdf-viewer {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    border: none;
    display: block;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 40px;
    color: #4a4a6a;
    font-size: 0.85rem;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.footer-contact {
    margin-top: 8px;
    font-size: 0.85rem;
}

.footer-contact a {
    color: #7a7a9e;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #a78bfa;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0b1a;
}

::-webkit-scrollbar-thumb {
    background: #2a2a4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a5a;
}

@media (max-width: 900px) {
    .insights-grid,
    .warning-grid,
    .sources-list,
    .stages-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-gallery.mixed-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .navbar {
        padding: 0 20px;
    }

    .navbar-links {
        gap: 18px;
    }

    .hero,
    .page-hero,
    .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .card,
    .timeline-card {
        padding: 28px;
    }

    .card-header {
        flex-direction: column;
        gap: 12px;
    }

    .card-date {
        margin-left: 0;
    }

    .timeline-card {
        padding-left: 28px;
    }

    .timeline-card::before {
        left: 12px;
    }

    .timeline-card::after {
        left: 6px;
    }

    .tech-flow {
        gap: 15px;
    }

    .tech-connector {
        display: none;
    }

    .project-gallery.mixed-gallery {
        grid-template-columns: 1fr;
    }

    .mixed-gallery .gallery-item--desktop {
        grid-column: span 1;
    }

    .step-photo-row {
        flex-direction: column;
    }

    .step-photo-placeholder,
    .step-photo-row img.step-img {
        width: 100%;
        min-height: 120px;
    }
}
