/* ============================================
   XFOR CLONE - DESIGN SYSTEM & STYLES
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary-blue: #1568aa;
    --primary-deep: #0e3d64;
    /* A darker version of the primary blue */
    --primary-gray: #c5c4c4;
    --primary-dark: #1a1a1a;
    --accent-blue-light: #4da6ff;
    --accent-blue-dark: #004080;
    --bg-light: #f4f7f9;
    --bg-dark: #1a1a1a;
    --bg-navy: #0e3d64;
    --text-white: #ffffff;
    --text-light: #d1d1d1;
    --text-dark: #1a1a1a;
    --gradient-blue: linear-gradient(135deg, #1568aa, #0e3d64, #004080);
    --gradient-gray: linear-gradient(90deg, #c5c4c4, #a0a0a0, #7a7a7a);
    --gradient-card: linear-gradient(180deg, #1568aa 0%, #0e3d64 100%);
    --font-main: 'Avenir', 'Avenir Next', 'Segoe UI', Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    --shadow-card: 0 20px 60px rgba(21, 104, 170, 0.15);
    --shadow-hover: 0 30px 80px rgba(21, 104, 170, 0.25);
    --border-radius: 20px;
}


/* --- Typography Homologation --- */
:root {
    --h1-size: 56px;
    --h2-size: 36px;
    --h3-size: 28px;
    --p-size: 16px;
}

@media (max-width: 768px) {
    :root {
        --h1-size: 38px;
        --h2-size: 28px;
        --h3-size: 22px;
        --p-size: 15px;
    }
}

h1,
.hero-content h1,
.cyber-title-main,
.ai-title-huge {
    font-size: var(--h1-size) !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

h2,
.partners-title,
.cloud-title,
.animated-title {
    font-size: var(--h2-size) !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

h3,
.card-body h3 {
    font-size: var(--h3-size) !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

p,
.hero-description,
.it-services-text p,
.cyber-p-sub {
    font-size: var(--p-size) !important;
    font-family: var(--font-main) !important;
    font-style: normal !important;
}

i,
em,
span,
a,
div {
    font-style: normal !important;
}

/* Enforce no italics anywhere globally */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-main);
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul,
li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Utility Classes --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.section-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    width: 4px;
    height: 20px;
    border-radius: 2px;
}

.section-label.light::before {
    background: var(--primary-blue);
}

.section-label.dark::before {
    background: var(--primary-blue);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease, opacity 0.5s ease;
    padding: 1px 0 !important;
    /* Reduced 10% */
}

.navbar.transparent {
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 9px 0;
    /* Reduced 10% */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    width: auto;
    height: 125px;
    /* Reduced 10% */
    transition: var(--transition-smooth);
}

.navbar.transparent .nav-logo {
    filter: brightness(0) invert(1);
}

.navbar.scrolled .nav-logo {
    filter: none;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.mobile-only-btn,
.mobile-menu-toggle {
    display: none !important;
}

/* Navigation Links Color Logic */
.navbar.transparent .nav-links a {
    color: white !important;
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark) !important;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0;
    /* No padding to avoid height push */
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space for icon */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .dropdown-icon {
    font-size: 11px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px 0;
    /* Vertical bridge to prevent hover loss */
    margin-top: -15px;
    /* Offset to keep alignment */
    margin-bottom: -15px;
}

.dropdown-menu {
    position: absolute;
    top: 80%;
    /* Adjust top to overlap slightly with the bridge */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    transition-delay: 0.6s;
    /* Keep everything (including clickability) active during delay */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(5px);
    transition-delay: 0s;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-dark) !important;
    border-radius: 8px;
    transition: var(--transition-fast);
}

/* Specific fix to prevent white text on white background in transparent nav */
.navbar.transparent .nav-links .dropdown-menu a {
    color: var(--text-dark) !important;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-blue) !important;
    padding-left: 24px;
}

.dropdown-menu a::after {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-contact {
    padding: 10px 24px;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-contact:hover {
    background: var(--accent-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.3);
}

.btn-menu {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar.scrolled .btn-menu {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.btn-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger-icon span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.navbar.scrolled .mobile-menu-toggle span {
    background: var(--text-dark);
}

/* ============================================
   HERO X-REVEAL EFFECT
   ============================================ */
.x-reveal-wrapper {
    position: relative;
    background: var(--primary-deep);
}

.x-reveal-wrapper .hero {
    position: relative;
}

.x-mask-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    will-change: opacity;
}

/* ============================================
   HERO SECTION - FULL SCREEN SLIDER
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 11, 46, 0.85) 0%, rgba(75, 0, 130, 0.4) 100%);
    z-index: 1;
}

.hero-slide-bg video,
.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding-left: 80px;
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.8s ease forwards;
}

.hero-slide.active .hero-content h1 {
    animation: slideUp 0.8s ease 0.3s forwards;
}

.hero-content h1 .highlight {
    color: var(--text-white);
    font-weight: 900;
}

.hero-content h1 .italic-highlight {

    color: rgba(255, 255, 255, 0.7);
}

/* Hero Navigation Arrows */
.hero-nav {
    position: absolute;
    bottom: 45%;
    left: 80px;
    z-index: 5;
    display: flex;
    gap: 15px;
}

.hero-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav button:hover {
    background: white;
    color: var(--primary-blue);
    border-color: white;
    transform: scale(1.1);
}

.hero-parallax-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-parallax-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-parallax-overlay.blue-filter {
    background: var(--primary-blue);
    mix-blend-mode: color;
    opacity: 0.8;
}

.hero-parallax-overlay.contrast-overlay {
    background: linear-gradient(135deg, rgba(8, 10, 16, 0.95) 0%, rgba(21, 104, 170, 0.2) 100%);
}

.hero-info {
    position: absolute;
    bottom: 80px;
    right: 80px;
    z-index: 5;
    text-align: right;
    max-width: 400px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.hero-description strong {
    color: white;
    font-weight: 600;
}

/* Mobile Fixes for Hero, Nav and Footer */
/* Consolidation of Mobile Fixes */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .nav-links.mobile-open {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: #05060a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 40px 40px;
        gap: 8px;
        z-index: 10000;
        overflow-y: auto;
    }

    #menuParticles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        pointer-events: none;
    }

    .nav-links.mobile-open a,
    .nav-links.mobile-open .dropdown {
        position: relative;
        z-index: 1;
    }

    .navbar .nav-links.mobile-open a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 0;
        font-size: 18px;
        color: #ffffff !important;
        opacity: 1 !important;
    }

    .dropdown {
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .dropdown-menu {
        position: static !important;
        display: none;
        background: rgba(255, 255, 255, 0.05) !important;
        border: none !important;
        box-shadow: none !important;
        width: 100%;
        padding: 10px 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .navbar .nav-links.mobile-open .dropdown-menu a {
        font-size: 15px !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: none;
        border: 2px solid var(--primary-blue);
        border-radius: 10px;
        width: 48px;
        height: 48px;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10001 !important;
        position: relative;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--primary-blue) !important;
        margin: 2.5px 0;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span {
        background: #fff !important;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Contact button logic */
    .btn-contact {
        display: none;
    }

    .mobile-only-btn {
        display: inline-flex !important;
        margin: 30px auto;
        width: auto !important;
        min-width: 220px;
        max-width: 280px;
        padding: 15px 30px !important;
        border-radius: 50px !important;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 24px 80px !important;
        height: auto !important;
        min-height: 100vh;
        border-radius: 0 !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .hero-slider {
        height: auto !important;
    }

    .hero-slide {
        position: relative !important;
        display: none;
        flex-direction: column;
    }

    .hero-slide.active {
        display: flex !important;
    }

    .hero-content {
        padding: 0 !important;
        width: 100% !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    .hero-content h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .hero-info {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        padding: 0 !important;
        width: 100% !important;
        text-align: center !important;
        max-width: 100% !important;
        margin-top: 30px !important;
        z-index: 5;
    }

    /* Eliminate light body background showing through */
    .x-reveal-wrapper {
        border-radius: 0 !important;
    }

    .sticky-scroll-wrapper .hero {
        border-radius: 0 !important;
    }

    .footer-top,
    .footer-links-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-brand {
        align-items: center;
    }

    /* Partners logs fix */
    .partners-track {
        gap: 30px !important;
    }

    .partner-item {
        flex: 0 0 110px !important;
        min-width: 110px !important;
    }

    .partner-item img {
        height: 35px !important;
    }
}

/* Tech Cards Height Adjustment */
.tech-card {
    height: 380px;
}

/* ============================================
   IT SERVICES MARQUEE SECTION
   ============================================ */
.it-services-section {
    padding: 100px 0 60px;
    overflow: hidden;
    background: var(--bg-light);
}

.marquee-wrapper {
    display: none !important;
    /* Oculto globalmente por homologación de diseño */
    overflow: hidden;
    margin-bottom: 60px;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    gap: 40px;
    animation: marqueeScroll 20s linear infinite;
}

.marquee-text {
    font-size: clamp(60px, 10vw, 140px);
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-text.filled {
    color: var(--primary-deep);
}

.marquee-text.outlined {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-blue-light);
    background: linear-gradient(90deg, var(--primary-gray), var(--primary-blue), var(--accent-blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 2px transparent;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.it-services-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
    position: relative;
}

.it-services-text {
    flex: 1;
    max-width: 500px;
}

.it-services-text .cross-icon {
    color: var(--primary-blue);
    font-size: 18px;
    margin-right: 10px;
}

.it-services-text p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.btn-circle-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-circle-link .circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-blue);
    transition: var(--transition-smooth);
}

.btn-circle-link .label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-blue);
}

.btn-circle-link:hover .circle {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

/* Video Laptop Container */
.video-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.laptop-frame {
    position: relative;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    aspect-ratio: 16/10;
}

.laptop-frame::before {
    content: 'XFOR';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
    letter-spacing: 2px;
}

.laptop-frame video,
.laptop-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 3;
}

.play-btn-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

.play-btn-overlay:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%) scale(1.15);
}

/* Geometric Lines Background */
.geo-lines {
    position: absolute;
    top: -50px;
    right: -100px;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 0;
}

.geo-lines svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   SERVICES CAROUSEL SECTION
   ============================================ */
.services-section {
    padding: 80px 0 120px;
    background: var(--bg-light);
    overflow: hidden;
}

.services-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 60px;
}

.services-header .accent-bar {
    width: 6px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 3px;
}

.services-header h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--primary-deep);
    line-height: 1.1;
}

/* 3D Carousel */
.carousel-wrapper {
    position: relative;
    height: 520px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    position: relative;
    width: 360px;
    height: 480px;
    transform-style: preserve-3d;
}

.service-card {
    position: absolute;
    width: 360px;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    backface-visibility: hidden;
}

.service-card.active {
    z-index: 5;
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
}

.service-card.prev {
    z-index: 3;
    transform: translateX(-320px) scale(0.85) rotateY(8deg);
    opacity: 0.7;
}

.service-card.prev-2 {
    z-index: 1;
    transform: translateX(-580px) scale(0.72) rotateY(15deg);
    opacity: 0.4;
}

.service-card.next {
    z-index: 3;
    transform: translateX(320px) scale(0.85) rotateY(-8deg);
    opacity: 0.7;
}

.service-card.next-2 {
    z-index: 1;
    transform: translateX(580px) scale(0.72) rotateY(-15deg);
    opacity: 0.4;
}

.service-card.hidden-card {
    transform: translateX(0) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

.service-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.service-card.active .service-card-inner {
    background: var(--gradient-card);
    color: white;
}

.service-card:not(.active) .service-card-inner {
    background: white;
    border: 1px solid #e0e0e8;
    color: var(--text-dark);
}

/* Card Tab/Notch */
.card-notch {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    overflow: hidden;
}

.service-card.active .card-notch {
    background: var(--primary-deep);
}

.service-card:not(.active) .card-notch {
    background: var(--bg-light);
}

.card-notch-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
}

.service-card.active .card-notch-icon {
    color: white;
}

.card-icon {
    padding: 40px 30px 20px;
}

.card-icon svg,
.card-icon img {
    width: 72px;
    height: 72px;
}

.service-card.active .card-icon svg {
    stroke: var(--primary-gray);
}

.service-card:not(.active) .card-icon svg {
    stroke: var(--primary-gray);
    opacity: 0.6;
}

.card-body {
    padding: 0 30px;
}

.card-number {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 15px;
    opacity: 0.6;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.card-divider {
    height: 3px;
    border-radius: 2px;
    margin-bottom: 20px;
    width: 80%;
}

.service-card.active .card-divider {
    background: var(--gradient-blue);
}

.service-card:not(.active) .card-divider {
    background: #e0e0e8;
}

.card-desc {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.85;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-nav.prev-btn {
    left: 0;
}

.carousel-nav.next-btn {
    right: 0;
}

.carousel-nav button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary-blue);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(75, 0, 130, 0.3);
}

.carousel-nav button:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(75, 0, 130, 0.5);
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-light);
}

.partners-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.partners-divider {
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.partners-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;

    margin-bottom: 60px;
    background: linear-gradient(90deg, var(--text-dark), var(--primary-blue), var(--primary-gray));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.partners-logos {
    display: none;
    /* Deprecated */
}

.partners-marquee-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 60px 0;
}

.partners-marquee {
    display: flex;
    white-space: nowrap;
    overflow: visible;
    width: 100%;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 120px;
    padding-right: 120px;
    /* match the gap so it wraps seamlessly */
}

.partners-marquee.left .partners-track {
    animation: marqueeLeft 30s linear infinite;
}

.partners-marquee.right .partners-track {
    animation: marqueeRight 35s linear infinite;
    /* slightly different speed or duration for variation */
}

@keyframes marqueeLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Since we have 3 identical sets, moving -33.33% seamlessly loops one set */
        transform: translateX(-33.3333%);
    }
}

@keyframes marqueeRight {
    0% {
        transform: translateX(-33.3333%);
    }

    100% {
        transform: translateX(0);
    }
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.partner-item img {
    height: 55px;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-smooth);
    background: transparent;
    transform: none !important;
    margin: 0 !important;
}

/* Specific Logo Heights to normalize visual weight */
.logo-cisco {
    height: 140px !important;
}

.logo-checkpoint {
    height: 110px !important;
}

.logo-cloudflare {
    height: 85px !important;
}

.logo-juniper {
    height: 70px !important;
}

.logo-fortinet {
    height: 60px !important;
}

.logo-hpe {
    height: 55px !important;
}

/* Ensure the marquee container has enough vertical space so nothing clips */
.partners-marquee,
.partners-marquee-container {
    align-items: center;
}

.partners-marquee-container {
    padding: 100px 0 !important;
}

.partner-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Fallback badge styles inline here just in case JS fails */
.partner-badge {
    padding: 12px 28px;
    background: white;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-deep);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: inline-block;
}

.partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================
   CYBERSECURITY SECTION (Dark Background)
   ============================================ */
.cyber-section {
    padding: 120px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.cyber-section .section-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    opacity: 0.4;
    pointer-events: none;
}

.cyber-section .section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cyber-content {
    position: relative;
    z-index: 2;
}

.cyber-content h2 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    color: var(--text-white);
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 25px;
}

.cyber-content p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 450px;
    margin-bottom: 35px;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-pill .arrow-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 16px;
    transition: var(--transition-smooth);
}

.btn-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-pill:hover .arrow-circle {
    transform: scale(1.15) rotate(45deg);
}

/* Counters */
.cyber-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 50px;
    position: relative;
    z-index: 2;
}

.counter-item {
    text-align: left;
}

.counter-value {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
}

.counter-suffix {
    font-size: 0.5em;
    margin-left: 4px;
    font-weight: 300;
}

.counter-label {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    max-width: 250px;
}

/* ============================================
   CLOUD SECTION (Dark Gradient)
   ============================================ */
.cloud-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0e3d64, #1568aa, #0e3d64);
    position: relative;
    overflow: hidden;
}

.cloud-section .section-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

.cloud-section .section-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom left;
}

/* Geometric shapes */
.geo-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    opacity: 0.15;
}

.geo-shape {
    position: absolute;
    border: 2px solid;
    border-radius: 4px;
}

.geo-shape.circle {
    border-radius: 50%;
}

.geo-shape.s1 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 5%;
    border-color: var(--primary-blue);
}

.geo-shape.s2 {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 25%;
    border-color: var(--accent-blue-light);
}

.geo-shape.s3 {
    width: 100px;
    height: 100px;
    top: 55%;
    right: 10%;
    border-color: var(--primary-blue);
}

.geo-shape.s4 {
    width: 60px;
    height: 60px;
    top: 75%;
    right: 35%;
    border-color: var(--primary-blue);
    border-radius: 50%;
}

.cloud-content {
    position: relative;
    z-index: 2;
}

.cloud-content .section-label {
    color: var(--text-white);
}

.cloud-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;

    color: var(--text-white);
    line-height: 1.3;
    max-width: 700px;
    margin-bottom: 80px;
    background: linear-gradient(90deg, var(--text-white), var(--primary-gray), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cloud-bottom {
    display: flex;
    justify-content: flex-end;
}

.cloud-info {
    max-width: 400px;
    text-align: center;
}

.cloud-info p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
}

.btn-pill-white {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 50px;
    background: white;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-pill-white .arrow-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.btn-pill-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ============================================
   AI SECTION
   ============================================ */
.ai-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #1568aa, #0e3d64);
    position: relative;
    overflow: hidden;
}

.ai-content {
    position: relative;
    z-index: 2;
}

.ai-content h2 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;

    color: var(--text-white);
    line-height: 1.3;
    max-width: 700px;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #ffd700, var(--primary-gray), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-bottom {
    display: flex;
    justify-content: flex-end;
}

.ai-info {
    max-width: 450px;
    text-align: center;
}

.ai-info p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* ============================================
   EXPERIENCE/STATS SECTION
   ============================================ */
.experience-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.experience-header {
    text-align: center;
    margin-bottom: 60px;
}

.experience-header h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;

    color: var(--text-dark);
    background: linear-gradient(90deg, var(--text-dark), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.experience-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
}

.stat-number {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900;
    color: var(--primary-deep);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

.experience-clouds {
    text-align: center;
    padding: 30px 0;
}

.experience-clouds p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.cloud-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cloud-logos img {
    height: 40px;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.cloud-logos img:hover {
    opacity: 1;
}

/* ============================================
   NEWS / CASE STUDIES SECTION
   ============================================ */
.news-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.08);
}

.news-card-body {
    padding: 30px;
}

.news-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-card-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.read-more:hover {
    gap: 14px;
    color: var(--primary-blue);
}

/* ============================================
   TECH HUB SECTION
   ============================================ */
.tech-hub-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0e3d64, #1568aa);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tech-hub-section .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tech-hub-content {
    position: relative;
    z-index: 2;
}

.tech-hub-content h2 {
    font-size: clamp(24px, 3vw, 36px);
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    padding: 80px 0 30px;
    color: var(--text-light);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin: 0 auto;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    padding: 6px 0;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: white;
    padding-left: 8px;
}

.footer-newsletter p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    border-color: var(--accent-blue-light);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    background: var(--primary-blue);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-form button:hover {
    background: var(--accent-blue-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-bottom a {
    color: var(--text-light);
}

.footer-bottom a:hover {
    color: white;
}

.footer-certs {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-certs img {
    height: 50px;
    opacity: 0.7;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* --- Flip Reveal Animations --- */
.reveal-flip {
    opacity: 0;
    transform: perspective(1200px) rotateX(-30deg) translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-flip.revealed {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) translateY(0);
}

.reveal-flip-left {
    opacity: 0;
    transform: perspective(1200px) rotateY(-40deg) translateX(-60px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-flip-left.revealed {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) translateX(0);
}

.reveal-flip-right {
    opacity: 0;
    transform: perspective(1200px) rotateY(40deg) translateX(60px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-flip-right.revealed {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) translateX(0);
}

/* --- Staggered Flip --- */
.stagger-flip>* {
    opacity: 0;
    transform: perspective(1200px) rotateY(-30deg) translateX(-40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.stagger-flip.revealed>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-flip.revealed>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-flip.revealed>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-flip.revealed>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-flip.revealed>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-flip.revealed>*:nth-child(6) {
    transition-delay: 0.6s;
}

.stagger-flip.revealed>* {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) translateX(0);
}

/* --- Scroll-Driven Fit Animations --- */
/* --- Scroll-Driven Fit Animations --- */
.scroll-driven,
.scroll-driven-left,
.scroll-driven-right {
    opacity: 0;
    will-change: transform, opacity;
}

/* Sticky Scroll System */
.sticky-scroll-wrapper {
    height: 180vh;
    position: relative;
}

.sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 5;
}

/* Floating Tech Elements */
.floating-element {
    position: absolute;
    color: var(--primary-blue);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    font-family: monospace;
    font-weight: 900;
}

.parallax-bg {
    will-change: transform;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .sticky-scroll-wrapper {
        height: auto;
    }

    .sticky-content {
        position: relative;
        height: auto;
        min-height: auto;
        padding: 0;
    }
}

/* Staggered children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.revealed>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children.revealed>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-children.revealed>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-children.revealed>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-children.revealed>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-children.revealed>* {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

@keyframes rotateGeo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .btn-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content {
        padding-left: 40px;
    }

    .hero-nav {
        left: 40px;
    }

    .hero-info {
        right: 40px;
    }

    .it-services-content {
        flex-direction: column;
    }

    .video-container {
        max-width: 100%;
    }

    .cyber-counters {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .experience-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero-content {
        padding: 0 !important;
        max-width: 100%;
    }

    .hero-nav {
        left: 24px;
        bottom: 180px;
        gap: 10px;
    }

    .hero-nav button {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .hero-info {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
        left: auto !important;
        text-align: center;
        max-width: 100%;
        z-index: 5;
        margin-top: 30px !important;
    }

    .hero-info .hero-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .services-section {
        padding: 60px 0 80px;
    }

    .carousel-wrapper {
        height: 460px;
    }

    .service-card {
        width: 300px;
        height: 420px;
    }

    .service-card.prev {
        transform: translateX(-240px) scale(0.82) rotateY(8deg);
    }

    .service-card.next {
        transform: translateX(240px) scale(0.82) rotateY(-8deg);
    }

    .service-card.prev-2,
    .service-card.next-2 {
        opacity: 0;
    }

    .cyber-counters {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .experience-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .carousel-wrapper {
        height: 420px;
    }

    .service-card {
        width: 280px;
        height: 400px;
    }

    .service-card.prev {
        transform: translateX(-200px) scale(0.8) rotateY(10deg);
    }

    .service-card.next {
        transform: translateX(200px) scale(0.8) rotateY(-10deg);
    }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #080a10;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
    overflow: hidden;
}

.page-loader.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Radar Scan Line */
.loader-scan-line {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(to bottom, rgba(21, 104, 170, 0) 0%, rgba(21, 104, 170, 0.1) 40%, rgba(77, 166, 255, 0.4) 50%, rgba(21, 104, 170, 0.1) 60%, rgba(21, 104, 170, 0) 100%);
    animation: scanSweep 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scanSweep {
    0% {
        transform: translateY(-70%);
    }

    100% {
        transform: translateY(20%);
    }
}

.loader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Lock Icon Animation */
.loader-lock-icon {
    width: 50px;
    height: 50px;
    color: var(--primary-blue);
    opacity: 0.6;
    animation: lockPulse 2s infinite alternate;
}

.loader-lock-icon.unlocked {
    color: #00ff88;
    animation: none;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.6));
    transform: scale(1.1);
    transition: all 0.4s ease;
}

@keyframes lockPulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(21, 104, 170, 0.4));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(77, 166, 255, 0.8));
        transform: scale(1.05);
    }
}

/* Decryption Text */
.loader-text-wrapper {
    position: relative;
}

.loader-logo {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    color: white;
    letter-spacing: 12px;
    font-family: monospace;
    /* Monospace is better for decryption effect */
    text-shadow: 0 0 10px rgba(77, 166, 255, 0.5);
    white-space: nowrap;
}

.loader-logo.decrypted {
    font-family: var(--font-main);
    /* Swap back to main font */
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4), 0 0 40px rgba(0, 255, 136, 0.2);
    animation: textGlitch 0.3s cubic-bezier(.25, .46, .45, .94) both;
}

@keyframes textGlitch {
    0% {
        transform: translate(0);
        text-shadow: 0 0 20px rgba(0, 255, 136, 1);
    }

    20% {
        transform: translate(-2px, 2px);
        text-shadow: 2px 0 #00ffff, -2px 0 #ff00ff;
    }

    40% {
        transform: translate(-2px, -2px);
        text-shadow: -2px 0 #00ffff, 2px 0 #ff00ff;
    }

    60% {
        transform: translate(2px, 2px);
        text-shadow: 2px 0 #00ffff, -2px 0 #ff00ff;
    }

    80% {
        transform: translate(2px, -2px);
        text-shadow: -2px 0 #00ffff, 2px 0 #ff00ff;
    }

    100% {
        transform: translate(0);
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    }
}

/* Status Text */
.loader-status {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--primary-gray);
    text-transform: uppercase;
    font-family: monospace;
    opacity: 0.7;
}

.loader-status.success {
    color: #00ff88;
    opacity: 1;
}

/* ============================================
   PARTICLE BACKGROUND
   ============================================ */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-blue);
    pointer-events: none;
    animation: particleFloat linear infinite;
}

/* ============================================
   HORIZONTAL SCROLL WRAPPER
   ============================================ */
.h-scroll-wrapper {
    height: 300vh;
    position: relative;
    background: var(--bg-dark);
    color: white;
}

.h-scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 10;
}

@media (max-width: 991px) {
    .h-scroll-wrapper {
        height: auto !important;
    }

    .h-scroll-sticky {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        overflow: visible !important;
    }
}

.h-scroll-track {
    display: flex;
    width: 300vw;
    height: 100vh;
    will-change: transform;
    position: relative;
    background: #0e3d64;
}

@media (max-width: 991px) {
    .h-scroll-track {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
    }
}

.h-scroll-panel {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .h-scroll-panel {
        width: 100% !important;
        height: auto !important;
        min-height: 80vh;
        padding: 80px 0;
        display: block !important;
    }
}

.h-scroll-panel section {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .h-scroll-panel section {
        height: auto !important;
        display: block !important;
    }
}

/* ============================================
   CYBERSECURITY SECTION (Horizontal)
   ============================================ */
.cyber-section {
    position: relative;
    width: 100%;
}

.h-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 80vh;
    padding-top: 10vh;
}

@media (max-width: 991px) {
    .h-container {
        height: auto !important;
        padding-top: 0 !important;
        gap: 40px;
    }
}

.video-globe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 200vw;
    /* Spans panel 1 and 2 */
    height: 100vh;
    z-index: 1;
    /* Above track background, but behind content */
    pointer-events: none;
    opacity: 0.5;
}

.video-globe-wrapper video {
    position: absolute;
    height: 120vh;
    width: 120vw;
    top: -10vh;
    left: 40vw;
    /* Hard positioned into panel 1 and 2 */
    object-fit: contain;
    mix-blend-mode: screen;
    filter: brightness(1.3) contrast(1.8);
    /* High contrast pushes dark grey background to pure black */
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 70%);
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.6;
    /* Lower visibility so it acts strictly as background ambience */
}

.h-scroll-panel {
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through if needed, though we probably need pointer events on children */
    background: transparent !important;
}

/* Ensure no backgrounds block the video */
.h-scroll-panel section,
.h-scroll-panel .container {
    background: transparent !important;
    pointer-events: auto;
    /* Restore interaction for children */
}

.cyber-content {
    max-width: 800px;
    position: relative;
    z-index: 20;
}

.cyber-title-main {
    font-size: clamp(40px, 8vw, 92px);
    line-height: 1.05;
    font-weight: 900;
    font-family: var(--font-main);
    color: white;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .cyber-title-main {
        font-size: 36px !important;
        line-height: 1.1;
        word-break: break-word;
    }
}

.cyber-p-sub {
    font-size: 22px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .cyber-p-sub {
        font-size: 20px !important;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.8) !important;
    }
}

.btn-pill-cyber {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 8px 8px 8px 25px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-pill-cyber .yellow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1568aa;
    color: #1568aa;
    border-radius: 50%;
    font-weight: bold;
}

.cyber-stats-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: auto;
    width: 100%;
}

@media (max-width: 768px) {
    .cyber-stats-row {
        flex-direction: column;
        gap: 30px;
    }
}

.stat-col {
    flex: 1;
}

.stat-divider {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 15px;
}

.stat-number {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: -2px;
}

.stat-text {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    max-width: 250px;
}

/* ============================================
   CLOUD SECTION (Horizontal)
   ============================================ */
.cloud-section {
    position: relative;
    justify-content: flex-end;
    /* Text on the right for Cloud */
}

/* Globe continues spilling over here naturally from the previous panel */

.cloud-content {
    width: 100%;
    position: relative;
    z-index: 2;
}

.cloud-title {
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 300;
    max-width: 800px;
    margin-top: 20px;
    margin-bottom: auto;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .cloud-title {
        font-size: 38px !important;
        line-height: 1.1;
        -webkit-text-fill-color: white;
        /* Better readability on mobile */
    }
}

.btn-pill-white {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    background: white;
    color: #1568aa;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-pill-white .arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0e3d64;
    color: white;
    border-radius: 50%;
}

/* ============================================
   AI SECTION (Horizontal)
   ============================================ */
.ai-section {
    position: relative;
    background: var(--bg-dark);
    /* Solidify this section so globes don't leak */
    justify-content: flex-end;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    color: white;
}

.xfor-contact-form {
    width: 100%;
}

.xfor-input-group {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.xfor-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    font-family: var(--font-main);
}

.xfor-input-group input,
.xfor-input-group select,
.xfor-input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0;
    font-size: 16px;
    color: white;
    font-family: var(--font-main);
    outline: none;
    appearance: none;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.xfor-input-group input:hover,
.xfor-input-group select:hover,
.xfor-input-group textarea:hover {
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.xfor-input-group select option {
    background: var(--bg-dark);
    color: white;
}

/* Animated active line that expands from center on focus */
.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: 0.4s ease;
    transform: translateX(-50%);
}

.xfor-input-group input:focus~.focus-border,
.xfor-input-group select:focus~.focus-border,
.xfor-input-group textarea:focus~.focus-border {
    width: 100%;
}

/* Custom dropdown arrow */
.dropdown-group {
    position: relative;
}

.dropdown-arrow {
    position: absolute;
    right: 5px;
    bottom: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.dropdown-group select:focus~.dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

/* Custom Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 30px;
    font-family: var(--font-main);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: transparent;
    border-radius: 4px;
    transition: all 0.2s;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Submit Button Override */
.contact-submit-btn {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 5px 25px 5px 5px !important;
    border-radius: 40px !important;
}

.contact-submit-btn:hover {
    border-color: var(--primary-blue) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Stagger Children specific to form fields */
.stagger-children .xfor-input-group {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.revealed .xfor-input-group {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.revealed .xfor-input-group:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children.revealed .xfor-input-group:nth-child(2) {
    transition-delay: 0.15s;
}

.stagger-children.revealed .xfor-input-group:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger-children.revealed .xfor-input-group:nth-child(4) {
    transition-delay: 0.25s;
}

.stagger-children.revealed .xfor-input-group:nth-child(5) {
    transition-delay: 0.3s;
}

.stagger-children.revealed .xfor-input-group:nth-child(6) {
    transition-delay: 0.35s;
}

.stagger-children.revealed .xfor-input-group:nth-child(7) {
    transition-delay: 0.4s;
}

.stagger-children.revealed .xfor-input-group:nth-child(8) {
    transition-delay: 0.45s;
}

/* ============================================
   NEW DESIGN SYSTEM ADDITIONS
   ============================================ */

.new-it-services {
    padding: 120px 0 100px;
    background: #fff;
    overflow: hidden;
}

.animated-title {
    font-size: clamp(40px, 8vw, 90px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #eee;
    margin-bottom: 40px;
    display: block;
    overflow: hidden;
}

.animated-title .word {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.25em;
}

.animated-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animated-title .char.revealed {
    opacity: 1;
    transform: translateY(0);
}

.animated-title .char.color-anim {
    animation: textGradientFlow 6s linear infinite;
}

@keyframes textGradientFlow {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(20deg);
    }
}

.it-services-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.it-text-block p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 35px;
    max-width: 480px;
}

.premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: var(--primary-deep);
    color: white;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(14, 61, 100, 0.15);
}

.premium-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(14, 61, 100, 0.25);
    background: var(--primary-blue);
}

.premium-btn .btn-icon {
    width: 26px;
    height: 26px;
    background: white;
    color: var(--primary-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    transition: transform 0.4s ease;
}

.premium-btn:hover .btn-icon {
    transform: rotate(45deg);
}

.premium-video-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}

.premium-video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    mix-blend-mode: multiply;
    opacity: 0.1;
}

/* BENTO GRID STYLES */
.bento-services-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

#bentoParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bento-services-section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 60px;
}

.section-header .tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-top: 10px;
}

.bento-services-section .section-header .tag {
    color: #fff;
    opacity: 0.7;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
}

.bento-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    margin-top: 10px;
}

.tech-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 80px;
}

.tech-card {
    position: relative;
    background: rgba(14, 61, 100, 0.05);
    border: 1px solid rgba(21, 104, 170, 0.2);
    border-radius: 20px;
    overflow: hidden;
    height: 420px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.tech-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(21, 104, 170, 0.1), transparent 70%);
    pointer-events: none;
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(21, 104, 170, 0.2);
}

.card-visual {
    height: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(21, 104, 170, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.hud-container {
    width: 180px;
    height: 180px;
    position: relative;
}

.hud-svg {
    width: 100%;
    height: 100%;
}

.hud-ring {
    fill: none;
    stroke: var(--primary-blue);
    stroke-width: 1.5;
    opacity: 0.4;
}

.hud-ring.rotating {
    animation: rotateHUD 10s linear infinite;
    transform-origin: center;
}

.hud-ring.counter-rotating {
    animation: rotateHUD 7s linear infinite reverse;
    transform-origin: center;
    stroke: var(--accent-blue-light);
}

.hud-cross,
.hud-box,
.hud-shield,
.hud-line,
.hud-radar-line,
.hud-cross-diag,
.hud-arm {
    fill: none;
    stroke: var(--accent-blue-light);
    stroke-width: 1;
    opacity: 0.6;
}

.hud-center {
    fill: var(--primary-blue);
    filter: blur(2px);
}

.hud-radar-line {
    stroke-width: 2;
    stroke: var(--primary-blue);
}

.hud-dot {
    fill: #ff4757;
}

.pulsing {
    animation: pulseGlow 2s infinite;
}

.card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: monospace;
}

.tech-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
    color: #ffffff;
}

.tech-card p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 25px;
}

.tech-card-link {
    margin-top: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.tech-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
}

.tech-card:hover .tech-card-link {
    color: var(--accent-blue-light);
    gap: 12px;
}

.card-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(21, 104, 170, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tech-card:hover .card-glow {
    opacity: 1;
}

/* Animations */
@keyframes rotateHUD {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }

    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 32px;
    }

    .tech-card {
        height: auto;
        min-height: 400px;
    }

    .card-visual {
        height: 200px;
    }
}

.bento-services-section #bentoParticles {
    pointer-events: none;
}

.flex-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.flex-title h3 {
    margin-bottom: 0;
}

.card-visual {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 200px;
    height: 200px;
    opacity: 0.2;
    z-index: 1;
}

/* REFINED LOWER SECTIONS */

.partners-section {
    padding: 120px 0;
    background: #fff;
    text-align: center;
}

.partners-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.partners-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-deep);
    margin-bottom: 80px;
}

.partner-item img {
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.4s ease;
    max-height: 50px;
}

.partner-item:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* STATS DASHBOARD STYLE - SCROLL REVELATION WHITE THEME */
.stats-scroll-wrapper {
    height: 400vh;
    /* Adjust based on desired scroll length for 4 cards */
    position: relative;
    background: #fff;
}

.stats-section.light-theme {
    background: #fff !important;
    padding: 0 !important;
    height: 100vh;
    width: 100%;
    position: sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: none;
}

.stats-bg-canvas-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#statsAnimatedBg {
    width: 100%;
    height: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 10;
    width: 100%;
}

@media (max-width: 992px) {
    .stats-scroll-wrapper {
        height: 300vh;
    }
}

@media (max-width: 768px) {

    p,
    .stat-text,
    .partners-label,
    .partners-title {
        font-size: 19px !important;
        line-height: 1.6 !important;
    }

    .partners-title {
        font-size: 28px !important;
    }
}

.stat-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px 30px !important;
    border-radius: 30px;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(100px);
}

@media (max-width: 768px) {
    .stats-scroll-wrapper {
        height: auto !important;
        background: #fff;
    }

    .stats-section.light-theme {
        height: auto !important;
        position: relative !important;
        display: block !important;
        padding: 100px 0 !important;
    }

    .stats-section.light-theme .container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }

    .stats-grid {
        display: flex !important;
        flex-direction: column;
        gap: 40px;
        height: auto !important;
        width: 100%;
        margin: 0 auto;
    }

    .stat-box {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: translateY(50px) !important;
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto !important;
        z-index: 5;
        padding: 60px 40px !important;
        background: #fff;
        opacity: 0;
    }

    .stat-box.revealed {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    .stat-number-wrap {
        font-size: 72px !important;
    }
}

.stat-box.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stat-number-wrap {
    color: var(--primary-deep) !important;
    font-size: 82px !important;
    font-weight: 950 !important;
    margin-bottom: 20px !important;
    letter-spacing: -3px;
    line-height: 1;
}

.stat-box p {
    color: #666 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    max-width: 220px;
}

.stat-box p strong {
    color: var(--primary-blue) !important;
    font-weight: 800;
}

/* Remove old animations that conflict */
.stat-box::before,
.stat-box::after {
    display: none;
}

.stats-bg-animation {
    display: none;
}

/* CONTACT REFINEMENT */
.contact-section {
    padding: 160px 0 !important;
    background: #05070a !important;
    position: relative;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 992px) {
    .contact-card {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.contact-card-left {
    padding-right: 40px;
}

.contact-card-left .tag {
    color: var(--primary-blue);
    font-weight: 800;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

.contact-card-left h2 {
    color: white;
    font-size: 64px;
    font-weight: 950;
    margin-bottom: 25px;
    line-height: 0.95;
    letter-spacing: -2px;
}

@media (max-width: 768px) {
    .contact-card-left h2 {
        font-size: 36px !important;
        line-height: 1.1;
        letter-spacing: -1px;
        word-break: break-word;
    }
}

.contact-card-left p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    margin-bottom: 60px;
    line-height: 1.6;
    max-width: 450px;
}

@media (max-width: 768px) {
    .contact-card-left p {
        font-size: 19px !important;
        max-width: 100%;
        margin-bottom: 40px;
    }
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-item h5 {
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.detail-item p {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0;
}

.contact-card-right {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px !important;
    border-radius: 40px !important;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: visible !important;
    /* Allow focus rings and tooltips */
}

@media (max-width: 768px) {
    .contact-card-right {
        padding: 40px 20px !important;
        border-radius: 30px !important;
    }
}

/* PREMIUM FORM STYLES */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}

.premium-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premium-input-group label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.premium-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.premium-input-group input:focus {
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(21, 104, 170, 0.15);
}

/* ANIMATIONS */
@keyframes floatSmall {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(5px, -10px);
    }
}

.floating-icon {
    animation: floatSmall 4s ease-in-out infinite;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-card {
        grid-template-columns: 1fr !important;
        padding: 40px !important;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .partners-title {
        font-size: 32px;
    }
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .it-services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-large,
    .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {

    p,
    .stat-text,
    .cyber-p-sub,
    .footer-desc {
        font-size: 19px !important;
        line-height: 1.6 !important;
    }
}

.ai-title-huge {
    font-size: 72px;
    font-weight: 950;
    line-height: 0.95;
    color: white;
    letter-spacing: -2px;
}

@media (max-width: 768px) {
    .ai-title-huge {
        font-size: 36px !important;
        line-height: 1.1;
        letter-spacing: -1px;
        word-break: break-word;
    }
}

.cloud-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 900;
    color: white;
}


/* ============================================
   FOOTER STYLES
   ============================================ */
.footer {
    background: #05070a;
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-logo {
    height: 120px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    color: #888;
    max-width: 300px;
    font-size: 14px;
}

.footer-links-wrapper {
    display: flex;
    gap: 80px;
}

.footer-label {
    color: white;
    margin-bottom: 25px;
    font-size: 14px;
    letter-spacing: 2px;
}

.footer-link-group a {
    display: block;
    color: #666;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.footer-copy {
    color: #444;
    font-size: 12px;
}

/* ============================================
   SCROLL-DRIVEN CARDS INTERACTION (STABLE)
   ============================================ */
.bento-services-section {
    background: #05070a !important;
    /* Force dark background */
    position: relative;
    overflow: visible !important;
}

.scroll-height-controller {
    height: 700vh;
    position: relative;
    background: #05070a;
}

.sticky-cards-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    z-index: 100;
}

.scroll-cards-track {
    display: flex;
    gap: 80px;
    padding-left: 15%;
    will-change: transform;
}

.scroll-cards-track .bento-card {
    flex: 0 0 500px;
    height: 350px;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.8s ease;
}

.scroll-cards-track .bento-card.active {
    transform: scale(1.1);
    opacity: 1;
}

.scroll-progress-wrap {
    width: 400px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin: 100px auto 0;
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary-blue);
    box-shadow: 0 0 20px var(--primary-blue);
}

/* ============================================
   TECH-EXAGGERATED SECTION (CLEAN)
   ============================================ */
.tech-creative-section {
    padding: 160px 0;
    background: #ffffff;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.tech-side-title {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 140px;
    font-weight: 900;
    color: rgba(21, 104, 170, 0.04);
}

.tech-content-card {
    padding: 80px;
    background: #fff;
    border-left: 10px solid var(--primary-blue);
    box-shadow: 50px 50px 120px rgba(0, 0, 0, 0.05);
}

.tech-visual-stack {
    position: relative;
    height: 550px;
}

.tech-image-main {
    width: 90%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.tech-floating-box {
    position: absolute;
    bottom: 30px;
    right: 0;
    width: 300px;
    padding: 40px;
    background: var(--primary-deep);
    color: white;
    box-shadow: 30px 30px 60px rgba(0, 0, 0, 0.2);
    animation: techFloat 6s ease-in-out infinite;
}


@media (max-width: 768px) {
    .scroll-cards-track .bento-card {
        flex: 0 0 85vw;
        height: 400px;
    }

    .scroll-height-controller {
        height: 1000vh;
    }

    .tech-side-title {
        display: none;
    }

    .tech-content-card {
        padding: 40px;
    }

    .tech-visual-stack {
        height: 300px;
    }

    .scroll-progress-wrap {
        width: 80%;
    }
}
/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}
