/* ==========================================
   RESET & VARIABLES
========================================== */
:root {
    --bg-color: #050505;
    --text-color: #f5f5f5;
    --accent-color: #ccff00;
    --secondary-text: #888888;

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --container-width: 1400px;
    --section-padding: 8rem;

    --cursor-size: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    /* Custom cursor is managed via JS and class .has-custom-cursor */
}

/* Base custom cursor hidden until JS activates it */
body.has-custom-cursor {
    cursor: none;
}

body.has-custom-cursor * {
    cursor: none !important;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==========================================
   ANIMATED TV NOISE OVERLAY
========================================== */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200vw;
    height: 200vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
    /* Sbtler opacity */
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    animation: tvNoise 0.2s steps(2) infinite;
}

@keyframes tvNoise {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-2%, -2%);
    }

    20% {
        transform: translate(-4%, 2%);
    }

    30% {
        transform: translate(2%, -4%);
    }

    40% {
        transform: translate(-2%, 4%);
    }

    50% {
        transform: translate(4%, -2%);
    }

    60% {
        transform: translate(-4%, 4%);
    }

    70% {
        transform: translate(2%, 2%);
    }

    80% {
        transform: translate(-2%, -2%);
    }

    90% {
        transform: translate(2%, -4%);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* ==========================================
   CUSTOM CURSOR
========================================== */
.cursor-dot {
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.3s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(204, 255, 0, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
}

body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-outline {
    opacity: 1;
}

.cursor-hover .cursor-dot {
    background-color: transparent;
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--accent-color);
    background-color: rgba(204, 255, 0, 0.1);
    backdrop-filter: blur(2px);
}

/* ==========================================
   GLOBAL STRUCTURE
========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding) 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

.highlight {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.center-btn {
    display: flex;
    justify-content: center;
}

/* ==========================================
   NAVIGATION
========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    mix-blend-mode: difference;
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Contact Nav Link with Icon */
.contact-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(204, 255, 0, 0.15);
    color: var(--accent-color);
    animation: phone-pulse 2s infinite;
}

.nav-phone-icon {
    width: 16px;
    height: 16px;
}

@keyframes phone-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.4);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(204, 255, 0, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(204, 255, 0, 0);
        transform: scale(1);
    }
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    gap: 6px;
    flex-direction: column;
}

.menu-line {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
}

/* ==========================================
   HERO SECTION
========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5% 8rem 5%;
    /* Added bottom padding to avoid overlap with slanted marquee */
    position: relative;
    z-index: 20;
    /* Keep it above the marquee just in case */
}

.hero-content {
    margin-top: 5rem;
}

.hero-line {
    overflow: hidden;
}

.hero-text {
    font-size: clamp(4rem, 10vw, 12rem);
    line-height: 0.9;
    letter-spacing: -2px;
    transform: translateY(100%);
}

.hero-text.primary {
    color: var(--text-color);
}

.hero-text.indented {
    margin-left: 10%;
}

.hero-subtitle {
    margin-top: 3rem;
    margin-bottom: 3rem;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--secondary-text);
    max-width: 600px;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 5%;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* ==========================================
   MARQUEE SECTION
========================================== */
.services-marquee {
    padding: 4rem 0;
    background-color: var(--text-color);
    color: var(--bg-color);
    overflow: hidden;
    position: relative;
    transform: rotate(-2deg) scale(1.05);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.standalone-marquee {
    padding: 2.5rem 0;
    transform: rotate(2deg) scale(1.05);
    /* Slight tilt in opposite direction */
}

.marquee-inner {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
}

.marquee-reverse {
    animation: marqueeReverse 25s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-right: 2rem;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 800;
    white-space: nowrap;
}

.marquee-content .dot {
    color: #000;
}

.outline-text {
    color: transparent !important;
    -webkit-text-stroke: 1.5px var(--bg-color);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ==========================================
   INTERACTIVE GAME (Chrome Dino Clone)
========================================== */
.game-section {
    position: relative;
    overflow: hidden;
}

.game-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #0c0c0c;
    border: 1px solid rgba(204, 255, 0, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Maintain proper aspect ratio (800x300 canvas) */
    aspect-ratio: 8 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
    /* Retro look */
}

#game-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

#game-ui.hidden {
    opacity: 0;
}

#game-title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

#game-instructions {
    color: var(--secondary-text);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#game-score {
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.5rem;
    opacity: 0;
    z-index: 10;
    transition: opacity 0.3s ease;
}

#game-score.active {
    opacity: 1;
}

/* ==========================================
   INTERACTIVE PROJECTS (HOVER REVEAL)
========================================== */
.projects {
    position: relative;
    /* Prevent backgrounds from bleeding outside the section */
    overflow: hidden;
}

.relative-z {
    position: relative;
    z-index: 10;
}

/* Fullscreen Backgrounds */
.projects-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 6s linear;
    transform: scale(1);
    /* Darken the image so text remains readable */
    filter: brightness(0.3) saturate(1.2);
}

.project-bg.active {
    opacity: 1;
    transform: scale(1.05);
    /* Slow zoom effect on hover */
}

/* Projects List */
.projects-list {
    margin: 4rem 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-item {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: padding 0.4s ease, border-color 0.4s ease;
}

.project-item:hover {
    padding-left: 2rem;
    padding-right: 2rem;
    border-bottom-color: var(--accent-color);
}

.project-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.project-number {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--secondary-text);
    width: 10%;
    transition: color 0.4s ease;
}

.project-name {
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-transform: uppercase;
    width: 60%;
    margin: 0;
    line-height: 1;
    transition: color 0.4s ease, transform 0.4s ease;
}

.project-category {
    text-align: right;
    width: 30%;
    font-size: 1.1rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    transition: color 0.4s ease;
}

/* Hover States for Text */
.project-item:hover .project-number,
.project-item:hover .project-category {
    color: var(--text-color);
}

.project-item:hover .project-name {
    color: var(--accent-color);
    transform: translateX(20px);
}

/* Mobile Preview (Hidden on Desktop by default) */
.project-mobile-preview {
    display: none;
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.project-mobile-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ==========================================
   CONTACT FORM
========================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-text h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.contact-text p {
    font-size: 1.2rem;
    color: var(--secondary-text);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--secondary-text);
    text-transform: uppercase;
}

.radio-group,
.checkbox-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-btn,
.checkbox-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

input[type="radio"],
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-color);
    border-radius: 2px;
    background: transparent;
    position: relative;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
}

input[type="checkbox"]:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-color);
    font-size: 14px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 1rem 0;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-bottom-color: var(--accent-color);
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px var(--bg-color) inset;
    -webkit-text-fill-color: var(--text-color);
}

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
    border-top: 1px solid #222;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 2rem;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

/* ==========================================
   CASE STUDY DETAIL PAGE (OLV)
========================================== */
.case-hero {
    position: relative;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.case-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 1) 100%);
    z-index: 2;
}

.case-hero .container {
    text-align: center;
    max-width: 900px;
}

.case-title {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.case-subtitle {
    font-size: clamp(1.2rem, 2vw, 2rem);
    color: var(--secondary-text);
    margin-bottom: 3rem;
}

.case-scroll-btn {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
}

/* Z-Axis Depth Gallery */
.z-scroll-gallery {
    position: relative;
    width: 100%;
    /* No defined height here, GSAP will handle pinning */
}

.z-scroll-canvas {
    height: 100dvh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
}

.z-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
}

.case-block {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 10rem 0;
    overflow: hidden;
}

.case-blur-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.2) saturate(1.5);
    z-index: 1;
    pointer-events: none;
}

.case-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.case-row.row-reverse {
    flex-direction: row-reverse;
}

.case-text-col {
    flex: 0 0 45%;
}

.case-text-col h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.case-text-col p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    line-height: 1.6;
}

.case-visual-col {
    flex: 0 0 50%;
    position: relative;
}

.case-visual-col img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.offset-visual {
    transform: translateY(2rem);
}

/* ==========================================
   HORIZONTAL SCROLL GALLERY (Global Retail)
========================================== */
.h-scroll-gallery {
    overflow: hidden;
    width: 100%;
}

.h-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    width: 300vw;
    /* 3 panels * 100vw */
    height: 100vh;
}

.h-panel {
    flex: 0 0 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5vw;
}

.h-panel.bg-dark {
    background-color: #020202;
}

.h-panel.text-panel .h-content {
    max-width: 600px;
}

.h-panel.text-panel h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.h-panel.text-panel p {
    font-size: 1.25rem;
    color: var(--text-color);
    line-height: 1.6;
}

.h-panel.visual-panel {
    flex-direction: column;
}

.h-panel.visual-panel img {
    width: 80%;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.h-panel-caption {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   SMM SLOT MACHINE (Viral SMM)
========================================== */
.smm-section {
    padding: 10rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.smm-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.slot-machine {
    background: #111;
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 0 40px rgba(204, 255, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.slot-machine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-color);
}

.slot-window {
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: #000;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
    height: 120px;
    border: 1px inset #333;
}

.slot-reel {
    width: 80px;
    display: flex;
    flex-direction: column;
    font-size: 4rem;
    line-height: 120px;
    /* Will be animated via JS */
}

.slot-item {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-btn {
    width: 100%;
    font-size: 1.2rem;
    padding: 1.5rem;
    background: var(--text-color);
    color: var(--bg-color);
}

.slot-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.slot-result {
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-color);
    min-height: 2em;
}

/* ==========================================
   FINTECH 3D CARD (Future Fintech)
========================================== */
.fintech-section {
    padding: 10rem 0;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.fintech-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.card-scene {
    width: 100%;
    height: 400px;
    perspective: 1000px;
    /* Gives the 3D depth */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-card {
    width: 480px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    /* Smooth follow cursor */
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backface-visibility: hidden;
    overflow: hidden;
}

.card-front {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    background-image: url('https://images.unsplash.com/photo-1526304640581-d334cdbbf45e?auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Bright glare effect overlay on front card */
.card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(105deg, transparent 20%, rgba(204, 255, 0, 0.1) 25%, transparent 30%);
    pointer-events: none;
    z-index: 2;
}

.card-back {
    background: #111;
    transform: rotateY(180deg);
}

.magnetic-strip {
    width: 100%;
    height: 60px;
    background: #000;
    margin-top: 40px;
}

.cvv-strip {
    background: #fff;
    color: #000;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    margin: 20px 40px;
    text-align: right;
    font-family: monospace;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700, #daa520);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.card-logo {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.card-number {
    font-family: monospace;
    font-size: 2rem;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.card-holder,
.card-valid {
    display: inline-block;
    font-family: var(--font-main);
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.card-holder {
    padding-right: 4rem;
}

.card-holder span,
.card-valid span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.fintech-image-row img {
    transition: transform 0.5s ease;
}

.fintech-image-row:hover img {
    transform: scale(1.02);
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */
@media (max-width: 1024px) {

    /* Modify interactive list for tablet */
    .project-name {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .project-item:hover {
        padding-left: 0;
        padding-right: 0;
    }

    .project-item:hover .project-name {
        transform: translateX(10px);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
        /* Halve padding on mobile */
    }

    /* Disable Custom Cursor on Touch Devices completely */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body.has-custom-cursor,
    body.has-custom-cursor * {
        cursor: auto !important;
    }

    .nav-links {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    /* Change Interactive List to Mobile Accordion style */
    .project-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-number {
        width: 100%;
        font-size: 1rem;
    }

    .project-name {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .project-category {
        width: 100%;
        text-align: left;
    }

    .project-item:hover .project-name {
        transform: translateX(0);
    }

    /* Show mobile preview block on mobile */
    .project-mobile-preview {
        display: block;
    }

    /* Hide the fullscreen backgrounds on mobile since hover doesn't exist */
    .projects-backgrounds {
        display: none;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Case Study Mobile Fixes */
    .case-row,
    .case-row.row-reverse {
        flex-direction: column;
        text-align: center;
    }

    .case-visual-col {
        margin-top: 3rem;
    }

    .offset-visual {
        transform: translateY(0);
    }
}