/* 
    FortekServices Premium Design System
    Theme: Slate Navy & Sky Blue Accents
    Style: Glassmorphism & Modern Typography
*/

:root {
    /* Dark Mode (Default) */
    --bg-main: #020617;
    --bg-surface: #0f172a;
    --bg-glass: rgba(15, 23, 42, 0.9);
    /* More opaque */
    --border-glass: rgba(255, 255, 255, 0.05);
    /* Even more subtle */

    --primary: #0ea5e9;
    /* Sky Blue */
    --primary-hover: #38bdf8;
    --secondary: #64748b;
    /* Slate */

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent: #38bdf8;
    --accent-glow: rgba(14, 165, 233, 0.3);

    --glass-blur: blur(16px);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.8), 0 10px 15px -5px rgba(0, 0, 0, 0.5);
    --container-width: 1400px;
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border-glass: rgba(15, 23, 42, 0.1);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-glow: rgba(14, 165, 233, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; /* Offset for fixed header */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.gradient-text-span {
    background: linear-gradient(90deg,
            #fff 0%,
            #0ea5e9 25%,
            #fff 50%,
            #0ea5e9 75%,
            #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 5s linear infinite;
    display: inline-block;
}

@keyframes shineText {
    to {
        background-position: 200% center;
    }
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

/* Specific Card Refinements */
.contact-card {
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    backdrop-filter: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-map-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/img/map-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.22; /* Increased opacity for clear premium visibility */
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .card-map-bg {
    opacity: 0.16; /* Increased light mode opacity to ensure gorgeous blending line maps */
    filter: invert(1) brightness(0.85); /* Invert map in light theme for visual blending */
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: 0.3;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: padding var(--transition), background var(--transition), backdrop-filter var(--transition);
}

/* Force high-contrast text on header at top (over dark hero) */
.site-header:not(.scrolled) {
    --text-primary: #f8fafc !important;
    --text-secondary: rgba(248, 250, 252, 0.8) !important;
    --border-glass: rgba(255, 255, 255, 0.1) !important;
}

.site-header.scrolled {
    padding: 1rem 0;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.2));
    transition: transform 0.3s ease;
}

.logo-box:hover .logo-svg {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    transition: color var(--transition);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Beautiful electric blue indicator dot under active nav link */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.05) 0%, transparent 70%),
        linear-gradient(to bottom, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.5));
    pointer-events: none;
    z-index: -1;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(at 0% 0%, hsla(203, 83%, 40%, 0.15) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(199, 89%, 48%, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(201, 94%, 57%, 0.15) 0, transparent 50%);
    filter: blur(60px);
    z-index: -2;
    /* Middle layer */
    animation: meshMove 10s ease infinite alternate;
}

@keyframes meshMove {
    0% {
        transform: scale(1);
    }

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

#canvas-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* New Software Hero Styles with Image */
.hero {
    background-image: url('../assets/img/hero_bg_clean.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-tech-bg {
    display: none;
    /* Hide previous background */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.9) 30%, rgba(2, 6, 23, 0.4) 100%);
    z-index: 1;
}

.hero-layout {
    display: flex;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.hero-main-content {
    max-width: 1200px;
    z-index: 10;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

/* About Grid Software */
.about-grid-software {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .about-grid-software {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-tag::before,
.section-tag::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--primary);
    opacity: 0.3;
}

.about-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-content p:first-of-type {
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.expertise-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(14, 165, 233, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    transition: var(--transition);
}

.expertise-item:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.2);
}

.about-highlights-compact {
    display: flex;
    gap: 2.5rem;
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    width: fit-content;
}

.about-cta-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.about-signature {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0.6;
}

.sig-line {
    width: 60px;
    height: 1px;
    background: var(--primary);
}

.about-signature p {
    margin: 0 !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.h-item {
    display: flex;
    flex-direction: column;
}

.h-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.h-lab {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.expertise-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.expertise-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.expertise-item p {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
}

.title-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 10rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.04;
    z-index: -1;
    letter-spacing: 40px;
    pointer-events: none;
}

.tech-strip-row {
    margin-top: 6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    padding: 3rem;
    background: rgba(14, 165, 233, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
}

.tech-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    transition: var(--transition);
    cursor: default;
}

.tech-tag:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.about-visual-modern {
    position: relative;
    padding-left: 2rem;
}

.about-visual-modern::before {
    content: 'FORTEK';
    position: absolute;
    top: 50%;
    right: -20%;
    font-size: 15rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.03;
    transform: translateY(-50%) rotate(90deg);
    z-index: -1;
    pointer-events: none;
    letter-spacing: 20px;
}

.visual-deco-circle {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(50px);
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

.visual-tech-specs {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-glass);
}

.visual-tech-specs span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.visual-tech-specs span i {
    color: var(--primary);
    font-size: 1rem;
}

.visual-tech-specs span:hover {
    color: var(--text-primary);
    transform: translateX(10px);
}

.visual-stack {
    position: relative;
    padding: 2rem;
}

.glass-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.browser-address {
    margin-left: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.2rem 1.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    flex-grow: 1;
    max-width: 260px;
    font-family: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.65;
}

.about-image-container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: var(--bg-surface);
}

.about-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    filter: saturate(0.85) brightness(0.95);
    display: block;
    z-index: 0;
}

/* Semi-transparent dark slate and sky blue gradient overlay to blend perfectly */
.about-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(15, 23, 42, 0.75) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: all 0.5s ease;
    z-index: 1;
}

.glass-card.main-visual:hover .about-real-img {
    transform: scale(1.06);
}

.glass-card.main-visual:hover .about-img-overlay {
    opacity: 0.6;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.floating-badge {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.badge-1 {
    top: 12%;
    right: -1.5rem;
    animation: floatHero 5s ease-in-out infinite;
    z-index: 10;
}

.badge-2 {
    top: 52%;
    left: -2rem;
    animation: floatHero 7s ease-in-out infinite reverse;
    z-index: 10;
}

.floating-badge i {
    color: var(--primary);
}

.floating-badge span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Values Grid Software */
.values-grid-software {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.value-card-modern {
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.value-card-modern:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.value-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.value-card-modern h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Logo Marquee Section */
.logo-marquee-wrapper {
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    margin-top: 2rem;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee 30s linear infinite;
    align-items: center;
}

.logo-marquee-track img {
    height: 120px !important;
    width: 250px !important;
    object-fit: contain !important;
    padding: 5px 15px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    margin: 0 1rem !important;
    filter: none !important;
    opacity: 1 !important;
    display: block !important;
}

.logo-marquee-track img:hover {
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    background: #f8fafc !important;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .logo-marquee-track img {
        height: 60px !important;
        width: 150px !important;
        padding: 8px 15px !important;
        margin: 0 0.5rem !important;
    }

    .logo-marquee-track {
        gap: 2rem !important;
    }
}

.value-card-modern p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Context Overrides */
.dark-context {
    --bg-main: #020617;
    --bg-surface: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-glass: rgba(255, 255, 255, 0.05);
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
}

.dark-context p,
.dark-context h1,
.dark-context h2,
.dark-context h3 {
    color: inherit !important;
}

/* Section Backgrounds */
.section-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

#city-canvas {
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 20%,
            black 80%,
            transparent 100%);
    opacity: 0.8;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    perspective: 1000px;
}

.hero h1 span:not(.word-cube-face) {
    display: inline-block;
}

@keyframes wordReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 650px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Floating Animation for Hero Content */
.hero-content {
    animation: floatHero 6s ease-in-out infinite;
}

@keyframes floatHero {

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

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

/* Dynamic Accent Glows */
.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    top: 20%;
    right: 10%;
    border-radius: 50%;
    animation: pulseGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulseGlow {

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

    50% {
        opacity: 0.2;
        transform: scale(1.2) translate(-20px, 20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

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

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

/* Loader Styles */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

#loader .logo-diamond {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotate(45deg) scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
}


/* Footer Enhanced */
.site-footer {
    padding: 6rem 0 2rem 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-primary::after {
    display: none;
    /* Removed shine animation */
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--border-glass);
    transform: translateY(-2px);
}



.section {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    margin-bottom: 6rem;
    text-align: center;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Secondary layout cleanup */
.bento-grid {
    display: none;
}

/* Micro-animations */
a,
button,
.bento-item,
.glass-panel,
input,
textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:active {
    transform: scale(0.95);
}

.nav-links a:hover {
    color: var(--primary);
}

.bento-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.bento-item h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Services Core Design */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.featured-service {
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.featured-service:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6) !important;
}

.featured-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.service-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

.service-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card-mini {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

.service-card-mini:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-visual {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.card-visual i {
    font-size: 1.5rem;
    color: var(--primary);
}

.card-visual h3 {
    font-size: 1.25rem;
    margin: 0;
}

.service-card-mini p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

@media (max-width: 1024px) {
    .featured-content {
        flex-direction: column;
        gap: 2rem;
    }

    .service-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-grid-premium {
        grid-template-columns: 1fr;
    }
}

/* Stats Counter */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Contact Form */
#contact {
    background: var(--bg-main);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: transparent !important;
    position: relative;
    z-index: 2;
}

.contact-info {
    background: transparent !important;
    box-shadow: none !important;
}

.contact-detail-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
}

.text-muted-small {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-socials {
    margin-top: 1rem;
}

.contact-socials .footer-social-links {
    margin-top: 0;
    gap: 0.75rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 2;
}

.office-item h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.office-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .offices-grid {
        grid-template-columns: 1fr;
    }
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary);
    z-index: 1001;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-item {
        grid-column: span 1 !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-links {
        display: none;
    }

    /* Fixed Header Spacing and Sizing on Mobile */
    .site-header {
        padding: 0.8rem 0;
    }

    .site-header.scrolled {
        padding: 0.5rem 0;
    }

    .logo-box {
        gap: 8px;
    }

    .logo-svg {
        width: 32px !important;
        height: 32px !important;
    }

    .logo-text {
        font-size: 1.2rem;
        letter-spacing: -0.5px;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    #themeToggle {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .site-header .btn-primary {
        padding: 0.55rem 1rem !important;
        font-size: 0.85rem !important;
        margin-left: 0.4rem !important;
        border-radius: 10px;
    }

    /* Hero / Home Overlap Fix */
    .hero {
        height: auto !important;
        min-height: 100vh;
        background-attachment: scroll;
    }

    .hero-layout {
        min-height: 100vh;
        align-items: flex-start !important;
        padding-top: 140px !important; /* Pushes content down past the fixed header */
        padding-bottom: 60px !important;
    }

    .hero-label {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
        letter-spacing: 1.5px;
        padding: 0.4rem 0.8rem;
    }

    .hero h1 {
        font-size: 2.4rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 1.05rem !important;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }
}

/* Design Utilities */
.dark-context {
    --bg-main: #020617;
    --bg-surface: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-glass: rgba(255, 255, 255, 0.1);
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
}

.dark-context .glass-panel {
    background: rgba(15, 23, 42, 0.7);
    border-color: var(--border-glass);
}

.dark-context p,
.dark-context h1,
.dark-context h2,
.dark-context h3 {
    color: inherit !important;
}

.section-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

/* =============================================
   PREMIUM ENHANCEMENTS
   ============================================= */

/* #1 — Animated Gradient Borders on Glass Cards */
.glass-panel {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, var(--primary) 50%, transparent 60%);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease, background-position 0.8s ease;
    z-index: -1;
    pointer-events: none;
}

.glass-panel:hover::before {
    opacity: 1;
    background-position: 100% 100%;
}

.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px -15px rgba(14, 165, 233, 0.15), var(--shadow-lg);
}

/* #2 — Parallax Section Backgrounds */
.section-bg {
    background-attachment: fixed;
}

@supports (-webkit-touch-callout: none) {
    .section-bg {
        background-attachment: scroll;
    }
}

/* #5 — Brand Color Overlays on Section Backgrounds */
.section-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(2, 6, 23, 0.6) 50%, rgba(56, 189, 248, 0.08) 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L90 10 L90 90 L10 90 Z' stroke='rgba(255,255,255,0.02)' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='10' cy='10' r='1' fill='rgba(14,165,233,0.1)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.about-bg-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.deco-icon {
    position: absolute;
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.03;
    animation: floatHero 10s ease-in-out infinite;
}

.deco-icon:nth-child(even) {
    animation-duration: 15s;
    animation-direction: reverse;
}

/* #3 — Marquee Logo Carousel */
.logo-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 3rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-marquee-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

.logo-marquee-track img {
    height: 35px;
    filter: brightness(0.7) grayscale(0.5);
    transition: filter 0.4s ease, transform 0.4s ease;
    flex-shrink: 0;
}

.logo-marquee-track img:hover {
    filter: brightness(1.2) grayscale(0);
    transform: scale(1.15);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Word Cube Rotation */
.word-cube-container {
    display: inline-block;
    height: 1.25em;
    line-height: 1.25em;
    vertical-align: middle;
    perspective: 1200px;
    margin-left: 0.5rem;
    padding: 0.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 380px;
    /* Secure width for longest word */
    overflow: hidden;
}

@media (max-width: 1024px) {
    .word-cube-container {
        min-width: 320px;
    }
}

@media (max-width: 768px) {
    .word-cube-container {
        min-width: 280px;
        padding: 0.2rem 1rem;
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        /* Stack on mobile if needed */
    }
}

.word-cube {
    display: block;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-rotation 12s infinite cubic-bezier(0.76, 0, 0.24, 1);
    height: 100%;
    width: 100%;
}

.word-cube-face {
    position: absolute !important;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center word in the box */
    font-weight: 800;
    font-size: 0.85em;
    /* Slightly smaller to fit background nicely */
    color: #fff !important;
    /* Pure white for better visibility on glass background */
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

.word-cube-face:nth-child(1) {
    transform: rotateX(0deg) translateZ(0.6em);
}

.word-cube-face:nth-child(2) {
    transform: rotateX(-90deg) translateZ(0.6em);
}

.word-cube-face:nth-child(3) {
    transform: rotateX(-180deg) translateZ(0.6em);
}

.word-cube-face:nth-child(4) {
    transform: rotateX(-270deg) translateZ(0.6em);
}

@keyframes cube-rotation {

    0%,
    20% {
        transform: rotateX(0deg);
    }

    25%,
    45% {
        transform: rotateX(90deg);
    }

    50%,
    70% {
        transform: rotateX(180deg);
    }

    75%,
    95% {
        transform: rotateX(270deg);
    }

    100% {
        transform: rotateX(360deg);
    }
}

@keyframes cursorBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.typing-word {
    display: inline;
    color: var(--primary);
    font-weight: 800;
}

/* #8 — Professional Footer Enhancement */
.site-footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-links a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-links a:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f8fafc;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

/* Two Column Links in Footer */
.footer-links-two-cols {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem 2.5rem !important;
}

.footer-links-two-cols li {
    margin-bottom: 0 !important;
}

@media (max-width: 480px) {
    .footer-links-two-cols {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.footer-newsletter-form input::placeholder {
    color: var(--text-muted);
}

.footer-newsletter-form input:focus {
    border-color: var(--primary);
}

.footer-newsletter-form button {
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.footer-newsletter-form button:hover {
    background: var(--primary-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-newsletter-form {
        flex-direction: column;
    }
}

/* =============================================
   PREMIUM SERVICES GRID AND CARD LAYOUT
   ============================================= */

.premium-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .premium-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .premium-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.premium-service-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 32px; /* Smooth elegant rounded corners */
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-end;
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* Photo Background Container */
.premium-service-card .card-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

/* Semi-transparent dark overlay to ensure high text contrast */
.premium-service-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.45) 50%, rgba(2, 6, 23, 0.15) 100%);
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Premium Highlight Top Line on Card Hover */
.premium-service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #4f46e5);
    border-radius: 0 0 8px 8px;
    z-index: 3;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Service Name overlay styling */
.premium-service-card .service-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff !important;
    text-align: left;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    line-height: 1.25;
}

/* High Fidelity Hover States */
.premium-service-card:hover {
    box-shadow: 
        0 30px 60px -15px rgba(79, 70, 229, 0.35), /* Indigo/purple neon shadow glow */
        0 0 40px -10px rgba(14, 165, 233, 0.45),   /* Sky Blue accent glow */
        var(--shadow-lg);
}

.premium-service-card:hover::after {
    width: 50%; /* Top accent bar expands */
}

.premium-service-card:hover .card-bg-image {
    transform: scale(1.1); /* Zoom the image on card hover */
}

.premium-service-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(14, 165, 233, 0.95) 0%, rgba(2, 6, 23, 0.6) 60%, rgba(2, 6, 23, 0.2) 100%);
    opacity: 0.9;
}

.premium-service-card:hover .service-name {
    transform: translateY(-8px);
}

/* Flagship / Featured Glow (for Center card highlight) */
.premium-service-card.featured-glow {
    box-shadow: 
        0 25px 50px -15px rgba(79, 70, 229, 0.3),
        0 0 35px -10px rgba(14, 165, 233, 0.35), 
        var(--shadow-lg);
}

/* Light Theme overrides */
[data-theme="light"] .premium-service-card .card-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0.1) 100%);
}

[data-theme="light"] .premium-service-card .service-name {
    color: var(--text-primary) !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .premium-service-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(14, 165, 233, 0.15) 0%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0.3) 100%);
}

[data-theme="light"] .premium-service-card:hover .service-name {
    color: var(--primary-hover) !important;
}

/* =============================================
   PREMIUM 5-SLOT ROLLING CAROUSEL LAYOUT
   ============================================= */

.carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 4rem;
    padding: 2rem 0;
}

.carousel-container {
    overflow: visible; /* Prevent shadow clipping of scaled center card */
    width: 100%;
    position: relative;
    padding: 2rem 0;
}

.premium-carousel-track {
    position: relative;
    width: 100%;
    height: 520px; /* Give vertical space for 450px card scaled by 1.15 */
    margin: 0 auto;
}

.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 450px;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: all 1.2s cubic-bezier(0.25, 1, 0.3, 1); /* Beautiful slow rolling marquee feel */
    will-change: transform, opacity, z-index;
}

/* Slots for Rolling Carousel */

/* Slot 1: Far Left (Smallest) */
.carousel-slide.card-far-left {
    transform: translate(-50%, -50%) translateX(-220%) scale(0.75);
    opacity: 0.35;
    visibility: visible;
    z-index: 2;
}

/* Slot 2: Left (Medium) */
.carousel-slide.card-left {
    transform: translate(-50%, -50%) translateX(-110%) scale(0.9);
    opacity: 0.7;
    visibility: visible;
    z-index: 4;
}

/* Slot 3: Center (Active & Largest) */
.carousel-slide.card-center {
    transform: translate(-50%, -50%) translateX(0) scale(1.15);
    opacity: 1;
    visibility: visible;
    z-index: 6;
}

.carousel-slide.card-center .premium-service-card {
    box-shadow: 
        0 25px 50px -15px rgba(79, 70, 229, 0.35),
        0 0 35px -10px rgba(14, 165, 233, 0.4), 
        var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.5);
}

.carousel-slide.card-center .premium-service-card::before {
    opacity: 1;
    background: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
}

.carousel-slide.card-center .premium-service-card::after {
    width: 35%;
}

/* Slot 4: Right (Medium) */
.carousel-slide.card-right {
    transform: translate(-50%, -50%) translateX(110%) scale(0.9);
    opacity: 0.7;
    visibility: visible;
    z-index: 4;
}

/* Slot 5: Far Right (Smallest) */
.carousel-slide.card-far-right {
    transform: translate(-50%, -50%) translateX(220%) scale(0.75);
    opacity: 0.35;
    visibility: visible;
    z-index: 2;
}

/* Sleek Circular Glass Arrow Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--shadow-lg);
    z-index: 20;
}

.carousel-control.prev {
    left: -3rem;
}

.carousel-control.next {
    right: -3rem;
}

.carousel-control:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.carousel-control:active {
    transform: translateY(-50%) scale(0.95);
}

/* Adaptive controls for tighter viewports */
@media (max-width: 1400px) {
    .carousel-control.prev {
        left: -1rem;
    }
    .carousel-control.next {
        right: -1rem;
    }
}

@media (max-width: 768px) {
    .carousel-control {
        width: 48px;
        height: 48px;
    }
}

/* Pagination Dot Indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3.5rem;
    position: relative;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-dot.active {
    width: 32px;
    border-radius: 100px;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}

[data-theme="light"] .carousel-dot {
    background: rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .carousel-dot.active {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}

/* =============================================
   RESPONSIVE SLIDER OVERRIDES FOR TIGHT VIEWPORTS
   ============================================= */

@media (max-width: 1200px) {
    /* Hide Far Left and Far Right cards on tablet — show exactly 3 cards */
    .carousel-slide.card-far-left,
    .carousel-slide.card-far-right {
        opacity: 0;
        visibility: hidden;
    }
    
    .carousel-slide.card-left {
        transform: translate(-50%, -50%) translateX(-105%) scale(0.85);
    }
    
    .carousel-slide.card-right {
        transform: translate(-50%, -50%) translateX(105%) scale(0.85);
    }
    
    .carousel-slide.card-center {
        transform: translate(-50%, -50%) translateX(0) scale(1.08);
    }
}

@media (max-width: 768px) {
    .premium-carousel-track {
        height: 480px;
    }
    
    .carousel-slide {
        width: 290px;
        height: 410px;
    }
}

@media (max-width: 640px) {
    /* Hide all outer cards on mobile — show only 1 centered card */
    .carousel-slide.card-left,
    .carousel-slide.card-right,
    .carousel-slide.card-far-left,
    .carousel-slide.card-far-right {
        opacity: 0;
        visibility: hidden;
    }
    
    .carousel-slide.card-center {
        transform: translate(-50%, -50%) scale(1);
        width: 85vw;
        max-width: 320px;
    }
}

/* =============================================
   SUB-PAGE SERVICE DETAILS LAYOUT STYLING
   ============================================= */

.detail-header {
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.detail-layout-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 6rem;
    align-items: flex-start;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .detail-layout-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.detail-content {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.detail-content h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.detail-content p {
    margin-bottom: 1.75rem;
}

.detail-content p:first-of-type {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
}

.detail-visual-box {
    position: relative;
    border-radius: 35px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
    background: var(--bg-surface);
}

.detail-visual-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.4) 0%, transparent 60%);
    pointer-events: none;
}

.detail-visual-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.detail-visual-box:hover img {
    transform: scale(1.04);
}

.detail-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

@media (max-width: 640px) {
    .detail-spec-grid {
        grid-template-columns: 1fr;
    }
}

.spec-card {
    padding: 2rem;
    background: rgba(14, 165, 233, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spec-card:hover {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -10px rgba(14, 165, 233, 0.15);
}

.spec-card i {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    width: 54px;
    height: 54px;
    background: rgba(14, 165, 233, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.spec-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.spec-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.back-btn-container {
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 2;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.back-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateX(-4px);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* =============================================
   NEW PREMIUM INTERCONNECTED SERVICE PAGES LAYOUT
   ============================================= */

.service-layout-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 4rem;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.service-detail-section {
    padding-top: 130px !important; /* Safely push the back button and container below the fixed navigation bar */
    overflow: visible !important; /* Crucial: allows position: sticky sidebar to stay constant and scroll with the page */
}

.service-sidebar {
    position: -webkit-sticky; /* Safari support */
    position: sticky;
    top: 120px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--glass-blur);
    z-index: 10;
    max-height: calc(100vh - 160px); /* Fit within viewport on short screens */
    overflow-y: auto; /* Independent scroll if sidebar content exceeds height */
}

/* Custom minimal scrollbar for sidebar */
.service-sidebar::-webkit-scrollbar {
    width: 6px;
}
.service-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.service-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 10px;
}
.service-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--primary);
}

.service-nav-menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-nav-menu li {
    width: 100%;
}

.service-nav-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-nav-menu a i {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    width: 24px;
    text-align: center;
}

.service-nav-menu a:hover {
    background: rgba(14, 165, 233, 0.05);
    color: var(--primary);
    transform: translateX(4px);
}

.service-nav-menu a:hover i {
    color: var(--primary);
}

.service-nav-menu a.active {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border-color: rgba(14, 165, 233, 0.2);
    font-weight: 700;
}

.service-nav-menu a.active i {
    color: var(--primary);
}

.sidebar-cta-card {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
    border: 1px dashed rgba(14, 165, 233, 0.3);
    border-radius: 18px;
    text-align: center;
}

.sidebar-cta-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.sidebar-cta-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Service Main Content Elements */
.service-main-content {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.service-banner-box {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.service-banner-box .banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 0;
}

.service-banner-box .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.5) 60%, rgba(2, 6, 23, 0.2) 100%);
    z-index: 1;
}

.service-banner-box:hover .banner-bg {
    transform: scale(1.05);
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-lead-paragraph {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-weight: 500;
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.service-body-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Bento Style Grid for Capabilities */
.bento-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.bento-cap-card {
    padding: 2.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bento-cap-card:hover {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.03);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -10px rgba(14, 165, 233, 0.15);
}

.bento-cap-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    width: 56px;
    height: 56px;
    background: rgba(14, 165, 233, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.bento-cap-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.bento-cap-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Tech Badges Container */
.tech-badges-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.tech-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    color: var(--primary);
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.05);
    transform: scale(1.05);
}

/* Premium Case Study Card */
.case-study-card {
    position: relative;
    padding: 3rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, rgba(79, 70, 229, 0.02) 100%);
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--glass-blur);
    overflow: hidden;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), #4f46e5);
}

.case-study-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.case-study-badge i {
    font-size: 0.75rem;
}

.case-study-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.cs-content h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cs-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cs-metrics-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.cs-metric-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.cs-metric-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Light Theme overrides for subpage elements */
[data-theme="light"] .service-sidebar {
    background: var(--bg-glass);
}

[data-theme="light"] .bento-cap-card {
    background: var(--bg-surface);
}

[data-theme="light"] .cs-metrics-box {
    background: rgba(15, 23, 42, 0.03);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .service-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-sidebar {
        position: relative;
        top: 0;
        padding: 1.5rem;
    }

    .service-nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .service-nav-menu li {
        width: calc(50% - 0.25rem);
    }
    
    .sidebar-cta-card {
        display: none; /* Hide quick consulting card on mobile/tablet sidebar */
    }
}

@media (max-width: 640px) {
    .service-nav-menu li {
        width: 100%;
    }

    .service-banner-box {
        height: 280px;
        padding: 1.5rem;
    }

    .bento-capabilities-grid {
        grid-template-columns: 1fr;
    }

    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}