:root {
    /* Corporate Color Palette (Light) - SaaS Refined */
    --primary-blue: #0f172a;
    --secondary-blue: #3b82f6;
    --dark-navy: #020617;
    --light-gray: #f8fafc;
    --border-color: #e2e8f0;

    --text-main: #475569;
    --text-heading: #0f172a;
    --white: #ffffff;
    --bg-color: #ffffff;
    --accent-orange: #f97316;
    --accent-orange-light: #fff7ed;

    /* Typography - Premium SaaS Stack */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Layout Variables */
    --container-width: 1200px;
    --section-pad: 120px;
    /* Increased for premium airy feel */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    /* Softer, larger radiuses */

    /* Transitions & Shadows - Stripe Style Soft Shadows */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 40px -10px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] {
    --primary-blue: #3b82f6;
    --secondary-blue: #60a5fa;
    --dark-navy: #0f172a;
    --light-gray: #0f172a;
    --border-color: #334155;

    --text-main: #cbd5e1;
    --text-heading: #f1f5f9;
    --white: #1e293b;
    --bg-color: #020617;
    --accent-orange: #fb923c;
    --accent-orange-light: #431407;
}

/* Dark mode overrides for elements with hardcoded inline colors */
[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-main);
}

[data-theme="dark"] .bg-light {
    background-color: var(--light-gray) !important;
}

[data-theme="dark"] .srv-card,
[data-theme="dark"] .glass-panel,
[data-theme="dark"] .faq-item {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .srv-card h3,
[data-theme="dark"] .glass-panel h4,
[data-theme="dark"] .process-step h3 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .srv-card p,
[data-theme="dark"] .glass-panel p,
[data-theme="dark"] .process-step p {
    color: #94a3b8 !important;
}

/* Fix stats section dark on dark */
[data-theme="dark"] .stats-row p {
    color: #94a3b8 !important;
}

/* Fix hero text color */
[data-theme="dark"] .hero-text {
    color: #cbd5e1;
}

/* Fix headings that use inline color: var(--text-heading) */
[data-theme="dark"] .section-title {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .section-tag {
    color: var(--secondary-blue) !important;
}

[data-theme="dark"] .section-desc {
    color: #94a3b8 !important;
}

/* Fix contact section */
[data-theme="dark"] .contact-right {
    background: #1e293b !important;
}

[data-theme="dark"] .contact-right label {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .contact-right input,
[data-theme="dark"] .contact-right textarea {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

/* Fix industries chip/tags */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.glass-panel-tag {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.glass-panel-tag:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
}

/* Tech Stack partners-grid */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-heading);
    font-weight: 600;
}

[data-theme="dark"] .glass-panel-tag {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

[data-theme="dark"] .glass-panel-tag:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--secondary-blue);
}

[data-theme="dark"] .partner-logo {
    color: #f1f5f9;
}

[data-theme="dark"] .corp-services .glass-panel,
[data-theme="dark"] section .glass-panel {
    color: #f1f5f9 !important;
}

/* Fix about section text */
[data-theme="dark"] .about-features li {
    color: #cbd5e1 !important;
}

/* Fix pricing table */
[data-theme="dark"] .pricing-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

/* Fix testimonial stars and text */
[data-theme="dark"] .testimonial-swiper .glass-panel p {
    color: #cbd5e1 !important;
}

/* Fix footer in dark mode */
[data-theme="dark"] .corp-footer {
    background: #020617 !important;
}

/* Fix header in dark mode */
[data-theme="dark"] .header {
    background: rgba(2, 6, 23, 0.95) !important;
}

[data-theme="dark"] .top-bar {
    background: #020617 !important;
}

/* Fix Advanced Blog UI in dark mode */
[data-theme="dark"] #blogSearch {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .blog-filters .filter-btn {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .blog-filters .filter-btn.active {
    background-color: var(--secondary-blue) !important;
    border-color: var(--secondary-blue) !important;
    color: #ffffff !important;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-heading);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.theme-toggle-btn:hover {
    background-color: var(--light-gray);
    color: var(--secondary-blue);
}

/* ---------------- Premium Language Switcher ---------------- */
/* Hide Google Translate Default Banner & Frame */
.skiptranslate {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0px !important;
    /* Force body back to top to fight google translation shift */
}

/* Custom Dropdown UI wrapper */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    z-index: 999;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    list-style: none;
    padding: 10px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.lang-dropdown.active .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-options li {
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-main);
    transition: background 0.2s, color 0.2s;
}

.lang-options li:hover {
    background: var(--light-gray);
    color: var(--secondary-blue);
}

[data-theme="dark"] .lang-options {
    background: var(--dark-navy-glass);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .lang-options li:hover {
    background: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    cursor: none;
    /* Hide default cursor */
}

body {
    top: 0px !important;
    /* Force body back to top to fight google translation shift */
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    /* Advanced typography tracking */
}

/* Global Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* ---------------- Advanced UI ---------------- */
::selection {
    background-color: var(--secondary-blue);
    color: var(--white);
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: 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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-blue);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--secondary-blue);
    transition: width 0.2s ease-out, height 0.2s ease-out, background-color 0.2s;
}

/* Hover state for magnetic/clickable links */
.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(96, 165, 250, 0.1);
    border-color: transparent;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    /* Tight SaaS headings */
}

/* Glassmorphism Utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .glass-panel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .srv-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

.srv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(59, 130, 246, 0.3);
    /* SaaS Blue Border on Hover */
}

/* Portfolio Reveal Special Hover */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    will-change: transform;
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    color: white;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover img {
    transform: scale(1.08);
    /* Slow elegant zoom */
}

.portfolio-card:hover .portfolio-overlay {
    bottom: 0;
    opacity: 1;
}

.srv-icon {
    color: var(--primary-blue);
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-blue);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--section-pad) 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.text-center {
    text-align: center;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-blue);
    color: var(--white);
    border: 2px solid var(--secondary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    /* Slight lift */
}

.btn-outline {
    background-color: transparent;
    color: var(--text-heading);
    border: 2px solid var(--text-heading);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-heading);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline:hover {
    color: var(--bg-color);
}

.btn-outline:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ---------------- Top Bar ---------------- */
.top-bar {
    background-color: var(--dark-navy);
    color: var(--border-color);
    font-size: 0.85rem;
    padding: 10px 0;
    display: none;
    /* Hidden on small screens, shown in media queries */
}

@media (min-width: 992px) {
    .top-bar {
        display: block;
    }
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-social a {
    color: var(--border-color);
    margin-left: 15px;
}

.top-social a:hover {
    color: var(--white);
}

/* ---------------- Main Header ---------------- */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 5px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

@media (max-width: 768px) {
    .header-inner {
        height: 70px;
    }
}

.logo {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--dark-navy);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-blue);
    font-weight: 400;
    margin-left: 5px;
}

/* Navigation */
.main-nav {
    display: none;
    /* Mobile hidden by default */
}

@media (min-width: 992px) {
    .main-nav {
        display: block;
    }
}

.nav-menu {
    display: flex;
    gap: 30px;
    height: 100%;
    align-items: center;
}

.nav-menu>li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu>li>a {
    color: var(--text-heading);
    font-weight: 500;
    font-size: 1rem;
    padding: 30px 0;
    position: relative;
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    color: var(--secondary-blue);
}

.nav-arrow {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: transform 0.3s;
}

/* Dropdown */
.has-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--secondary-blue);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-main);
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.95rem;
}

.dropdown li a:hover {
    background-color: var(--light-gray);
    color: var(--secondary-blue);
    padding-left: 25px;
}

.mobile-menu-toggle {
    display: block;
    font-size: 1.5rem;
    color: var(--text-heading);
    cursor: pointer;
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Nav Active State */
.main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

@media (max-width: 991px) {
    .main-nav.active .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px 0;
    }

    .main-nav.active .nav-menu>li {
        width: 100%;
        height: auto;
        display: block;
    }

    .main-nav.active .nav-menu>li>a {
        padding: 15px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }

    .has-dropdown .dropdown {
        position: static;
        opacity: 0;
        visibility: hidden;
        height: 0;
        transform: none;
        box-shadow: none;
        border: none;
        width: 100%;
        display: block;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .has-dropdown.mobile-open .dropdown {
        opacity: 1;
        visibility: visible;
        height: auto;
        background-color: rgba(0,0,0,0.03);
    }
    
    .has-dropdown.mobile-open > a {
        color: var(--secondary-blue);
    }
    
    [data-theme="dark"] .has-dropdown.mobile-open .dropdown {
        background-color: rgba(255,255,255,0.03);
    }

    .main-nav.active .dropdown li a {
        padding: 12px 24px 12px 40px;
        border-bottom: none;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .header-actions .btn {
        display: none;
    }

    .header-actions {
        gap: 12px;
    }
    
    .lang-dropdown {
        margin-right: 0 !important;
    }

    .lang-dropdown .lang-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
}

/* ---------------- Corporate Hero ---------------- */
.corp-hero {
    position: relative;
    padding: 120px 0;
    background-color: var(--dark-navy);
    color: var(--white);
    overflow: hidden;
}

.corp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Background gradients removed to reveal WebGL canvas */
}

/* Animated Ambient Glow Orbs */
.corp-hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    animation: drift 20s infinite alternate linear;
}

.corp-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1), transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
    animation: drift 25s infinite alternate-reverse linear;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

.corp-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0;
}

.hero-subtitle {
    display: inline-block;
    color: var(--secondary-blue);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.15;
}

.hero-text {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hero outline button needs white styling on dark background */
.corp-hero .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.corp-hero .btn-outline:hover {
    color: var(--dark-navy);
    border-color: #fff;
}

.corp-hero .btn-outline::before {
    background-color: #fff;
}

/* ---------------- Trust Bar ---------------- */
/* Tech Stack Logos */
.trust-bar {
    padding: 60px 0;
    text-align: center;
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    opacity: 0.6;
    transition: var(--transition);
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    color: var(--text-heading);
    filter: grayscale(0%);
    color: var(--text-heading);
}

.partner-logo i {
    font-size: 2rem;
    color: inherit;
}

/* ---------------- Section Headings ---------------- */
.section-tag {
    display: inline-block;
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 20px;
}

.heading-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--accent-orange));
    margin: 0 auto 20px;
}

.heading-line-left {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--secondary-blue));
    margin: 0 0 20px;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* ---------------- Corporate Services ---------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.srv-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s;
    /* Faster for JS tracking */
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    /* Hardware acceleration */
    transform-style: preserve-3d;
    z-index: 1;
}

/* Premium Glow Hover */
.srv-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.srv-card:hover::before {
    opacity: 1;
}

.srv-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(96, 165, 250, 0.3);
}

.srv-icon {
    width: 60px;
    height: 60px;
    background-color: #e0f2fe;
    color: var(--secondary-blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transform: translateZ(40px);
}

/* Alternating orange for every other service card icon */
.srv-card:nth-child(even) .srv-icon {
    background-color: var(--accent-orange-light);
    color: var(--accent-orange);
}

.srv-card:nth-child(even):hover {
    border-color: rgba(249, 115, 22, 0.3);
}

.srv-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    transform: translateZ(30px);
}

.srv-card p {
    color: #475569;
    margin-bottom: 25px;
    transform: translateZ(20px);
}

.read-more {
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more i {
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ---------------- About & Stats ---------------- */
/* ---------------- About Section (Why Widen Digital?) ---------------- */
.corp-about {
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    z-index: 1;
}

.about-image img.rounded-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: var(--shadow-lg), 0 30px 60px -12px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.about-image:hover img.rounded-img {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--secondary-blue);
    color: var(--white);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
    line-height: 1.2;
    z-index: 2;
    transition: var(--transition);
}

.about-image:hover .experience-badge {
    transform: translateY(-5px) translateX(5px);
}

.experience-badge .exp-num {
    font-size: 2.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.experience-badge .exp-text {
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-content {
    position: relative;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.7;
}

.about-features {
    margin-top: 35px;
    margin-bottom: 40px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    font-weight: 500;
    color: var(--text-heading);
    font-size: 1.05rem;
}

.about-features li i {
    color: var(--secondary-blue);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.2));
}

/* Modern About Features Grid */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 35px 0;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.feature-icon-wrapper {
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.05);
}

.about-feature-item:hover .feature-icon-wrapper {
    background: var(--secondary-blue);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.feature-text h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
}

.feature-text span {
    font-size: 0.92rem;
    color: var(--text-main);
    display: block;
    line-height: 1.5;
    opacity: 0.9;
}

.about-blueprint-box {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-left: 4px solid var(--secondary-blue);
    border-radius: 0 12px 12px 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    font-style: italic;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

[data-theme="dark"] .about-blueprint-box {
    background: #1e293b;
    color: #cbd5e1;
}

@media (max-width: 576px) {
    .about-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


@media (max-width: 1200px) {
    .about-grid {
        gap: 50px;
    }

    .about-image img.rounded-img {
        height: 450px;
    }
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .about-content {
        text-align: left;
    }

    .heading-line-left {
        margin: 0 0 25px;
    }
}

@media (max-width: 575px) {
    .about-image img.rounded-img {
        height: 350px;
    }

    .experience-badge {
        padding: 15px 20px;
        left: 0;
        bottom: 10px;
    }

    .experience-badge .exp-num {
        font-size: 2rem;
    }

    .experience-badge .exp-text {
        font-size: 0.75rem;
    }
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--secondary-blue);
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #cbd5e1;
}


@media (max-width: 575px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}





@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-num::after {
    content: '+';
    color: var(--secondary-blue);
}

.stat-desc {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

/* ---------------- Insights / Blog ---------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------- Blog Setup ---------------- */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--dark-navy);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-content {
    padding: 30px;
}

.blog-cat {
    display: inline-block;
    color: var(--secondary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-heading);
}

.blog-title a:hover {
    color: var(--secondary-blue);
}

.blog-content p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------- Contact Form ---------------- */
.corp-contact {
    background: linear-gradient(to bottom, var(--light-gray) 50%, var(--white) 50%);
}

.contact-wrapper {
    display: flex;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contact-left {
    flex: 1;
    background-color: var(--dark-navy);
    color: var(--white);
    padding: 40px 50px; /* Reduced from 60px */
}

.contact-left h2 {
    color: var(--white);
    margin-bottom: 10px; /* Reduced from 20px */
}

.contact-left p {
    color: #94a3b8;
    margin-bottom: 25px; /* Reduced from 40px */
    font-size: 0.95rem; /* Slightly smaller text for better fit */
    line-height: 1.6;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-block i {
    font-size: 1.5rem;
    color: var(--secondary-blue);
    margin-top: 5px;
}

.info-block h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-block span {
    color: #94a3b8;
    line-height: 1.5;
}

.contact-right {
    flex: 1.5;
    padding: 60px;
}

.corp-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.corp-form .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.corp-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.corp-form input,
.corp-form select,
.corp-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background-color: #f8fafc;
    transition: var(--transition);
}

.corp-form input:focus,
.corp-form select:focus,
.corp-form textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.form-result {
    margin-top: 20px;
}

.alert {
    padding: 15px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ---------------- Corporate Footer ---------------- */
.corp-footer {
    background-color: #020617;
    /* Very dark navy */
    color: #94a3b8;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    color: var(--white);
    display: block;
    margin-bottom: 20px;
}

.brand-col p {
    margin-bottom: 30px;
    font-size: 0.95rem;
    max-width: 300px;
}

.newsletter-form {
    display: flex;
    max-width: 350px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #334155;
    background-color: #0f172a;
    color: var(--white);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    outline: none;
}

.newsletter-form button {
    padding: 0 20px;
    background-color: var(--secondary-blue);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-blue);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--secondary-blue);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 25px 0;
}

.bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1e293b;
    color: var(--white);
    margin-left: 10px;
}

.footer-socials a:hover {
    background-color: var(--secondary-blue);
}

/* ---------------- Setup Animation Classes ---------------- */
.reveal-fade {
    opacity: 0;
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
}

/* ---------------- Responsive Media Queries ---------------- */
@media (max-width: 1200px) {
    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-left,
    .contact-right {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 60px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        bottom: -20px;
        right: 20px;
        padding: 15px 20px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .corp-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .bottom-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-pad: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .trust-bar .partners-grid {
        gap: 15px;
    }

    .partner-logo img {
        max-width: 120px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}

/* ---------------- 2026 Masterpiece Elements ---------------- */

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-navy);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preloader-content {
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 20px;
}

h1,
.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
}

h2,
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

h3 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    line-height: 1.3;
}

/* Section Spacing Helpers */
.section-padding {
    padding: var(--section-pad) 0;
}

@media (max-width: 768px) {
    :root {
        --section-pad: 60px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-pad: 40px;
    }
}

.mt-40 {
    margin-top: 40px;
}

.mt-50 {
    margin-top: 50px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.text-white {
    color: var(--white) !important;
}

.text-light {
    color: #cbd5e1 !important;
}

.accent-blue {
    color: var(--secondary-blue) !important;
}

/* SHARED PAGE HEADER */
.page-header {
    padding: 120px 0 80px;
    background-color: var(--dark-navy);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
}

.stats-section-dark {
    background-color: var(--dark-navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
}

.preloader-counter {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    background: -webkit-linear-gradient(45deg, var(--white), var(--secondary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Page Wipe Transition Mask */
.page-transition-wipe {
    position: fixed;
    top: 100%;
    /* Start off-screen */
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-blue);
    z-index: 9998;
}

/* Infinite Marquee */
.marquee-container {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content span {
    padding: 0 30px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---------------- Scroll Spy Map ---------------- */
.scroll-spy {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

@media (max-width: 768px) {
    .scroll-spy {
        display: none;
    }
}

.scroll-spy ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.scroll-spy a {
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

[data-theme="light"] .scroll-spy a {
    background-color: rgba(10, 25, 47, 0.3);
}

.scroll-spy a:hover {
    background-color: var(--secondary-blue);
    transform: scale(1.2);
}

.scroll-spy a.active {
    background-color: var(--secondary-blue);
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.scroll-spy a::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--dark-navy);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .scroll-spy a::after {
    background-color: var(--white);
    color: var(--text-heading);
}

.scroll-spy a:hover::after,
.scroll-spy a.active::after {
    opacity: 1;
    visibility: visible;
    right: 20px;
}

/* ---------------- Global Scroll Progress Bar ---------------- */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* Very thin premium line */
    background: transparent;
    z-index: 99999;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    /* Will be updated via JS */
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue), #34d399);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    border-radius: 0 2px 2px 0;
    transition: width 0.1s ease-out;
}

/* ---------------- Custom Glowing Cursor ---------------- */
/* Hide default cursor globally */
body {
    cursor: none;
}

/* Fallback for links so it doesn't look completely broken if JS fails */
a,
button,
input,
textarea {
    cursor: none;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-blue);
    border-radius: 50%;
    z-index: 100000;
    pointer-events: none;
    /* Let clicks pass through to the element below */
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--secondary-blue);
    transition: width 0.2s ease-in-out, height 0.2s ease-in-out, background-color 0.2s ease, opacity 0.2s ease;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(59, 130, 246, 0.5);
    background-color: rgba(59, 130, 246, 0.05);
    /* Slight tint inside the outline */
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease-in-out, height 0.2s ease-in-out, background-color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

/* Magnetic Hover States */
.cursor-dot.hovered {
    width: 0px;
    height: 0px;
    opacity: 0;
    /* Hide inner dot */
}

.cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--secondary-blue);
    mix-blend-mode: difference;
    /* Creates a cool invert effect on light backgrounds */
}

/* Remove custom cursor on mobile to not break touch interaction */
@media (max-width: 991px) {

    body,
    a,
    button,
    input,
    textarea {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* ---------------- Back to Top Button ---------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary-blue);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* ---------------- Cookie Consent Banner ---------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark-navy);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding: 18px 0;
    z-index: 99998;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;

    /* Parallax Shapes Responsiveness */
    @media (max-width: 991px) {
        .parallax-shape {
            transform: scale(0.6) !important;
        }
    }

    @media (max-width: 480px) {
        .parallax-shapes {
            display: none;
            /* Hide expensive shapes on small mobile for performance */
        }
    }

    /* FAQ Responsive improvements */
    .faq-grid {
        max-width: 900px;
        margin: 0 auto;
    }

    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-content p i {
    color: #fbbf24;
    margin-right: 8px;
}

.cookie-content p a {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ---------------- Typewriter Cursor Blink ---------------- */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--secondary-blue);
    margin-left: 2px;
    animation: blink-cursor 0.75s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink-cursor {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ---------------- Custom 404 Page ---------------- */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark-navy);
    color: var(--white);
    padding: 40px 20px;
}

.error-content {
    max-width: 600px;
}

.error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--secondary-blue), #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 15px;
    color: var(--white);
}

.error-content p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ---------------- WhatsApp Floating Button ---------------- */
.whatsapp-float {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ---------------- AI Chatbot Widget ---------------- */
.ai-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(11, 48, 120, 0.4);
    transition: var(--transition);
}

.ai-chat-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(11, 48, 120, 0.6);
}

.ai-chat-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: var(--light-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1005;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}

.ai-chat-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
}

.ai-chat-close:hover {
    opacity: 1;
}

.ai-chat-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--light-bg);
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    animation: fadeInMsg 0.3s ease-out;
}

@keyframes fadeInMsg {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg.bot {
    background: #f1f5f9;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-msg.user {
    background: var(--primary-blue);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

[data-theme="dark"] .chat-msg.bot {
    background: #1e293b;
    color: #f8fafc;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.chat-option-btn {
    background: white;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.chat-option-btn:hover {
    background: var(--primary-blue);
    color: white;
}

[data-theme="dark"] .chat-option-btn {
    background: #1e293b;
}

[data-theme="dark"] .chat-option-btn:hover {
    background: var(--primary-blue);
}

.ai-chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

[data-theme="dark"] .ai-chat-input {
    background: var(--dark-navy);
}

.ai-chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    font-size: 0.95rem;
    background: var(--light-bg);
    color: var(--text-color);
}

.ai-chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.ai-chat-input button:hover {
    background: var(--secondary-blue);
}


@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 85px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .ai-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .ai-chat-window {
        bottom: 80px;
        right: 20px;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 42px;
        height: 42px;
    }
}

/* ---------------- Parallax Floating Shapes ---------------- */
.parallax-shape {
    position: absolute;
    opacity: 0.15;
    transition: transform 0.1s ease-out;
}

.shape-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--secondary-blue);
    animation: float-shape 6s ease-in-out infinite;
}

.shape-circle.small {
    width: 40px;
    height: 40px;
    border-color: #ec4899;
    animation-duration: 4s;
    animation-delay: 1s;
}

.shape-hexagon {
    width: 60px;
    height: 60px;
    background: var(--secondary-blue);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: float-shape 8s ease-in-out infinite;
    animation-delay: 2s;
}

.shape-square {
    width: 50px;
    height: 50px;
    border: 2px solid #34d399;
    transform: rotate(45deg);
    animation: float-shape 7s ease-in-out infinite;
    animation-delay: 0.5s;
}

.shape-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #ec4899;
    animation: float-shape 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes float-shape {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(10deg);
    }
}

/* ---------------- FAQ Accordion ---------------- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--secondary-blue);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.faq-item.active {
    border-color: var(--secondary-blue);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    font-family: var(--font-heading);
    gap: 15px;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--secondary-blue);
}

.faq-icon {
    font-size: 0.9rem;
    color: var(--secondary-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* ---------------- Text Scramble Effect ---------------- */
.scramble-text {
    display: inline;
}

.scramble-char {
    display: inline-block;
    transition: opacity 0.1s ease;
}

/* ---------------- Orange Accent Touches ---------------- */
/* Hero subtitle gets orange accent */
.hero-subtitle {
    color: var(--accent-orange) !important;
}

/* Read-more links turn orange on hover */
.read-more:hover {
    color: var(--accent-orange) !important;
}

/* Scroll progress bar includes orange in gradient */
.scroll-progress-bar {
    background: linear-gradient(90deg, var(--secondary-blue), var(--accent-orange), #34d399) !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4) !important;
}

/* Process step numbers get orange */
.process-step .step-number {
    color: var(--accent-orange);
}

/* CTA section uses orange gradient */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-orange)) !important;
}

/* Scroll spy active dot becomes orange */
.scroll-spy a.active {
    background-color: var(--accent-orange) !important;
    box-shadow: 0 0 10px var(--accent-orange);
}

/* Stats section - counter numbers in orange */
.stat-item h3,
.stat-item .counter {
    color: var(--accent-orange) !important;
}

/* Marquee text has subtle orange tint */
.marquee-content span:nth-child(odd) {
    color: var(--accent-orange);
}

.marquee-content span:nth-child(even) {
    color: var(--secondary-blue);
}

/* ---------------- Advanced Contact Form Styling ---------------- */
.contact-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-feature-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Advanced form styles */
.advanced-form label i {
    color: var(--accent-orange);
    margin-right: 5px;
    font-size: 0.85rem;
}

.advanced-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

.advanced-form select:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.advanced-form input:focus,
.advanced-form textarea:focus {
    border-color: var(--accent-orange) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
}

.btn-submit-advanced {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-orange)) !important;
    border: none !important;
    font-size: 1.05rem;
    padding: 15px !important;
    transition: all 0.4s ease !important;
    position: relative;
    overflow: hidden;
}

.btn-submit-advanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3) !important;
}

.btn-submit-advanced i {
    transition: transform 0.3s ease;
}

.btn-submit-advanced:hover i {
    transform: translateX(5px) translateY(-2px);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 15px;
}

.form-disclaimer i {
    color: #34d399;
    margin-right: 5px;
}

/* Dark mode overrides for advanced form */
[data-theme="dark"] .advanced-form select {
    background-color: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

[data-theme="dark"] .contact-feature-icon {
    background: rgba(249, 115, 22, 0.1);
}

@media (max-width: 768px) {
    .contact-features {
        gap: 12px;
    }

    .contact-feature-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
}

/* ---------------- Pricing Toggle ---------------- */
.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.toggle-label {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: #fff;
    font-weight: 600;
}

.save-badge {
    background: var(--accent-orange);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 5px;
    vertical-align: middle;
}

.pricing-toggle {
    position: relative;
    width: 56px;
    height: 30px;
    cursor: pointer;
}

.pricing-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pricing-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #334155;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.pricing-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-orange);
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

.pricing-toggle input:checked+.pricing-slider::before {
    transform: translateX(26px);
}

/* ---------------- Portfolio Lightbox ---------------- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightbox-zoom-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightbox-zoom-in {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 100001;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-orange);
    transform: rotate(90deg);
}

/* Make portfolio images clickable */
.portfolio-card img {
    cursor: pointer;
    transition: transform 0.4s ease;
}

.portfolio-card img:hover {
    transform: scale(1.02);
}

/* ---------------- Toast Notification ---------------- */
.toast-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    max-width: 380px;
    background: #1e293b;
    border: 1px solid #334155;
    border-left: 4px solid #34d399;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.visible {
    right: 30px;
}

.toast-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.toast-content h4 {
    color: #f1f5f9;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.toast-content p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    margin-left: auto;
}

.toast-close:hover {
    color: #f1f5f9;
}

/* ---------------- About / Why Widen Section ---------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    width: 100%;
}

.about-image .rounded-img,
.about-image img {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 300px;
    aspect-ratio: 1/1;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
}

.shadow-img {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-orange));
    color: #fff;
    padding: 20px 25px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    z-index: 2;
}

.exp-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.exp-text {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
    opacity: 0.9;
    line-height: 1.3;
}

.about-content p {
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-main);
}

.about-features li i {
    color: var(--accent-orange);
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

.btn-lg {
    padding: 18px 35px;
    font-size: 1.1rem;
}

.btn-white {
    background: transparent;
    border-color: #fff;
    color: #fff !important;
}

.btn-white:hover {
    background: #fff;
    color: var(--primary-blue) !important;
}

/* Portfolio Card Refinements */
.portfolio-card {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.portfolio-img-link {
    display: block;
    overflow: hidden;
    height: 250px;
}

.portfolio-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-img-link img {
    transform: scale(1.05);
}

.portfolio-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.client-name {
    font-size: 0.95rem;
    color: var(--text-base);
    margin-bottom: 20px;
}

.results-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.results-box i {
    color: var(--secondary-blue);
    margin-top: 3px;
}

.results-box span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-navy);
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: auto;
}

.case-study-link i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.case-study-link:hover i {
    transform: translateX(5px);
}

/* Portfolio & Contact Utilities */
.portfolio-filters {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--white);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-blocks {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-block div h4 {
    color: #fff;
    margin-bottom: 5px;
}

.info-block div span {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.office-hours-block {
    display: block;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.office-hours-block h4 {
    color: #fff;
    margin-bottom: 8px;
}

.office-hours-time {
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.office-hours-note {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS OVERHAUL
   ============================================================ */

/* ---- Tablet: 768px and below ---- */
@media (max-width: 768px) {

    /* Global Typography */
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
        line-height: 1.25;
        word-break: break-word;
    }

    .section-desc {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .section-tag {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .heading-line,
    .heading-line-left {
        margin-bottom: 15px;
    }

    /* Section Padding - Tighter on mobile */
    .section-padding {
        padding: 50px 0 !important;
    }

    /* Container gutters */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* ---- Hero Section ---- */
    .corp-hero {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
        margin-bottom: 20px;
    }

    .hero-text {
        font-size: 1rem;
        margin-bottom: 25px;
        line-height: 1.7;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    /* ---- Parallax Shapes ---- */
    .parallax-shapes {
        display: none !important;
    }

    /* ---- Service Cards ---- */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .srv-card {
        padding: 25px 20px;
    }

    .srv-card h3 {
        font-size: 1.15rem;
    }

    .srv-card p {
        font-size: 0.9rem;
    }

    /* ---- Stats Section ---- */
    .stats-section-dark {
        padding: 50px 0 !important;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .stat-number {
        font-size: 2.2rem !important;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    /* ---- Marquee ---- */
    .marquee-container {
        padding: 15px 0;
    }

    .marquee-content span {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    /* ---- Industry Tags ---- */
    .industry-tags {
        gap: 10px;
    }

    .glass-panel-tag {
        font-size: 0.85rem;
        padding: 8px 14px;
    }

    /* ---- About Section ---- */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .about-content p {
        font-size: 1rem;
    }

    .experience-badge {
        bottom: -15px;
        right: 15px;
        padding: 15px;
    }

    .exp-num {
        font-size: 2rem;
    }

    .exp-text {
        font-size: 0.85rem;
    }

    /* ---- Process Grid ---- */
    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .process-step h3 {
        font-size: 1.1rem;
    }

    .step-icon {
        font-size: 2rem !important;
    }

    /* ---- Featured Projects / Portfolio ---- */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .portfolio-img-link {
        height: 200px;
    }

    .portfolio-card-content {
        padding: 20px;
    }

    .portfolio-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    /* ---- Testimonials ---- */
    .testimo-card {
        padding: 25px 20px !important;
    }

    .testimo-card p {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
    }

    /* ---- Blog Grid ---- */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .blog-card {
        border-radius: var(--radius-md);
    }

    .blog-title {
        font-size: 1.15rem !important;
    }

    /* ---- Trust Bar ---- */
    .trust-bar {
        padding: 35px 0;
    }

    .trust-bar p {
        font-size: 0.9rem;
    }

    .partners-grid {
        gap: 20px !important;
        font-size: 1rem !important;
    }

    .partner-logo {
        font-size: 0.9rem;
        gap: 6px;
    }

    .partner-logo i {
        font-size: 1.3rem;
    }

    /* ---- CTA Section ---- */
    .cta-section h2,
    .cta-full h2 {
        font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
        line-height: 1.3;
    }

    .cta-section p,
    .cta-full p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    /* ---- Contact Form ---- */
    .contact-wrapper {
        flex-direction: column !important;
        border-radius: var(--radius-md) !important;
    }

    .contact-left,
    .contact-right {
        padding: 30px 20px !important;
    }

    .contact-left h2 {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
    }

    .contact-features {
        gap: 15px;
    }

    .contact-feature-item {
        gap: 12px;
    }

    .info-block {
        gap: 12px;
    }

    .corp-form .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .btn-submit-advanced {
        font-size: 1rem;
    }

    /* ---- Footer ---- */
    .corp-footer {
        padding-top: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .footer-logo {
        font-size: 1.6rem !important;
    }

    .newsletter-form {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* ---- Page Headers (All Sub-pages) ---- */
    .page-header {
        padding: 100px 0 60px !important;
    }

    .page-header h1 {
        font-size: clamp(1.6rem, 5vw, 2.5rem) !important;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .page-header p {
        font-size: 1rem;
        max-width: 100%;
        padding: 0 10px;
    }

    /* ---- Post Meta ---- */
    .post-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 0.9rem;
    }

    /* ---- Case Study ---- */
    .cs-top-meta {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px !important;
    }

    .cs-body {
        font-size: 1rem !important;
        padding: 0 5px;
    }

    .ba-slider {
        height: 280px !important;
    }

    /* ---- Career Page ---- */
    .job-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
        padding: 20px !important;
    }

    .job-card .btn {
        width: 100%;
        text-align: center;
    }

    /* ---- Scroll Spy ---- */
    .scroll-spy {
        display: none !important;
    }

    /* ---- Cookie Banner ---- */
    .cookie-banner .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .cookie-actions .btn {
        width: 100%;
    }

    /* ---- Floating Buttons ---- */
    .whatsapp-float,
    .ai-chat-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    /* ---- AI Chat Window ---- */
    .ai-chat-window {
        width: 90vw !important;
        right: 5vw !important;
        bottom: 80px !important;
        max-height: 70vh;
    }
}

/* ---- Small Mobile: 480px and below ---- */
@media (max-width: 480px) {

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-padding {
        padding: 35px 0 !important;
    }

    .section-title {
        font-size: 1.4rem !important;
    }

    .corp-hero {
        padding: 60px 0 50px;
    }

    .hero-title {
        font-size: 1.6rem !important;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .stats-row {
        grid-template-columns: 1fr !important;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    .srv-card {
        padding: 20px 15px;
    }

    .process-grid {
        gap: 20px;
    }

    .footer-grid {
        gap: 25px;
    }

    .contact-left,
    .contact-right {
        padding: 25px 15px !important;
    }

    .page-header {
        padding: 80px 0 40px !important;
    }

    .page-header h1 {
        font-size: 1.4rem !important;
    }

    .partners-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px !important;
    }

    .marquee-content span {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 15px;
        display: inline-flex;
    }

    .blog-img {
        height: 180px !important;
    }

    .cta-section,
    .cta-full {
        padding: 35px 0 !important;
    }

    .cta-section h2,
    .cta-full h2 {
        font-size: 1.3rem !important;
    }

    .job-card {
        padding: 15px !important;
    }

    .ai-chat-window {
        width: 95vw !important;
        right: 2.5vw !important;
    }
}

/* ============================================================
   PROCESS STEP ICONS (Global)
   ============================================================ */
.step-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .step-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.3);
}

/* ============================================================
   PAGE HEADER — Subpages
   ============================================================ */
.page-header {
    padding: clamp(80px, 15vw, 130px) 0 clamp(60px, 10vw, 90px);
    background: linear-gradient(135deg, var(--dark-navy) 0%, #1e293b 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============================================================
   SERVICE DETAIL BLOCK — services.php
   ============================================================ */
.service-detail-block {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.service-detail-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.service-detail-card h4 {
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

@media (max-width: 900px) {
    .service-detail-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===================== ADVANCED INDUSTRIES GRID ===================== */
.advanced-industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.industry-card-pro {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    cursor: default;
}

.industry-card-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.industry-card-pro:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 92, 235, 0.15);
    border-color: transparent;
}

.industry-card-pro:hover::before {
    opacity: 1;
}

.industry-card-pro .card-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.industry-card-pro:hover .card-icon {
    color: var(--white);
    transform: scale(1.1);
}

.industry-card-pro h3 {
    font-size: 1.25rem;
    color: var(--text-heading);
    margin-bottom: 12px;
    transition: color 0.4s ease;
}

.industry-card-pro:hover h3 {
    color: var(--white);
}

.industry-card-pro p {
    font-size: 0.95rem;
    color: var(--text-base);
    line-height: 1.6;
    margin: 0;
    transition: color 0.4s ease;
}

.industry-card-pro:hover p {
    color: rgba(255,255,255,0.9);
}

/* ===================== STICKY SCROLL PROCESS ===================== */
.process-sticky-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    position: relative;
    align-items: flex-start;
}

.process-sticky-left {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    position: sticky;
    top: 100px;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    align-self: flex-start;
}

.sticky-visual-box {
    width: 100%;
    height: 100%;
    position: relative;
}

.sticky-visual-box .sticky-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.sticky-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
}



.process-sticky-right {
    flex: 1.2;
    min-width: 300px;
}

.process-step-item {
    padding: 100px 0;
    opacity: 0.3;
    transition: var(--transition);
}

.process-step-item.active {
    opacity: 1;
}

.process-step-item .step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.process-step-item.active .step-icon {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.process-step-item h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-heading);
}
.sticky-overlay h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.process-sticky-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.process-step-item {
    min-height: 50vh;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.4s ease;
    opacity: 0.3;
}

.process-step-item.active {
    opacity: 1;
}

.process-step-item:last-child {
    border-bottom: none;
    min-height: 40vh;
}

.process-step-item .step-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 92, 235, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.process-step-item.active .step-icon {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.process-step-item h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-heading);
}

.process-step-item p {
    font-size: 1.05rem;
    color: var(--text-base);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .process-sticky-container {
        flex-direction: column;
        gap: 30px;
    }
    .process-sticky-left {
        display: block;
        position: relative; /* Fixed later in 768px for true sticky */
        top: 0;
        width: 100%;
        max-width: 100%;
        height: 350px;
        margin-bottom: 20px;
    }
    .process-sticky-right {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .process-sticky-right::-webkit-scrollbar {
        display: none;
    }
    .process-step-item {
        opacity: 1 !important;
        min-height: auto;
        padding: 30px;
        min-width: 85%;
        scroll-snap-align: center;
        background: var(--white);
        border-radius: var(--radius-md);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        flex-shrink: 0;
    }
}
/* ============================================================
   ADVANCED MOBILE OPTIMIZATIONS (Max-Width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* 1. Fluid Typography & Spacing */
    h1, .hero-title {
        font-size: clamp(2rem, 7vw, 2.8rem) !important; /* Slightly smaller top bound to fit narrow screens */
        letter-spacing: -0.5px; /* Less negative tracking to avoid letter collisions */
        padding: 0 10px; /* Force safe padding specifically on major headings */
    }
    h2, .section-title {
        font-size: clamp(1.6rem, 6vw, 2rem) !important;
        letter-spacing: -0.2px;
        padding: 0 10px;
    }
    .section-desc {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .hero-text {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    /* 2. Touch Target Optimization */
    .btn, a.read-more, .lang-btn, .theme-toggle-btn, input, select, textarea, .newsletter-form button {
        min-height: 48px;
    }
    .btn {
        padding: 12px 24px;
        width: 100%;
        justify-content: center;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .btn:active, a.read-more:active, .srv-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    /* 3. Visual & Layout Adjustments */
    .corp-hero {
        padding: 80px 0 60px;
    }
    .srv-card, .portfolio-card, .testimo-card {
        padding: 20px;
        backdrop-filter: blur(10px); /* Less expensive blur for mobile */
        -webkit-backdrop-filter: blur(10px);
    }
    .stats-row, .services-grid, .about-grid, .advanced-industries-grid, .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Fix Process section stacking */
    .process-sticky-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .process-sticky-left {
        display: block; 
        height: 220px; /* Shorter height for mobile screens to leave room for text */
        max-width: 100%;
        margin-bottom: 20px;
        position: sticky; /* Keep it sticky so it changes on scroll */
        top: 70px; /* Below mobile header */
        z-index: 10;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    .process-sticky-right {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    .process-sticky-right::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .process-step-item {
        min-height: auto;
        opacity: 1 !important; /* Ensure all steps are visible on mobile */
        padding: 25px;
        min-width: 85%; /* Peek layout so users know they can scroll */
        scroll-snap-align: center;
        background: var(--white);
        border-radius: var(--radius-md);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    /* 4. Performance & UX Overrides */
    .cursor-dot, .cursor-outline {
        display: none !important; /* Force hide custom cursor on touch */
    }
    body, a, button, input {
        cursor: auto !important;
    }
    /* Reduce animation distances on mobile for performance */
    .reveal-up {
        transform: translateY(20px);
    }
    .reveal-left, .reveal-right {
        transform: translateX(0); /* Disable side reveals on mobile to prevent overflow issues */
    }
}



/* ============================================================
   MOBILE OVERFLOW & CLIPPING FIXES (Max-Width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Enforce strict viewport boundaries, prevent sideways scroll */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
        position: relative; /* Contain absolute children */
    }

    /* Global Box-Sizing enforcement - This is critical for mobile padding */
    *, *::before, *::after {
        box-sizing: border-box !important;
        max-width: 100vw !important; /* Force nothing to ever exceed screen width */
    }

    /* Add safer margins to containers so text doesn't touch the very edge */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        max-width: 100% !important; 
        overflow: hidden; /* Prevent inner elements from protruding */
    }

    /* Prevent long paragraphs from breaking out, but keep headings clean */
    p, a, span, li, .section-desc, .hero-text {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto; /* allow natural hyphenation on small screens */
    }
    
    h1, h2, h3, h4, h5, h6, .hero-title, .section-title {
        word-wrap: normal !important;
        overflow-wrap: break-word !important; /* Allow break if absolutely forced by narrow screen */
        word-break: normal !important; 
    }

    /* Force all major section containers to maintain proper top-to-bottom stack order */
    .row, .flex-row, .hero-content, .contact-wrapper, .about-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Ensure images in cards or blogs always scale down and never overflow */
    img, video, iframe {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Fix form inputs bleeding out of the screen on small mobiles */
    .corp-form input, .corp-form select, .corp-form textarea, .newsletter-form input {
        width: 100% !important;
        max-width: 100% !important;
    }
    .newsletter-form button {
        width: auto !important; /* Keep the button inline */
    }
}

/* ============================================================
   PREMIUM APP-LIKE AESTHETICS (Max-Width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* 1. iOS-Style Glassmorphism Mobile Nav */
    .main-nav.active {
        background-color: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    [data-theme="dark"] .main-nav.active {
        background-color: rgba(15, 23, 42, 0.85) !important; /* Dark Navy Translucent */
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    /* 2. Soft Boxy Card Overrides */
    .srv-card, .portfolio-card, .testimo-card, .industry-card-pro, .blog-card, .contact-wrapper {
        border-radius: 20px !important;
        border: 1px solid rgba(0,0,0,0.03) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    }

    [data-theme="dark"] .srv-card, 
    [data-theme="dark"] .portfolio-card, 
    [data-theme="dark"] .testimo-card, 
    [data-theme="dark"] .industry-card-pro, 
    [data-theme="dark"] .blog-card, 
    [data-theme="dark"] .contact-wrapper {
        border: 1px solid rgba(255,255,255,0.03) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    }

    /* 3. Breathable Typography */
    p, .section-desc, .hero-text, .srv-card p, .job-card p {
        line-height: 1.7 !important;
        color: var(--text-base); /* Ensure it's not harsh black/white */
    }
    
    h1, h2, h3, h4, h5, .hero-title, .section-title {
        line-height: 1.15 !important;
    }

    /* 4. Enhanced Button 'Pop' */
    .btn-primary {
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35) !important;
    }
    .btn-primary:active {
        box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25) !important;
    }

    /* Tighter Hero Stacking */
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 20px; /* Tighter uniform gap */
    }
    .hero-title, .hero-subtitle, .hero-text {
        margin-bottom: 0 !important; /* Reset individual margins */
    }

    /* Supercharged Mobile Navigation Menu Styles */
    .mobile-nav-cta {
        display: block;
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid rgba(0, 0, 0, 0.05); /* Light mode divider */
    }
    [data-theme="dark"] .mobile-nav-cta {
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Dark mode divider */
    }
    .mobile-nav-socials {
        display: flex;
        justify-content: center;
        gap: 25px;
        margin-top: 30px;
    }
    .mobile-nav-socials a {
        color: var(--text-base);
        font-size: 1.4rem;
        transition: color 0.3s ease;
    }
    .mobile-nav-socials a:hover {
        color: var(--secondary-blue);
    }
}

/* Hide mobile-only elements on Desktop */
@media (min-width: 769px) {
    .mobile-nav-cta {
        display: none !important;
    }
}



/* ============================================================
   MOBILE HEADING LINE ALIGNMENT FIX (Max-Width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Force the decorative lines under generic section titles to center */
    .heading-line {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
    .heading-line-left {
        margin-left: 0 !important; /* Keep left alignment for about section */
        display: block !important;
    }
    /* Generic section headings are centered */
    .section-heading {
        text-align: center !important;
    }
    
    /* Strict Left-Alignment for the About section to maintain readability */
    .about-content {
        text-align: left !important;
    }
    .about-content .section-title, .about-content .section-tag {
        text-align: left !important;
    }
    .about-features {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important; /* Keep icons on the left edge */
        text-align: left !important;
    }
    .about-content p {
        text-align: left !important;
    }
    .about-content .btn {
        margin-left: 0 !important; /* align button to left */
    }
}



/* ============================================================
   MOBILE TECH STACK MARQUEE FIX
   ============================================================ */
@media (max-width: 480px) {
    .partners-grid {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 30px !important;
    }
}


/* ============================================================
   PREMIUM MOBILE ACCORDION FOOTER (Option 1)
   ============================================================ */
@media (max-width: 768px) {
    /* Base Footer Layout adjustments */
    .corp-footer .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    /* Accordion Header Style */
    .corp-footer .footer-col h4 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin-bottom: 0;
        padding: 10px 0;
        font-size: 1.1rem;
        transition: color 0.3s ease;
    }

    /* Accordion Plus/Minus Icon injected via CSS */
    .corp-footer .footer-col h4::before {
        content: '\f067'; /* FontAwesome Plus */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 0.9rem;
        color: var(--secondary-blue);
        transition: transform 0.3s ease;
        order: 2; /* Move icon to the right side */
    }

    .corp-footer .footer-col.active h4::before {
        content: '\f068'; /* FontAwesome Minus */
        transform: rotate(180deg);
    }

    /* Hide lists by default on mobile */
    .corp-footer .footer-col ul {
        display: none;
        padding-top: 15px;
        padding-left: 10px;
        animation: slideDown 0.3s ease-out forwards;
    }

    /* Show list when column is active */
    .corp-footer .footer-col.active ul {
        display: block;
    }

    /* Touch friendly links padding inside accordion */
    .corp-footer .footer-col ul li {
        margin-bottom: 12px;
    }

    /* Fix Brand Column */
    .corp-footer .brand-col {
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 30px;
    }

    .corp-footer .brand-col p {
        margin-left: auto;
        margin-right: auto;
    }

    /* Animations */
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}



/* ============================================================
   MOBILE HORIZONTAL SCROLL CAROUSELS (Max-Width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Convert grids into horizontal swipeable rows to save vertical space */
    .about-features, 
    .advanced-industries-grid,
    .blog-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch; /* Smooth iOS swipe */
        scroll-snap-type: x mandatory; /* Snap to next card */
        padding-bottom: 20px !important; /* Space for scrollbar */
        gap: 15px !important;
    }

    /* Force children to be full width swipe cards */
    .about-features li,
    .industry-card-pro,
    .blog-card {
        flex: 0 0 85% !important; /* Take up 85% width so the next card peeks out */
        max-width: 320px !important;
        scroll-snap-align: center;
        margin-bottom: 0 !important;
    }

    /* Hide scrollbar for a cleaner look while keeping swipe functionality */
    .about-features::-webkit-scrollbar, 
    .advanced-industries-grid::-webkit-scrollbar,
    .blog-grid::-webkit-scrollbar {
        display: none;
    }
    .about-features, 
    .advanced-industries-grid,
    .blog-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}



@media (max-width: 768px) {
    /* Also convert Services grid to a swipeable row */
    .services-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px !important;
        gap: 15px !important;
        scrollbar-width: none;
    }
    .services-grid::-webkit-scrollbar {
        display: none;
    }
    
    .services-grid .srv-card {
        flex: 0 0 85% !important;
        max-width: 320px !important;
        scroll-snap-align: center;
        height: auto; /* Allow dynamic height for cards */
        margin-bottom: 0 !important;
    }
}



/* ============================================================
   MOBILE SMART AUTO-HIDE HEADER (Option 3)
   ============================================================ */
@media (max-width: 768px) {
    /* Base transition for smooth hiding/showing */
    .header {
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, padding 0.3s ease !important;
    }

    /* Class injected by JS when scrolling down */
    .header.auto-hidden {
        transform: translateY(-100%); /* Hides completely above screen */
        pointer-events: none; /* Prevents invisible blocking */
    }

    /* When scrolling back up, it comes back instantly */
    .header.scrolled:not(.auto-hidden) {
        transform: translateY(0);
        /* Adding heavy glassmorphism for contrast when scrolled */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    }

    [data-theme="dark"] .header.scrolled:not(.auto-hidden) {
        background: rgba(15, 23, 42, 0.95);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
}



/* Ensure Theme Button shows properly inside the mobile CTA area */
@media (max-width: 768px) {
    .mobile-nav-cta .theme-toggle-btn {
        display: flex !important;
        font-size: 1.1rem;
        color: var(--text-base);
        text-align: center;
        padding: 12px 24px;
        border-radius: var(--border-radius);
        cursor: pointer;
    }
    /* Hide the old top-bar space where it used to be */
    .header-actions .theme-toggle-btn {
        display: none !important;
    }
}

/* On Desktop, move it back to header actions natively */
@media (min-width: 769px) {
    .mobile-nav-cta .theme-toggle-btn {
        display: none !important;
    }
    .header-actions .theme-toggle-btn {
        display: flex !important;
    }
}



/* ============================================================
   URGENT MOBILE OVERFLOW FIXES (Detected via Subagent)
   ============================================================ */
@media (max-width: 768px) {

    /* 1. Stop horizontal overflow loop in About list */
    .about-features {
        display: flex !important;
        flex-direction: column !important; /* Force vertical stacking */
        width: 100% !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .about-features li {
        width: 100% !important;
        max-width: 100%;
        align-items: flex-start;
    }

    /* 2. Neutralize aggressive hyphens causing 're-sults' */
    * {
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
    }

    /* 3. Get floating widgets out of the way of text */
    .whatsapp-float, .ai-chat-btn, .back-to-top {
        transform: scale(0.8);
        transform-origin: bottom right;
        z-index: 90; /* Keep below modal/nav overlays but above content */
        opacity: 0.85; /* Make slightly transparent when reading */
    }

    /* Push chat buttons slightly higher so they don't block the footer */
    .whatsapp-float { bottom: 85px !important; }
    .ai-chat-btn { bottom: 30px !important; }
}


/* Final About Features Mobile Lock */
@media (max-width: 768px) {
    .about-features li { align-items: flex-start !important; }
    .about-features li i { padding-top: 5px; }
}

/* ---- About Section — Split Headline ---- */
.about-headline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.headline-line1 {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    opacity: 0.7;
}

.headline-line2 {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.headline-line2 em {
    font-style: italic;
    color: var(--secondary-blue);
    font-weight: 800;
}

[data-theme="dark"] .headline-line1 {
    opacity: 0.55;
}

/* ============================================================
   OUR PARTNERS INFINITE MARQUEE
   ============================================================ */
.partners-section {
    padding: 60px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

[data-theme="dark"] .partners-section {
    background-color: var(--dark-navy);
}

.logo-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

/* Optional fading edges for premium look */
.logo-marquee-container::before,
.logo-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, rgba(255,255,255,0) 100%);
}

.logo-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, rgba(255,255,255,0) 100%);
}

[data-theme="dark"] .logo-marquee-container::before {
    background: linear-gradient(to right, var(--dark-navy) 0%, rgba(0,0,0,0) 100%);
}

[data-theme="dark"] .logo-marquee-container::after {
    background: linear-gradient(to left, var(--dark-navy) 0%, rgba(0,0,0,0) 100%);
}

.logo-marquee-content {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-left: 60px;
    animation: partners-scroll-left 25s linear infinite;
    width: max-content;
}

.logo-marquee-content:hover {
    animation-play-state: paused;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-heading);
}

.partner-logo i {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

/* Base colors for each specific tech brand */
.partner-logo.google i { color: #4285F4; }
.partner-logo.meta i { color: #0668E1; }
.partner-logo.shopify i { color: #95BF47; }
.partner-logo.aws i { color: #FF9900; }
.partner-logo.hubspot i { color: #FF7A59; }
.partner-logo.wordpress i { color: #21759B; }

/* Interactive Hover effect */
.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes partners-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 30px)); } /* Scrolls half the width to seamlessly loop */
}

/* Mobile Adjustments for Marquee */
@media (max-width: 768px) {
    .partners-section {
        padding: 40px 0;
    }
    .logo-marquee-container::before,
    .logo-marquee-container::after {
        width: 50px;
    }
    .partner-logo {
        font-size: 1.2rem;
        gap: 8px;
    }
    .partner-logo i {
        font-size: 1.8rem;
    }
    .logo-marquee-content {
        gap: 40px;
        padding-left: 40px;
        animation: partners-scroll-left 20s linear infinite;
    }
    @keyframes partners-scroll-left {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50% - 20px)); } 
    }
}

/* ===================== TRUSTED BY & TECHNOLOGY PARTNERS ===================== */
.trusted-partners-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    overflow: hidden;
}

.trusted-heading {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--text-heading);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.trusted-subtext {
    font-size: 1.05rem;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto 45px auto;
    line-height: 1.6;
}

.trusted-logos-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.trusted-logos-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: trustedScroll 25s linear infinite;
}

.trusted-logos-wrapper:hover .trusted-logos-track {
    animation-play-state: paused;
}

.trusted-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    color: #a0aab5;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    filter: grayscale(100%) opacity(0.8);
}

.trusted-logo i {
    font-size: 42px;
}

.logo-text {
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.trusted-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08); /* Slight smooth zoom */
}

/* Brand Colors on Hover */
.trusted-logo.wordpress:hover { color: #21759B; }
.trusted-logo.google:hover { color: #4285F4; }
.trusted-logo.meta:hover { color: #0668E1; }
.trusted-logo.shopify:hover { color: #95BF47; }
.trusted-logo.aws:hover { color: #FF9900; }

@keyframes trustedScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 30px)); }
}

[data-theme="dark"] .trusted-partners-section {
    background-color: #0b1120 !important;
}

[data-theme="dark"] .trusted-logo {
    color: #475569;
}

@media (max-width: 768px) {
    .trusted-partners-section {
        padding: 60px 0;
    }
    .trusted-logos-track {
        gap: 40px;
    }
    .trusted-logo {
        font-size: 20px;
    }
    .trusted-logo i {
        font-size: 34px;
    }
}
