
/* ==============================
   01 — GLOBAL SETTINGS
================================ */

:root {
    --background: #080808;
    --surface: #121212;
    --red: #df1238;
    --dark-red: #680b1c;
    --white: #f5f5f5;
    --gray: #a1a1aa;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: var(--background);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

::selection {
    background: var(--red);
    color: white;
}

/* SCROLLBAR */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #080808;
}

::-webkit-scrollbar-thumb {
    background: var(--dark-red);
    border-radius: 10px;
}

/* ==============================
   02 — NAVIGATION
================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 6%;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: Georgia, serif;
    font-size: 36px;
    font-weight: bold;
    font-style: italic;
}

.logo span {
    color: var(--red);
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar nav a {
    position: relative;
    font-size: 13px;
    color: var(--gray);
    transition: color 0.3s;
}

.navbar nav a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s;
}

.navbar nav a:hover {
    color: white;
}

.navbar nav a:hover::after {
    width: 100%;
}

.resume-btn {
    padding: 9px 24px;
    border: 1px solid var(--red);
    border-radius: 30px;
    font-size: 13px;
    transition: 0.3s;
}

.resume-btn:hover {
    background: var(--red);
    box-shadow: 0 0 25px #df123840;
}

/* ==============================
   03 — SECTION SETTINGS
================================ */

section {
    padding: 75px 7%;
    border-bottom: 1px solid var(--border);
}

section h2 {
    font-family: Georgia, serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 30px;
}

section h2 span {
    color: var(--red);
}

.eyebrow {
    color: var(--red);
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: bold;
    margin-bottom: 18px;
}

/* ==============================
   04 — HERO
================================ */

.hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 50px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 80% 45%,
            rgba(150, 0, 30, 0.25),
            transparent 55%
        ),
        #080808;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideUp 1s ease both;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 90px);
    font-weight: 400;
    letter-spacing: -3px;
    line-height: 1.08;
    margin-bottom: 25px;
}

.hero h1 span {
    display: block;
    color: var(--red);
    font-style: italic;
}

.hero h2 {
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.description {
    max-width: 530px;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.9;
}

.hero-image {
    min-width: 0;
    height: 480px;
    border-radius: 180px 180px 16px 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(223, 18, 56, 0.35);
    background:
        radial-gradient(
            circle at center,
            #751029,
            #14070a 60%,
            #080808
        );
    box-shadow: 0 0 90px rgba(223, 18, 56, 0.1);
    animation: fadeIn 1.5s ease both;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 30px;
    font-size: 13px;
    transition: 0.35s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #e41940, #790b22);
    border: 1px solid var(--red);
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 35px #df123850;
}

.secondary-btn {
    border: 1px solid #555;
}

.secondary-btn:hover {
    border-color: var(--red);
    transform: translateY(-4px);
}

/* ==============================
   05 — ABOUT ME
================================ */

.about {
    background: linear-gradient(120deg, #101010, #090909);
}

.about > p:not(.eyebrow) {
    color: var(--gray);
    max-width: 800px;
    font-size: 17px;
}

.personal-info {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.personal-info > div {
    border-left: 2px solid var(--red);
    padding: 15px 24px;
    background: rgba(255, 255, 255, 0.025);
}

.personal-info h3 {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.personal-info p {
    font-size: 17px;
    margin-top: 8px;
}

/* ==============================
   06 — FEATURED ACHIEVEMENTS
================================ */

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.achievement-card {
    position: relative;
    min-width: 0;
    min-height: 320px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, #251017, #101010);
    border: 1px solid var(--border);
    transition: 0.4s ease;
}

.achievement-card:hover {
    transform: translateY(-8px);
    border-color: var(--red);
    box-shadow: 0 10px 40px #df123820;
}

.achievement-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.6s;
    background: #241017;
}

.achievement-card:hover img {
    transform: scale(1.06);
}

.card-content {
    padding: 22px;
}

.card-content small {
    color: var(--red);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.card-content h3 {
    font-size: 19px;
    line-height: 1.4;
    margin: 12px 0;
}

.card-content p {
    color: var(--gray);
    font-size: 13px;
}

/* ==============================
   07 — PORTFOLIO CATEGORIES
================================ */

#portfolio {
    background: #0c0c0c;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    position: relative;
    text-align: left;
    min-height: 175px;
    color: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #171717, #10090c);
    overflow: hidden;
    transition: 0.35s ease;
}

.category-card::after {
    content: "↗";
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--red);
    font-size: 20px;
    transition: transform 0.3s;
}

.category-card span {
    color: var(--red);
    font-family: Georgia, serif;
    font-size: 30px;
    opacity: 0.8;
}

.category-card h3 {
    margin: 12px 0 5px;
    font-size: 18px;
}

.category-card p {
    color: var(--gray);
    font-size: 12px;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: linear-gradient(135deg, #340d17, #151515);
    border-color: var(--red);
    box-shadow: 0 10px 35px #df123820;
}

.category-card:hover::after {
    transform: translate(3px, -3px);
}

/* ==============================
   08 — TIMELINE
================================ */

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--red),
        var(--dark-red)
    );
}

.timeline-item {
    position: relative;
    padding-top: 30px;
}

.timeline-item::before {
    content: "";
    width: 12px;
    height: 12px;
    position: absolute;
    top: -6px;
    left: 0;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 18px var(--red);
}

.timeline-item h3 {
    font-size: 28px;
    font-family: Georgia, serif;
}

.timeline-item p {
    color: var(--gray);
    margin-top: 8px;
    font-size: 14px;
}

/* ==============================
   09 — CONTACT & FOOTER
================================ */

#contact {
    text-align: center;
    background:
        radial-gradient(
            ellipse at bottom,
            #3a0915,
            #080808 70%
        );
}

#contact a {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--red);
    border-radius: 30px;
    transition: 0.3s;
}

#contact a:hover {
    background: var(--red);
}

footer {
    padding: 25px 7%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #777;
    font-size: 12px;
}

/* ==============================
   10 — ANIMATIONS
================================ */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==============================
   11 — RESPONSIVE DESIGN
================================ */

@media (max-width: 1100px) {

    .navbar nav {
        gap: 16px;
    }

    .achievement-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        min-height: 550px;
    }

    .hero-image {
        height: 400px;
    }
}

@media (max-width: 768px) {

    .navbar {
        flex-wrap: wrap;
        padding: 12px 5%;
        gap: 12px;
    }

    .navbar nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
    }

    section {
        padding: 50px 6%;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero h1 {
        font-size: clamp(32px, 8vw, 60px);
        letter-spacing: -1px;
    }

    .hero-image {
        height: 380px;
        max-width: 420px;
        width: 100%;
        margin: auto;
    }

    .personal-info {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline::before {
        width: 1px;
        height: 100%;
        left: 5px;
    }

    .timeline-item {
        padding: 0 0 0 30px;
    }

    .timeline-item::before {
        top: 12px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        gap: 10px;
    }

    .category-card {
        min-height: 165px;
        padding: 16px;
    }

    .category-card h3 {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}



/* =====================================
   12 — BIDIRECTIONAL SCROLL ANIMATION
===================================== */

@media (prefers-reduced-motion: no-preference) {

    .reveal-ready {
        opacity: 0;
        animation: none;
    }

    .reveal-ready.reveal-up {
        animation: revealFromBottom 0.8s
            cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .reveal-ready.reveal-down {
        animation: revealFromTop 0.8s
            cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes revealFromBottom {

        from {
            opacity: 0;
            translate: 0 45px;
            scale: 0.97;
        }

        to {
            opacity: 1;
            translate: 0 0;
            scale: 1;
        }

    }

    @keyframes revealFromTop {

        from {
            opacity: 0;
            translate: 0 -45px;
            scale: 0.97;
        }

        to {
            opacity: 1;
            translate: 0 0;
            scale: 1;
        }

    }

}

/* =====================================
   13 — INTERACTIVE COLLECTION DESIGN
===================================== */

.collection-page {
    --accent: #df1238;
    background: #080809;
}

/* PAGE OPENING ANIMATION */

.collection-page main {
    animation: collectionEntrance 0.9s
        cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes collectionEntrance {
    from {
        opacity: 0;
        transform: translateY(25px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* =====================================
   COLLECTION HERO
===================================== */

.collection-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 380px;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            ellipse at 90% 50%,
            #510b20,
            transparent 55%
        ),
        #090909;
}

.collection-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -100px;
    top: -70px;
    border-radius: 50%;
    border: 1px solid #df123850;

    box-shadow:
        0 0 0 40px #df123808,
        0 0 0 80px #df123806,
        0 0 80px #df123820;

    animation: orbitPulse 6s ease-in-out infinite;
    z-index: -1;
}

.collection-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image:
        linear-gradient(#ffffff06 1px, transparent 1px),
        linear-gradient(90deg, #ffffff06 1px, transparent 1px);

    background-size: 45px 45px;
    mask-image: linear-gradient(90deg, transparent, black);
}

@keyframes orbitPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.13);
        opacity: 1;
    }
}

.collection-intro {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.back-link {
    display: inline-block;
    color: #aaa;
    font-size: 12px;
    margin-bottom: 35px;
    transition: 0.3s;
}

.back-link:hover {
    color: var(--red);
    transform: translateX(-5px);
}

.collection-intro h1 {
    font-size: clamp(40px, 7vw, 105px);
    line-height: 1.05;
    font-family: Georgia, serif;
    font-weight: 400;
    letter-spacing: -3px;
    margin-bottom: 22px;

    animation: collectionTitle 1s ease both;
}

.collection-intro h1 span {
    color: var(--red);
}

#category-description {
    color: #a1a1aa;
    font-size: 16px;
    max-width: 650px;
    animation: collectionTitle 1s 0.15s both;
}

@keyframes collectionTitle {
    from {
        opacity: 0;
        translate: 0 40px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

.collection-number {
    position: absolute;
    right: 8%;
    font-size: clamp(130px, 20vw, 300px);
    line-height: 1;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px #df123840;
    user-select: none;
    pointer-events: none;
    z-index: -1;
}

/* =====================================
   CATEGORY TABS
===================================== */

.collection-tabs {
    display: flex;
    align-items: center;
    gap: 12px;

    overflow-x: auto;
    white-space: nowrap;

    padding: 22px 7%;

    background: rgba(15, 15, 17, 0.95);
    border-bottom: 1px solid #ffffff10;
}

.collection-tabs a {
    display: inline-block;
    padding: 11px 22px;

    border: 1px solid #ffffff15;
    border-radius: 30px;

    color: #999;
    font-size: 13px;

    transition: 0.35s ease;
}

.collection-tabs a:hover {
    color: white;
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 5px 25px #df123820;
}

.collection-tabs a.active,
.collection-tabs a[aria-current="page"] {
    color: white;
    background: linear-gradient(135deg, #df1238, #750b23);
    border-color: var(--red);
}

/* =====================================
   SEARCH AND FILTER
===================================== */

.collection-content {
    min-height: 500px;
}

.collection-toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.search-box {
    flex: 1;
}

.search-box input,
.filter-box select {
    width: 100%;
    padding: 15px 22px;

    color: white;
    background: #151517;

    border: 1px solid #ffffff18;
    border-radius: 10px;

    outline: none;
    font-family: inherit;
    font-size: 14px;

    transition: 0.3s ease;
}

.search-box input:focus,
.filter-box select:focus {
    border-color: var(--red);
    box-shadow: 0 0 25px #df123820;
}

.filter-box {
    min-width: 150px;
}

.collection-summary {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 25px;

    font-size: 11px;
    letter-spacing: 2px;
    color: #888;
}

/* =====================================
   INTERACTIVE COLLECTION CARDS
===================================== */

.collection-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(min(280px, 100%), 1fr));

    gap: 24px;
}

.collection-card {
    position: relative;
    overflow: hidden;

    min-width: 0;
    min-height: 360px;

    color: white;

    background:
        radial-gradient(
            circle at var(--mouse-x, 50%)
            var(--mouse-y, 0%),
            #410c1b,
            #141416 70%
        );

    border: 1px solid #ffffff15;
    border-radius: 16px;

    cursor: pointer;

    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.4s,
        box-shadow 0.4s;

    animation: cardEntrance 0.65s
        cubic-bezier(0.22, 1, 0.36, 1) both;

    animation-delay: var(--delay, 0ms);
}

.collection-card:hover {
    transform: translateY(-9px) scale(1.025);
    border-color: var(--red);

    box-shadow:
        0 15px 45px #0008,
        0 0 30px #df123825;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        translate: 0 35px;
        scale: 0.96;
    }

    to {
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }
}

/* MOVING SHINE EFFECT */

.collection-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        110deg,
        transparent 30%,
        #ffffff0c 50%,
        transparent 70%
    );

    transform: translateX(-100%);
    transition: transform 0.8s ease;

    pointer-events: none;
}

.collection-card:hover::after {
    transform: translateX(100%);
}

.collection-card-image {
    position: relative;
    height: 225px;
    overflow: hidden;
    background: #211016;
}

.collection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.75s ease;
}

.collection-card:hover img {
    transform: scale(1.08);
}

.collection-card-image .image-placeholder {
    height: 100% !important;
}

.collection-card-body {
    padding: 25px;
}

.collection-card-body small {
    color: var(--red);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.collection-card-body h3 {
    font-size: 23px;
    line-height: 1.3;
    margin: 12px 0;
}

.collection-card-body p {
    color: #999;
    font-size: 13px;
}

.collection-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 25px;
    padding-top: 18px;

    border-top: 1px solid #ffffff10;

    color: #bbb;
    font-size: 12px;
}

.collection-card-bottom span:last-child {
    color: var(--red);
    transition: 0.3s;
}

.collection-card:hover
.collection-card-bottom span:last-child {
    transform: translate(4px, -4px);
}

/* =====================================
   EMPTY COLLECTION
===================================== */

.empty-state {
    text-align: center;
    padding: 90px 20px;
}

.empty-state[hidden] {
    display: none;
}

.empty-state > span {
    display: inline-block;
    color: var(--red);
    font-size: 50px;

    animation: floatingSymbol 3s ease-in-out infinite;
}

.empty-state h2 {
    margin: 25px 0 12px;
}

.empty-state p {
    color: #888;
    margin-bottom: 30px;
}

@keyframes floatingSymbol {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-12px) rotate(12deg);
    }
}

/* =====================================
   DETAIL MODAL
===================================== */

.detail-modal {
    width: min(850px, 90vw);
    max-height: 88vh;

    margin: auto;
    padding: 0;

    color: white;
    background: #141014;

    border: 1px solid #df123860;
    border-radius: 20px;

    box-shadow: 0 0 80px #df123825;
    overflow-y: auto;
}

.detail-modal[open] {
    animation: modalOpening 0.5s
        cubic-bezier(0.22, 1, 0.36, 1) both;
}

.detail-modal::backdrop {
    background: #000b;
    backdrop-filter: blur(12px);
}

@keyframes modalOpening {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-container {
    position: relative;
}

.close-modal {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 5;

    width: 40px;
    height: 40px;

    color: white;
    font-size: 25px;

    background: #151515dd;
    border: 1px solid #ffffff30;
    border-radius: 50%;

    transition: 0.3s;
}

.close-modal:hover {
    background: var(--red);
    transform: rotate(90deg);
}

#modal-image-container {
    background: #0a0a0a;
}

#modal-image-container img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.modal-content {
    padding: 40px;
}

.modal-content h2 {
    font-family: Georgia, serif;
    font-size: clamp(27px, 4vw, 45px);
    line-height: 1.2;
    margin-bottom: 15px;
}

#modal-year {
    color: var(--red);
    margin-bottom: 20px;
}

#modal-description {
    color: #bbb;
    line-height: 1.9;
    margin-bottom: 30px;
}

#modal-document[hidden] {
    display: none;
}

/* =====================================
   INDIVIDUAL CATEGORY STYLES
===================================== */

.collection-page[data-category="sports"]
.collection-intro h1 {
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
}

.collection-page[data-category="music"]
.collection-hero {
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 35px,
            #df123809 36px
        ),
        radial-gradient(
            ellipse at right,
            #360b27,
            #090909 65%
        );
}

.collection-page[data-category="certificates"]
.collection-card-image img {
    object-fit: contain;
    padding: 15px;
}

.collection-page[data-category="projects"]
.collection-card-image {
    height: 280px;
}

.collection-page[data-category="achievements"]
.collection-card {
    border-color: #df123840;
}

.collection-page[data-category="work"]
.collection-card {
    border-left: 3px solid var(--red);
}

/* =====================================
   ACCESSIBILITY
===================================== */

.collection-page :focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 5px;
}

/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media (max-width: 768px) {

    .collection-hero {
        min-height: 320px;
    }

    .collection-intro h1 {
        letter-spacing: -1px;
    }

    .collection-number {
        right: 3%;
        opacity: 0.5;
    }

    .collection-toolbar {
        flex-direction: column;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-tabs {
        padding: 16px 6%;
    }

    .modal-content {
        padding: 25px;
    }

    .collection-summary {
        letter-spacing: 0.5px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .collection-page *,
    .collection-page *::before,
    .collection-page *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* =====================================
   14 — ADVANCED HOMEPAGE DESIGN
===================================== */

/* ANIMATED BACKGROUND */

body:not(.collection-page) .hero {
    background: #080809;
}

body:not(.collection-page) .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: radial-gradient(
        600px circle at
        var(--hero-x, 80%)
        var(--hero-y, 40%),
        #8b103c45,
        transparent 70%
    );

    pointer-events: none;
}

body:not(.collection-page) .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image:
        linear-gradient(
            #ffffff08 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            #ffffff08 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image: linear-gradient(
        90deg,
        transparent,
        black
    );

    animation: movingGrid 15s linear infinite;
}

@keyframes movingGrid {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 50px 50px;
    }
}


/* PREMIUM NAVIGATION */

.navbar {
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    border-bottom: 1px solid #df123825;
}

.navbar nav a {
    font-size: 14px;
    letter-spacing: 0.4px;
}


/* PREMIUM HERO TYPOGRAPHY */

.hero h1 {
    text-shadow: 0 0 60px #df123815;
}

.hero h1 span {
    background: linear-gradient(
        110deg,
        #ff5275,
        #df1238,
        #780d26
    );

    background-size: 200% 200%;

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    animation:
        signatureGradient
        6s ease infinite;
}

@keyframes signatureGradient {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}


/* INTERACTIVE 3D CARDS */

.achievement-card,
.category-card {
    transform-style: preserve-3d;

    transition:
        transform 0.2s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.7s ease;
}

@media (hover: hover) and (pointer: fine) {

    .achievement-card:hover,
    .category-card:hover {

        transform:
            perspective(800px)
            rotateX(var(--rotate-x, 0deg))
            rotateY(var(--rotate-y, 0deg))
            translateY(-7px)
            scale(1.025);

        border-color: #df1238;

        box-shadow:
            0 15px 45px #0009,
            0 0 30px #df123825;
    }

}


/* ANIMATED CARD BORDER */

.achievement-card::after,
.category-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        115deg,
        transparent 30%,
        #ffffff0e 50%,
        transparent 70%
    );

    transform: translateX(-120%);

    transition: transform 0.85s ease;

    pointer-events: none;
}

.achievement-card:hover::after,
.category-card:hover::before {
    transform: translateX(120%);
}


/* CATEGORY NUMBER EFFECT */

.category-card span {
    display: inline-block;
    transition:
        transform 0.35s ease,
        text-shadow 0.35s ease;
}

.category-card:hover span {
    transform: translateY(-3px) scale(1.1);

    text-shadow:
        0 0 20px #df123860;
}


/* SECTION TITLES */

body:not(.collection-page) section h2 {
    letter-spacing: -1px;
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .hero::after,
    .hero h1 span {
        animation: none !important;
    }

    .achievement-card:hover,
    .category-card:hover {
        transform: none !important;
    }

}
/* ONE-WAY SHINE EFFECT */

.achievement-card::after,
.category-card::before {
    transform: translateX(-120%);
    transition: none;
}

.achievement-card:hover::after,
.category-card:hover::before {
    transform: translateX(120%);
    transition: transform 0.85s ease;
}

/* =====================================
   15 — INTERACTIVE ACHIEVEMENTS
===================================== */

.achievement-card {
    cursor: pointer;
}

.achievement-arrow {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    background: #111111cc;
    backdrop-filter: blur(12px);

    border: 1px solid #df123850;
    border-radius: 50%;

    color: #ffffff;
    font-size: 20px;

    opacity: 0;

    transform: translate(-8px, 8px);

    transition: 0.3s ease;

    z-index: 5;
}

.achievement-card:hover .achievement-arrow,
.achievement-card:focus-visible .achievement-arrow {

    opacity: 1;

    transform: translate(0, 0);

    background: #df1238;

    box-shadow: 0 0 25px #df123850;
}

.achievement-card:focus-visible {
    outline: 2px solid #df1238;
    outline-offset: 4px;
}

@media (hover: none) {
    .achievement-arrow {
        opacity: 1;
        transform: none;
    }
}

/* =====================================
   ABOUT ME — INTERACTIVE PERSONAL ROOM
===================================== */

.about-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.about-content {
    min-width: 0;
}


/* CLICK ROOM TEXT */

.about-room-hint {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 35px;
    color: #a1a1aa;
    font-size: 14px;
}

.about-room-arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid #df1238;
    border-radius: 50%;
    color: #df1238;
    font-size: 20px;
}


/* INTERACTIVE ROOM */

.about-room-link {
    display: block;
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: auto;
    cursor: pointer;
    text-decoration: none;
    perspective: 1000px;
}

.about-room-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;

    filter:
        drop-shadow(0 15px 25px #00000080);
}

.about-room-link:hover .about-room-image {
    transform:
        translateY(-8px)
        rotateY(-5deg)
        scale(1.04);

    filter:
        drop-shadow(0 15px 30px #df123840);
}


/* MOBILE RESPONSIVE */

@media (max-width: 768px) {

    .about-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-room-link {
        max-width: 350px;
    }

    .about-room-hint {
        font-size: 12px;
    }

}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .about-room-image {
        transition: none;
    }

    .about-room-link:hover .about-room-image {
        transform: none;
    }

}

/* =====================================
   PERSONAL ROOM — PREMIUM ANIMATION
===================================== */

.about-content > p:not(.eyebrow) {
    max-width: 600px;
    color: #a1a1aa;
    line-height: 1.9;
}


/* ROOM SIZE AND POSITION */

.about-room-link {
    max-width: 550px;
    position: relative;
    left: -20px;
    perspective: 1200px;

    animation: kwRoomFloating
        6s ease-in-out infinite;
}


/* SMOOTH 3D INTERACTION */

.about-room-image {
    width: 100%;
    transform:
        rotateX(var(--room-x, 0deg))
        rotateY(var(--room-y, 0deg));

    transition:
        transform 0.35s ease-out,
        filter 0.5s ease;
}

.about-room-link:hover .about-room-image {

    transform:
        rotateX(var(--room-x, 0deg))
        rotateY(var(--room-y, 0deg))
        scale(1.035);

    filter:
        drop-shadow(0 15px 35px #df123830);
}


/* FLOATING ANIMATION */

@keyframes kwRoomFloating {

    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -10px;
    }

}


/* PAUSE WHILE HOVERING */

.about-room-link:hover {
    animation-play-state: paused;
}


/* CLICKABLE HINT */

.about-room-hint {
    width: fit-content;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-room-hint:hover {
    color: #ffffff;
}

.about-room-arrow {
    transition: 0.3s ease;
}

.about-room-hint:hover .about-room-arrow {
    background: #df1238;
    color: #ffffff;
    box-shadow: 0 0 20px #df123850;
}


/* MOBILE */

@media (max-width: 768px) {

    .about-room-link {
        max-width: 350px;
        left: 0;
    }

}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .about-room-link {
        animation: none;
    }

    .about-room-image,
    .about-room-link:hover .about-room-image {
        transform: none;
        transition: none;
    }

}
/* ROOM ENTRANCE ANIMATION */

.about-room-entrance {
    position: fixed;
    inset: 0;
    z-index: 999998;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

.about-room-entrance img {
    position: absolute;
    object-fit: contain;

    transform-origin: center center;

    transition: none;
    filter: none;
}

.about-room-entrance.is-entering img {
    animation: kwRoomApproach 2s linear forwards;
}

@keyframes kwRoomApproach {

    0% {
        transform: translate(0, 0) scale(1);
    }

    55% {
        transform:
            translate(var(--zoom-x), var(--zoom-y))
            scale(1.65);
    }

    100% {
        transform:
            translate(var(--zoom-x), var(--zoom-y))
            scale(2.5);
    }

}

.about-room-hint {
    color: #a1a1aa;
    text-decoration: none;
}

.about-room-hint:hover {
    color: #ffffff;
}
/* FIX ROOM DUPLICATION AND LAYER ORDER */

body.kw-room-entering .about-room-image {
    visibility: hidden !important;
}

body.kw-room-entering .about-room-link {
    animation-play-state: paused;
}

.about-room-entrance {
    z-index: 99998 !important;
}

.kw-page-transition {
    z-index: 1000000 !important;
}

/* =====================================
   LIVING ROOM — INTERACTIVE WORKSTATION
===================================== */

.about-room-scene {
    position: relative;
    width: 100%;

    transform:
        rotateX(var(--room-x, 0deg))
        rotateY(var(--room-y, 0deg));

    transition: transform 0.35s ease-out;
}

.about-room-link:hover .about-room-scene {
    transform:
        rotateX(var(--room-x, 0deg))
        rotateY(var(--room-y, 0deg))
        scale(1.035);
}


/* KEEP ALL ELEMENTS TOGETHER */

.about-room-scene .about-room-image,
.about-room-link:hover .about-room-image {
    display: block;
    width: 100%;
    height: auto;
    transform: none;
}


/* =====================================
   01 — ANIMATED MONITORS
===================================== */

.kw-room-monitor {
    position: absolute;

    overflow: hidden;
    pointer-events: none;

    background: #101015;

    box-shadow:
        0 0 8px #df123830;

    z-index: 2;
}

.kw-room-monitor canvas {
    display: block;
    width: 100%;
    height: 100%;
}


/* LEFT MONITOR POSITION */

.kw-monitor-left {
    left: 22.05%;
    top: 40.8%;

    width: 11.2%;
    height: 10.4%;

    transform: skewY(-19deg);
}

.kw-monitor-right {
    left: 34.15%;
    top: 36.6%;

    width: 12.4%;
    height: 10.5%;

    transform: skewY(-16deg);
}


/* =====================================
   02 — PC RGB LIGHTS
===================================== */

.kw-room-rgb {
    position: absolute;

    width: 2.1%;
    height: 3.1%;

    border: 1.5px solid #ff204f;
    border-radius: 50%;

    background: transparent;

    box-shadow:
        0 0 7px #df1238,
        inset 0 0 5px #df1238;

    pointer-events: none;

    z-index: 3;

    animation:
        kwRGBPulse 2.4s ease-in-out infinite;
}


/* UPPER FAN */

.kw-rgb-one {
    left: 54.2%;
    top: 40.35%;
}

.kw-rgb-two {
    left: 54.2%;
    top: 44.25%;

    animation-delay: 1.2s;
}


@keyframes kwRGBPulse {

    0%, 100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

}


/* =====================================
   03 — PREMIUM HOVER TEXT
===================================== */

.about-room-hover-text {
    position: absolute;

    left: 50%;
    bottom: 5%;

    transform:
        translateX(-50%)
        translateY(12px);

    padding: 13px 22px;

    border: 1px solid #df123880;
    border-radius: 50px;

    background: #090909dd;

    backdrop-filter: blur(12px);

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;

    white-space: nowrap;

    opacity: 0;

    pointer-events: none;

    z-index: 5;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;

    box-shadow:
        0 0 25px #df123825;
}

.about-room-link:hover .about-room-hover-text,
.about-room-link:focus-visible .about-room-hover-text {

    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);

}


/* HIDE ORIGINAL SCENE DURING ENTRANCE */

body.kw-room-entering .about-room-scene {
    visibility: hidden;
}


/* =====================================
   04 — MOBILE
===================================== */

@media (hover: none) {

    .about-room-hover-text {
        opacity: 1;

        transform:
            translateX(-50%)
            translateY(0);

        font-size: 10px;
        padding: 9px 15px;
    }

}


/* =====================================
   05 — ACCESSIBILITY
===================================== */

@media (prefers-reduced-motion: reduce) {

    .about-room-scene,
    .about-room-link:hover .about-room-scene {
        transform: none;
        transition: none;
    }

    .kw-room-rgb {
        animation: none;
        opacity: 0.7;
    }

}

/* =====================================
   LIVING ROOM — SYNCHRONIZED ENTRANCE
===================================== */

.about-room-entrance .kw-room-zoom-scene {
    position: absolute;

    visibility: visible !important;

    transform: none;
    transform-origin: center center;

    transition: none;

    filter: none;
}

.about-room-entrance .kw-room-zoom-scene .about-room-image {
    position: relative;

    display: block;

    width: 100%;
    height: auto;

    visibility: visible !important;

    transform: none;
    animation: none;

    filter: none;
}

.about-room-entrance.is-entering .kw-room-zoom-scene {

    animation: kwRoomApproach 2s linear forwards;

}

.about-room-entrance .about-room-hover-text {

    display: none !important;

}

.about-room-entrance {
    z-index: 99998 !important;
}

.kw-page-transition {
    z-index: 1000000 !important;
}

/* ==========================================
   REVERSE ROOM ZOOM
========================================== */

html.kw-room-return-preparing {
    scroll-behavior: auto !important;
}


/* KEEP ABOUT SECTION VISIBLE */

body.kw-room-returning #about {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
}


/* PAUSE ORIGINAL ROOM */

body.kw-room-returning #about .about-room-link {
    animation: none !important;
}


body.kw-room-returning #about .about-room-scene {
    visibility: hidden !important;
    transform: none !important;
    transition: none !important;
}


/* RETURN OVERLAY */

.about-room-return-overlay {

    position: fixed;

    inset: 0;

    z-index: 99998 !important;

    overflow: hidden;

    pointer-events: none;

    background: transparent;

}


/* CINEMATIC RETURN SCENE */

.about-room-return-overlay .kw-room-return-scene {

    position: absolute;

    visibility: visible !important;

    transform-origin: center center;

    transition: none !important;

    animation: none !important;

    filter: none !important;

    will-change: transform;

}


/* KEEP ORIGINAL ROOM IMAGE */

.about-room-return-overlay .about-room-image {

    position: relative;

    display: block;

    width: 100%;

    height: auto;

    visibility: visible !important;

    transform: none !important;

    animation: none !important;

    filter: none !important;

}


/* REMOVE HOVER LABEL DURING RETURN */

.about-room-return-overlay .about-room-hover-text {

    display: none !important;

}


/* KEEP KW TRANSITION ABOVE ROOM */

.kw-page-transition {

    z-index: 1000000 !important;

}
/* FIX COLLECTION CARD LAYOUT */

.collection-page #collection-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px;
    align-items: start;
}

.collection-page #collection-grid > * {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .collection-page #collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 650px) {
    .collection-page #collection-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* ===== HERO PORTRAIT ANIMATION ===== */

.hero-image {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.80) contrast(1.06) saturate(0.88);
    transform-origin: center center;
    animation: heroCinematic 18s ease-in-out infinite alternate;
    will-change: transform;
}

/* Soft dark red atmosphere */
.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(100, 0, 20, 0.10),
        transparent 55%,
        rgba(0, 0, 0, 0.20)
    );
}

@keyframes heroCinematic {
    0% {
        transform: scale(1.02) translateX(0);
    }
    100% {
        transform: scale(1.09) translateX(-0.5%);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-image img {
        animation: none;
    }
}
