@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* Custom Styles */
/* Body styles are handled by Tailwind classes in index.html */

/* Glass Navigation - No longer used, kept for legacy */
.glass-nav {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

html.dark .glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(78, 74, 255, 0.3);
}

html.dark .glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.text-gradient {
    background: linear-gradient(135deg, #1e1b4b 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.dark .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #2563eb 100%);
}

.text-gradient-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.dark .text-gradient-primary {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
}

/* Grid Background */
.grid-bg {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

html.dark .grid-bg {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f9fafb;
}

html.dark ::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

html.dark ::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4e4aff;
}

/* Spotlight Effect */
.spotlight {
    background: radial-gradient(600px circle at var(--x) var(--y), rgba(37, 99, 235, 0.05), transparent 40%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

html.dark .spotlight {
    background: radial-gradient(600px circle at var(--x) var(--y), rgba(37, 99, 235, 0.08), transparent 40%);
}

/* Swiper Customization */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: #4e4aff !important;
    width: 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
}

/* Bento Grid Micro-interactions */
.bento-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(78, 74, 255, 0.15);
    border-color: rgba(78, 74, 255, 0.3);
}

.code-typing {
    border-right: 2px solid #4e4aff;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #4e4aff
    }
}

.floating-icon {
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.33);
        opacity: 1;
    }

    80%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.path-anim {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 3s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* Tech Stack Styles */
.tech-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

html.dark .tech-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-card:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: rgba(78, 74, 255, 0.3);
}

html.dark .tech-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tech-icon {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Tooltip */
.tool-tip {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tech-card:hover .tool-tip {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Delays */
.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Mobile Menu Animation */
#mobile-menu.menu-open {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
}

#mobile-menu .mobile-link {
    transition: all 0.3s ease;
    transition-delay: calc(var(--delay, 0) * 50ms);
}

#mobile-menu.menu-open .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

/* Shimmer Animation */
@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 1.5s infinite;
}

/* ============================================
   ORBITAL TECH STACK ANIMATION
   ============================================ */

/* Orbit Container Animation */
.orbit-inner {
    animation: rotate-orbit 30s linear infinite;
}

.orbit-outer {
    animation: rotate-orbit 45s linear infinite reverse;
}

@keyframes rotate-orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Position items on orbit using CSS custom properties */
.orbit-item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle)));
    margin-left: -24px;
    margin-top: -24px;
}

/* Counter-rotate icons so they stay upright */
.orbit-inner .orbit-item {
    animation: counter-rotate 30s linear infinite;
}

.orbit-outer .orbit-item {
    animation: counter-rotate 45s linear infinite reverse;
}

@keyframes counter-rotate {
    from {
        transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle)));
    }

    to {
        transform: rotate(calc(var(--angle) + 360deg)) translateX(var(--radius)) rotate(calc(-1 * (var(--angle) + 360deg)));
    }
}

/* Tech Icon Styling */
.tech-orbit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

html.dark .tech-orbit-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-orbit-icon:hover {
    background: rgba(78, 74, 255, 0.15);
    border-color: rgba(78, 74, 255, 0.4);
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(78, 74, 255, 0.3);
}

.tech-orbit-icon img {
    transition: all 0.3s ease;
    filter: grayscale(30%);
}

.tech-orbit-icon:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Tooltip */
.tech-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(78, 74, 255, 0.3);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tech-orbit-icon:hover .tech-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Pause animation on hover for better interaction */
.orbit-inner:hover,
.orbit-outer:hover {
    animation-play-state: paused;
}

.orbit-inner:hover .orbit-item,
.orbit-outer:hover .orbit-item {
    animation-play-state: paused;
}

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

    .orbit-inner,
    .orbit-outer {
        display: none;
    }

    .orbit-item {
        --radius: 100px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .orbit-item {
        --radius: 150px;
    }
}

/* Blob animation for hero */
@keyframes blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(30px, 10px) scale(1.05);
    }
}

.animate-blob {
    animation: blob 8s ease-in-out infinite;
}

/* ============================================
   CONSTELLATION NETWORK TECH STACK
   ============================================ */

/* Tech Node Container */
.tech-node {
    z-index: 20;
}

/* Tech Node Icon Box*//* ============================================
   TECH MARQUEE SYSTEM
   ============================================ */

.tech-marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    position: relative;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.tech-marquee-row {
    display: flex;
    gap: 20px;
    width: max-content;
    flex-shrink: 0;
}

.marquee-left {
    animation: marquee-left 40s linear infinite;
}

.marquee-right {
    animation: marquee-right 40s linear infinite;
}

.tech-marquee-wrapper:hover .tech-marquee-row {
    animation-play-state: paused;
}

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

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

/* Premium Tech Card Styling */
.tech-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    min-width: 110px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

html.dark .tech-item-card {
    background: rgba(10, 10, 18, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.tech-item-card:hover {
    background: #fff;
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

html.dark .tech-item-card:hover {
    background: rgba(15, 15, 30, 0.8);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

.tech-item-card .tech-icon-container {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.tech-item-card:hover .tech-icon-container {
    transform: scale(1.1);
}

.tech-item-card .tech-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    z-index: 2;
    letter-spacing: -0.01em;
}

html.dark .tech-item-card .tech-name {
    color: #f1f5f9;
}

.tech-glow-layer {
    position: absolute;
    inset: -20px;
    opacity: 0;
    filter: blur(25px);
    transition: opacity 0.5s ease;
    z-index: 1;
}

.tech-item-card:hover .tech-glow-layer {
    opacity: 0.15;
}

html.dark .tech-item-card:hover .tech-glow-layer {
    opacity: 0.25;
}

/* Responsive constraints */
@media (max-width: 768px) {
    .tech-marquee-wrapper { gap: 16px; }
    .tech-item-card {
        padding: 12px 20px;
        min-width: 180px;
        gap: 16px;
    }
    .tech-item-card .tech-name { font-size: 14px; }
    .tech-item-card .tech-icon-container { width: 36px; height: 36px; }
    .marquee-left, .marquee-right { animation-duration: 25s; }
}

/* ============================================
   HOW WE WORK - CARD STICKING (Uses Tailwind)
   ============================================ */
/* Pure Tailwind - no custom CSS needed */

/* ============================================
   PREMIUM SMOOTH SCROLLING (LENIS)
   ============================================ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }


/* ============================================
   PREMIUM CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

html.dark ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #2563eb, #6366f1);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #1d4ed8, #4f46e5);
    background-clip: content-box;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #2563eb transparent;
}


.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }


/* ============================================
   HERO GLITCH & TYPING EFFECTS
   ============================================ */

/* ============================================
   PREMIUM SMOOTH GLITCH TYPING
   ============================================ */

.smooth-glitch {
    position: relative;
    display: inline-block;
}

.smooth-glitch-active {
    animation: smooth-sub-glitch 0.2s linear infinite;
}

.smooth-glitch-active::before,
.smooth-glitch-active::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.smooth-glitch-active::before {
    left: 2px;
    text-shadow: -1px 0 rgba(37, 99, 235, 0.8); /* Brand Primary */
    clip: rect(24px, 550px, 90px, 0);
    animation: smooth-glitch-anim-1 0.2s infinite linear alternate-reverse;
}

.smooth-glitch-active::after {
    left: -2px;
    text-shadow: -1px 0 rgba(14, 165, 233, 0.8); /* Brand Accent / Cyan */
    clip: rect(85px, 550px, 140px, 0);
    animation: smooth-glitch-anim-2 0.2s infinite linear alternate-reverse;
}

@keyframes smooth-sub-glitch {
    0% { transform: skew(0deg); }
    20% { transform: skew(-0.5deg); }
    40% { transform: skew(0.5deg); }
    60% { transform: skew(0deg); }
    80% { transform: skew(0.5deg); }
    100% { transform: skew(0deg); }
}

@keyframes smooth-glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 80px, 0); }
    100% { clip: rect(60px, 9999px, 10px, 0); }
}

@keyframes smooth-glitch-anim-2 {
    0% { clip: rect(60px, 9999px, 20px, 0); }
    100% { clip: rect(10px, 9999px, 80px, 0); }
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: currentColor;
    margin-left: 4px;
    vertical-align: middle;
    animation: cursor-blink 0.8s infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* ============================================
   MINIMALIST PREMIUM HERO REFINEMENT
   ============================================ */

/* Faint Noise Texture Overlay */
.noise-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    opacity: 0.03;
    pointer-events: none;
    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");
}

/* Enhanced Glassmorphism */
.premium-glass {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
}

html.dark .premium-glass {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
}

/* Geometric Brand Label v2 */
.brand-label-v2 {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Refined Tech Pulse: Twinkling Intersections */
.tech-pulses {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

.tech-pulse {
    position: absolute;
    width: 2.5px;
    height: 2.5px;
    background: #2563eb;
    border-radius: 50%;
    box-shadow: 0 0 8px #2563eb, 0 0 15px #2563eb;
    opacity: 0;
    animation: tech-twinkle 6s ease-in-out infinite;
}

@keyframes tech-twinkle {
    0%, 100% { transform: scale(0.7); opacity: 0; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

/* Shorter Streak alternative */
.tech-streak {
    position: absolute;
    width: 120px;
    height: 1.2px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    opacity: 0;
    animation: tech-slide 10s linear infinite;
}

@keyframes tech-slide {
    0% { transform: translateX(-150%) translateY(0); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateX(100vw) translateY(0); opacity: 0; }
}
/* Testimonial Showcase: Clean V3 */
.testimonial-showcase {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .testimonial-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.testimonial-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 100px;
}

@media (max-width: 1024px) {
    .testimonial-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
        position: static;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .testimonial-nav::-webkit-scrollbar { display: none; }
}

.testimonial-tab {
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-tab:hover {
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1024px) {
    .testimonial-tab { min-width: 200px; }
}

.testimonial-tab.active {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: inset 0 0 10px rgba(37, 99, 235, 0.05);
}

.testimonial-showcase-card {
    background: #0a0a14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    display: none;
    animation: testimonialCleanFade 0.5s ease forwards;
    color: #ffffff; /* Force white text */
}

.testimonial-showcase-card h4 { color: #ffffff !important; }
.testimonial-showcase-card p { color: rgba(255, 255, 255, 0.6) !important; }
.testimonial-showcase-card blockquote { color: rgba(255, 255, 255, 0.9) !important; }

.testimonial-showcase-card.active {
    display: block;
}

@media (max-width: 640px) {
    .testimonial-showcase-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
}

@keyframes testimonialCleanFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Service Showcase V4: Full-Section Dark Creative Showcase */
.services-section-dark {
    background-color: #030308;
    position: relative;
    overflow: hidden;
}

/* Atmospheric Mesh Glows */
.mesh-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    animation: meshPulse 10s infinite alternate;
}

@keyframes meshPulse {
    0% { transform: translate(-10%, -10%) scale(1); opacity: 0.3; }
    100% { transform: translate(10%, 10%) scale(1.2); opacity: 0.6; }
}

.service-v3-container {
    position: relative;
    z-index: 10;
    max-width: 1240px;
    margin: 0 auto;
}

/* Redesigned Floating Pill Tabs */
.service-nav-v4 {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem;
    border-radius: 100px;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.service-nav-v4::-webkit-scrollbar { display: none; }

.service-v3-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.65); /* Increased contrast from 0.4 */
    font-weight: 600;
    font-size: 0.9375rem;
}

.service-v3-tab .tab-icon {
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0.55; /* Increased contrast from 0.3 */
    transition: all 0.4s ease;
}

.service-v3-tab:hover {
    color: rgba(255, 255, 255, 0.9);
}

.service-v3-tab.active {
    background: #2563eb;
    color: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.service-v3-tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #2563eb;
    border-radius: 50%;
}

.service-v3-tab.active .tab-icon {
    opacity: 1;
    color: #ffffff;
    transform: scale(1.1);
}

/* V4 Content Card refinement: Full-Bleed Illustration Design */
.service-v3-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 0; /* Full bleed right */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    backdrop-filter: blur(20px);
    height: 380px; /* Fixed height as requested */
    position: relative;
    overflow: hidden;
}

.service-v3-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.03), transparent);
    z-index: 1;
    pointer-events: none;
}

html.dark .service-v3-card {
    border-color: rgba(255, 255, 255, 0.05);
}

/* Internal padding for text only */
.service-v3-content {
    position: relative;
    padding: 2.5rem;
    height: 100%;
}

/* Full bleed image container */
.service-illustration-wrap {
    position: relative;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    background: rgba(0,0,0,0.1); /* Subtle dark base */
}

.service-v3-content-layer {
    position: absolute;
    inset: 2.5rem;
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    will-change: opacity, transform;
}

.service-v3-illustration-layer {
    position: absolute;
    inset: 0; /* Fully fills the illustration wrap */
    opacity: 0;
    transform: scale(1.05); /* Slight zoom by default */
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity, transform;
}

.service-v3-illustration-layer img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Fill edge to edge */
}

.service-v3-content-layer.active,
.service-v3-illustration-layer.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.service-v3-content h3 {
    color: #ffffff;
    font-size: 2.25rem !important; /* Restored size */
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
}

.service-v3-content p {
    color: #d1d5db; /* Gray 300 for much better contrast */
    font-size: 1.125rem !important; /* Restored size */
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.learn-more-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.75rem;
    background: #2563eb;
    color: #ffffff !important;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content; /* Prevent full-width stretch */
}

.learn-more-v3:hover {
    background: #1d4ed8;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -8px rgba(37, 99, 235, 0.5);
    gap: 1rem;
}

.learn-more-v3 i, .learn-more-v3 span {
    transition: transform 0.3s ease;
}

.learn-more-v3:active {
    transform: translateY(-1px) scale(0.98);
}

.illustration-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
}

/* Services Section Mobile Responsive */
@media (max-width: 768px) {
    .service-nav-v4 {
        padding: 0.35rem;
        margin-bottom: 2rem;
        gap: 0.25rem;
    }

    .service-v3-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        gap: 0.4rem;
    }

    .service-v3-tab span {
        display: none;
    }

    .service-v3-tab .tab-icon {
        width: 1.25rem;
        height: 1.25rem;
    }

    .service-v3-card {
        grid-template-columns: 1fr;
        height: auto;
    }

    .service-illustration-wrap {
        height: 220px;
        order: -1;
    }

    .service-v3-content {
        padding: 1.5rem;
    }

    .service-v3-content-layer {
        position: relative;
        inset: unset;
        opacity: 0;
        transform: scale(0.98);
        display: none;
    }

    .service-v3-content-layer.active {
        display: flex;
        opacity: 1;
        transform: scale(1);
    }

    .service-v3-content h3 {
        font-size: 1.5rem !important;
    }

    .service-v3-content p {
        font-size: 0.95rem !important;
    }

    .learn-more-v3 {
        padding: 0.65rem 1.25rem;
        font-size: 0.8rem;
    }
}

/* Trust Pill Styles */
.trust-pill {
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

html.dark .trust-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-pill:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

/* Button Refinement: Inner Highlight */
.btn-premium-primary {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 20px -10px rgba(37, 99, 235, 0.4);
}

/* Subtle Dot & Grid Backgrounds */
.subtle-dot-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
}

.subtle-grid-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: 
        linear-gradient(to right, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}


/* Smart Navbar: Forced Dark Styling for Dark Sections */
#navbar.navbar-force-dark #nav-card {
    background: #0A0A0A !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.4s ease;
}

#navbar.navbar-force-dark #nav-card .text-xl,
#navbar.navbar-force-dark #nav-card .text-sm,
#navbar.navbar-force-dark #nav-card .text-gray-900,
#navbar.navbar-force-dark #nav-card span:not(.text-brand-primary) {
    color: #ffffff !important;
}

#navbar.navbar-force-dark #nav-card .text-gray-600,
#navbar.navbar-force-dark #nav-card .text-gray-400 {
    color: #9ca3af !important;
}

#navbar.navbar-force-dark #nav-card a:hover {
    color: #ffffff !important;
}

#navbar.navbar-force-dark #nav-card .text-brand-primary {
    color: #3b82f6 !important;
}

#navbar.navbar-force-dark #nav-card .border-gray-200 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- Project Card V6 (Elevated Purist - Clean & Professional) --- */
.project-card-v6 {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

html.dark .project-card-v6 {
    background: #0a0a18;
    border-color: rgba(255, 255, 255, 0.06);
}

.project-card-v6:hover {
    transform: translateY(-10px);
    border-color: var(--project-accent, #2563eb);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

html.dark .project-card-v6:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Subtle accent glow in background */
.project-card-v6::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--project-accent, #2563eb) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.project-card-v6:hover::after {
    opacity: 0.03;
}

html.dark .project-card-v6:hover::after {
    opacity: 0.08;
}

.project-img-v6 {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-img-v6 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card-v6:hover .project-img-v6 img {
    transform: scale(1.08);
}

.project-content-v6 {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.working-category-v6 {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--project-accent, #2563eb);
    margin-bottom: 0.75rem;
}

.project-title-v6 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

html.dark .project-title-v6 {
    color: #ffffff;
}

.project-desc-v6 {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

html.dark .project-desc-v6 {
    color: #94a3b8;
}

.project-actions-v6 {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-case-link-v6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

html.dark .project-case-link-v6 {
    color: #f1f5f9;
}

.project-case-link-v6:hover {
    color: var(--project-accent, #2563eb);
    gap: 0.75rem;
}

.project-visit-btn-v6 {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

html.dark .project-visit-btn-v6 {
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.project-visit-btn-v6:hover {
    background: var(--project-accent, #2563eb);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px -5px var(--project-accent, #2563eb);
}