/* ==========================================================================
   1. Core Design System & Tokens (Minimalist Corporate)
   ========================================================================== */
:root {
    /* Colors */
    --bg-base: #070a0e;
    --hero-bg: #0a0f24;
    --hero-dot: #3b82f6;
    --hero-line: rgba(59, 130, 246, 0.18);
    --bg-surface: #0f1319;
    --bg-surface-hover: #141a22;
    --bg-surface-glass: rgba(7, 10, 14, 0.85);
    --primary: #417890; /* TiFAN brand color */
    --primary-rgb: 65, 120, 144;
    --primary-glow: rgba(65, 120, 144, 0.12);
    --primary-border: rgba(255, 255, 255, 0.04);
    --primary-border-hover: rgba(65, 120, 144, 0.35);
    --text-primary: #e8edf2;
    --text-secondary: #8a9bb0;
    --text-muted: #5a6e85;
    
    /* Fonts */
    --font-family: 'Outfit', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.4);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-margin-top: 80px;
    font-size: 16px;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.lock-scroll {
    overflow: hidden;
}

/* Scrollbar Design */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #17202c;
    border-radius: 4px;
    border: 2px solid var(--bg-base);
    transition: var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

p {
    color: var(--text-secondary);
    font-weight: 300;
}

/* Reusable Components & Utilities */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: left;
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-header .subtitle {
    font-size: 0.725rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.section-header .title {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* Buttons & Interactions */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.8rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid transparent;
    z-index: 2;
}

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

.btn-primary:hover {
    background: #4f8ca8;
    border-color: #4f8ca8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(65, 120, 144, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(65, 120, 144, 0.05);
    transform: translateY(-2px);
}

/* Card (Minimalist Frame) */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--primary-border);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    border-color: var(--primary-border-hover);
    background: var(--bg-surface-hover);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

/* Section Layouts (Uniform Solid Background) */
section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
    background-color: #070a0e;
}

/* ==========================================================================
   2. Opening Preloader Screen (Snappy & No Bar)
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--bg-base);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.65s cubic-bezier(0.85, 0, 0.15, 1), 
                opacity 0.65s cubic-bezier(0.85, 0, 0.15, 1);
}

#preloader.loaded {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.preloader-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(65, 120, 144, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(10px);
}

.preloader-logo {
    width: 150px;
    opacity: 0;
    transform: scale(0.96);
    animation: logoEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-bar-wrap {
    width: 180px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-top: 2rem;
    overflow: hidden;
}

.preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(65, 120, 144, 0.6);
    transition: width 0.15s ease-out;
}

.preloader-label {
    margin-top: 0.75rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    animation: logoEnter 0.4s 0.3s ease forwards;
}

@keyframes logoEnter {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   3. GPU-Accelerated Scroll Reveal System
   ========================================================================== */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
}

.reveal-active {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Slide Up */
.reveal-slide-up {
    transform: translate3d(0, 35px, 0);
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

/* Slide Left */
.reveal-slide-left {
    transform: translate3d(45px, 0, 0);
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

/* Slide Right */
.reveal-slide-right {
    transform: translate3d(-45px, 0, 0);
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

/* Scale Up */
.reveal-scale {
    transform: scale(0.97);
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

/* Cascade Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Staggered Load on Opening (Hero Elements) */
.hero-stagger {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

body.loaded .hero-stagger {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.hero-stagger:nth-child(1) { transition-delay: 0.45s; }
.hero-stagger:nth-child(2) { transition-delay: 0.58s; }
.hero-stagger:nth-child(3) { transition-delay: 0.71s; }
.hero-stagger:nth-child(4) { transition-delay: 0.84s; }
.hero-stagger:nth-child(5) { transition-delay: 0.97s; }

/* ==========================================================================
   4. Sticky Floating Header & Navigation (Translucent Pill Navbar)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 1.5rem 0;
    transition: padding var(--transition-normal);
    pointer-events: none;
}

header.scrolled {
    padding: 0.85rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 19, 25, 0.35); /* highly translucent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px; /* pill shape */
    padding: 0.6rem 2rem;
    margin: 0 auto;
    width: calc(100% - 3rem);
    max-width: 1100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-normal);
    pointer-events: auto; /* enable interactions inside pill */
}

header.scrolled .header-container {
    background: rgba(15, 19, 25, 0.6); /* slightly darker on scroll for contrast */
    border-color: rgba(65, 120, 144, 0.25); /* brand accent steel-blue border */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(65, 120, 144, 0.05);
    padding: 0.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
}

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

header.scrolled .logo img {
    height: 30px;
}

/* Desktop Navigation Links */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    position: relative;
    padding: 0.35rem 0;
    color: var(--text-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Mobile Hamburger Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 38px;
    height: 38px;
    position: relative;
    z-index: 1010;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 1.5px;
    width: 20px;
    background: var(--text-primary);
    left: 9px;
    transition: transform var(--transition-normal), 
                background var(--transition-normal), 
                opacity var(--transition-normal);
}

.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }

.menu-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: var(--primary);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: var(--primary);
}

/* Mobile Slide-in Drawer */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: rgba(15, 19, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.02);
    padding: 6.5rem 2.5rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1005;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.nav-mobile.open {
    right: 0;
}

.nav-mobile .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Back Overlay for Mobile Drawer */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 10, 14, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ==========================================================================
   5. Hero Section (Centered Layout & Active Constellation Mesh)
   ========================================================================== */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
    background-color: var(--hero-bg);
    text-align: center;
    z-index: 1;
}

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

.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(65, 120, 144, 0.06) 0%, transparent 65%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    filter: blur(60px);
    animation: ambientBreath 12s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes ambientBreath {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-48%, -48%) scale(1.15);
        opacity: 1;
    }
}

.hero-container-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 5;
}

.hero-centered-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-tag {
    font-size: 0.725rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-block;
}

.hero-title {
    font-size: clamp(2.2rem, 5.2vw, 3.8rem);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-title span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--text-primary) 20%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

/* Scroll Down */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 1.5rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: var(--transition-fast);
}

.scroll-down:hover {
    color: var(--text-primary);
}

.scroll-down span {
    height: 1px;
    width: 30px;
    background: var(--text-muted);
    display: inline-block;
    transition: var(--transition-fast);
}

.scroll-down:hover span {
    width: 45px;
    background: var(--primary);
}

/* ==========================================================================
   6. About Us Section (Overlapping Reveals)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Pillars */
.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.pillar-card h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.pillar-card p {
    font-size: 0.875rem;
    margin: 0;
}

/* Visual image stack */
.about-visual {
    position: relative;
    height: 440px;
    width: 100%;
}

.about-img-frame {
    position: absolute;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-slow), border-color var(--transition-normal);
}

.about-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%) contrast(1.02);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-img-frame:hover img {
    transform: scale(1.04);
    filter: grayscale(0%) contrast(1);
}

.about-img-frame:hover {
    border-color: var(--primary);
    z-index: 20;
}

.about-img-frame.img-left {
    left: 0;
    top: 0;
    width: 72%;
    height: 280px;
    z-index: 5;
}

.about-img-frame.img-right {
    right: 0;
    bottom: 0;
    width: 72%;
    height: 280px;
    z-index: 10;
}

/* Stat Counter Row */
.about-stats {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 3.5rem;
}

.stat-card {
    text-align: left;
}

.stat-card .number {
    font-size: 3rem;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.stat-card .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ==========================================================================
   7. Services Section (Minimal Clean Cards)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.08);
    color: var(--text-primary);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
}

/* ==========================================================================
   8. Field Expertise Section
   ========================================================================== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-top: 3rem;
}

.expertise-card {
    padding: 2.2rem 1.75rem;
}

.expertise-card-icon {
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.expertise-card h3 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.expertise-card p {
    font-size: 0.85rem;
    line-height: 1.45;
}

/* ==========================================================================
   9. Projects Showcase & Category Filters
   ========================================================================== */
.projects-filter-bar {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0.4rem 0;
    position: relative;
    transition: var(--transition-fast);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition-normal);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--text-primary);
}

.filter-btn.active::after {
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    height: 340px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--primary-border);
    transition: var(--transition-normal);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.85) contrast(1.02);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 10, 14, 0.95) 100%);
    padding: 2.2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-normal);
}

.project-card:hover {
    border-color: var(--primary-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.project-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.project-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.project-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Clients List Outlines (Translucent Carousel Ticker) */
.clients-section {
    border-top: 1px solid rgba(255, 252, 252, 0.03);
    padding-top: 7rem;
}

.clients-ticker {
    position: relative;
    overflow: hidden;
    direction: ltr;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    background: #05070a;
    width: 100%;
}

.clients-ticker::before,
.clients-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 180px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.clients-ticker::before {
    left: 0;
    background: linear-gradient(to right, #070a0e 0%, rgba(7, 10, 14, 0) 100%);
}

.clients-ticker::after {
    right: 0;
    background: linear-gradient(to left, #070a0e 0%, rgba(7, 10, 14, 0) 100%);
}

.clients-track {
    display: flex;
    width: max-content;
    direction: ltr;
    animation: tickerScroll 40s linear infinite;
    will-change: transform;
}

.client-logo {
    flex: 0 0 200px;
    width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: var(--transition-fast);
    user-select: none;
    background: #05070a;
    border-radius: 12px;
    margin: 0 10px;
    background: rgb(255, 255, 255);

}

.client-logo img {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
    background: rgb(255, 255, 255);
}


.client-logo:hover {
    transition: var(--transition-slow);
    transform: translateY(-3px);
}

/* ==========================================================================
   10. Technology Partners (Static Badge Grid)
   ========================================================================== */
#partners {
    padding: 8rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.partner-badge {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-normal);
    user-select: none;
    padding: 1rem;
}

.partner-badge img {
    max-width: 140px;
    max-height: 55px;
    object-fit: contain;
}


.partner-badge:hover {
    color: var(--text-primary);
    border-color: rgba(65, 120, 144, 0.25);
    background: rgba(65, 120, 144, 0.03);
    transform: translateY(-2px);
}

@keyframes tickerScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   11. Contact Us Portal
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    color: var(--primary);
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-item p, .contact-item a {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 400;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Tripoli Radar Map */
.cyber-map {
    width: 100%;
    height: 220px;
    background: #05070a;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-map-grid {
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

.radar-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    background: conic-gradient(from 0deg, rgba(65, 120, 144, 0.1) 0deg, transparent 80deg);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: radarRotation 4.5s linear infinite;
    pointer-events: none;
}

@keyframes radarRotation {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.map-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    pointer-events: none;
}

.map-ring-1 { width: 80px; height: 80px; }
.map-ring-2 { width: 170px; height: 170px; }

.gps-ping {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--primary);
}

.gps-ping::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pingSignal 2s ease-out infinite;
}

@keyframes pingSignal {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

.map-coords {
    position: absolute;
    bottom: 1rem;
    left: 1.25rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.map-label {
    position: absolute;
    top: 35%;
    left: 54%;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-primary);
}

/* Minimal Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 3rem 2.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.925rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.form-label {
    position: absolute;
    left: 0;
    top: 0.7rem;
    color: var(--text-secondary);
    font-size: 0.925rem;
    pointer-events: none;
    transition: var(--transition-fast);
    font-weight: 300;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -0.75rem;
    font-size: 0.725rem;
    color: var(--primary);
    font-weight: 500;
}

textarea.form-input {
    min-height: 70px;
    resize: none;
}

/* ==========================================================================
   12. Footer Section
   ========================================================================== */
footer {
    background: #05070a;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding: 5rem 0 3rem 0;
    position: relative;
    z-index: 10;
}

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

.footer-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
}

.footer-logo img {
    height: 26px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

.footer-about p {
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 360px;
}

.footer-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--primary);
    transform: translate3d(2px, 0, 0);
}

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

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

.footer-badges {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.625rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.badge-item {
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
}

/* ==========================================================================
   13. Interactive Lightbox
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 14, 0.97);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    transform: scale(0.97);
    transition: transform var(--transition-normal);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 75dvh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lightbox-close:hover {
    color: var(--primary);
}

/* ==========================================================================
   14. Submission Success Overlay Toast
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: -420px;
    width: 360px;
    background: var(--bg-surface);
    border: 1px solid var(--primary);
    border-radius: 6px;
    box-shadow: var(--card-shadow-hover);
    padding: 1.25rem 1.5rem;
    z-index: 3000;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.active {
    right: 2rem;
}

.toast-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.toast-content h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.toast-content p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin: 0;
}
/* ==========================================================================
   15. Map Link Hover Animations
   ========================================================================== */
/* Base wrapper setup */
.map-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(65, 120, 144, 0.2); /* Creates a mobile touch ripple effect */
}

/* 1. Text Hover Animation */
.hover-target-text {
    transition: color 0.3s ease;
}

.map-link-wrapper:hover .hover-target-text {
    color: #417890; /* Turns into your requested color */
}

/* 2. Cyber Map Hover Animations */
.cyber-map {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid transparent; /* Gives room for the glowing border edge */
}

/* Map grows big and edges glow on hover */
.map-link-wrapper:hover .cyber-map {
    transform: scale(1.04); /* Makes the radar map turn big */
    border-color: #417890;
    box-shadow: 0 0 20px rgba(65, 120, 144, 0.6), inset 0 0 15px rgba(65, 120, 144, 0.3); /* Glowing edges */
}

/* 3. Mobile Affordance (Making sure mobile users know it's clickable) */
.mobile-tap-hint {
    display: none; /* Hidden on desktop by default */
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(65, 120, 144, 0.85);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    animation: pulseHint 2s infinite;
}

/* Micro-animation to draw the mobile user's eye naturally */
@keyframes pulseHint {
    0% { opacity: 0.6; box-shadow: 0 0 0 0 rgba(65, 120, 144, 0.4); }
    50% { opacity: 1; box-shadow: 0 0 0 6px rgba(65, 120, 144, 0); }
    100% { opacity: 0.6; box-shadow: 0 0 0 0 rgba(65, 120, 144, 0); }
}

/* Only show the hint on touch-screens (Mobile/Tablets) */
@media (max-width: 768px) {
    .mobile-tap-hint {
        display: block;
    }
}
/* Container Layout */
.social-links-container {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Soft divider line */
}

/* Base Style for Social Links */
.social-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
}
/* whatsapp and facbook
/* --- HOVER ANIMATIONS --- */

/* WhatsApp Hover Effect (Vibrant Green & Glow) */
.social-icon-link.whatsapp-style:hover {
    color: #25D366;
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.05);
    transform: translateY(-5px); /* Pops up */
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); /* Glows green */
}

/* Facebook Hover Effect (Brand Blue & Glow) */
.social-icon-link.facebook-style:hover {
    color: #1877F2;
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.05);
    transform: translateY(-5px); /* Pops up */
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.4); /* Glows blue */
}

/* Rotate icon slightly on hover for an extra high-fidelity feel */
.social-icon-link:hover .social-icon {
    transform: scale(1.1) rotate(8deg);
}

/* --- TOOLTIPS (Desktop interactive element) --- */
.social-tooltip {
    position: absolute;
    bottom: -35px;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translateY(-5px);
    white-space: nowrap;
}

.social-icon-link:hover .social-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Tweak - Hide tooltips on touch screens to avoid layout clutter */
@media (max-width: 768px) {
    .social-tooltip {
        display: none !important;
    }
    .social-icon-link {
        -webkit-tap-highlight-color: transparent;
    }
    /* Keep a lighter variant of the hover glow active on mobile tap */
    .social-icon-link.whatsapp-style:active {
        background: rgba(37, 211, 102, 0.2);
    }
    .social-icon-link.facebook-style:active {
        background: rgba(24, 119, 242, 0.2);
    }
}
/* ==========================================================================
   15. Mobile-First Optimization Media Queries (Mobile Specific Cuts)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual-area {
        justify-content: center;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }

    .about-visual {
        height: 380px;
    }

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

    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Compress paddings and margins for quick mobile navigation */
    section {
        padding: 4rem 0;
    }

    header {
        padding: 1.25rem 0;
    }

    #hero {
        height: 100dvh;
        min-height: 100dvh;
        padding: 0;    }

    .hero-grid {
        gap: 2.5rem;
    }

    .hero-visual-card {
        height: 280px;
        max-width: 320px;
    }

    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .section-header {
        margin-bottom: 2.5rem;
        max-width: 100%;
    }

    .section-header .title {
        font-size: 1.75rem;
    }

    /* About Visual: Single visual frame for faster scroll clearance */
    .about-visual {
        height: 240px;
    }

    .about-img-frame.img-left {
        width: 100%;
        height: 240px;
        position: relative;
    }

    /* Hide overlapping visual to minimize screen clutter on phone viewports */
    .about-img-frame.img-right {
        display: none !important;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding-top: 2.5rem;
        margin-top: 2.5rem;
    }

    .stat-card:nth-child(3) {
        grid-column: span 2;
    }

    .stat-card .number {
        font-size: 2.5rem;
    }

    /* Services Grid: High-density 2-column layout on mobile! */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .service-card {
        padding: 1.25rem 1rem;
        border-radius: 6px;
    }

    .service-icon {
        margin-bottom: 0.75rem;
        width: 20px !important;
        height: 20px !important;
    }

    .service-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
    }

    .service-card p {
        font-size: 0.775rem;
        line-height: 1.45;
    }

    /* Expertise Grid: High-density 2-column layout on mobile! */
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 1.75rem;
    }

    .expertise-card {
        padding: 1.25rem 1rem;
        border-radius: 6px;
    }

    .expertise-card-icon {
        margin-bottom: 0.75rem;
        width: 20px !important;
        height: 20px !important;
    }

    .expertise-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .expertise-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    /* Shorter 2-column project cards on mobile grids! */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .project-card {
        height: 170px;
        border-radius: 6px;
    }

    .project-overlay {
        padding: 1rem;
    }

    .project-category {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }

    .project-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }

    .project-card p {
        font-size: 0.725rem;
        line-height: 1.3;
    }

    .clients-section {
        padding-top: 4rem;
    }

    /* Partners Grid: 3-column tiny grid to avoid long scroll columns */
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .partner-badge {
        height: 52px;
        font-size: 0.725rem;
        letter-spacing: 0.02em;
    }

    /* Contact portals layouts */
    .contact-grid {
        gap: 3rem;
    }

    .contact-form {
        padding: 2.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-about {
        grid-column: span 1;
    }

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

@media (max-width: 480px) {
    .about-visual {
        height: 210px;
    }
    .about-img-frame.img-left {
        height: 210px;
    }
    
    /* Smaller outlines for mini devices */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
/* ==========================================================================
   15. High-Specificity Mobile Fixes (Overriding Desktop Rules)
   ========================================================================== */
   @media screen and (max-width: 768px) {
    html body #hero {
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 0 !important;
    }
    /* Prevent overall horizontal scroll leakage */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Forces the section layout to expand organically and adds defensive spacing at the top */
    html body section {
        padding: 7.5rem 0 3.5rem 0 !important;
        height: auto !important; 
        min-height: unset !important;
        overflow: visible !important;
        max-width: 100% !important; /* Prevents sections from extending beyond screen */
        box-sizing: border-box !important;
    }

    /* Pushes your "About Us" and "Who We Are" header completely down past the floating pill navbar */
    html body .section-header {
        margin-top: 1.5rem !important;
        margin-bottom: 2rem !important;
        padding: 0 0.5rem !important;
        box-sizing: border-box !important;
    }

    /* 2. FIX THE REMOVED/MISSING IMAGES */
    /* Destroys the two-column layout grid to stack vertically */
    html body .about-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
        max-width: 100% !important;
    }

    /* Clear any absolute or hidden layout behavior on the wrapper */
    html body .about-visual {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        margin-top: 1.5rem !important;
        height: auto !important; 
        min-height: 1px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    /* Forces BOTH images into view, stacked uniformly like standard clean web elements */
    html body .about-visual .about-img-frame,
    html body .about-visual .about-img-frame.img-left,
    html body .about-visual .about-img-frame.img-right,
    html body .about-visual [class*="img-"] {
        display: block !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important; /* Fixed height for clean mobile presentation boxes */
        transform: none !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        z-index: 1 !important;
        box-sizing: border-box !important;
    }

    /* Retains your layout's clean border-radius frames and ensures crisp fitting */
    html body .about-img-frame img,
    html body .about-visual div img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* 3. OPTIONAL STUCK PILLARS ADJUSTMENT */
    /* Ensures the mini layout grids below the main paragraph text stack gracefully on small screens */
    html body .about-pillars {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        max-width: 100% !important;
    }
} /* Only ONE closing bracket for the media query now */
}

/* ── Fiber VS Copper Nav Button ─────────────────────────────────────────── */
.nav-link-fiber {
    padding: 0.45rem 1.1rem !important;
    border-radius: 100px;
    background: var(--primary);
    color: #fff !important;
    border: 1px solid var(--primary);
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-normal) !important;
}

.nav-link-fiber::after { display: none !important; } /* remove underline animation */

.nav-link-fiber:hover {
    background: #4f8ca8 !important;
    border-color: #4f8ca8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(65, 120, 144, 0.35);
    color: #fff !important;
}

.nav-link-fiber i {
    transition: transform var(--transition-normal);
}

.nav-link-fiber:hover i {
    transform: translate(2px, -2px);
}

/* ==========================================================================
   Scroll Progress Bar & Back to Top Button Styles
   ========================================================================== */

/* Progress Bar Container tracking across screen width */
#scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999; /* Higher than your sticky header */
}

/* Dynamic filled bar line */
#scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary, #007bff); /* Dynamically maps to your site primary accent */
    transition: width 0.1s ease-out;
}

/* Floating Back to Top Interactive Element */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background-color: rgba(20, 20, 20, 0.75);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#back-to-top:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: transparent;
}

/* Class to smoothly transition button state view */
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}
