:root {
    /* Color Palette */
    --bg-color: #0B0B0B;
    --navy-dark: #000000;
    --accent-purple: #7C4DFF;
    --accent-lavender: #9D64FF;
    --accent-green: #00FF88;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --_global-padding---padding-global-side: 40px;

    /* Project Card Colors */
    --card-lavender: #C6CFFF;
    --card-lavender-btn: #9AABFF;
    --card-peach: #FFB5A7;
    --card-peach-btn: #F9A49B;
    --card-mint: #B9FBC0;
    --card-mint-btn: #80ED99;
    --card-yellow: #F9E4A1;
    --card-yellow-btn: #E9C46A;
    --card-cyan: #A2EAF2;
    --card-cyan-btn: #7CDDE8;
    --card-tan: #E9D5C3;
    --card-orange: #FF8A5B;

    /* Typography */
    --sans-font: 'Inter', sans-serif;
    --serif-font: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor used later */
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--sans-font);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1;
    padding-right: var(--_global-padding---padding-global-side);
    padding-left: var(--_global-padding---padding-global-side);
}

.container-1252px {
    width: 100%;
    max-width: 78.25rem;
    margin-left: auto;
    margin-right: auto;
}

/* Custom Cursor */
#cursor {
    width: 20px;
    height: 20px;
    background-color: var(--text-primary);
    border-radius: 50%;
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

#cursor-blur {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15), transparent 70%);
    position: fixed;
    z-index: -1;
    pointer-events: none;
    transform: translate(-50%, -50%);
    filter: blur(40px);
}

/* Premium Nav (Replaces Island Nav) */
.premium-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(15px);
    padding: 10px 10px 10px 25px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    z-index: 9999;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 18px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure it's white if it's a dark logo */
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-lavender));
    color: white;
    padding: 12px 25px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Typography Utilities */
.italic-serif {
    font-family: var(--serif-font);
    font-style: italic;
    font-weight: 400;
}

.gradient-text {
    background: linear-gradient(90deg, #FFFFFF, var(--accent-lavender));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

h2, .heading-h2, .section-title {
    font-size: clamp(2.5rem, 8vw, 3.6rem);
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-subtext {
    margin-bottom: 40px;
}
/* AI Section Styling */
.ai-section {
    padding: 120px 0;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    position: relative;
}

/* AI Custom Header (Distinct from Testimonials) */
.ai-custom-header {
    text-align: center;
    margin-bottom: 100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-custom-badge {
    border: 1px solid #10b981;
    color: #10b981;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 20px;
    background: rgba(16, 185, 129, 0.1);
}

.ai-custom-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #fff;
    text-align: center; /* Enforced Centering */
}

.ai-custom-desc {
    color: rgba(255, 255, 255, 0.6);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center; /* Enforced Centering */
}

/* Hub and Spoke Layout */
.ai-hub-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    height: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.central-hub {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.5);
    z-index: 10;
    position: relative;
}

.central-hub::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%);
    animation: hub-pulse 3s infinite;
}

@keyframes hub-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.8; }
}

.ai-hub-icon {
    width: 60px !important;
    height: 60px !important;
    filter: invert(1);
}

/* Feature Cards Positioning */
.ai-card {
    position: absolute;
    width: 340px;
    height: 380px; /* Standardize height for better balance */
    background: #0f0f12;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 36px;
    padding: 30px;
    z-index: 5;
    overflow: visible; /* To allow bottom glow to show */
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

/* Signature Bottom Violet Glow for ALL cards */
.ai-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 10px;
    background: #a855f7;
    filter: blur(25px);
    opacity: 0.6;
    border-radius: 50%;
    z-index: -1;
}

.ai-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
}

.card-top-left { top: 0; left: 5%; }
.card-top-center {
    top: 50px;
    left: 37%;
    transform: translateX(-50%);
}
.card-top-right {
    top: 55px;
    right: 0%;
}
.card-bottom-left { bottom: 0; left: 5%; }
.card-bottom-center {
    bottom: 20px;
    left: 37%;
    transform: translateX(-50%);
}
.card-bottom-right {
    bottom: 60px;
    right: 0;
}

.ai-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.ai-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Mini UI Layouts within cards */
.ai-card-preview {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

/* Connecting Lines (SVG) */
.ai-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ai-line {
    stroke: rgba(168, 85, 247, 0.2);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .ai-hub-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }
    .central-hub, .ai-lines {
        display: none;
    }
    .ai-card {
        position: relative;
        width: 100%;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
}

/* Scroll Animation Styles */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Why Us Section Styling (Corrected) */
.why-us-section {
    padding: 120px 0 160px;
    background: #000; /* Dark Background */
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.why-us-header {
    margin-bottom: 100px;
    max-width: 850px;
    margin: 0 auto;
}

.why-us-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
}

.why-us-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    border-radius: 100px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-subtext {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-visuals {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.element-1 {
    width: 400px;
    height: 400px;
    background: rgba(124, 77, 255, 0.2);
    top: 10%;
    right: 10%;
}

.element-2 {
    width: 300px;
    height: 300px;
    background: rgba(0, 255, 136, 0.1);
    bottom: 20%;
    left: 10%;
}

.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    box-shadow: 0 0 100px rgba(168, 85, 247, 0.8), 0 0 40px rgba(168, 85, 247, 0.4);
}

.hero-mockup {
    position: absolute;
    top: 50%;
    left: 80%;
    transform: translateY(-50%);
    width: 500px;
    height: auto;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn:hover {
    transform: scale(1.05);
}

.btn-purple {
    background-color: #7C4DFF;
    color: white;
    font-size: 1.1rem;
    padding: 18px 40px;
}

.stack-footer {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

/* Marquee Section */
.marquee-section {
    padding: 0px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-size: 5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--glass-border);
    margin-right: 80px;
    padding: 10px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* Project Stacking */
.work-section {
    padding: 120px 0;
}

.work-section .container {
    max-width: 1700px;
}

.project-stack {
    grid-column-gap: 5rem;
    grid-row-gap: 5rem;
    flex-flow: column;
    display: flex;
    position: relative;
    margin-top: 80px;
}

.project-card {
    grid-column-gap: 8.75rem;
    grid-row-gap: 8.75rem;
    background-color: #c6cfff;
    border-radius: 1rem;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5rem 1.25rem 0.5rem 2.5rem;
    text-decoration: none;
    display: flex;
    position: sticky;
    top: 6.25rem;
    overflow: visible;
    color: #1a1a1a;
    width: 100%;
}

.card-lavender {
    background-color: var(--card-lavender);
    --btn-bg: var(--card-lavender-btn);
}

.card-peach {
    background-color: var(--card-peach);
    --btn-bg: var(--card-peach-btn);
}

.card-mint {
    background-color: var(--card-mint);
    --btn-bg: var(--card-mint-btn);
}

.card-yellow {
    background-color: var(--card-yellow);
    --btn-bg: var(--card-yellow-btn);
}

.card-cyan {
    background-color: var(--card-cyan);
    --btn-bg: var(--card-cyan-btn);
}

.project-info,
.cs_card-text-block {
    flex: 1;
    width: 100%;
    max-width: 50%;
    position: relative;
}

.project-category {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.project-category.italic-serif {
    background: transparent;
    padding: 0;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.project-info h3 {
    font-size: 2.75rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.project-info p {
    font-size: 1rem;
    max-width: 420px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.project-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 5px;
}

.project-image {
    flex: 1.2;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.project-card:hover .mockup-img {
    transform: translateY(-20px) scale(1.05) rotate(-2deg);
}

/* Services */
.services-section {
    padding: 150px 0;
    background-color: var(--navy-dark);
}

.tag {
    color: var(--accent-green);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.service-item {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 15px;
}

.service-item p {
    color: var(--text-secondary);
}

/* Footer CTA */
.footer-cta {
    padding: 200px 0;
    text-align: center;
}

.btn-large {
    font-size: 1.5rem;
    padding: 24px 60px;
    margin-top: 40px;
    display: inline-block;
}

.main-footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
}


/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding-bottom: 40px;
    will-change: transform;
}

.testimonials-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.testimonial-card {
    position: relative;
    flex: 0 0 450px;
    height: 680px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
    scroll-snap-align: start;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.client-photo, .video-testimonial-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.testimonial-card:hover .client-photo {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    z-index: 2;
    transition: background 0.3s ease;
}

.testimonial-card:hover .play-btn {
    background: rgba(255, 255, 255, 0.6);
}

.testimonial-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    z-index: 3;
}

.brand-logo {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0.9;
}

.testimonial-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 20px;
    opacity: 0.8;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.author-title {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 4px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.project-card:hover .mockup-img {
    transform: translateY(-20px) scale(1.05) rotate(-2deg);
}

/* Services */
.services-section {
    padding: 150px 0;
    background-color: var(--navy-dark);
}

.tag {
    color: var(--accent-green);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.service-item {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 15px;
}

.service-item p {
    color: var(--text-secondary);
}

/* Footer CTA */
.footer-cta {
    padding: 200px 0;
    text-align: center;
}

.btn-large {
    font-size: 1.5rem;
    padding: 24px 60px;
    margin-top: 40px;
    display: inline-block;
}

.main-footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
}


/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding-bottom: 40px;
    will-change: transform;
}

.testimonials-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.testimonial-card {
    position: relative;
    flex: 0 0 450px;
    height: 680px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
    scroll-snap-align: start;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.client-photo, .video-testimonial-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.testimonial-card:hover .client-photo {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    z-index: 2;
    transition: background 0.3s ease;
}

.testimonial-card:hover .play-btn {
    background: rgba(255, 255, 255, 0.6);
}

.testimonial-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    z-index: 3;
}

.brand-logo {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0.9;
}

.testimonial-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 20px;
    opacity: 0.8;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.author-title {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 4px;
}

.card-tan { background-color: var(--card-tan); }
.card-orange { background-color: var(--card-orange); }

/* ==========================================================================
   GLOBAL RESPONSIVENESS (Laptop, Tablet, Mobile)
   ========================================================================== */

/* Laptop & Desktop (Large Screens) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Tablet & Smaller Laptops (under 1024px) */
@media (max-width: 1024px) {
    :root {
        --_global-padding---padding-global-side: 30px;
    }

    h1 {
        font-size: clamp(2.5rem, 7vw, 4.5rem);
    }

    .project-card {
        padding: 40px;
        grid-column-gap: 4rem;
    }

    .project-info h3 {
        font-size: 2rem;
    }
}

/* ================================================================
   COMPREHENSIVE RESPONSIVE SYSTEM
   Desktop → Laptop → Tablet → Mobile
   ================================================================ */

/* --- TABLET (max 991px) --- */
@media (max-width: 991px) {

    /* Hero */
    .hero {
        height: auto !important;
        min-height: 100svh;
        justify-content: center;
        text-align: center;
        padding: 0;
    }

    .hero .container {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 7vw, 4rem);
        line-height: 1.15;
    }

    .hero-subtext {
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-mockup {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 90%;
        max-width: 480px;
        margin-top: 50px;
        opacity: 1;
    }

    /* Project Stack Cards (Definitely No Overlap) */
    .project-stack {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        grid-row-gap: 40px !important;
        flex-direction: column !important;
        height: auto !important;
    }

    .project-card {
        position: relative !important; /* Overriding base sticky */
        flex-direction: column;
        height: auto !important;
        top: 40px !important;
        padding: 34px 30px !important;
        grid-column-gap: 0px;
    }

    .project-info {
        max-width: 100%;
        flex: none;
        width: 100%;
        padding-bottom: 30px;
    }
    
    .project-category.italic-serif {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .project-info h3 {
        font-size: 5.3rem;
        margin-bottom: 15px;
    }

    .project-info p {
        font-size: 1.5rem;
        max-width: 100%;
        margin-bottom: 25px;
    }


    .project-image {
        min-height: 280px;
        margin-top: 30px;
        padding: 0px;
    }

    .mockup-img {
        border-radius: 12px;
        margin-bottom: -40px; /* Slight overflow look if needed but image shows it inside */
    }

    .stack-footer {
        margin-top: 70px !important;
        margin-bottom: 0px !important;
        display: flex;
        justify-content: center;
    }

    div.pin-spacer {
        margin: 0px !important;
    }

    .why-us-section {
        padding: 0px !important;
    }

    .portfolio-section {
        padding: 1px !important;
    }

    .comparison-section {
        padding: 120px !important;
    }

    .faq-section {
        padding: 0px !important;
    }

    .portfolio-footer-cta {
        margin: 80px auto 0px !important;
    }

    div.pricing-grid {
        row-gap: 80px !important;
    }

}

/* --- MOBILE (max 768px) --- */
@media (max-width: 768px) {

    /* Global container padding */
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Typography */
    h1, .hero h1 {
        font-size: clamp(1.9rem, 9vw, 2.6rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 20px;
    }

    h2, .section-title, .heading-h2 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.2;
    }

    /* Hero specifically */
    .hero .container {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px !important;
    }

    .project-info h3 {
        font-size: 1.8rem;
    }
    

    .hero-badge {
        font-size: 10px;
        padding: 6px 14px;
    }

    .hero-subtext {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .hero-mockup {
        width: 95%;
        max-width: 360px;
    }

    /* Marquee */
    .marquee-content span {
        font-size: 2.5rem;
        margin-right: 40px;
    }

    /* Why Us */
    .why-us-header {
        margin-bottom: 50px;
        padding: 0 20px;
    }

    .why-us-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .video-container-wrapper {
        height: 90vh;
    }

    .video-container-main {
        width: 94% !important;
        height: 38vh !important;
        border-radius: 20px !important;
    }

    /* Testimonials */
    .testimonial-card {
        flex: 0 0 290px;
        height: 460px;
    }

    /* Section paddings */
    .why-us-section {
        padding: 80px 0 100px;
    }

    .ai-section {
        padding: 80px 0;
    }

    .pricing-section {
        padding: 80px 0;
    }

    /* Portfolio pinned section - disable sticky on mobile */
    .portfolio-left-pinned {
        position: relative !important;
        height: auto !important;
        top: 0 !important;
    }

    .portfolio-main-container {
        flex-direction: column;
        gap: 40px;
    }

    .portfolio-left-pinned, .portfolio-right-scroll {
        width: 100% !important;
    }

    .service-cards-row {
        grid-template-columns: 1fr !important;
        min-height: auto;
        gap: 20px;
        margin-bottom: 40px;
    }

    .portfolio-card {
        height: 300px !important;
    }

    .portfolio-card:nth-child(2) {
        margin-top: 0 !important;
    }

    .pixel-bold-title {
        font-size: 2rem !important;
    }

    /* Contact form two-col → one-col */
    .form-row {
        flex-direction: column !important;
        gap: 0;
    }

    .form-row > * {
        width: 100% !important;
    }
}

/* --- SMALL MOBILE (max 480px) --- */
@media (max-width: 480px) {
    :root {
        --_global-padding---padding-global-side: 18px;
    }

    h1, .hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.2rem) !important;
        line-height: 1.2 !important;
    }

    .hero .container {
        padding-top: 110px;
    }

    .hero-badge {
        display: none; /* clean look on very small screens */
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }



    /* Footer */
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

    .project-info h3 {
        font-size: 1.6rem;
    }

    /* Pricing amounts */
    .price-box .amount {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    .project-info h3 {
        font-size: 1.5rem;
    }



    /* Comparison table horizontal scroll */
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- Touch Device: Hide custom cursor --- */
@media (hover: none) {
    #cursor, #cursor-blur, #cursor-hover-circle {
        display: none !important;
    }
    * {
        cursor: auto !important;
    }
}
