:root {
    --bg-color: #f4f4f0;
    --text-color: #000000;
    --card-bg: #ffffff;
    --shadow-color: #000000;
    --primary-pop: #ff90e8;
    --secondary-pop: #fff35c;
    --accent-pop: #00eb88;
    --fourth-pop: #ff8800;
    --border-width: 3px;
    --shadow-offset: 6px;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --modal-overlay: rgba(244, 244, 240, 0.95);
    --selection-bg: var(--primary-pop);
    --grid-color: rgba(0, 0, 0, 0.05);
}

[data-theme='dark'] {
    --bg-color: #0c0c14;
    --text-color: #e4e0db;
    --card-bg: #181824;
    --shadow-color: #3d2850;
    --primary-pop: #e9a8ff;
    --secondary-pop: #ffd166;
    --accent-pop: #72efdd;
    --fourth-pop: #a5b4fc;
    --modal-overlay: rgba(12, 12, 20, 0.98);
    --selection-bg: var(--accent-pop);
    --grid-color: rgba(255, 255, 255, 0.03);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    background-image:
        radial-gradient(var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
}

::selection {
    background: var(--selection-bg);
    color: #000;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

/* Neubrutalism Components */
.brutal-card {
    background: var(--card-bg);
    border: var(--border-width) solid var(--text-color);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--shadow-color);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.brutal-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px var(--shadow-color);
}

[data-theme='dark'] .brutal-card:hover {
    border-color: var(--primary-pop);
    box-shadow: 0 0 20px rgba(233, 168, 255, 0.12), 8px 8px 0 var(--shadow-color);
}

.brutal-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-pop);
    border: var(--border-width) solid var(--text-color);
    box-shadow: 4px 4px 0px var(--shadow-color);
    text-decoration: none;
    color: #000;
    /* Buttons always have dark text for neubrutalism pops */
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.1s;
    cursor: pointer;
}

[data-theme='dark'] .brutal-btn {
    color: #000;
}

.brutal-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--shadow-color);
}

/* Secondary Multi-Theme Button (See All) */
.brutal-btn-secondary {
    background: #fff !important;
    color: #000 !important;
    border: 3px solid #000 !important;
    box-shadow: 5px 5px 0 #000 !important;
}

[data-theme='dark'] .brutal-btn-secondary {
    background: transparent !important;
    color: var(--text-color) !important;
    border: 3px solid rgba(228, 224, 219, 0.3) !important;
    box-shadow: 4px 4px 0 var(--shadow-color) !important;
}

.brutal-btn-secondary:active {
    transform: translate(3px, 3px) !important;
    box-shadow: 2px 2px 0 currentColor !important;
}

/* Layout */
header {
    padding: 0.75rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-width) solid var(--text-color);
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: var(--border-width) solid var(--text-color);
    background: var(--secondary-pop);
    box-shadow: 3px 3px 0 var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.15s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0;
    border-radius: 4px;
    /* Slight roundness for buttons */
}

[data-theme='dark'] .theme-toggle {
    background: var(--primary-pop);
    box-shadow: 3px 3px 0 var(--shadow-color);
    border-color: var(--text-color);
}

.theme-toggle:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--shadow-color);
}

[data-theme='dark'] .theme-toggle:hover {
    box-shadow: 5px 5px 0 var(--shadow-color);
}

.theme-toggle:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--shadow-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--text-color);
}

nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary-pop);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.hero {
    padding: 8rem 5% 4rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-highlight {
    background: var(--secondary-pop);
    color: #000 !important;
    /* Force ink contrast */
    padding: 0.1em 0.3em;
    margin: 0.2em 0.1em 0.3em;
    display: inline-block;
    border: 3px solid #000;
    transform: rotate(-1.5deg);
    box-shadow: 6px 6px 0 #000;
    line-height: 1;
    white-space: nowrap;
}

[data-theme='dark'] .hero-highlight {
    border-color: rgba(228, 224, 219, 0.3);
    box-shadow: 6px 6px 0 var(--shadow-color);
}

.hero-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--accent-pop);
    border: var(--border-width) solid var(--text-color);
    box-shadow: 12px 12px 0px var(--text-color);
    overflow: hidden;
    position: relative;
}

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

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

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
}

.stat-item {
    background: var(--card-bg);
    border: var(--border-width) solid var(--text-color);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.stat-item[style*="background"] {
    color: #000 !important;
}

[data-theme='dark'] .stat-item[style*="background"] {
    border-color: rgba(228, 224, 219, 0.15);
    box-shadow: 5px 5px 0 var(--shadow-color);
    position: relative;
    overflow: hidden;
}

[data-theme='dark'] .stat-item[style*="background"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: inherit;
}

.stat-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Work Section */
.section-title {
    padding: 0 5%;
    margin-top: 6rem;
    margin-bottom: 3rem;
    font-size: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Changed from flex-end */
    padding-right: 5%;
    margin-top: 4rem;
    /* Added margin for better spacing */
}

.carousel-nav {
    display: flex;
    gap: 0.75rem;
    /* Tighter gap */
}

.nav-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--card-bg);
    color: var(--text-color);
    border: 2.5px solid var(--text-color);
    box-shadow: 3.5px 3.5px 0 var(--shadow-color);
    cursor: pointer;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0 3.5rem;
}

.carousel-track {
    display: flex;
    gap: 32px;
    /* Fixed gap for desktop */
    padding: 0 5%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-track .featured-item {
    min-width: 420px;
    height: 340px;
    flex-shrink: 0;
    background: var(--card-bg);
    border: var(--border-width) solid var(--text-color);
    box-shadow: 8px 8px 0 var(--shadow-color);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin: 1rem 0;
}

.featured-item:hover {
    transform: translateY(-8px);
    box-shadow: 14px 14px 0 #000;
}

/* Signature background accents */
.featured-item:nth-child(1) {
    --item-accent: var(--primary-pop);
}

.featured-item:nth-child(2) {
    --item-accent: var(--secondary-pop);
}

.featured-item:nth-child(3) {
    --item-accent: var(--accent-pop);
}

.featured-item:nth-child(4n) {
    --item-accent: var(--primary-pop);
}

.featured-item .item-index {
    position: absolute;
    top: -30px;
    right: -10px;
    font-family: var(--font-display);
    font-size: 10rem;
    font-weight: 900;
    color: var(--item-accent);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.featured-item .floating-badge {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    background: #000;
    color: #fff;
    padding: 6px 14px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    z-index: 2;
}

.featured-item h3 {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.featured-item .item-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.featured-item p {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.3;
    max-width: 220px;
    margin: 0;
}

.featured-item .item-visual {
    width: 120px;
    height: 120px;
    border: 3px solid var(--text-color);
    box-shadow: 5px 5px 0 var(--shadow-color);
    background: var(--bg-color);
    overflow: hidden;
    flex-shrink: 0;
}

.featured-item .item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-track .featured-item {
        width: 90vw;
        min-width: 0;
        /* Override desktop 420px to prevent overflow */
        flex-shrink: 0;
        height: auto;
        background: var(--card-bg) !important;
        color: var(--text-color) !important;
        border: var(--border-width) solid var(--text-color) !important;
        border-top: 12px solid var(--item-accent) !important;
        box-shadow: 6px 6px 0 var(--shadow-color) !important;
        margin-right: 0;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }

    [data-theme='dark'] .carousel-track .featured-item {
        border-color: var(--text-color) !important;
        box-shadow: 6px 6px 0 var(--shadow-color) !important;
    }

    .featured-item .item-index {
        display: none;
    }

    .featured-item .floating-badge {
        position: static;
        display: inline-block;
        background: var(--text-color);
        color: var(--card-bg);
        padding: 4px 10px;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 1rem;
    }

    .featured-item h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        line-height: 1.1;
        text-transform: uppercase;
        width: 100%;
    }

    .featured-item .item-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
    }

    .featured-item p {
        font-size: 1rem;
        max-width: 100%;
        line-height: 1.5;
        opacity: 0.9;
        font-weight: 600;
    }

    .featured-item .item-visual {
        display: block;
        width: 100%;
        height: 220px;
        /* More proportional for 90vw width */
        margin: 0;
        border: 2px solid var(--text-color);
        box-shadow: 4px 4px 0 var(--shadow-color);
    }
}


.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    padding: 0 5% 4rem;
}

.work-card {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.work-card .card-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-color);
    border-bottom: var(--border-width) solid var(--text-color);
    overflow: hidden;
}

.work-card .card-body {
    padding: 2rem;
    flex-grow: 1;
}

.work-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border: 2px solid var(--text-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.5rem;
    margin-bottom: 1rem;
}

.tag-pink,
.tag-yellow,
.tag-green {
    color: #000;
    border-color: var(--text-color);
}

.tag-pink {
    background: var(--primary-pop);
}

.tag-yellow {
    background: var(--secondary-pop);
}

.tag-green {
    background: var(--accent-pop);
}

/* Customers Marquee Section */
.customers-section {
    padding: 6rem 5%;
    overflow: hidden;
}

.customers-header {
    text-align: center;
    margin-bottom: 3rem;
}

.customers-marquee-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: hidden;
}

.customers-marquee {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.customers-track {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    align-items: center;
}

.customers-marquee--left .customers-track {
    animation: customer-scroll-left 35s linear infinite;
}

.customers-marquee--right .customers-track {
    animation: customer-scroll-right 35s linear infinite;
}

@keyframes customer-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes customer-scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.customer-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.4rem;
    border: var(--border-width) solid var(--text-color);
    box-shadow: 3px 3px 0 var(--text-color);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.customer-chip:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--text-color);
}

.chip-pink { background: var(--primary-pop); color: #000; }
.chip-yellow { background: var(--secondary-pop); color: #000; }
.chip-green { background: var(--accent-pop); color: #000; }
.chip-orange { background: var(--fourth-pop); color: #000; }

/* Companies Section */
.companies {
    background: var(--text-color);
    color: var(--card-bg);
    /* Inverted text color for marquee */
    padding: 4rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: var(--border-width) solid var(--text-color);
    border-bottom: var(--border-width) solid var(--text-color);
}

.marquee {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee span {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 3rem;
    opacity: 0.5;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    padding: 6rem 5% 4rem;
    background: var(--secondary-pop);
    color: #000;
    /* Force black text on yellow for contrast */
    border-top: var(--border-width) solid var(--text-color);
    transition: all 0.3s ease;
}

[data-theme='dark'] footer {
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--bg-color) 100%);
    color: var(--text-color);
    border-top-color: var(--primary-pop);
}

.footer-highlight-text {
    color: #000;
}

[data-theme='dark'] .footer-highlight-text {
    color: var(--text-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: var(--border-width) solid var(--text-color);
    box-shadow: 4px 4px 0px var(--shadow-color);
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 900;
}

.social-btn:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px var(--shadow-color);
    background: var(--primary-pop);
    color: #000;
}

/* Marketplace Styling */
.marketplace-section {
    padding: 2rem 5% 4rem;
    border-bottom: var(--border-width) dashed var(--text-color);
}

.marketplace-section:last-child {
    border-bottom: none;
}

.marketplace-header {
    margin-bottom: 2rem;
}

.marketplace-header h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.marketplace-header p {
    font-weight: 600;
    max-width: 600px;
    opacity: 0.8;
}

.see-more-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    overflow-y: auto;
    padding: 2rem;
}

.modal.active {
    display: block;
    animation: modalScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

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

.modal-content {
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    background: var(--card-bg);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--primary-pop);
    border: var(--border-width) solid var(--text-color);
    box-shadow: 4px 4px 0 var(--shadow-color);
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.modal-header {
    border-bottom: var(--border-width) solid var(--text-color);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.modal-header h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
}

.modal-header p {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Specific Card adjustments for modal */
.modal .work-card {
    margin: 0;
}

/* ===== Dark Mode Enhancements ===== */

[data-theme='dark'] .nav-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: rgba(228, 224, 219, 0.2);
}

[data-theme='dark'] .nav-btn:hover {
    background: var(--primary-pop);
    color: #000;
    border-color: var(--primary-pop);
}

[data-theme='dark'] header {
    background: rgba(24, 24, 36, 0.85);
    backdrop-filter: blur(20px);
    border-bottom-color: rgba(228, 224, 219, 0.08);
}

[data-theme='dark'] .hero-image {
    box-shadow: 12px 12px 0 var(--shadow-color);
    border-color: rgba(228, 224, 219, 0.15);
}

[data-theme='dark'] .featured-item:hover {
    box-shadow: 0 0 25px rgba(233, 168, 255, 0.12), 10px 10px 0 var(--shadow-color);
}

[data-theme='dark'] .featured-item .floating-badge {
    background: var(--primary-pop);
    color: #000;
}

[data-theme='dark'] .companies {
    background: var(--card-bg);
    color: var(--text-color);
    border-top-color: rgba(228, 224, 219, 0.06);
    border-bottom-color: rgba(228, 224, 219, 0.06);
}

[data-theme='dark'] .social-btn:hover {
    background: var(--primary-pop);
    color: #000;
    box-shadow: 0 0 15px rgba(233, 168, 255, 0.2), 5px 5px 0 var(--shadow-color);
}

[data-theme='dark'] .close-modal {
    color: #000;
}

[data-theme='dark'] .close-modal:active {
    box-shadow: 2px 2px 0 var(--shadow-color);
}

[data-theme='dark'] .marketplace-section {
    border-bottom-color: rgba(228, 224, 219, 0.06);
}

[data-theme='dark'] .tag-pink,
[data-theme='dark'] .tag-yellow,
[data-theme='dark'] .tag-green {
    color: #000;
    border-color: rgba(228, 224, 219, 0.15);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    :root {
        --border-width: 2px;
        --shadow-offset: 4px;
    }

    html {
        font-size: 14px;
    }

    header {
        padding: 1rem 5%;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        background: var(--bg-color);
        border-bottom: var(--border-width) solid var(--text-color);
        gap: 1rem;
    }

    .logo {
        font-size: 1.3rem;
        flex: 1;
    }

    .header-right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        width: auto;
    }

    nav {
        order: 3;
        /* Push to bottom row */
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        padding-top: 0.5rem;
        border-top: 1px dashed var(--text-color);
    }

    nav a {
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 0.1em;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 4rem 5% 2rem;
    }

    .hero-content {
        order: 2;
    }

    .hero h1 {
        font-size: clamp(3rem, 12vw, 4rem);
        line-height: 1.25;
    }

    .hero-highlight {
        white-space: normal;
        padding: 0.1em 0.2em;
        margin-bottom: 0.25em;
        box-shadow: 4px 4px 0 #000;
    }

    [data-theme='dark'] .hero-highlight {
        box-shadow: 4px 4px 0 var(--shadow-color);
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .hero div[style*="display: flex"] {
        flex-direction: column;
        width: 100%;
    }

    .brutal-btn {
        width: 100%;
        text-align: center;
        padding: 1.2rem;
    }

    .hero-image {
        order: 1;
        max-width: 280px;
        margin: 0 auto;
    }

    .brutal-card {
        padding: 1.5rem;
    }

    .carousel-nav {
        justify-content: center;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 2rem 5%;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 2.2rem;
        text-align: center;
        margin: 3rem 0 1rem;
        padding: 0;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0 5%;
    }

    .carousel-track {
        gap: 5vw;
        /* Viewport relative gap for precision */
        padding: 0 5vw;
        /* Viewport relative padding */
    }

    .work-grid,
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .marketplace-section {
        padding: 1.5rem 5% 2rem;
    }

    .marketplace-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .marketplace-header h3 {
        font-size: 1.8rem;
    }

    .marketplace-header p {
        font-size: 0.95rem;
    }

    .work-card .card-body {
        padding: 1.5rem;
        text-align: center;
    }

    .work-card h3 {
        font-size: 1.5rem;
    }

    .tags {
        justify-content: center;
    }

    .companies {
        padding: 3rem 0;
    }

    .marquee span {
        font-size: 1.5rem;
        margin: 0 1rem;
    }

    .customers-section {
        padding: 3rem 0;
    }

    .customers-header {
        padding: 0 5%;
        margin-bottom: 2rem;
    }

    .customers-header .section-title {
        font-size: 1.8rem;
        margin: 0.75rem 0 0;
        line-height: 1.2;
    }

    .customers-marquee-wrap {
        gap: 0.85rem;
    }

    .customers-marquee {
        mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    }

    .customers-track {
        gap: 0.65rem;
    }

    .customers-marquee--left .customers-track {
        animation-duration: 25s;
    }

    .customers-marquee--right .customers-track {
        animation-duration: 25s;
    }

    .customer-chip {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
        box-shadow: 2px 2px 0 var(--text-color);
        letter-spacing: 0.03em;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .modal {
        padding: 1rem;
    }

    .modal-header {
        padding-right: 3.5rem;
    }

    .modal-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .customers-header .section-title {
        font-size: 1.5rem;
    }

    .customer-chip {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Addons View: Small 3 square icons */
    .marketplace-section .work-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem !important;
        /* Increased breathing room */
        padding-bottom: 0.5rem;
    }

    .marketplace-section .work-card {
        aspect-ratio: 1/1;
        padding: 0 !important;
        border-width: 2px !important;
        box-shadow: 3px 3px 0 var(--shadow-color) !important;
        /* slightly deeper shadow */
        transform: none !important;
        border-radius: 12px !important;
        /* "App Icon" rounded look */
        overflow: hidden;
        /* clean clipping */
    }

    /* Touch feedback */
    .marketplace-section .work-card:active {
        transform: scale(0.95) !important;
        box-shadow: 1px 1px 0 var(--shadow-color) !important;
        transition: all 0.1s;
    }

    .marketplace-section .work-card:hover {
        /* Reset hover for touch devices to avoid sticking */
        transform: none !important;
        box-shadow: 3px 3px 0 var(--shadow-color) !important;
    }

    .marketplace-section .work-card .card-body {
        display: none !important;
    }

    .marketplace-section .work-card .card-img {
        height: 100%;
        border-bottom: none !important;
    }

    .marketplace-section .see-more-container {
        padding: 0;
        margin-top: 1.25rem;
        display: block !important;
    }

    .marketplace-section .see-more-container .brutal-btn {
        width: 100%;
        padding: 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
        /* Slight rounding for button too to match */
        display: block;
        display: flex;
        /* alignment */
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
}