/* =========================================================================
   Global Variables & Reset
   ========================================================================= */
:root {
    /* Color Palette - Deep Navy Hybrid Theme */
    --primary-navy: #0A192F;
    --primary-blue: #007BFF;
    --secondary-blue: #112240;
    --accent-color: #00BFFF;
    --accent-gradient: linear-gradient(135deg, #007BFF 0%, #00BFFF 100%);

    --bg-white: #FFFFFF;
    --bg-light: #F4F7F9;
    --bg-dark: var(--secondary-blue);
    --card-bg: #FFFFFF;

    --text-dark: #2B3A4A;
    --text-light: #6A737D;
    --text-white: #FFFFFF;

    --border-color: rgba(0, 0, 0, 0.05);

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-norm: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Shadows - softer elegant shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-blue: 0 10px 25px rgba(0, 123, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
    /* Prevent horizontal overflow */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent standard horizontal scrollbar */
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-norm);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Typography Utilities */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-accent {
    color: var(--accent-color);
}

.text-white {
    color: var(--text-white) !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3.5rem;
}

.pt-0 {
    padding-top: 0 !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary {
    background-color: var(--primary-blue);
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-blue);
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-norm), box-shadow var(--transition-norm);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-sm {
    padding: 8px 24px;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: var(--accent-color);
    box-shadow: var(--shadow-blue);
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: var(--shadow-sm);
    border: none;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    background: #1EBE5D;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-outline.custom-hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline:hover,
.btn-outline.custom-hover:hover {
    background: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
    transform: scale(1.05);
}

/* Layout Utilities */
.section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-navy);
    line-height: 1.2;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.flex-row-reverse {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color var(--transition-norm), box-shadow var(--transition-norm), padding var(--transition-norm);
    background: transparent;
}

.navbar .logo {
    color: var(--text-white);
}

.navbar .nav-links a {
    color: white;
}

/* Sticky Scrolled State */
.navbar.scrolled {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--primary-navy);
}

.navbar.scrolled .nav-links a:not(.btn):hover,
.navbar.scrolled .nav-links a.active:not(.btn) {
    color: var(--primary-blue);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Slightly reduced gap */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1;
    letter-spacing: -0.5px;
}

.navbar.scrolled .logo-text,
.footer-logo-img+.logo-text {
    color: var(--primary-navy);
}

.logo-text-light {
    font-weight: 300;
    color: var(--primary-blue);
}

.nav-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    transition: all var(--transition-norm);
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    background: white;
    padding: 6px 12px;
    border-radius: 8px;
    border: 2px solid rgba(0, 123, 255, 0.3);
}

/* Light logo - visible on transparent/dark navbar */
.nav-logo-light {
    opacity: 1;
}

/* Dark logo - hidden by default, visible on white navbar */
.nav-logo-dark {
    position: absolute;
    left: 0;
    opacity: 0;
}

/* When scrolled, remove background and border, make smaller */
.navbar.scrolled .nav-logo-img {
    height: 45px;
    background: transparent;
    padding: 0;
    border: none;
}

/* When scrolled, swap logo visibility */
.navbar.scrolled .nav-logo-light {
    opacity: 0;
}

.navbar.scrolled .nav-logo-dark {
    opacity: 1;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    background: white;
    padding: 6px 12px;
    border-radius: 8px;
    border: 2px solid rgba(0, 123, 255, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-blue);
    transition: width var(--transition-norm);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    color: var(--text-white);
}

.menu-toggle .bar {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: currentColor;
    /* Inherits the white/navy state */
    border-radius: 3px;
    left: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, background-color var(--transition-norm);
}

.menu-toggle .bar:nth-child(1) {
    top: 0;
}

.menu-toggle .bar:nth-child(2) {
    top: 9px;
}

.menu-toggle .bar:nth-child(3) {
    top: 18px;
}

/* Hamburger animated state (Morph to X) */
.menu-toggle.active-menu-icon .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active-menu-icon .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active-menu-icon .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.navbar.scrolled .menu-toggle:not(.active-menu-icon) {
    color: var(--primary-navy);
}

/* =========================================================================
   NEW: Split-Screen Hero Section
   ========================================================================= */
.split-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
    background-color: var(--primary-navy);
    color: var(--text-white);
}

/* Technical dotted grid background */
.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 10;
}

.hero-content {
    text-align: left;
    position: relative;
    z-index: 10;
    /* Ensure text sits above grid */
}

.hero-content .badge {
    background: rgba(0, 123, 255, 0.15);
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-white);
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-title .text-primary {
    background: linear-gradient(135deg, #00d2ff 0%, #007BFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 191, 255, 0.3));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    /* Lighter for readability */
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Boost text contrast */
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.hero-cta .btn-primary {
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
}

.hero-cta .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.6);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 15;
    opacity: 0.8;
    transition: opacity var(--transition-norm);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollWheel 2s infinite;
}

.arrow-down {
    display: flex;
    flex-direction: column;
    color: var(--accent-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

.arrow-down i {
    animation: arrowBounce 2s infinite;
}

.arrow-down .hidden-arrow {
    margin-top: -8px;
    animation-delay: 0.15s;
    opacity: 0.5;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(12px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

@keyframes arrowBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(5px);
    }

    60% {
        transform: translateY(3px);
    }
}

/* Abstract Hero Visuals */
.hero-visual {
    position: relative;
    height: 500px;
}

.abstract-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.ring-1 {
    width: 300px;
    height: 300px;
    animation: rotateRing 30s linear infinite;
}

.ring-2 {
    width: 450px;
    height: 450px;
    border: 1px solid rgba(0, 191, 255, 0.1);
    animation: rotateRing 40s linear infinite reverse;
}

.ring-3 {
    width: 600px;
    height: 600px;
    border: 1px dashed rgba(0, 123, 255, 0.3);
    animation: rotateRing 60s linear infinite;
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: white;
}

.float-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.float-text h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.float-text strong {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
}

.card-1 {
    top: 10%;
    right: 5%;
    animation: floatXY 6s ease-in-out infinite;
}

.card-2 {
    bottom: 20%;
    left: 0%;
    animation: floatXY 8s ease-in-out infinite reverse;
}

.card-3 {
    bottom: -5%;
    right: 15%;
    animation: floatXY 7s ease-in-out infinite 1s;
}

@keyframes rotateRing {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatXY {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, -15px);
    }
}

/* =========================================================================
   NEW: Offset About Section
   ========================================================================= */
.offset-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.offset-up {
    margin-top: -120px;
    /* Pulls the image up over the previous section */
    position: relative;
    z-index: 20;
}

.about-image {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 10px solid var(--bg-white);
}

.stats-float {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--bg-white);
    padding: 24px 36px;
    border-radius: 12px;
    display: flex;
    gap: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    z-index: 2;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.stat p {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 8px;
}

/* Pill Cards */
.pill-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pill-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: var(--bg-light);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: var(--transition-norm);
}

.pill-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.pill-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pill-text h3 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 2px;
}

.pill-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* =========================================================================
   NEW: 3D Isometric Services Section
   ========================================================================= */
.perspective-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    perspective: 1200px;
    /* Crucial for 3D effect */
}

.isometric-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-sm);
}

.isometric-card:hover {
    transform: rotateX(8deg) rotateY(-8deg) translateY(-15px);
    box-shadow: -20px 20px 40px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: background-color var(--transition-norm), color var(--transition-norm), transform 0.4s ease;
}

.isometric-card:hover .service-icon {
    background: var(--primary-blue);
    color: white;
    transform: translateZ(30px);
    /* Pops out during 3D tilt */
}

.isometric-card h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 16px;
    transition: transform 0.4s ease;
}

.isometric-card:hover h3 {
    transform: translateZ(20px);
}

.isometric-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    flex-grow: 1;
    transition: transform 0.4s ease;
}

.isometric-card:hover p {
    transform: translateZ(10px);
}

/* 3D Focus Illusion (When a card is expanded) */
.perspective-grid.has-expanded-card .isometric-card {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.5s ease,
        filter 0.5s ease,
        box-shadow 0.5s ease,
        border-color 0.5s ease;
}

/* Inactive Cards fade out slightly */
.perspective-grid.has-expanded-card .isometric-card:not(.expanded) {
    opacity: 0.7;
    /* Dim but keep text completely readable */
    box-shadow: none;
    border-color: transparent;
    pointer-events: auto;
    /* Allow interacting with dimmed cards */
}

/* Active Card elevates and grabs focus */
.perspective-grid.has-expanded-card .isometric-card.expanded {
    box-shadow: 0 40px 80px rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.4);
    z-index: 20;
    pointer-events: auto;
}

/* Add huge 3D pop on desktop screens only */
@media (min-width: 992px) {
    .perspective-grid.has-expanded-card .isometric-card:not(.expanded) {
        transform: scale(0.95) translateZ(-40px);
    }

    .perspective-grid.has-expanded-card .isometric-card.expanded {
        transform: scale(1.05) translateZ(50px);
    }

    /* Disable the default hover wiggle when another card is expanded */
    .perspective-grid.has-expanded-card .isometric-card:not(.expanded):hover {
        transform: scale(0.95) translateZ(-40px);
    }

    .perspective-grid.has-expanded-card .isometric-card.expanded:hover {
        transform: scale(1.05) translateZ(50px);
    }
}

/* --- Complex Animation: Move Active Card to Center (Desktop only) --- */
@media (min-width: 1100px) {

    /* If Left Card (1) is active: Swap 1 to center, Center to left */
    .perspective-grid.expanded-1 .isometric-card:nth-child(1).expanded,
    .perspective-grid.expanded-1 .isometric-card:nth-child(1).expanded:hover {
        transform: translateX(calc(100% + 40px)) scale(1.05) translateZ(50px);
    }

    .perspective-grid.expanded-1 .isometric-card:nth-child(2):not(.expanded),
    .perspective-grid.expanded-1 .isometric-card:nth-child(2):not(.expanded):hover {
        transform: translateX(calc(-100% - 40px)) scale(0.95) translateZ(-40px);
    }

    /* If Right Card (3) is active: Swap 3 to center, Center to right */
    .perspective-grid.expanded-3 .isometric-card:nth-child(3).expanded,
    .perspective-grid.expanded-3 .isometric-card:nth-child(3).expanded:hover {
        transform: translateX(calc(-100% - 40px)) scale(1.05) translateZ(50px);
    }

    .perspective-grid.expanded-3 .isometric-card:nth-child(2):not(.expanded),
    .perspective-grid.expanded-3 .isometric-card:nth-child(2):not(.expanded):hover {
        transform: translateX(calc(100% + 40px)) scale(0.95) translateZ(-40px);
    }

    /* If Center Card (2) is active: Push outer cards slightly away and boost center shadow */
    .perspective-grid.expanded-2 .isometric-card:nth-child(2).expanded,
    .perspective-grid.expanded-2 .isometric-card:nth-child(2).expanded:hover {
        transform: scale(1.1) translateZ(60px);
        box-shadow: 0 50px 100px rgba(0, 123, 255, 0.3);
        border-color: var(--primary-blue);
    }

    .perspective-grid.expanded-2 .isometric-card:nth-child(1):not(.expanded),
    .perspective-grid.expanded-2 .isometric-card:nth-child(1):not(.expanded):hover {
        transform: translateX(-30px) scale(0.95) translateZ(-40px);
    }

    .perspective-grid.expanded-2 .isometric-card:nth-child(3):not(.expanded),
    .perspective-grid.expanded-2 .isometric-card:nth-child(3):not(.expanded):hover {
        transform: translateX(30px) scale(0.95) translateZ(-40px);
    }
}

/* Service Details Expandable Section */
.expand-btn i {
    transition: transform 0.3s ease;
}

.expand-btn.active i {
    transform: rotate(180deg);
}

.service-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.service-details.open {
    max-height: 500px;
    /* Arbitrary large number to allow content to fit */
    opacity: 1;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-list li i {
    font-size: 0.85rem;
    background: rgba(0, 123, 255, 0.1);
    padding: 6px;
    border-radius: 50%;
}

/* =========================================================================
   NEW: Expertise section - Floating Orbits
   ========================================================================= */
.expertise-wrapper {
    gap: 80px;
}

.expertise-wrapper>div {
    flex: 1;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition-norm);
}

.expertise-item:hover {
    background: var(--bg-white);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
    transform: translateX(10px);
}

.check-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.expertise-text {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 1.1rem;
}

.expertise-visual-modern {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-system {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Core Logo - Sophisticated Glowing Center */
.core-logo {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(244, 247, 249, 1) 100%);
    border-radius: 30px;
    /* Elegant squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 20px 40px rgba(0, 123, 255, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* The Deep Glow Behind Core */
.core-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, rgba(0, 191, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: corePulse 4s ease-in-out infinite alternate;
}

.core-logo i {
    font-size: 3.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.3));
}

@keyframes corePulse {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.7;
    }

    to {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

/* Orbit Rings - Subtle Glass Lines */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 123, 255, 0.08);
    /* Very subtle continuous line */
    pointer-events: none;
    /* Let clicks pass through to planets */
}

/* Add inner dashed line for tech feel without being noisy */
.orbit-ring::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 191, 255, 0.15);
}

.orbit-ring-1 {
    width: 220px;
    height: 220px;
    animation: rotateRing 20s linear infinite;
}

.orbit-ring-2 {
    width: 340px;
    height: 340px;
    animation: rotateRing 30s linear infinite reverse;
}

.orbit-ring-3 {
    width: 450px;
    height: 450px;
    animation: rotateRing 45s linear infinite;
}

/* Planets - Hoverable Glass Modules */
.planet {
    position: absolute;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-navy);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    pointer-events: auto;
    /* Re-enable clicks lost from ring */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        color 0.4s ease,
        background 0.4s ease;
}

.planet:hover {
    transform: scale(1.2) !important;
    /* Force override animation scale */
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
    color: var(--primary-blue);
    background: #ffffff;
    z-index: 20;
}

/* Planet Placement (Math to stick them to the ring) */
.planet-1 {
    top: -28px;
    left: 82px;
    animation: unspin 20s linear infinite;
}

.planet-2 {
    bottom: 25px;
    left: -10px;
    animation: unspin 30s linear infinite reverse;
}

.planet-3 {
    top: 25px;
    right: -10px;
    animation: unspin 30s linear infinite reverse;
}

.planet-4 {
    top: -22px;
    left: 197px;
    animation: unspin 45s linear infinite;
}

.planet-5 {
    bottom: -22px;
    left: 197px;
    animation: unspin 45s linear infinite;
}

@keyframes unspin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Pause the whole system on hover of the wrapper */
.orbit-system:hover .orbit-ring,
.orbit-system:hover .planet,
.orbit-system:hover .core-logo::before {
    animation-play-state: paused;
}


/* =========================================================================
   NEW: Professional Feature Cards Layout - Why Choose Us
   ========================================================================= */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Make the first card span 2 columns and flow left-to-right */
    .feature-card.bento-wide {
        grid-column: span 2;
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 50px 60px;
    }

    .feature-card.bento-wide .feature-icon {
        margin: 0 40px 0 0 !important;
        /* Override standard icon margin */
        flex-shrink: 0;
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .feature-card.bento-wide h4 {
        font-size: 1.8rem;
    }

    .feature-card.bento-wide p {
        font-size: 1.15rem;
    }
}

.feature-card {
    background: var(--bg-white);
    border-radius: 24px;
    /* Slightly softer corners for premium look */
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle top border accent line */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 123, 255, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 123, 255, 0.06);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Special glowing icon for the hero bento card */
.feature-icon.bento-glow {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) translateY(-5px);
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
}

.feature-card:hover .feature-icon.bento-glow {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.4);
}

.feature-card h4 {
    font-size: 1.35rem;
    color: var(--primary-navy);
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* =========================================================================
   NEW: Premium Corporate Ticker Banner
   ========================================================================= */
.ticker-banner {
    background: linear-gradient(90deg, #111827, #1f2937);
    /* Premium Dark Slate / Graphite */
    color: white;
    padding: 25px 0;
    margin-top: 100px;
    margin-bottom: 60px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transform: rotate(-1.5deg) scale(1.03) translateZ(0);
    /* Tilt, scale to hide corners, and hardware accel */
    z-index: 10;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    /* Soft dark shadow */
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
}

.ticker {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    animation: tickerScroll 30s linear infinite;
    will-change: transform;
}

/* Pause animation on hover */
.ticker-banner:hover .ticker {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding-right: 0;
}

/* Premium Corporate Typography Setup */
.ticker-item .ticker-text {
    font-size: 1.25rem;
    font-weight: 600;
    /* Bolder to pop against dark background */
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1;
    white-space: nowrap;
    /* Premium text gradient animation */
    background: linear-gradient(90deg, #00D2FF 0%, #3A7BD5 50%, #00D2FF 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineText 4s linear infinite;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: default;
}

@keyframes shineText {
    to {
        background-position: 200% center;
    }
}

.ticker-item .ticker-text:hover {
    opacity: 0.8;
}

/* Elegant Separator */
.ticker-item .ticker-separator {
    font-size: 1.5rem;
    margin: 0 50px;
    display: inline-block;
    /* Required for transforms */
    animation: pulseDot 2s ease-in-out infinite alternate;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.8);
        color: rgba(255, 255, 255, 0.2);
        text-shadow: none;
    }

    100% {
        transform: scale(1.5);
        color: var(--primary-blue);
        text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
    }
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    /* Scroll exactly one-third to perfectly loop the 3 duplicate groups */
    100% {
        transform: translateX(-33.3333%);
    }
}

/* Responsive Handling */
@media (max-width: 992px) {
    .ticker-item .ticker-text {
        font-size: 1.1rem;
    }

    .ticker-item .ticker-separator {
        margin: 0 40px;
    }
}

@media (max-width: 576px) {
    .ticker-item .ticker-text {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .ticker-item .ticker-separator {
        margin: 0 30px;
        font-size: 1.2rem;
    }

    .ticker-banner {
        padding: 25px 0;
    }
}

/* =========================================================================
   NEW: Premium Floating Contact Section
   ========================================================================= */
.contact-section {
    padding-top: 150px;
    padding-bottom: 250px;
    position: relative;
    z-index: 20;
    margin-bottom: -150px;
    overflow: hidden;
    /* Contain the glowing orbs */
}

/* Beautiful Abstract Glowing Background */
.contact-ambient-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, rgba(0, 210, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(58, 123, 213, 0.08) 0%, transparent 50%);
}

.contact-floating-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    /* Softer, premium curves */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    /* Deeper, softer shadow */
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Glass edge */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    width: 100%;
}

/* Dark Premium Left Side */
.contact-info {
    padding: 60px 50px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    /* Deep space slate */
    color: white;
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow for the dark side */
.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 191, 255, 0.1), transparent 60%);
    pointer-events: none;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: white;
    position: relative;
    z-index: 2;
}

.contact-info p.mb-4 {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.8);
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.info-item i {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    /* Frosted glass bg for icon */
    color: #00D2FF;
    /* Neon blue */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid rgba(0, 210, 255, 0.2);
    /* Neon glowing edge */
    box-shadow: inset 0 0 15px rgba(0, 210, 255, 0.1);
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: white;
    font-weight: 600;
}

.info-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.info-item p a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.info-item p a:hover {
    color: #00D2FF;
}

/* Right Side - Light Form Area */
.contact-form-wrapper {
    padding: 60px;
    background: transparent;
    /* Let the glass panel show through */
}

.contact-form-wrapper h3 {
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 30px;
    font-weight: 800;
}

/* Premium Floating Label Form Design */
.form-group {
    position: relative;
    margin-bottom: 30px;
}

.floating-label input,
.floating-label textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    /* Smoother premium inputs */
    background: #f8fafc;
    /* Very light slate gray */
    color: var(--primary-navy);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    font-family: inherit;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.floating-label label {
    position: absolute;
    left: 20px;
    top: 18px;
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    padding: 0 5px;
    border-radius: 4px;
}

.floating-label input:focus,
.floating-label textarea:focus {
    background: white;
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.floating-label input:focus~label,
.floating-label textarea:focus~label,
.floating-label input:not(:placeholder-shown)~label,
.floating-label textarea:not(:placeholder-shown)~label {
    top: -12px;
    left: 15px;
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 700;
    background: white;
}

/* Premium Gradient Submit Button */
.btn-gradient {
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 12px;
    /* Match input styling */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF6B6B 0%, #3A7BD5 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
    color: white;
}

.btn-gradient:hover::before {
    opacity: 1;
}

/* Contact Map Styling */
.contact-map {
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-map iframe {
    display: block;
    filter: grayscale(0.2) contrast(1.1);
    transition: filter 0.3s ease;
}

.contact-map iframe:hover {
    filter: grayscale(0);
}

@media (max-width: 992px) {
    .contact-map iframe {
        height: 350px;
    }
}

/* =========================================================================
   Footer (Adjusted for Floating Contact)
   ========================================================================= */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 170px;
    /* Extra padding to sit under contact panel */
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-contact .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact .contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact .contact-list i {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-top: 4px;
}

.footer-contact .contact-list a,
.footer-contact .contact-list span {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact .contact-list a:hover {
    color: var(--primary-blue);
}

.footer-tagline {
    margin: 16px 0 24px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform var(--transition-norm), background var(--transition-norm);
}

.social-icon:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
}

.footer h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--primary-blue);
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer ul a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* =========================================================================
   Scroll to Top Progress Ring
   ========================================================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--transition-norm), transform var(--transition-norm), visibility var(--transition-norm), box-shadow var(--transition-norm);
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.4);
    transform: translateY(-5px);
}

.scroll-to-top .scroll-content {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.scroll-to-top i {
    color: var(--text-white);
    font-size: 0.9rem;
    /* Slightly smaller to fit text */
    margin-bottom: 2px;
    /* Space between arrow and percent */
    transition: transform 0.3s ease;
}

.scroll-to-top.show .scroll-percent {
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.scroll-to-top:hover i {
    animation: bounceUpIcon 1s ease-in-out infinite;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    z-index: 1;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
    stroke-linecap: round;
}

.progress-ring__circle.completed {
    stroke: #00E676;
    /* Bright vibrant green */
}

@keyframes bounceUpIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* =========================================================================
   Animations (Intersection Observer Classes)
   ========================================================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-up.appear,
.fade-in-left.appear,
.fade-in-right.appear {
    opacity: 1;
    transform: translate(0);
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
/* Old bento box rules removed - handled by CSS grid auto-fit minmax naturally */

@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-visual {
        display: none;
        /* Hide complex abstract on tablets */
    }

    .offset-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .offset-up {
        margin-top: 0;
    }

    .about-image {
        border-width: 4px;
    }

    .stats-float {
        left: 20px;
        right: auto;
        bottom: -20px;
        padding: 16px 24px;
    }

    .expertise-wrapper {
        flex-direction: column-reverse;
    }

    .expertise-visual-modern {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-radius: 20px 20px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Hide carousel navigation on desktop */
.carousel-nav {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 2000;
        /* Ensure icon sits above the full-screen menu */
    }

    .menu-toggle.active-menu-icon {
        color: var(--text-white) !important;
        /* Force white when menu is open */
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        /* Start hidden off-screen to the left */
        width: 65%;
        /* Take up 65% of screen */
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 25, 47, 0.98);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        /* Subtle edge definition */
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        /* Drop shadow into the page */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        /* Align text to the left within the drawer */
        padding-left: 40px;
        /* Indent items */
        gap: 24px;
        visibility: hidden;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.4s ease;
        /* Slide instead of fade */
        z-index: 1500;
    }

    .nav-links.active {
        left: 0;
        visibility: visible;
    }

    /* Staggered ARC Animation for list items */
    .nav-links li {
        opacity: 0;
        /* Start from bottom-left with a tilt */
        transform: translate(-50px, 50px) rotate(-5deg) scale(0.9);
        transform-origin: left center;
        /* Custom cubic-bezier for a smooth, arcing sweep */
        transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    }

    .nav-links.active li {
        opacity: 1;
        /* Sweep into natural position */
        transform: translate(0, 0) rotate(0) scale(1);
    }

    /* Submenu cascade delays */
    .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.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-links a {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 1.4rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        text-transform: capitalize;
        /* Less aggressive than uppercase */
        position: relative;
        padding: 5px 0;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .nav-links a i {
        font-size: 1.2rem;
        color: var(--primary-blue);
        width: 24px;
        text-align: center;
        transition: transform 0.3s ease;
    }

    /* Remove old underline */
    .nav-links a:not(.btn)::after {
        display: none;
    }

    /* Left animated neon indicator instead of bottom */
    .nav-links a::before {
        content: '';
        position: absolute;
        left: -30px;
        top: 50%;
        transform: translateY(-50%) scale(0);
        height: 8px;
        width: 8px;
        background: var(--primary-blue);
        border-radius: 50%;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 0 10px var(--primary-blue);
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--text-white) !important;
        transform: translateX(8px);
    }

    .nav-links a:hover i,
    .nav-links a.active i {
        transform: scale(1.2);
    }

    .nav-links a:hover::before,
    .nav-links a.active::before {
        transform: translateY(-50%) scale(1);
    }

    /* Hide the Get Started button and its parent list item on mobile */
    .nav-links a.btn {
        display: none !important;
    }

    .nav-links li:last-child {
        display: none !important;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    /* Removed old bento layout stack rules */

    .ticker-item {
        font-size: 1.2rem;
    }

    .contact-form-wrapper {
        padding: 40px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Mobile Why Choose Us Carousel */
    .features-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 40px;
        margin: 0 -24px;
        /* Bleed off edges */
        padding-left: 24px;
        padding-right: 24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
    }

    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .features-grid .feature-card {
        min-width: 82vw;
        max-width: 340px;
        flex-shrink: 0;
        scroll-snap-align: center;
        margin-right: 20px;
        padding: 35px 24px !important;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transform: scale(0.92);
        opacity: 0.6;
        transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
    }

    /* Active center card triggers focus effect */
    .features-grid .feature-card.is-active {
        transform: scale(1);
        opacity: 1;
        box-shadow: var(--shadow-md);
        border-color: rgba(0, 123, 255, 0.3);
    }

    .features-grid::after {
        content: '';
        flex: 0 0 4px;
    }

    /* Override bento-wide for mobile */
    .feature-card.bento-wide {
        flex-direction: column !important;
        text-align: center !important;
    }

    .feature-card.bento-wide .feature-icon {
        margin: 0 auto 20px !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 1.6rem !important;
    }

    /* Carousel Navigation Buttons */
    .carousel-nav {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 10px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--bg-white);
        border: 1px solid var(--border-color);
        color: var(--primary-navy);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        cursor: pointer;
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
    }

    .carousel-btn:hover,
    .carousel-btn:active {
        background: var(--primary-blue);
        color: white;
        border-color: var(--primary-blue);
        box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
        transform: translateY(-2px);
    }

    .scroll-indicator {
        display: none !important;
    }
}

/* =========================================================================
   Floating WhatsApp Button
   ========================================================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatingBob 3s ease-in-out infinite;
}

.floating-whatsapp::before,
.floating-whatsapp::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsappPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.floating-whatsapp::after {
    animation-delay: 1s;
    background: #128C7E;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    background: linear-gradient(135deg, #1EBE5D, #0f7a6e);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6), 0 0 20px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp:hover i {
    animation: iconWiggle 0.5s ease-in-out infinite alternate;
}

.whatsapp-ping {
    display: none;
    /* Handled by pseudo elements now */
}

@keyframes floatingBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes iconWiggle {
    0% {
        transform: rotate(0) scale(1);
    }

    50% {
        transform: rotate(-10deg) scale(1.1);
    }

    100% {
        transform: rotate(10deg) scale(1.1);
    }
}

/* =========================================================================
   Small Mobile Devices (Phones)
   ========================================================================= */
@media (max-width: 480px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    /* Removed mobile padding for old bento items */

    .contact-form-wrapper {
        padding: 30px 15px;
    }

    .contact-info {
        padding: 40px 20px;
    }

    .ticker-item {
        font-size: 1rem;
    }

    .nav-links a {
        font-size: 1.6rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .perspective-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Large Screens and TVs
   ========================================================================= */
@media (min-width: 1600px) {
    .container {
        max-width: 1512px;
    }

    body {
        font-size: 1.125rem;
    }

    .hero-title {
        font-size: 5.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .bento-grid {
        gap: 40px;
        grid-template-rows: repeat(2, 340px);
    }

    .isometric-card {
        padding: 60px 40px;
    }
}