/* 
   REBEL CANDY - MASTER STYLESHEET
   Refactored for Modularity & Sweetness
*/

@font-face {
    font-family: 'Permanent Marker';
    src: url('../assets/fonts/PermanentMarker-Regular.ttf?v=001') format('truetype');
    font-weight: normal;
    font-style: auto;
    font-display: swap;
}

:root {
    /* Brand Colors */
    --brand-pink: #E91E81;
    --action-yellow: #FAFF00;
    --pure-white: #FFFFFF;
    --deep-black: #000000;

    /* Project Palette (Used for dynamic variables) */
    --color-morning-bg: #FFF200;
    --color-morning-accent: #FF0000;

    --color-sour-bg: #FF5EAD;
    --color-sour-accent: #4CDBBC;

    --color-sugar-bg: #55E0D5;
    --color-sugar-accent: #FF5EA2;

    --color-chill-bg: #2EA8BA;
    --color-chill-accent: #B1EE24;

    --color-cotton-bg: #FF1E8A;
    --color-cotton-accent: #39D1C7;

    --color-boom-bg: #358BDE;
    --color-boom-accent: #FFA303;

    /* Defaults */
    --section-accent: var(--brand-pink);
    --section-bg: var(--pure-white);
}

/* ------------------------------------
   RESET & BASE
--------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scrollbar-gutter: stable both-edges;
    /* Modern way to prevent jump, but we want it gone */
    scrollbar-gutter: unset;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    position: relative;
    color: var(--deep-black);
    overflow-x: hidden;
    width: 100vw;
    /* Force viewport width */

    /* Prevent Brave/Chrome "Force Dark Mode" from messing with colors */
    color-scheme: only light;
    forced-color-adjust: none;
    -webkit-forced-color-adjust: none;
}

/* ------------------------------------
   HIDDEN SCROLLBAR (IMMERSIVE LOOK)
--------------------------------------- */
/* Hide scrollbar for Chrome, Safari and Opera (Brave) */
*::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* ------------------------------------
   SCROLL TO TOP BUTTON
--------------------------------------- */
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--deep-black);
    border: none;
    border-radius: 50%;
    color: var(--action-yellow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn svg {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.scroll-top-btn:hover {
    transform: scale(1.1);
    background-color: var(--action-yellow);
    color: var(--deep-black);
    animation: crinkle 0.1s infinite;
}

.scroll-top-btn:hover svg {
    transform: translateY(-3px);
}

/* ------------------------------------
   UTILITIES & TYPOGRAPHY
--------------------------------------- */
.text-yellow {
    color: var(--action-yellow);
}

.text-white {
    color: var(--pure-white);
}

.text-black {
    color: var(--deep-black);
}

.text-highlight {
    color: var(--action-yellow);
    font-weight: bold;
}

/* ------------------------------------
   CANDY SPRINKLE TRAIL
--------------------------------------- */
.cursor-sprinkle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sprinkle-fade 0.8s forwards ease-out;
}

@keyframes sprinkle-fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.2) translateY(20px);
    }
}

/* ------------------------------------
   RANDOM POP EMOJIS
--------------------------------------- */
.random-pop-emoji {
    position: absolute;
    pointer-events: none;
    z-index: 9000;
    /* High but under nav/modals */
    opacity: 0;
    transform: scale(0);
    /* Hidden by default */
}

.random-pop-emoji.popped {
    animation: emoji-pop-sequence 2.5s forwards ease-in-out;
}

@keyframes emoji-pop-sequence {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    15% {
        opacity: 1;
        transform: scale(1.2);
    }

    25% {
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* ------------------------------------
   HERO BANNER
--------------------------------------- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: clamp(60px, 12vh, 120px);
    z-index: 1;
    transition: padding-bottom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #ef1b96;
    /* Brand Pink Background */
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-left,
.hero-bg-right {
    height: 100%;
    width: auto;
    max-width: 45%;
    /* Prevent center overlap */
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
}

.hero-bg-left {
    position: absolute;
    left: 0;
    top: 0;
    object-position: left center;
    opacity: 0;
    animation: hero-bg-slide-left 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.2s;
}

.hero-bg-right {
    position: absolute;
    right: 0;
    top: 0;
    object-position: right center;
    opacity: 0;
    animation: hero-bg-slide-right 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes hero-bg-slide-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hero-bg-slide-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: clamp(100px, 15vw, 180px);
    height: auto;
    margin-bottom: 2rem;
    position: relative;
    /* Removed static top: -60px to allow flex/grid centering to work */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), width 0.6s ease;
}

.hero-logo-group {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
    animation: hero-fade-down 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-title-group {
    margin-bottom: 40px;
    transform: rotate(-3deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: hero-title-pop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.2s;
}

.hero-actions-group {
    margin-top: 20px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-title {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(3.5rem, 15vw, 10rem);
    line-height: 0.85;
    margin: 0;
    text-transform: uppercase;
    /* Rotation moved to group */
    letter-spacing: -2px;
}

.hero-badge {
    position: absolute;
    z-index: 10;
    bottom: -1em;
    /* Proportional overlap */
    right: -1.2em;
    /* Proportional right-pin */
    background-color: var(--action-yellow);
    color: var(--deep-black);
    padding: 0.2em 0.8em;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 0.12em;
    /* Scaled relative to the massive parent font-size */
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.text-black {
    color: var(--deep-black);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    color: var(--pure-white);
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: hero-fade-up 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.4s;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-entry {
    opacity: 0;
}

.hero-btn-entry:nth-child(1) {
    animation: hero-btn-left 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.6s;
}

.hero-btn-entry:nth-child(2) {
    animation: hero-btn-right 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.8s;
}

/* Entrance Animations */
@keyframes hero-btn-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hero-btn-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Base Shake inherited from .btn-black:hover */

@keyframes hero-fade-down {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-title-pop {
    from {
        opacity: 0;
        transform: rotate(-3deg) scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: rotate(-3deg) scale(1) translateY(0);
    }
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ------------------------------------
   BUTTONS
--------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    transition: transform 0.2s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-black {
    background: var(--deep-black);
    color: var(--pure-white);
    border: 2px solid var(--deep-black);
}

.btn-black:hover {
    transform: scale(1.05);
    background: var(--action-yellow);
    border-color: var(--action-yellow);
    color: var(--deep-black);
    animation: crinkle 0.1s infinite;
}

/* Dynamic Project Button */
.btn-rebel {
    background: var(--deep-black);
    color: var(--pure-white);
    border: 2px solid var(--deep-black);
    margin-top: -10px;
}

.btn-rebel:hover {
    transform: scale(1.05);
    background: var(--section-accent) !important;
    border-color: var(--section-accent) !important;
    color: var(--deep-black);
    animation: crinkle 0.1s infinite;
}

.rebel-section.theme-dark .btn-rebel {
    background: var(--pure-white);
    color: var(--deep-black);
    border: 2px solid var(--pure-white);
}

.rebel-section.theme-dark .btn-rebel:hover {
    color: var(--pure-white) !important;
}

/* Specific text color overrides */
.sour-skull-section .btn-rebel:hover,
.sugar-rush-section .btn-rebel:hover,
.rebel-section.sour-chill-section .btn-rebel:hover {
    color: var(--deep-black) !important;
}

.mayhem-section .btn-rebel:hover,
.rebel-section.cotton-candy-section .btn-rebel:hover,
.rebel-section.boom-box-section .btn-rebel:hover {
    color: var(--pure-white) !important;
}

/* Crinkle Animation Logic */
@keyframes crinkle {
    0% {
        transform: rotate(1deg) scale(1.05);
    }

    25% {
        transform: rotate(-1deg) scale(1.05);
    }

    50% {
        transform: rotate(1.5deg) scale(1.05);
    }

    75% {
        transform: rotate(-1.5deg) scale(1.05);
    }

    100% {
        transform: rotate(1deg) scale(1.05);
    }
}

/* ------------------------------------
   COMMON SKEWED SECTION (THE MODULE)
--------------------------------------- */
.rebel-section {
    position: relative;
    padding: 20px 5%;
    width: 130%;
    min-height: 800px;

    /* The Skew Magic */
    -webkit-transform: rotate(-3deg);
    -ms-transform: rotate(-3deg);
    transform: rotate(-3deg);
    left: -15%;

    /* GAP KILLER: Standard negative margin to ensure overlap */
    margin-top: -60px;

    background-color: var(--section-bg);
    background-size: cover;
    background-position: center;
    -webkit-transition: padding 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), margin 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), min-height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: padding 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), margin 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), min-height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Fluid layout resizing with premium easing */

    /* GPU Acceleration Fix for Brave/Chromium rendering gaps */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.rebel-unskew {
    /* Counter-rotate content */
    transform: rotate(3deg);

    /* Common Layout */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 60px);
    width: 100vw;
    max-width: 1440px;
    margin: 0 auto;
    align-items: center;
    padding: 0 clamp(20px, 5%, 40px);
    transition: gap 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), padding 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Fluid content flow with premium easing */
}

/* ------------------------------------
   SECTION SPECIFICS
--------------------------------------- */

/* --- ABOUT SECTION --- */
/* Rotation logic starts here - we use a negative margin to pull the skewed section OVER the hero, hiding the gap */
.about-section {
    --section-bg: #F0F0F0;
    padding: 100px 5% 80px 5%;
    /* Increased top padding to clearance the overlap */
    margin-top: -60px;
    z-index: 10;
}

.portfolio-title-block {
    --section-bg: #000000;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 150px 5% 60px 5%;
    /* 150px top - 100px overlap = 50px visible top padding vs 50px bottom padding = Centered */
    background-color: #000000 !important;
    z-index: 5;
    /* Lower than About (10) so it sits UNDERNEATH */
    margin-top: -100px;
    /* Tuck well under the About section overlap */
    transition: padding 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), min-height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), margin-top 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-title-block .rebel-unskew {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: transparent;
    transform: rotate(0deg);
    /* Neutralizes the global 3deg unskew so it stays tilted -3deg like the hero */
}

/* --- PORTFOLIO ITEMS --- */
.mayhem-section {
    --section-bg: var(--color-morning-bg);
    --section-accent: var(--color-morning-accent);
    padding: 100px 5% 100px 5%;
    /* Increased top/bottom padding for more height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sour-skull-section {
    --section-bg: var(--color-sour-bg);
    --section-accent: var(--color-sour-accent);
    padding: 100px 5% 100px 5%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sour-skull-section .rebel-unskew {
    margin-top: -60px;
}

.sugar-rush-section {
    --section-bg: var(--color-sugar-bg);
    --section-accent: var(--color-sugar-accent);
    /* background-image: url('../assets/images/portfolio-graphics/sugar_rush_bg_03.webp'); */
    background-attachment: fixed;
    padding: 100px 5% 100px 5%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sugar-rush-section .rebel-unskew {
    margin-top: -60px;
}

.sour-chill-section {
    --section-bg: #137192;
    --section-accent: var(--color-chill-accent);
    padding: 100px 5% 100px 5%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sour-chill-section.theme-dark {
    color: white;
}

.sour-chill-section .rebel-unskew {
    margin-top: -60px;
}

.cotton-candy-section {
    --section-bg: var(--color-cotton-bg);
    --section-accent: var(--color-cotton-accent);
    /* background-image: url('../assets/images/portfolio-graphics/cotton_candy_melt_bg_05.webp'); */
    background-attachment: fixed;
    padding: 100px 5% 100px 5%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cotton-candy-section.theme-dark {
    color: white;
}

.cotton-candy-section .rebel-unskew {
    margin-top: -60px;
}

.boom-box-section {
    --section-bg: var(--color-boom-bg);
    --section-accent: var(--color-boom-accent);
    padding: 100px 5% 100px 5%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.boom-box-section.theme-dark {
    color: white;
}

.boom-box-section .rebel-unskew {
    margin-top: -100px;
    margin-bottom: 50px;
}

/* Desktop only shift for text column */
@media (min-width: 769px) {
    .boom-box-section .project-content-col {
        margin-top: 40px;
    }
}

/* --- CONTACT SECTION --- */
.contact-section {
    --section-bg: #FFFFFF;
    padding: 120px 5%;
}


/* ------------------------------------
   COMPONENT STYLES
--------------------------------------- */
/* Images */
.project-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.character-img {
    width: calc(120% + 60px);
    max-width: 960px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    /* Sits behind the invisible wall */

    /* Ghost Interaction: Prevents Save/Drag menu by making image untargetable */
    pointer-events: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;

    /* Smooth scale transition */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Trigger scale when hovering the container */
.project-image-col:hover .character-img {
    transform: scale(1.05);
}

/* Text Content */
.project-content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

/* ------------------------------------
   ART GUARDIAN (SILENT SHIELD)
--------------------------------------- */
.art-guardian {
    position: relative;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--art-url);
    overflow: hidden;
    /* Prevents the standard mobile "Save Image" menu */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.art-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: transparent;
    pointer-events: auto;
}

.white-circle {
    width: 350px;
    height: 350px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.scratch-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: crosshair;
    /* Anti-download protections */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.reveal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.02);
    /* Bleed past clipping edge */
}

#scratchCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transform: scale(1.02);
    /* Bleed past clipping edge */
}

.scratch-container .art-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    /* Let clicks through to the canvas */
}

.project-title-group {
    margin-bottom: 30px;
}

/* Dynamic Titles */
.rebel-title-primary {
    font-family: 'Permanent Marker', cursive;
    font-size: 54px;
    color: var(--deep-black);
    line-height: 1;
    margin: 0;
}

.theme-dark .rebel-title-primary {
    color: var(--pure-white);
}

.rebel-title-accent {
    font-family: 'Permanent Marker', cursive;
    font-size: 48px;
    color: var(--section-accent);
    line-height: 1;
    margin: 0;
    margin-top: -15px;
    margin-left: 60px;
}

/* Descriptions */
.project-description {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    line-height: 1.6;
    color: inherit;
    margin-bottom: 40px;
}

.project-description p {
    margin-bottom: 25px;
    font-weight: 400;
    /* Matching the regular weight of the About Me text */
}

.project-description p:last-child {
    margin-bottom: 0;
}


/* ------------------------------------
   ABOUT INNER
--------------------------------------- */
.fixed-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

/* Grid logic handled by .rebel-unskew, but About has specialized grid ratio */
.about-section {
    background-color: #ebebeb !important;
    padding-bottom: 50px;
    /* Increase gap before bottom edge */
}

.about-section .rebel-unskew {
    grid-template-columns: 1fr 1.2fr;
    z-index: 10;
}

.about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transform: translateY(-60px);
    /* Move meat the rebel and circle up */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.meet-the {
    font-family: 'Permanent Marker', cursive;
    font-size: 64px;
    line-height: 1;
    color: #000;
    text-transform: uppercase;
    margin-bottom: -10px;
    z-index: 2;
    transition: font-size 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.rebel-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 64px;
    line-height: 1;
    color: var(--brand-pink);
    text-transform: uppercase;
    margin-bottom: 30px;
    z-index: 2;
}

.white-circle {
    width: 350px;
    height: 350px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    align-self: center;
}

.about-right {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #000;
    transform: translateY(-20px);
}

.about-right p {
    margin-bottom: 25px;
}


/* ------------------------------------
   VAULT INNER
--------------------------------------- */
/* .portfolio-wrapper handled by body overflow-x hidden mostly, but kept for legacy if needed */
.portfolio-wrapper {
    overflow: hidden;
    width: 100%;
    background-color: #000000;
    /* Ensure the wrapper itself is pitch black */
}

.vault-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.vault-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    min-height: 200px;
    /* Match section height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.chaos-text {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(80px, 15vw, 200px);
    color: #FFE200;
    margin: 0;
    z-index: 1;
    letter-spacing: -2px;
    line-height: 0.5 !important;
    /* Extremely tight line height as requested */
    transition: font-size 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.vault-top-row {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 1rem;
    width: 100%;
    z-index: 2;
    margin-bottom: 0px;
}

.vault-white {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(40px, 8vw, 100px);
    color: #FFFFFF;
    line-height: 1;
    transition: font-size 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.of-white {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(25px, 4vw, 55px);
    color: #FFFFFF;
    line-height: 1;
}

.pink-badge {
    position: relative;
    margin-top: 10px;
    background-color: var(--brand-pink);
    color: white;
    padding: 6px 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 14px;
    z-index: 3;
    white-space: nowrap;
}


/* ------------------------------------
   CONTACT INNER
--------------------------------------- */
.title-turn {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(50px, 6vw, 70px);
    color: #1A1A1A;
    line-height: 1;
    margin: 0;
}

.title-sugar-pink {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(45px, 5.5vw, 60px);
    color: var(--brand-pink);
    line-height: 1;
    margin-left: 80px;
}

.contact-title-group {
    margin-bottom: 40px;
}

/* ------------------------------------
   CONTACT SECTION SPECIAL OVERRIDES
--------------------------------------- */
.contact-section {
    /* Reset Rotation specific to this section */
    transform: none !important;
    width: 100% !important;
    left: 0 !important;

    /* Slanted Top, Flat Bottom */
    /* Creates the visual "rotation" on top only */
    clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);

    /* Deep overlap to cover the Boom Box blue section */
    margin-top: -150px;

    padding-top: 6vw;
    /* Push content down below the clip */
    padding-bottom: 80px;
    padding-left: 0 !important;
    /* Remove inherited 5% padding from parent */
    padding-right: 0 !important;
    /* Remove inherited 5% padding from parent */
    z-index: 20;
    min-height: auto;
}

.contact-section .rebel-unskew {
    /* No need to counter-rotate since section is flat */
    transform: none !important;
    width: 100vw !important;
    /* Force full viewport width to match other sections */
    max-width: 1440px;
    /* Adjusted relative to new 1440px base */
    margin: 0 auto;
    /* Center it */
    grid-template-columns: 1fr 1fr;
    /* Equal columns for tighter fit */
    gap: 50px;
    /* Remove default grid gap, let internal padding handle it if needed, or keeping minimal */
    padding: 0 clamp(20px, 5%, 40px);
}

.contact-content {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1A1A1A;
    margin-top: 0;
    /* Align with top of form for cleaner look */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    /* Push content down slightly to align with About section text */
    padding-top: 20px;
}

.contact-content p {
    margin-bottom: 25px;
}

.rebel-contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.form-group label {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    margin-bottom: 10px;
    cursor: default;
    width: max-content;
    /* Only capture hover on the text itself */
}

.form-group input,
.form-group textarea {
    background-color: var(--brand-pink);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 16px 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* HIGHLIGHT ONLY ON DIRECT HOVER/FOCUS OF THE INPUT ITSELF */
.form-group input:hover,
.form-group textarea:hover,
.form-group input:focus,
.form-group textarea:focus {
    background-color: #FFE200 !important;
    color: #000000 !important;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder,
.form-group input:hover::placeholder,
.form-group textarea:hover::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.btn-submit {
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid #000000;
    border-radius: 50px;
    padding: 12px 30px;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: scale(1.05);
    background-color: #FFE200;
    border-color: #FFE200;
    color: #000000;
    animation: crinkle 0.1s infinite;
}

.btn-submit.success-state {
    background-color: var(--brand-pink) !important;
    border-color: var(--brand-pink) !important;
    color: #FFFFFF !important;
    animation: success-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes success-pop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.15) rotate(2deg);
    }

    70% {
        transform: scale(0.95) rotate(-1deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}


/* ------------------------------------
   SITE FOOTER
--------------------------------------- */
.site-footer {
    background-color: var(--brand-pink);
    width: 100%;
    height: 120px;
    /* 120px visual height */
    position: relative;
    /* GAP KILLER: Standard small overlap since contact bottom is now flat */
    margin-top: -2px;
    z-index: 100;
    overflow: hidden;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5%, 40px);
    position: relative;
}

.footer-logo-block {
    display: flex;
    align-items: center;
}

.footer-legal-block {
    display: flex;
    align-items: center;
}

.footer-divider {
    display: none;
    /* Hidden on desktop */
}

.footer-copyright {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.footer-social-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    width: 90px;
    height: auto;
    transition: transform 0.2s ease;
}

.footer-logo:hover {
    gap: 20px;
}

.social-text {
    margin: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 22px;
    /* Increased from base by 6px */
}

.social-text span {
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
    /* Regular for Permanent Marker */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    transition: color 0.3s ease, transform 0.3s ease;
}

.instagram-icon {
    width: 34px;
    height: 34px;
}

.social-icon-link:hover {
    color: #FFE200;
    transform: scale(1.1);
}


/* ------------------------------------
   MEDIA QUERIES (RESPONSIVE)
--------------------------------------- */
@media (max-width: 768px) {

    /* Hero Mobile Optimization */
    .hero-section {
        align-items: center !important;
        padding-top: 0 !important;
        height: 100vh !important;
        overflow: hidden !important;
    }

    .hero-bg-wrapper {
        height: 100%;
    }

    .hero-bg-left {
        height: 100% !important;
        top: 0 !important;
        left: -260px !important;
        width: calc(50% + 200px) !important;
        max-width: none !important;
        object-fit: cover;
        object-position: right center;
        /* Show the inner edge */
    }

    .hero-bg-right {
        height: 100% !important;
        top: 0 !important;
        right: -260px !important;
        width: calc(50% + 200px) !important;
        max-width: none !important;
        object-fit: cover;
        object-position: left center;
        /* Show the inner edge */
    }



    .hero-content {
        padding: 0 20px;
        /* Safe gutters */
        height: 100%;
        max-height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* Force horizontal centering */
        text-align: center;
        gap: 2vh;
        /* Dynamic gap between main blocks */
    }

    .hero-badge {
        right: clamp(1rem, 10vw, 3rem);
        bottom: -0.5rem;
    }


    .hero-logo {
        width: 140px;
        transform: none !important;
    }


    .hero-title {
        font-size: clamp(3.5rem, 15vw, 6rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 2.5vh, 1.1rem);
    }

    .hero-actions-group {
        transform: none !important;
        /* Remove static shift for better centering */
        margin-top: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1.5vh;
        /* Dynamic gap between buttons */
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: clamp(8px, 1.5vh, 12px) 30px;
        /* Slimmer buttons on short screens */
    }

    /* Common Section Adjustments */
    .rebel-section {
        width: 150%;
        left: -25%;
        padding: 60px 20px;
        margin-top: -60px;
        /* Smaller overlap on mobile */
    }



    .rebel-unskew {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .project-image-col {
        justify-content: center;
    }

    /* Mobile Order Config */
    .sour-skull-section .project-image-col,
    .sugar-rush-section .project-image-col,
    .sour-chill-section .project-image-col,
    .boom-box-section .project-image-col,
    .cotton-candy-section .project-image-col {
        order: -1;
    }

    .character-img {
        width: 120%;
        /* Super-sized mobile impact */
        max-width: 120%;
        margin: 0 auto;
        display: block;
    }

    .project-content-col {
        width: 100%;
        padding: 0 10px;
        text-align: center;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project-title-group {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: -40px;
        /* Pull titles up to overlap image */
        position: relative;
        z-index: 10;
        /* Ensure titles sit ON TOP of the image */
    }

    .rebel-title-primary,
    .rebel-title-accent {
        font-size: 55px;
        text-align: center;
        margin-left: 0;
    }

    .rebel-title-accent {
        margin-top: -15px;
        margin-left: 40px;
    }

    /* About */

    .about-section {
        /* Remove Global Rotation Logic */
        transform: none !important;
        width: 100% !important;
        left: 0 !important;
        margin-top: 0 !important;
        /* Flush with Hero */

        /* TOP: Flat, BOTTOM: Tilted (-3 deg equivalent across width) */
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);

        padding-top: 50px;
        padding-bottom: 80px;
        /* Balanced with the text shift */
        min-height: auto;
        position: relative;
        z-index: 10;
        background-color: #ebebeb;
    }

    .about-section .rebel-unskew {
        /* No counter-rotation needed since section is flat */
        transform: none !important;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
        padding: 0 20px;
        width: 100% !important;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .about-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-right: 0;
        /* Reset desktop padding */
        transform: none !important;
    }

    .meet-the {
        font-size: clamp(32px, 10vw, 48px);
        margin-bottom: 0;
        text-align: center;
        width: 100%;
    }

    .rebel-text {
        font-size: clamp(48px, 15vw, 64px);
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
    }

    .white-circle {
        width: 65vw;
        height: 65vw;
        max-width: 280px;
        max-height: 280px;
        margin: 0 auto;
        transform: translateY(10px);
    }

    .about-right {
        width: 100% !important;
        text-align: center;
        padding: 0 !important;
        /* Explicitly reset any desktop padding-left/right */
        margin: 0 !important;
        box-sizing: border-box;
        transform: translateY(30px);
    }

    .about-right p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }

    /* Vault */
    .chaos-text {
        font-size: 100px;
        /* Massive mobile Chaos */
    }

    .vault-white {
        font-size: 55px;
        /* Maximum mobile title */
    }

    .of-white {
        font-size: 35px;
        /* Stronger accent text */
    }

    .pink-badge {
        font-size: 11px;
        /* Smaller badge text for mobile */
        padding: 4px 12px;
        /* Tighter badge padding */
    }

    .portfolio-title-block {
        padding: 65px 20px 35px;
        /* Balanced padding for perfect vertical centering */
        margin-top: -40px !important;
        /* Match About section's tuck for mobile symmetry */
        min-height: 260px;
    }

    /* Standardized Mobile Padding for All Portfolio Sections */
    .mayhem-section {
        padding: 60px 20px 120px 20px !important;
        min-height: auto;
    }

    .sour-skull-section,
    .sugar-rush-section,
    .sour-chill-section {
        padding: 10px 20px 120px 20px !important;
        min-height: auto;
    }

    .cotton-candy-section,
    .boom-box-section {
        padding: 0px 20px 120px 20px !important;
        min-height: auto;
    }

    /* Reset vertical pulls on mobile to match Mayhem balance */
    .sour-skull-section .rebel-unskew,
    .sugar-rush-section .rebel-unskew,
    .sour-chill-section .rebel-unskew,
    .cotton-candy-section .rebel-unskew {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .boom-box-section .rebel-unskew {
        margin-top: -20px !important;
        margin-bottom: 40px !important;
    }

    .contact-section {
        /* Mobile Override for Flat Bottom */
        padding-bottom: 50px !important;
        clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%) !important;
        margin-top: -120px !important;
        /* Deep overlap on mobile */
    }

    /* Contact */
    .contact-section .rebel-unskew {
        grid-template-columns: 1fr !important;
        gap: 40px;
        width: 100% !important;
        padding: 0 20px !important;
        /* Safe mobile padding */
    }

    .contact-title-group {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 40px;
        /* Gap between title and text body */
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .title-turn {
        text-align: center;
    }

    .title-sugar-pink {
        margin-left: 40px;
        margin-top: -10px;
        text-align: center;
    }

    .btn-submit {
        align-self: center;
        /* Center the button on mobile */
        margin-top: 20px;
    }

    /* Footer Mobile Refinement */
    .site-footer {
        height: auto;
        /* Allow growth for stacked content */
        min-height: 120px;
        margin-top: -2px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        height: auto;
        padding: 30px 20px 20px;
    }

    .footer-logo-block {
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-divider {
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .footer-legal-block {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .footer-copyright {
        position: static;
        transform: none;
        font-size: 11px;
        text-align: left;
        width: auto;
        opacity: 0.8;
    }

    .footer-logo {
        width: 65px;
    }

    .footer-social-group {
        margin-top: 0;
    }

    .social-text {
        font-size: 1.1rem;
        /* Roughly 18px, increased by ~6px from previous small state */
        display: flex;
        flex-direction: column;
        text-align: right;
        font-family: 'Permanent Marker', cursive;
        letter-spacing: 0.05em;
        line-height: 1.1;
    }

    .footer-social-group .social-icon-link {
        margin-right: -2px;
        /* Subtle optical alignment */
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        padding: 15px;
    }
}