/* ==========================================================================
   STYLING FOR MARIO WINTER PORTFOLIO (2026)
   ========================================================================== */

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

body {
    background-color: #1A1A1B;
    font-family: 'articulat-cf', sans-serif;
    color: white;
    overflow-x: hidden;
    position: relative;
}

p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px; /* Einheitlicher Abstand nach unten */
    margin-top: 0;      /* Kein Abstand nach oben, das macht das Design kaputt */
}


/* --- 1. NAVIGATION --- */
.navbar {
    width: 100%;
    padding: 30px 60px;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo-area {
    position: absolute;
    left: 60px;
}

.nav-logo {
    height: 50px;
    width: auto;
    filter: invert(1) brightness(2);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    will-change: transform;
}

.nav-logo:hover {
    transform: scale(1.05) translateZ(0);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    opacity: 0.5;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-links a.active {
    opacity: 1;
    color: #FFFFFF;
}

.nav-links a:hover {
    opacity: 1;
    color: #99FF00;
    text-shadow: 0 0 10px rgba(153, 255, 0, 0.5);
}

.divider {
    color: white;
    font-weight: 300;
    opacity: 0.2;
    cursor: default;
    user-select: none;
}

/* --- 2. HERO SEKTION --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

.hero-bg-logo {
    position: absolute;
    width: 75%;
    opacity: 0.05;
    z-index: 1;
    filter: blur(2px) invert(1);
    pointer-events: none;
}

.hero-bg-logo img {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.mario-outline-flicker {
    width: 70%;
    max-width: 900px;
    height: auto;
    animation: neon-flicker-mario 4s infinite linear;
}

@keyframes neon-flicker-mario {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 12px rgba(153, 255, 0, 0.8)) drop-shadow(0 0 25px rgba(153, 255, 0, 0.4));
    }
    20%, 24%, 55% {
        opacity: 0.2;
        filter: drop-shadow(0 0 0px rgba(153, 255, 0, 0));
    }
}

.hero-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 25px;
    margin-top: 40px;
    margin-bottom: 50px;
    padding-left: 25px;
    opacity: 0.9;
}

/* --- 3. BUTTONS --- */
.btn {
    padding: 14px 34px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    cursor: pointer;
}

.btn-filled {
    background-color: #99FF00;
    color: #1A1A1B;
    border: 2px solid #99FF00;
}

.btn-filled:hover {
    background-color: #a8ff33;
    border-color: #a8ff33;
    box-shadow: 0 0 25px rgba(153, 255, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    color: #FFFFFF;
    border-color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

/* --- 4. LAYOUT / BASE UNITS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 1px;
    margin-bottom: 50px;
    color: white;
    text-transform: uppercase;
}

/* --- 5. GRID SEKTIONEN (SELECTED WORKS & HONORABLE MENTIONS) --- */
.preview-section {
    padding: 120px 60px 80px 60px;
    background-color: transparent;
    position: relative;
    z-index: 5;
}

.honorable-mentions-section {
    padding: 0 60px 100px 60px;
    background-color: transparent;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.mentions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

a.mention-link {
    text-decoration: none !important;
    color: white !important;
    display: block;
}

.preview-card,
.mention-item {
    background-color: #252526;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.preview-card:hover,
a.mention-link:hover .mention-item {
    border-color: #99FF00;
    box-shadow: 0 0 15px rgba(153, 255, 0, 0.15);
}

.card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #1A1A1B;
    overflow: hidden;
}

.card-image img,
.card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.preview-card:hover .card-image img,
.preview-card:hover .card-image video {
    transform: scale(1.05);
}

.card-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.card-info .mention-meta,
.card-info p {
    order: 1;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #99FF00 !important;
    font-weight: 700;
    opacity: 1 !important;
}

.card-info h3 {
    order: 2;
    font-size: 1.3rem;
    margin-bottom: 0;
    font-weight: 700;
    color: white;
}

.mention-item {
    display: flex;
    flex-direction: column;
}

.mention-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #99FF00 !important;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    opacity: 1 !important;
}

.mention-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.mention-item p {
    font-size: 0.9rem;
    opacity: 0.6;
    line-height: 1.5;
    color: white;
}

.preview-footer {
    margin-top: 60px;
    text-align: center;
}

/* --- 6. PORTFOLIO FEED (BIG ENTRIES) --- */
.portfolio-feed {
    width: 100%;
}

.project-entry {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.project-entry:nth-child(even) {
    flex-direction: row-reverse;
}

.project-media {
    border: 2px solid;
    border-image-source: linear-gradient(225deg, #99FF00, transparent);
    border-left: none;
    border-image-slice: 1;
    box-shadow: 0 0 20px 5px rgba(153, 255, 0, 0.6);
    width: 60%;
    aspect-ratio: 16 / 9;
    background-color: #333;
    z-index: 2;
    line-height: 0;
}

.project-media>* {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    width: 45%;
    height: 33.75vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 3;
    left: 60px;
    padding-bottom: 10px;
}

.project-number {
    position: absolute;
    top: 0px;
    font-size: 25rem;
    font-weight: 900;
    opacity: 0.05;
    line-height: 0.8;
    pointer-events: none;
    z-index: 1;
}

.project-entry:nth-child(odd) .project-number {
    right: 60px;
    left: auto;
}

.project-entry:nth-child(even) .project-number {
    left: -60px;
    right: auto;
}

.project-entry:nth-child(even) .project-info {
    padding-right: 120px;
    align-items: flex-end;
    text-align: right;
}

.project-entry:nth-child(even) .project-media {
    margin-left: 0;
    margin-right: -60px;
    border-left: 3px solid;
    border-right: none;
    border-image-source: linear-gradient(to left, transparent, #99FF00);
}

.project-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    line-height: 0.9;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.project-entry .project-title {
    margin-top: 40px;
}

.project-entry:nth-child(odd) .project-title {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.project-entry:nth-child(even) .project-title {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.project-category {
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-info .btn-filled {
    margin-bottom: 0;
    vertical-align: bottom;
    display: inline-flex;
    align-items: center;
}

/* --- 7. PROJECT DETAILS & SOFTWARE BADGES --- */
.project-detail {
    width: 100%;
    margin: 0 auto;
    padding: 150px 0 100px 0;
}

.project-header,
.project-step.text-block,
.project-step.media-block:not(.full-width),
.project-detail>section:last-of-type {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5%;
    padding-right: 5%;
    margin-bottom: 5%;
}

.projectpage .project-title {
    font-size: 5rem;
    text-align: center;
    width: 100%;
    display: block;
}

.project-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 25px;
    margin-bottom: 15px;
    opacity: 0.5;
    justify-content: center;
}

.project-meta:has(.meta-item:only-child), 
.project-meta:last-of-type {
    opacity: 1;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.project-meta:last-of-type .meta-item {
    background-color: rgba(153, 255, 0, 0.04);
    border: 1px solid rgba(153, 255, 0, 0.25);
    color: #99FF00;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-meta:last-of-type .meta-item::after {
    display: none !important;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-item:not(:last-child)::after {
    content: "•";
    font-weight: 900;
}

.project-step {
    margin-bottom: 100px;
}

.text-block h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
}

.caption {
    font-size: 0.75rem;
    opacity: 0.4;
    margin-top: 15px;
    text-align: right;
}

/* --- 8. PROJECT CAROUSEL (Desktop Scrollbar versteckt) --- */
.carousel-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 10%;
    scrollbar-width: none; /* Versteckt Scrollbar in Firefox */
    -ms-overflow-style: none;  /* Versteckt Scrollbar in IE/Edge */
}

/* Versteckt Desktop-Scrollbar in allen Webkit-Browsern (Chrome, Safari, neuere Edge) */
.carousel-track::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.carousel-card {
    flex: 0 0 600px;
    scroll-snap-align: center;
}

.carousel-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-label {
    margin-top: 15px;
    font-family: 'articulat-cf', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.card-label span {
    color: #99FF00;
    font-weight: 900;
    margin-right: 10px;
}

/* --- 9. ABOUT SEKTION --- */
.about-wrapper {
    width: 100vw;
    min-height: 100vh; /* Lässt das Layout wieder atmen */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 140px 8% 100px 8%; /* Genug Platz nach unten für den Footer */
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start; /* Zieht alles wieder ordentlich nach oben */
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.about-visual {
    height: 100%;
    overflow: hidden;
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Hält den Kopf immer im Sichtfeld! */
    display: block;
}

.about-container {
    display: flex;
    flex-direction: column;
}

.about-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 0.9;
    margin-bottom: 25px;
    letter-spacing: 5px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-text p {
    font-family: 'articulat-cf', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 18px;
}

.skills-upgrade {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.skill-category {
    /* Keine grauen Boxen mehr - das nimmt das Chaos raus! */
    background-color: transparent;
    padding: 0;
    border: none; 
}

.skill-category h3 {
    font-family: 'Inter', sans-serif; /* Die technische Schrift für den Meta-Look */
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4); /* Schön dezent abgetönt */
    margin-bottom: 12px;
    display: block;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Sauberer Abstand zwischen den Badges */
}

.skill-list li {
    background-color: rgba(153, 255, 0, 0.04);
    border: 1px solid rgba(153, 255, 0, 0.25);
    color: #99FF00;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- 10. CONTACT SEKTION --- */
.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.contact-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 15px;
    text-transform: uppercase;
    margin-bottom: 50px;
    color: #99FF00;
    filter: drop-shadow(0 0 12px rgba(153, 255, 0, 0.8));
    text-align: center;
}

.social-icon-grid {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.icon-link {
    color: white;
    font-size: 4rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
}

.icon-link:hover {
    transform: scale(1.1);
}

/* --- 11. FOOTER --- */
footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none;
    text-align: center;
}

.projectpage footer,
body:not(.projectpage) .about-wrapper~footer {
    position: relative;
    margin-top: 60px;
    bottom: 0;
    padding-bottom: 30px;
}

.footer-line {
    font-family: 'articulat-cf', sans-serif;
    font-size: 12px;
    color: white;
    opacity: 0.3;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- 12. MEDIA BLOCK LAYOUTS --- */
.project-step.media-block.full-width {
    width: 100vw;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    overflow: hidden;
    display: block;
}

.project-step.media-block.full-width img,
.project-step.media-block.full-width video {
    width: 100% !important;
    height: auto !important;
    max-height: 85vh;
    object-fit: cover;
    display: block;
}

.project-step.media-block.full-width .caption {
    max-width: 1000px;
    margin: 15px auto 0 auto;
    padding: 0 5%;
    text-align: right;
}

.project-step.media-block:not(.full-width) {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.project-step.media-block:not(.full-width) img,
.project-step.media-block:not(.full-width) video {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #1a1a1a;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.project-step.media-block:not(.full-width) .caption {
    width: 100%;
    max-width: 800px;
    text-align: right;
    margin-top: 15px;
}

/* ==========================================================================
   13. RESPONSIVE & MEDIA QUERIES (CLEAN & ISOLATED RESPONSIVE FIXES)
   ========================================================================== */
@media (max-width: 900px) {
    /* --- 1. THE BALANCED NAVBAR --- */
    .navbar {
        padding: 20px 24px !important; 
        background-color: rgba(26, 26, 27, 0.98) !important; 
        backdrop-filter: blur(15px);
        height: auto !important;
    }

    .nav-container {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .logo-area {
        position: static !important;
        margin-bottom: 2px !important;
        display: flex;
        justify-content: center;
    }

    .nav-logo {
        height: 40px !important; 
    }

    .nav-links .divider {
        display: none !important;
    }

    .nav-links {
        display: grid !important;
        grid-template-columns: repeat(4, auto) !important; 
        gap: 16px !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .nav-links a {
        font-size: 13px !important; 
        white-space: nowrap !important; 
        letter-spacing: 0.5px !important;
    }

    .nav-right-spacer {
        display: none !important;
    }

    /* --- 2. HERO SIZING & SCROLL INDICATOR --- */
    .hero {
        height: 100vh !important; 
        padding-top: 100px !important; 
        display: flex !important;
        align-items: center !important; 
        justify-content: center !important;
    }

    .hero-content {
        margin-top: 0 !important; 
    }

    .mario-outline-flicker {
        width: 85% !important;
        max-width: 440px !important;
    }

    .hero-subtitle {
        font-size: 0.85rem !important;
        letter-spacing: 10px !important;
        padding-left: 10px !important;
        margin-top: 25px !important;
        margin-bottom: 30px !important;
    }

    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }

    /* --- 3. BUTTONS & TEXT UNBREAKABLE FIX --- */
    .btn {
        width: 80% !important;
        max-width: 260px !important;
        text-align: center !important;
        padding: 13px 24px !important;
    }

    /* Der Brecheisen-Fix für den Zurück-Button auf Detailseiten */
    .projectpage .btn,
    .project-header .btn,
    .project-detail .btn {
        display: inline-block !important;
        white-space: nowrap !important;
        width: auto !important;
        max-width: none !important;
        padding: 12px 30px !important;
        box-sizing: border-box !important;
    }

    .scroll-indicator {
        position: absolute !important;
        bottom: -150px !important; 
        right: 50% !important;
        left: 50% !important;
        transform: none !important;
        display: flex !important;
    }

    /* --- 4. ABOUT ME FIX --- */
    .about-wrapper {
        min-height: auto !important;
        padding-top: 180px !important; 
        padding-left: 24px !important;
        padding-right: 24px !important;
        padding-bottom: 60px !important;
    }

    .about-content {
        grid-template-columns: 1fr !important; 
        gap: 30px !important; 
    }

    .about-visual {
        height: auto !important;
        max-height: 380px !important;
        width: 100% !important;
    }

    .about-title {
        font-size: 2.5rem !important;
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
    }

    /* --- 5. CONTACT NON-SCROLLABLE FIX --- */
    body:has(.contact-wrapper) {
        overflow: hidden !important; 
    }

    .contact-wrapper {
        height: 100vh !important;
        padding-top: 120px !important;
        overflow: hidden !important;
    }

    .contact-headline {
        font-size: 2rem !important;
        letter-spacing: 8px !important;
        margin-bottom: 40px !important;
    }

    .social-icon-grid {
        gap: 35px !important; 
    }

    .icon-link {
        font-size: 2.8rem !important;
    }

    /* --- 6. PORTFOLIO FEED & DETAIL SEITEN --- */
    .portfolio-feed {
        padding-top: 140px !important; 
    }

    .preview-section {
        padding: 80px 24px 60px 24px !important; 
    }

    .preview-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .project-entry,
    .project-entry:nth-child(even) {
        flex-direction: column !important;
        align-items: center !important; 
        min-height: auto !important;
        padding: 0 24px 60px 24px !important; 
    }

    .project-media,
    .project-entry:nth-child(even) .project-media {
        width: 100% !important;
        margin: 0 0 15px 0 !important; 
        border: none !important; 
        box-shadow: none !important; 
    }

    .project-info,
    .project-entry:nth-child(even) .project-info {
        width: 100% !important;
        left: 0 !important;
        padding: 0 !important;
        text-align: center !important; 
        align-items: center !important; 
        height: auto !important;
    }

    .project-entry .project-title,
    .project-entry:nth-child(even) .project-title {
        font-size: 2rem !important; 
        line-height: 1.1 !important;
        text-align: center !important; 
        margin: 10px 0 10px 0 !important;
    }

    .project-category {
        font-size: 0.8rem !important;
        margin-bottom: 20px !important;
        text-align: center !important; 
    }

    .project-number {
        display: none !important;
    }

    .projectpage .project-title {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
        text-align: center !important;
        margin-bottom: 15px !important;
    }

    /* Normale Metas (Zeile 1) */
    .project-meta:first-of-type {
        flex-wrap: wrap !important;
        justify-content: center !important;
        row-gap: 8px !important; 
    }

    .project-meta:first-of-type .meta-item {
        font-size: 12px !important; 
        white-space: nowrap !important; 
    }

    /* Software-Badges (Zeile 2) */
    .project-meta:last-of-type {
        flex-wrap: wrap !important;
        justify-content: center !important;
        margin-bottom: 40px !important;
    }

    .project-meta:last-of-type .meta-item {
        font-size: clamp(8px, 2.3vw, 12px) !important; 
        padding: 3px 6px !important; 
        white-space: nowrap !important;
    }

    .mentions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .skills-upgrade {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-top: 30px !important;
    }

    .skill-category {
        padding: 20px !important;
    }

    .honorable-mentions-section {
        padding: 0 24px 60px 24px !important;
    }

    /* --- 7. CAROUSEL MOBILE SWIPE FIX --- */
    .carousel-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: auto !important;
        right: auto !important;
    }

    .carousel-section,
    .carousel-container {
        width: 100% !important;
        overflow-x: auto !important; 
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important; 
        padding: 10px 0 20px 0 !important; 
    }

    .carousel-section::-webkit-scrollbar,
    .carousel-container::-webkit-scrollbar {
        display: none !important;
    }
    .carousel-section,
    .carousel-container {
        scrollbar-width: none !important;
    }

    .carousel-track {
        display: flex !important;
        flex-wrap: nowrap !important; 
        gap: 15px !important; 
        padding: 0 20px !important; 
        width: max-content !important; 
    }

    .carousel-card {
        flex: 0 0 75vw !important; 
        max-width: 280px !important; 
        display: flex !important;
        flex-direction: column !important;
    }

    .carousel-card img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 6px !important; 
    }

    .card-label {
        font-size: 11px !important;
        margin-top: 8px !important;
        opacity: 0.9 !important;
    }

    /* --- 8. MOBILE FOOTER CONTROL --- */
    footer {
        position: relative !important;
        bottom: auto !important;
        clear: both !important;
        display: block !important;
        margin-top: 40px !important; 
        padding-bottom: 30px !important;
        pointer-events: auto !important; 
    }

    body:has(.contact-wrapper) footer {
        display: none !important;
    }

    .projectpage footer, 
    body:not(.projectpage) .about-wrapper ~ footer {
        margin-top: 50px !important;
        padding-bottom: 30px !important;
    }

    .footer-line {
        white-space: normal !important; 
        line-height: 1.8 !important; 
        padding: 0 20px !important; 
        display: block !important;
        text-align: center !important;
        font-size: 11px !important; 
    }
}

/* --- SCROLL INDICATOR AFTERMATH --- */
.scroll-indicator {
    position: absolute;
    bottom: -200px;
    right: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: #99FF00;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s infinite ease-in-out;
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    50% { top: 18px; opacity: 0.3; }
    100% { top: 8px; opacity: 1; }
}

.meme {
    display: flex;
    justify-content: end;
}

.meme img {
    width: 15%;
    height: auto;
    margin-right: 15%;
}