﻿:root {
    /* Light Mode Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #7c3aed;
    --accent: #06b6d4;

    --bg-body: #ffffff;
    --bg-card: #f8fafc;
    --bg-hover: #f1f5f9;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;

    --bg-body: #0a0f1e;
    --bg-card: #1e293b;
    --bg-hover: #334155;

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --border: #334155;
    --border-hover: #475569;

    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
}

/* Header & Navigation Container */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.8);
    /* Dark mode default */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 90px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.logo-icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.logo:hover .logo-icon::before {
    border-color: var(--primary);
    transform: scale(1.1);
}

.logo-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.logo-dot:nth-child(1) {
    top: 0;
    left: 0;
    background: var(--secondary);
}

.logo-dot:nth-child(2) {
    bottom: 0;
    right: 0;
    background: #06b6d4;
}

.logo-dot:nth-child(3) {
    top: 0;
    right: 0;
    background: var(--primary);
    opacity: 0.5;
}

.logo:hover .logo-dot:nth-child(3) {
    opacity: 1;
    transform: translateX(2px) translateY(-2px);
}

.logo-text {
    color: #ffffff;
    font-weight: 700;
    transition: color 0.3s ease;
}

.logo-text span {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #06b6d4;
    font-weight: 700;
}

/* Light Mode Logo Override */
[data-theme="light"] .logo-text {
    color: var(--text-heading);
}

/* Navigation Links - Desktop */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100% !important;
}

.nav-links li a.active::after {
    transition: none;
}

/* Dropdown Navigation */
.nav-links li.dropdown {
    position: relative;
    padding-bottom: 20px;
    /* Increase hit area downwards */
    margin-bottom: -20px;
    /* Compensate for layout */
}

/* Invisible Bridge to prevent closing */
.nav-links li.dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 30px;
    /* Bridge the gap to the menu */
    background: transparent;
    z-index: 1000;
}

.nav-links li.dropdown>a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    z-index: 1002;
    /* Above the bridge */
}

/* ... icon styles ... */

.dropdown-menu {
    position: absolute;
    top: 100%;
    /* Position directly below */
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    /* Wider for better readability */
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;

    display: flex;
    flex-direction: column;
    /* Force vertical stack */
    gap: 0.25rem;
    margin-top: 5px;
    /* Slight offset */
}



.nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    top: 90%;
    /* Slightly closer on hover */
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    transform: translateX(4px);
}


/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px) scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-main);
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    background: var(--bg-hover);
    border-radius: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Show hamburger on mobile only */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        gap: 0;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-links li a::after {
        display: none;
    }

    /* Mobile Menu Logo & CTA Styling */
    .mobile-nav-logo {
        padding: 1.5rem 0 !important;
        border-bottom: 2px solid var(--border) !important;
        margin-bottom: 1rem;
    }

    .mobile-nav-logo .logo {
        font-size: 1.5rem;
    }

    .mobile-nav-logo .logo-icon {
        width: 24px;
        height: 24px;
    }

    .mobile-nav-logo .logo-dot {
        width: 6px;
        height: 6px;
    }

    .mobile-nav-cta {
        margin-top: 1.5rem;
        padding-top: 1.5rem !important;
        border-top: 2px solid var(--border) !important;
        border-bottom: none !important;
    }
}

/* === Background Animations === */
/* Option 2: Tech Grid */
/* Option 2: Tech Grid - Parallax */
.bg-tech-grid {
    background-color: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.bg-tech-grid::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
    transform: translate(calc(var(--para-x, 0) * 30px), calc(var(--para-y, 0) * 30px));
    transition: transform 0.1s linear;
    z-index: 0;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* CTA Section - Theme Aware */
.cta-section {
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.12) 100%), var(--bg-card) !important;
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.08) 100%), var(--bg-card) !important;
}

.cta-section h2,
.cta-section p,
.cta-section .btn {
    position: relative;
    z-index: 2;
}

/* CTA Section Text Colors - Theme Aware */
.cta-section h2,
.cta-section p {
    color: var(--text-heading);
}

[data-theme="dark"] .cta-section h2,
[data-theme="dark"] .cta-section p {
    color: var(--text-main);
}

/* CTA Section Buttons - Theme Aware */
.cta-section .cta-primary-btn {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
}

.cta-section .cta-primary-btn:hover {
    background: #1e40af !important;
    transform: translateY(-2px);
}

.cta-section .cta-secondary-btn {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
}

.cta-section .cta-secondary-btn:hover {
    background: rgba(37, 99, 235, 0.1) !important;
    transform: translateY(-2px);
}

/* Option 4: Circuit Scan - Parallax */
.bg-circuit-scan {
    background-color: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.bg-circuit-scan::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image:
        radial-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px);
    background-position: 0 0, 20px 20px;
    background-size: 40px 40px;
    transform: translate(calc(var(--para-x, 0) * 15px), calc(var(--para-y, 0) * 15px));
    transition: transform 0.1s linear;
    z-index: 0;
    pointer-events: none;
}

.bg-circuit-scan::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(0deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    background-size: 100% 50%;
    animation: scanline 8s linear infinite;
    transform: translate(calc(var(--para-x, 0) * 10px), calc(var(--para-y, 0) * 10px));
    transition: transform 0.1s linear;
    z-index: 1;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Dark Mode Overrides */
[data-theme="dark"] .bg-tech-grid {
    background-color: var(--bg-body);
}

[data-theme="dark"] .bg-tech-grid::before {
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] .bg-circuit-scan {
    background-color: var(--bg-body);
}

[data-theme="dark"] .bg-circuit-scan::after {
    background-image:
        radial-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px),
        radial-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px);
}

/* Ensure content stays above background animations */
.bg-tech-grid .container,
.bg-circuit-scan .container {
    position: relative;
    z-index: 5;
}

/* === Tech Icon Cluster === */
.tech-cluster-container {
    position: relative;
    width: 300px;
    max-width: 100%;
    height: 300px;
    margin: 4rem auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.cluster-core {
    position: relative;
    z-index: 10;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #9333ea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
    animation: corePulse 3s infinite ease-in-out;
}

.core-icon {
    color: white;
    width: 40px;
    height: 40px;
}

.cluster-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spinOrbit 30s linear infinite;
}

.orbit-node {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    color: var(--primary);
    animation: counterSpin 30s linear infinite;
}

/* Positions around circle - 3 nodes at 120° intervals */
.n1 {
    top: 10%;
    left: 50%;
}

/* Intelligent Automation (top) */
.n2 {
    top: 70%;
    left: 85%;
}

/* Scalable Architecture (bottom-right) */
.n3 {
    top: 70%;
    left: 15%;
}

/* Global Strategies (bottom-left) */

.orbit-node i {
    width: 20px;
    height: 20px;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(37, 99, 235, 0.2);
    pointer-events: none;
}

.r1 {
    width: 240px;
    height: 240px;
    animation: spinRing 40s linear infinite reverse;
}

.r2 {
    width: 340px;
    height: 340px;
    border: 1px solid rgba(147, 51, 234, 0.1);
}

@keyframes spinOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes counterSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes spinRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes corePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px rgba(37, 99, 235, 0.7);
    }
}


@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes loadBar {
    from {
        width: 0;
    }

    to {
        width: 98%;
    }
}


@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* Option 4: Circuit Scan */
.bg-circuit-scan {
    background-color: var(--bg-card);
    background-image:
        radial-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px);
    background-position: 0 0, 20px 20px;
    background-size: 40px 40px;
    position: relative;
    overflow: hidden;
}

.bg-circuit-scan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    background-size: 100% 50%;
    animation: scanline 8s linear infinite;
    z-index: 1;
}

@keyframes scanline {
    0% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

[data-theme="dark"] .bg-circuit-scan {
    background-color: var(--bg-body);
    background-image:
        radial-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px),
        radial-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px);
}


[data-theme="dark"] .bg-tech-grid {
    background-color: var(--bg-body);
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.3px;
}

/* Responsive Two Column Grid */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-body);
    border: 1px solid transparent;
}

[data-theme="dark"] .btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #334155;
    /* Darker shade of slate/gray for light mode */
    transform: translateY(-3px) scale(1.02);
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-main);
    transform: translateY(-3px) scale(1.02);
}

/* === Hero Section === */
.hero {
    padding: 140px 0 100px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: rgb(240, 248, 255);
    background-image: url('../images/2-Photoroom.png');
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
}

[data-theme="dark"] .hero {
    background-color: #0a0f1e;
    background-image: url('../images/dark\ bg.png');
}

/* Remove overlays to show the full image */
.hero::before,
.hero::after {
    display: none;
}

.hero .container {
    padding-left: 0 !important;
    padding-top: 5%;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: auto !important;
}

.hero-content {
    max-width: 750px;
    /* Force margin-left to 0 and push everything else to the right */
    margin-left: 0 !important;
    margin-right: auto;
    text-align: left;
    position: relative;
    z-index: 1;
    padding-right: 2rem;
    padding-left: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: var(--text-main);
    text-shadow: 0 2px 20px rgba(37, 99, 235, 0.1);
    animation: fadeInUp 0.8s ease-out, textGlow 3s ease-in-out infinite;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* === Section Padding === */
.section-padding {
    padding: 100px 2rem;
}

/* === Service Cards === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* backdrop-filter removed for performance */
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #9333ea);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-icon i {
    width: 40px;
    height: 40px;
}

/* Hover Effects */
.service-card:hover .service-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
    color: white;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.service-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.service-btn:hover svg {
    transform: translateX(4px);
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

/* Industry Card Accents */
.industry-healthcare::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ef4444;
    border-radius: 16px 16px 0 0;
}

.industry-software::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
    border-radius: 16px 16px 0 0;
}

.industry-mortgage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #10b981;
    border-radius: 16px 16px 0 0;
}

.industry-insurance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f59e0b;
    border-radius: 16px 16px 0 0;
}

/* === Team Section === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.team-img-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.team-card:hover .team-img-placeholder {
    transform: scale(1.05);
}

.team-img-placeholder svg {
    width: 80px;
    height: 80px;
    color: white;
    opacity: 0.9;
}

.team-info {
    padding: 2rem;
}

.team-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.team-info>p {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.team-bio {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* === Contact Section === */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.contact-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.contact-text p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-main);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* === Footer === */
footer {
    background: var(--bg-card);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

footer .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    display: flex;
    align-items: center;
}

.footer-links li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links li {
        justify-content: center;
    }
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes morphShape {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

@keyframes textGlow {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

@keyframes pulseButton {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1.15) rotate(8deg) translateY(-5px);
    }

    50% {
        transform: scale(1.2) rotate(8deg) translateY(-8px);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 120px 1.5rem 80px;
        min-height: auto;
        background-image: url('../images/mobile-hero-light.png');
        background-size: cover;
        background-position: center center;
    }

    [data-theme="dark"] .hero {
        background-image: url('../images/mobile-hero-dark.png');
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content {
        text-align: center;
        width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .section-padding {
        padding: 60px 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }

    .footer-links li {
        justify-content: center;
    }

    /* Fix back to top button for mobile */
    .back-to-top {
        right: 20px !important;
        bottom: 20px !important;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
    }

    .hero-content .btn {
        width: auto;
    }

    .service-card {
        padding: 1.5rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        right: 15px !important;
        bottom: 15px !important;
    }

    /* Ensure proper spacing on very small screens */
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 40px 1rem;
    }
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* === Process Section === */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 200px;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

/* Restored Styles */
.process-step:hover .step-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    border-color: var(--primary);
}

.step-icon i {
    width: 32px;
    height: 32px;
}

.process-step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Connecting Line */
.process-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--border) 0, var(--border) 10px, transparent 10px, transparent 20px);
    z-index: 0;
}

@media (max-width: 768px) {
    .process-steps::before {
        display: none;
    }

    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }
}

/* === Digital Future Section === */
.digital-future-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.digital-future-icon {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    padding: 20px;
}

@media (max-width: 768px) {
    .digital-future-wrapper {
        padding-top: 60px;
        margin-top: 3rem;
        /* Added gap from Hero section */
    }

    .digital-future-icon {
        top: -40px;
        /* Restored original position */
        /* Removed width/height overrides to keep original size */
    }
}

/* === Services Page Styles === */
.bg-dots-pattern {
    background-color: var(--bg-card);
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .bg-dots-pattern {
    background-color: var(--bg-body);
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
}

.bg-dots-pattern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.service-detail-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Enhanced multi-layered shadows */
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(147, 51, 234, 0.1);
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.service-detail-card:hover::before {
    transform: scaleX(1);
}

.service-detail-card h3 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.service-detail-card h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-detail-card ul {
    list-style-type: none;
    padding-left: 0;
}

.service-detail-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.service-detail-card ul li::before {
    content: "\2022";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.6rem;
    line-height: 1;
}

/* Service Card Link */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.75rem;
    text-decoration: underline;
}

.service-link i {
    width: 1rem;
    height: 1rem;
}

/* Benefits Section */
.benefits-section {
    padding: 2rem 0 4rem;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}



/* Service Card Image Wrapper */
.service-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
}

/* Gradient overlay for text contrast */
.service-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.service-detail-card:hover .service-img-wrapper::after {
    opacity: 0.7;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-detail-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

/* Category Badge */
.service-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail-card:hover .service-category {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.6);
}

/* Technology Section Icon Styling - Matches Index Page */

/* Technology Pillars Section - Redesigned to match index page grid */
.tech-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.tech-pillar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.tech-pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-pillar-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.18),
        0 20px 40px rgba(147, 51, 234, 0.25);
    border-color: var(--primary-light);
}

.tech-pillar-card:hover::before {
    transform: scaleX(1);
}

/* Technology Section Icon Styling - Matches Index Page */
.tech-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.tech-icon-circle i {
    width: 40px;
    height: 40px;
}

.tech-pillar-card:hover .tech-icon-circle {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.tech-icon-circle svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.tech-pillar-card:hover .tech-icon-circle svg {
    color: white;
}

.tech-pillar-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    line-height: 1.3;
}

.tech-pillar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.tech-pillar-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.tech-pillar-card ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.tech-pillar-card:hover ul li {
    color: var(--text-main);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tech-pillar-card h3 {
        font-size: 1.3rem;
    }
}

/* =================================================
   TECHNOLOGY SECTION - 2 COLUMN GRID
   ================================================= */
.tech-pillars-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
}

.tech-pillar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.12);
    position: relative;
}

.tech-pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tech-pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    border-color: var(--primary-light);
}

.tech-pillar-card:hover::before {
    transform: scaleX(1);
}

.tech-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.tech-pillar-card:hover .tech-icon-circle {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.tech-icon-circle i,
.tech-icon-circle svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.tech-pillar-card:hover .tech-icon-circle i,
.tech-pillar-card:hover .tech-icon-circle svg {
    color: white;
}

.tech-pillar-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.tech-pillar-card ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: left;
    max-width: 300px;
}

.tech-pillar-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tech-pillar-card ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .tech-pillars-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Float animation for hero background elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }

    33% {
        transform: translateY(-30px) translateX(20px) scale(1.05);
    }

    66% {
        transform: translateY(20px) translateX(-20px) scale(0.95);
    }
}

/* Key Benefits Section Upgrade */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Center align content */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(147, 51, 234, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Icon Styling */
.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.benefit-icon i,
.benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2px;
}

.benefit-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.benefit-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Delivery Framework Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
}

.process-step {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: relative;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
    font-family: var(--font-heading);
    /* Remove absolute positioning to fix alignment */
    top: auto;
    right: auto;
    transition: all 0.3s ease;
}

.process-card:hover .process-step {
    color: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.process-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Connecting line (Desktop only) */
@media (min-width: 1024px) {
    .process-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .process-card:hover::before {
        opacity: 1;
    }
}

/* Scroll Entrance Animations */



/* Base delay */


/* About Page Specific Styles */

/* Mission & Vision */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

@media (min-width: 992px) {
    .mission-vision-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

.mission-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mission-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.mission-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

/* Core Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.value-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Story Timeline (Simplified) */
.story-timeline {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
    padding-left: 2rem;
}

.story-item {
    position: relative;
    margin-bottom: 3rem;
}

.story-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--bg-body);
    border: 3px solid var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.story-item:hover::before {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.story-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    display: block;
}

/* Fix for Innovation Process text visibility */
.process-steps .process-step h3 {
    color: #ffffff !important;
    opacity: 1 !important;
}

.process-steps .process-step p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Ensure consistent font sizes in Innovation Process */
.process-steps .process-step h3 {
    font-size: 1.5rem !important;
}

.process-steps .process-step p {
    font-size: 1rem !important;
}

/* Fix Innovation Process typography to match page consistency */
.process-steps .process-step h3 {
    line-height: 1.6 !important;
}

.process-steps .process-step p {
    font-weight: 400 !important;
    line-height: 1.7 !important;
}


/* Mobile Menu Styles */
/* Default: Hidden on Desktop */
.mobile-nav-logo,
.mobile-nav-cta {
    display: none !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

@media (max-width: 768px) {

    /* Header Element Reordering */
    header .container>div:last-child {
        gap: 0.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
        /* Rightmost item */
        margin-left: 0.5rem;
    }

    .theme-toggle {
        order: 2;
        /* Middle item */
    }

    header .btn {
        order: 1;
        /* Leftmost item */
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Mobile Menu Style */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-body);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 8rem;
        align-items: center;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for items */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links a {
        font-size: 1.75rem;
        font-weight: 600;
        color: var(--text-main);
        display: inline-flex;
        /* Use flex to align icon */
        align-items: center;
        justify-content: center;
        /* Center content including icon */
        padding: 0.5rem 0;
        text-decoration: none;
        width: 100%;
        /* Ensure full width for centering */
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary);
    }

    /* Mobile Logo */
    .mobile-nav-logo {
        display: block !important;
        margin-bottom: 2rem;
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    .mobile-nav-logo a {
        font-size: 2rem !important;
        font-weight: 800 !important;
        color: var(--text-heading) !important;
    }

    /* Mobile CTA */
    .mobile-nav-cta {
        display: block !important;
        margin-top: 2rem;
        width: 80%;
        /* Limit width */
        margin-left: auto;
        margin-right: auto;
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    .mobile-nav-cta .btn {
        display: inline-flex !important;
        width: 100%;
        font-size: 1.1rem !important;
        border-radius: 50px;
    }

    /* Mobile Dropdown Accordion */
    .dropdown-menu {
        position: static !important;
        /* Remove absolute positioning */
        display: none;
        /* Hidden by default */
        flex-direction: column;
        width: 100%;
        box-shadow: none !important;
        background: rgba(0, 0, 0, 0.02) !important;
        /* Slight background for contrast */
        backdrop-filter: none !important;
        padding: 0.5rem 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        border: none !important;
    }

    li.dropdown.active .dropdown-menu {
        display: flex !important;
        /* Show when active */
    }

    /* Rotate chevron when active */
    li.dropdown.active>a svg {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .dropdown-menu li {
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .dropdown-menu a {
        font-size: 1.25rem !important;
        /* Smaller than main links */
        padding: 0.75rem 0 !important;
        color: var(--text-muted) !important;
    }

    .nav-links li.dropdown {
        flex-direction: column;
        width: 100%;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Mobile Header Spacing Fix */
@media (max-width: 768px) {
    .nav-container {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }
}


/* Detailed Service Pages Responsive Fixes */
@media (max-width: 768px) {

    /* Process Grid Alignment */
    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Features Grid Alignment */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Global Typography Overrides */
    .page-hero h1,
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }

    .page-hero p,
    .lead {
        font-size: 1.1rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    /* Process Steps Scaling */
    .process-step {
        font-size: 2.5rem !important;
    }

    /* Card Density & Alignment */
    .process-card,
    .feature-card,
    .sidebar-card {
        padding: 1.5rem !important;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .feature-icon-wrapper {
        margin-bottom: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    /* Tablet Process Grid Balance (2x2) */
    .process-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }

    /* Tablet Feature Cards */
    .feature-card {
        padding: 2rem !important;
    }
}


/* About Page Responsive Fixes */
@media (max-width: 768px) {

    /* Hero Typography */
    .hero h1,
    .hero h2 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }

    .hero p {
        font-size: 1.1rem !important;
        padding: 0 1rem;
    }

    /* Grids */
    .mission-vision-grid,
    .values-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 3rem !important;
    }

    /* Cards */
    .mission-card,
    .value-card {
        padding: 1.5rem !important;
        text-align: center !important;
    }

    /* Ensure icons are centered in cards on mobile */
    .service-icon,
    .value-icon-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    /* Tablet Grids - Force 2 Columns */
    .mission-vision-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
}


/* About Page Strength & Stats Section */
.strength-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .strength-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        margin-top: 2rem;
    }
}


/* About Page Partners Section */
.partners-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.partner-card {
    flex: 1;
    min-width: 400px;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border-top: 4px solid transparent;
    /* Color set inline or via modifier */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .partner-card {
        min-width: 100%;
        /* Fix overflow on mobile */
        padding: 1.5rem;
    }

    /* Hide Get Started button on mobile to fix crowding */
    header .btn-primary {
        display: none;
    }
}


/* CTA Section Gradient */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

/* =========================================
   Fix for Home Page Process Section Visibility
   ========================================= */
.bg-tech-grid .process-step {
    color: var(--text-main);
    /* Override any inherited white color */
}

.bg-tech-grid .process-step h3 {
    color: var(--text-main);
}

.bg-tech-grid .process-step p {
    color: var(--text-muted);
}

.bg-tech-grid .process-step .step-icon {
    background: rgba(37, 99, 235, 0.1);
    /* Primary color with opacity */
    color: var(--primary);
}

/* Ensure hover state is visible too */
.bg-tech-grid .process-step:hover .step-icon {
    background: var(--primary);
    color: #ffffff;

    /* === Strategic Advantages - Neon Glass Cards === */
    .strategy-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .strategy-card-neon {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 2.5rem;
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1;
    }

    /* Glass/Gradient Overlay */
    .strategy-card-neon::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.0) 100%);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    [data-theme="dark"] .strategy-card-neon::before {
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
        opacity: 1;
    }

    /* Hover Effects */
    .strategy-card-neon:hover {
        transform: translateY(-8px);
        border-color: var(--primary);
        box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.2);
        /* Fallback blue shadow */
    }

    [data-theme="dark"] .strategy-card-neon:hover {
        box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.3);
    }

    /* Icon Wrapper */
    .strategy-icon {
        width: 64px;
        height: 64px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.5rem;
        background: var(--bg-body);
        border: 1px solid var(--border);
        color: var(--text-muted);
        transition: all 0.4s ease;
        position: relative;
    }

    .strategy-card-neon:hover .strategy-icon {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
        transform: scale(1.1) rotate(3deg);
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    }

    /* Alternate specific cards for Secondary Color (Purple) */
    .strategy-card-neon.secondary:hover {
        border-color: var(--secondary);
        box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.2);
    }

    .strategy-card-neon.secondary:hover .strategy-icon {
        background: var(--secondary);
        border-color: var(--secondary);
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    }

    .strategy-card-neon h3 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
        font-weight: 600;
        color: var(--text-heading);
        transition: color 0.3s ease;
    }

    .strategy-card-neon:hover h3 {
        color: var(--primary);
    }

    .strategy-card-neon.secondary:hover h3 {
        color: var(--secondary);
    }

    .strategy-card-neon p {
        color: var(--text-muted);
        line-height: 1.7;
        margin: 0;
        font-size: 1.05rem;
    }

    /* Fix Mobile Menu Logo Alignment */
    .mobile-nav-logo .logo {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Ensure the icon stays correct size */
    .mobile-nav-logo .logo-icon {
        flex-shrink: 0;
    }


    /* Force Button Alignment in Service Cards */
    .service-detail-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    .service-detail-card .service-link {
        margin-top: auto !important;
    }