/* Base High-End Minimalist Design System - Light Theme */
:root {
    /* Colors - Light Theme */
    --bg-color: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-color: #e11d48;
    --accent-hover: #be123c;
    --gradient-1: #e11d48;
    --gradient-2: #0f172a;
    --border-color: rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;

    /* Layout */
    --container-max-width: 1200px;
    --section-spacing: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme */
:root[data-theme="dark"] {
    --bg-color: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}

/* ---- Global overflow guard ---- */
html {
    overflow-x: hidden;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

/* Hero 3D Canvas */
#hero-3d-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.page-header {
    position: relative;
}

.page-header > *:not(#hero-3d-canvas):not(.blob):not(.shape-3d) {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.margin-bottom {
    margin-bottom: 3rem;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-surface);
}

.btn-primary:hover {
    background-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--text-secondary);
}

.btn-text {
    padding: 0;
    background: transparent;
    color: var(--text-primary);
    border-radius: 0;
    border-bottom: 1px solid transparent;
}

.btn-text:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.btn-primary.large,
.btn-secondary.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
    background: transparent;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo.active {
    color: var(--text-primary) !important;
}

.logo img {
    height: 38px !important;
    width: auto;
    margin-right: 10px !important;
}

.logo .dot {
    color: var(--accent-color);
}

.logo.large {
    font-size: 2.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.75rem;
}

.nav-links a:not(.btn-primary) {
    color: var(--text-primary);
}

.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-links a:not(.btn-primary):hover,
.nav-links a:not(.btn-primary).active {
    color: var(--accent-color) !important;
}

.nav-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-base);
}

/* Secondary Page Headers */
.page-header {
    padding: 12rem 5% 6rem;
    text-align: center;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pill-badge {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Abstract Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    border-radius: 50%;
}

.blob-1 {
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background-color: rgba(99, 102, 241, 0.2);
    /* Indigo */
    animation: float 10s ease-in-out infinite;
}

.blob-2 {
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background-color: rgba(236, 72, 153, 0.15);
    /* Pink */
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-50px) scale(1.05);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

/* Bento Box Services */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

/* Industries / Tech Icon grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.tech-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.tech-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }

.bento-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bento-box:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(225, 29, 72, 0.15), 0 0 0 1px rgba(225, 29, 72, 0.1);
}

/* 3D Pop-out inner elements */
.bento-box .box-icon {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bento-box:hover .box-icon {
    transform: translateZ(40px) scale(1.1);
}
.bento-box h3 {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s;
}
.bento-box:hover h3 {
    transform: translateZ(30px);
}
.bento-box p,
.bento-box .service-list {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}
.bento-box:hover p,
.bento-box:hover .service-list {
    transform: translateZ(20px);
}

.feature-box {
    grid-column: span 2;
}

.tall-box {
    grid-row: span 2;
}

.dark-box {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.box-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.bento-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.bento-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.service-list {
    list-style: none;
    margin-top: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.service-list li i {
    color: var(--accent-color);
}

/* Detailed Services Content (For services.html) */
.service-detail-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail-section:nth-child(even) {
    direction: rtl;
}

.service-detail-section:nth-child(even)>* {
    direction: ltr;
}

.service-detail-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-detail-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-card {
    background-color: var(--bg-surface);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Floating Labels */
.floating-group {
    position: relative;
    margin-bottom: 2rem;
}

.floating-group .form-control {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    height: auto;
}

.floating-group label {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition-fast);
    pointer-events: none;
    font-weight: 500;
}

.floating-group textarea.form-control {
    padding-top: 2rem;
}

.floating-group textarea~label {
    top: 1.5rem;
}

.floating-group .form-control:focus~label,
.floating-group .form-control:not(:placeholder-shown)~label {
    top: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent-color);
}

/* Process Section */
.process-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.process-step {
    background-color: var(--bg-surface-hover);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
    position: sticky;
    top: 120px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

/* Fix z-index stacking for desktop */
.process-step:nth-child(1) {
    z-index: 10;
}

.process-step:nth-child(2) {
    z-index: 11;
    margin-top: -2rem;
}

.process-step:nth-child(3) {
    z-index: 12;
    margin-top: -2rem;
}

.process-step:nth-child(4) {
    z-index: 13;
    margin-top: -2rem;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.process.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Mega Menu */
.dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1000;
}

.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mega-menu-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mega-menu-list h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.mega-menu-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.mega-menu-list a:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

.mega-menu-card {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 12px;
    padding: 2rem;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mega-menu-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><circle cx="50" cy="50" r="40" fill="white"/></svg>') no-repeat right bottom;
    background-size: 150px;
}

/* Mobile Menu Toggle */
/* Animations */
.text-reveal {
    background: linear-gradient(to right, var(--text-primary) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textReveal 1.5s ease-out forwards;
}

@keyframes textReveal {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
        color: var(--text-primary);
    }
}

.shape-3d {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, var(--gradient-1), var(--gradient-2));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float3d 8s ease-in-out infinite, rotate3d 15s linear infinite;
    z-index: 1;
    /* Keep behind foreground text but visible above background */
    opacity: 0.5;
    filter: blur(15px);
}

.shape-3d-2 {
    top: 60%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    animation-delay: -3s;
}

.shape-3d-3 {
    top: 80%;
    right: 20%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #10b981, #3b82f6);
    animation-delay: -5s;
    animation-duration: 12s, 20s;
    z-index: 2;
}

.hero .shape-3d-3 {
    top: auto;
    bottom: 10%;
    left: 5%;
    right: auto;
}

@keyframes float3d {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

@keyframes rotate3d {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body {
    animation: fadeInPage 0.8s ease-out forwards;
}

@keyframes fadeInPage {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background-color: var(--border-color);
    margin: 2rem auto 0;
    position: relative;
    overflow: hidden;
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
    to {
        width: 100%;
    }
}

/* Availability Badge */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-surface);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
    background-color: rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--text-primary);
    color: var(--bg-surface);
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.15;
    position: absolute;
    top: -10px;
    right: 15px;
    font-family: var(--font-display);
}

.process-step h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Testimonials Section */
.testimonial-slider-container {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    gap: 2rem;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    background-color: var(--bg-surface);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-btn:hover {
    background-color: var(--accent-light);
    color: var(--accent-color);
    border-color: var(--accent-light);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    background-color: var(--accent-color);
    width: 24px;
    border-radius: 12px;
}

/* FAQ Section */
.faq-grid {
    display: flex;
    flex-direction: column;
}

.faq-item {
    transition: var(--transition-fast);
}

.faq-item:hover h4 {
    color: var(--accent-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.work-card {
    cursor: pointer;
}

.work-card,
.bento-card,
.pricing-card,
.mega-menu-card,
.insight-card {
    will-change: transform;
    transform-style: preserve-3d;
}

.work-card h3,
.work-card p,
.work-tag {
    transform: translateZ(30px);
}

.work-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: var(--bg-surface-hover);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transform: translateZ(10px);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.work-card:hover .work-image {
    transform: scale(0.98);
    border-color: rgba(0, 0, 0, 0.15);
}

.placeholder-img {
    background: linear-gradient(45deg, var(--bg-surface-hover), #e2e8f0);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-muted {
    color: var(--text-muted);
}

.work-tag {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.work-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.work-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* About Section */
.service-detail-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transform-style: preserve-3d;
}

.service-detail-content {
    transform: translateZ(40px);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--bg-surface);
    padding: 5rem;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-visual {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding-top: 5rem;
    background-color: var(--bg-surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.social-icons a:hover {
    background-color: var(--text-primary);
    color: var(--bg-surface);
    transform: translateY(-3px);
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.legal-links a:hover {
    color: var(--accent-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--accent-color);
    transform: rotate(15deg);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor.hovering {
    width: 50px;
    height: 50px;
    background-color: rgba(79, 70, 229, 0.2);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    width: 0%;
    z-index: 10000;
}

/* Marquee */
.marquee-wrapper {
    width: 100vw;
    display: flex;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    padding: 0 2rem;
}

.trust-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-muted);
    transition: var(--transition-fast);
    opacity: 0.7;
}

.trust-logo:hover {
    color: var(--text-primary);
    opacity: 1;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 2rem));
    }
}

/* Floating WhatsApp Icon */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

/* ==========================================================================
   SERVICES PAGE ACCORDIONS
   ========================================================================== */
.service-accordion {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
    overflow: hidden;
}

.service-accordion:hover {
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    padding: 2rem 2.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Hide default marker */
    user-select: none;
    transition: background-color 0.3s ease;
}

.accordion-header::-webkit-details-marker {
    display: none; /* Hide default marker in Safari */
}

.accordion-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
    transition: color 0.3s ease;
}

.accordion-icon {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Open State Styling */
details.service-accordion[open] .accordion-header {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(225, 29, 72, 0.02);
}

details.service-accordion[open] .accordion-header h2 {
    color: var(--accent-light);
}

details.service-accordion[open] .accordion-icon {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.accordion-body {
    padding: 2.5rem;
    animation: accordionFadeIn 0.5s ease-out forwards;
}

@keyframes accordionFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Featured Service Card Highlight */
.bento-item.feature-card {
    background: linear-gradient(145deg, var(--bg-surface) 0%, rgba(225, 29, 72, 0.08) 100%);
    border-color: rgba(225, 29, 72, 0.2);
    position: relative;
    overflow: hidden;
}

.bento-item.feature-card::before {
    content: "Popular";
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 30px;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}


    .feature-box {
        grid-column: span 1;
    }

    .tall-box {
        grid-column: span 2;
        grid-row: span 1;
    }

    .about-container {
        padding: 3rem;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* Dynamic Grid Classes */
.tech-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.tech-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }

@media (max-width: 992px) {
    .tech-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .tech-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .tech-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .tech-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .tech-grid-5 { grid-template-columns: 1fr; }
    .tech-grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* --- AI Tools CSS --- */
.tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: rgba(229, 9, 20, 0.1);
    color: var(--accent-color);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.tool-link {
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.bento-item.open-modal:hover .tool-link {
    gap: 12px;
}

/* 3D Pop-out for AI Tool Cards */
.bento-item {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(225, 29, 72, 0.12), 0 0 0 1px rgba(225, 29, 72, 0.08);
}

.bento-item .tool-icon {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bento-item:hover .tool-icon {
    transform: translateZ(40px) scale(1.15);
}
.bento-item h3 {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s;
}
.bento-item:hover h3 {
    transform: translateZ(25px);
}
.bento-item p {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}
.bento-item:hover p {
    transform: translateZ(15px);
}
.bento-item .tool-link {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.12s, gap 0.2s ease;
}
.bento-item:hover .tool-link {
    transform: translateZ(35px);
}

/* Modal CSS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-surface);
    width: 90%;
    max-width: 600px;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header .modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(229, 9, 20, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(229, 9, 20, 0.2);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
}

.result-box h1, .result-box h2, .result-box h3, .result-box h4 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.result-box h1:first-child, .result-box h2:first-child, .result-box h3:first-child, .result-box h4:first-child {
    margin-top: 0;
}

.result-box p {
    margin-bottom: 1rem;
}

.result-box ul, .result-box ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.result-box li {
    margin-bottom: 0.5rem;
}

.result-box strong {
    color: var(--accent-color);
}
@media (max-width: 992px) { .testimonial-card { flex: 0 0 calc(50% - 1rem); } }

/* Extended Portfolio Blobs */
.blob-3 {
    top: 35%;
    right: -5%;
    width: 600px;
    height: 600px;
    background-color: rgba(99, 102, 241, 0.15); /* Indigo */
    animation: float 14s ease-in-out infinite;
}

.blob-4 {
    top: 60%;
    left: -10%;
    width: 500px;
    height: 500px;
    background-color: rgba(236, 72, 153, 0.15); /* Pink */
    animation: float 11s ease-in-out infinite reverse;
}

.blob-5 {
    top: 85%;
    right: 15%;
    width: 450px;
    height: 450px;
    background-color: rgba(59, 130, 246, 0.15); /* Blue */
    animation: float 13s ease-in-out infinite;
}

/* =============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================= */

/* Tablet - 992px */
@media (max-width: 992px) {
    :root {
        --section-spacing: 5rem;
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Navigation - hide desktop links, enable mobile dropdown */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        gap: 1.25rem;
        z-index: 999;
    }

    .nav-links.active {
        display: flex !important;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero */
    .page-title {
        font-size: 2.8rem !important;
    }
    .page-subtitle {
        font-size: 1rem !important;
    }

    /* Services / Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Industries / Tech grids - 3-col on tablet */
    .tech-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .tech-grid-5 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .tech-grid-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Feature-box stays 2-col on tablet (span 2 within 2-col grid is fine) */
    .feature-box {
        grid-column: span 2 !important;
    }


    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    /* Process Grid */
    .process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* About Container */
    .about-container {
        padding: 3rem !important;
        gap: 2rem !important;
    }

        /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }

    /* About */
    .about-container {
        grid-template-columns: 1fr !important;
    }
    .about-visual {
        min-height: 300px !important;
    }

    /* Testimonials */
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem) !important;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    :root {
        --section-spacing: 3.5rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero */
    .page-title {
        font-size: 2rem !important;
    }
    .hero-cta-group {
        flex-direction: column !important;
        align-items: center !important;
    }
    .hero-cta-group a {
        width: 100% !important;
        text-align: center;
        justify-content: center !important;
    }

    /* Trust Bar */
    .trust-bar-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }

    /* Bento Grid & Why Choose Us - single column on mobile */
    .bento-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
    }

    /* Reduce bento-box padding & font sizes so cards don't overflow */
    .bento-box {
        padding: 1.25rem !important;
    }
    .bento-box h3 {
        font-size: 1.2rem !important;
    }
    .bento-box p {
        font-size: 0.95rem !important;
    }
    .box-icon {
        width: 46px !important;
        height: 46px !important;
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }

    /* Industries We've Served - 2 columns on mobile */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Technologies grid - 3 columns on mobile */
    .tech-grid-5,
    .tech-grid-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Feature-box must not span 2 cols on mobile */
    .feature-box,
    .tall-box {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* Disable VanillaTilt 3D transforms on mobile to prevent overflow */
    [data-tilt] {
        transform: none !important;
    }

    /* Testimonials - single column on mobile */
    .testimonial-card {
        flex: 0 0 calc(100% - 1rem) !important;
        min-width: unset !important;
    }
    .testimonial-track {
        gap: 0.75rem !important;
    }



    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    /* Process Grid */
    .process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* About Container */
    .about-container {
        padding: 3rem !important;
        gap: 2rem !important;
    }

        /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .footer-brand p {
        margin: 0 auto;
    }
    .social-icons {
        justify-content: center;
    }
    .bottom-bar {
        flex-direction: column !important;
        gap: 0.5rem;
        text-align: center;
    }

    /* About */
    .about-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .about-visual {
        min-height: 250px !important;
        order: -1;
    }
    .stats-row {
        justify-content: center !important;
    }
    /* Modal */
    .modal-content {
        padding: 1.5rem !important;
        max-height: 85vh !important;
    }

    /* Work Grid */
    .work-grid {
        grid-template-columns: 1fr !important;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 25px !important;
    }

    /* Service Detail */
    .service-detail-section {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Process Grid */
    .process-grid {
        grid-template-columns: 1fr !important;
    }

    /* Founder Grid */
    .founder-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Mega Menu Mobile Fixes */
    .mega-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        padding: 1rem 0 0 0 !important;
        border: none !important;
        box-shadow: none !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .dropdown:hover .mega-menu,
    .dropdown:focus-within .mega-menu,
    .dropdown:active .mega-menu {
        display: block !important;
    }
    .mega-menu-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .mega-menu-card {
        padding: 1.5rem !important;
        min-height: 150px !important;
    }

    /* About Visual - hide on mobile */
    .about-visual {
        display: none !important;
    }

    /* Safari 3D Transform Fixes */
    .bento-box {
        transform-style: flat !important;
        perspective: none !important;
    }


    /* FAQ */
    .faq-grid {
        padding: 0 0.5rem !important;
    }

    /* Contact Form */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    /* Section titles */
    .section-title {
        font-size: 2rem !important;
    }

    /* Success Stories */
    .success-stories-grid {
        grid-template-columns: 1fr !important;
    }

    /* Client Love */
    .client-love-grid {
        grid-template-columns: 1fr !important;
    }

    /* Projects Grid */
    .projects-bento-grid {
        grid-template-columns: 1fr !important;
    }

    /* Blobs - make smaller on mobile */
    .blob, .blob-1, .blob-2, .blob-3, .blob-4, .blob-5 {
        width: 200px !important;
        height: 200px !important;
    }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem !important;
    }
    .page-subtitle {
        font-size: 0.9rem !important;
    }
    .section-title {
        font-size: 1.6rem !important;
    }

    /* Trust Bar */
    .trust-bar-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Industry/Why Choose Us - single column */
    .bento-grid,
    .tech-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .tech-grid-5,
    .tech-grid-6 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Nav */
    .logo {
        font-size: 0.9rem !important;
    }
    .logo img {
        height: 28px !important;
    }

    /* Stats */
    .stats-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* Hero section canvas areas */
    .hero, .page-header {
        min-height: 50vh !important;
    }
}

/* ===== Ultra-Small / Small Phone (480px and below) ===== */
@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
    }
    .feature-box,
    .tall-box {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    .bento-box {
        padding: 1rem !important;
    }
    .bento-box h3 {
        font-size: 1.1rem !important;
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}