/* ========================================
   PREMIUM THEME - Modern Enhancements
   KAYRIAKOU GROUP LIMITED
   ======================================== */

/* Logo visibility toggle - default to light logo */
.logo-dark {
    display: none !important;
}

.logo-light {
    display: block !important;
}

[data-theme="dark"] .logo-light {
    display: none !important;
}

[data-theme="dark"] .logo-dark {
    display: block !important;
}

/* ========================================
   CSS VARIABLES - Theme System
   ======================================== */
:root {
    /* Light Theme (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #eef2f7;
    --text-primary: #1a1d31;
    --text-secondary: #5a6170;
    --text-muted: #8a8f9d;
    --border-color: rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Accent Colors - Modern Gradient Palette */
    --accent-primary: #D80027;
    /* Corporate Red */
    --accent-secondary: #8B0000;
    /* Dark Red */
    --accent-gradient: linear-gradient(135deg, #D80027 0%, #B30000 100%);
    --accent-glow: rgba(216, 0, 39, 0.4);

    /* Premium Gradients */
    --hero-gradient: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(139, 0, 0, 0.85) 100%);
    --card-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(248, 249, 252, 1) 100%);
    --shimmer-gradient: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);

    /* Glass Effect */
    --glass-blur: blur(20px);
    --glass-saturate: saturate(180%);

    /* Animation Timings */
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

    /* Shadows - Layered */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.16), 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

/* ========================================
   DARK MODE
   ======================================== */
[data-theme="dark"] {
    --bg-primary: #0d0f1a;
    --bg-secondary: #151829;
    --bg-tertiary: #1e2236;
    --text-primary: #f0f2f5;
    --text-secondary: #c5c9d6;
    --text-muted: #9ea3b5;
    --border-color: rgba(255, 255, 255, 0.12);
    --card-bg: #1e2236;
    --glass-bg: rgba(26, 29, 49, 0.9);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.4);

    --hero-gradient: linear-gradient(135deg, rgba(13, 15, 26, 0.98) 0%, rgba(198, 6, 80, 0.6) 100%);
    --card-gradient: linear-gradient(180deg, rgba(30, 34, 54, 0) 0%, rgba(26, 29, 49, 1) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ========================================
   DARK MODE - COMPREHENSIVE TEXT FIXES
   ======================================== */

/* Body and General Text */
[data-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #ffffff !important;
}

[data-theme="dark"] p {
    color: #c5c9d6 !important;
}

/* Section Labels */
[data-theme="dark"] .section-label {
    color: var(--accent-primary) !important;
}

/* Section Titles */
[data-theme="dark"] .section-title {
    color: #ffffff !important;
}

[data-theme="dark"] .section-title .highlight {
    color: var(--accent-primary) !important;
}

/* Welcome Section */
[data-theme="dark"] .welcome-section,
[data-theme="dark"] .values-section,
[data-theme="dark"] .locations-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .welcome-content p {
    color: #b8bcc9 !important;
}

[data-theme="dark"] .signature-name {
    color: #ffffff !important;
}

[data-theme="dark"] .floating-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .floating-card p {
    color: #ffffff !important;
}

/* Company Cards */
[data-theme="dark"] .companies-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .company-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .company-content h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .company-content p {
    color: #b8bcc9 !important;
}

[data-theme="dark"] .btn-link {
    color: var(--accent-primary) !important;
}

[data-theme="dark"] .btn-link span {
    color: var(--accent-primary) !important;
}

/* Value Items */
[data-theme="dark"] .value-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .value-item h5,
[data-theme="dark"] .value-content h5 {
    color: #ffffff !important;
}

[data-theme="dark"] .value-item p,
[data-theme="dark"] .value-content p {
    color: #b8bcc9 !important;
}

/* Stats Section */
[data-theme="dark"] .stats-section {
    background: linear-gradient(135deg, #1a1d31 0%, #0d0f1a 100%);
}

[data-theme="dark"] .stat-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .stat-label {
    color: #c5c9d6 !important;
}

[data-theme="dark"] .stats-intro .section-title {
    color: #ffffff !important;
}

/* Location Cards */
[data-theme="dark"] .location-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .location-card h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .location-card ul li a {
    color: #b8bcc9 !important;
}

[data-theme="dark"] .location-card ul li a:hover {
    color: var(--accent-primary) !important;
}

/* Footer */
[data-theme="dark"] .footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-brand p {
    color: #b8bcc9 !important;
}

[data-theme="dark"] .footer-links h4,
[data-theme="dark"] .footer-newsletter h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .footer-links ul li a {
    color: #b8bcc9 !important;
}

[data-theme="dark"] .footer-links ul li a:hover {
    color: var(--accent-primary) !important;
}

[data-theme="dark"] .footer-newsletter p {
    color: #b8bcc9 !important;
}

[data-theme="dark"] .footer-bottom p {
    color: #9ea3b5 !important;
}

[data-theme="dark"] .newsletter-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: #ffffff;
}

[data-theme="dark"] .newsletter-form input::placeholder {
    color: #9ea3b5;
}

/* Navigation in Dark Mode */
[data-theme="dark"] .nav-link {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .dropdown-menu li a {
    color: #b8bcc9 !important;
}

[data-theme="dark"] .dropdown-menu li a:hover {
    color: var(--accent-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Navigation Dark Mode */
@media (max-width: 991px) {
    [data-theme="dark"] .main-nav {
        background: var(--bg-primary);
    }

    [data-theme="dark"] .nav-link {
        border-color: var(--border-color) !important;
    }

    [data-theme="dark"] .dropdown-menu {
        background: var(--bg-secondary);
    }

    [data-theme="dark"] .dropdown-menu li a {
        border-color: rgba(255, 255, 255, 0.05) !important;
    }

    [data-theme="dark"] .mobile-menu-toggle span {
        background: var(--text-primary);
    }
}

/* Section Description */
[data-theme="dark"] .section-desc {
    color: #b8bcc9 !important;
}

/* ========================================
   CANVAS HERO PARTICLES
   ======================================== */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Performance optimization: Reduce repaints */
    will-change: contents;
}

/* ========================================
   FLOATING GEOMETRIC SHAPES
   ======================================== */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 20%;
    border-radius: 30%;
    animation-delay: -10s;
}

/* Diamond shape */
.shape-4 {
    width: 80px;
    height: 80px;
    top: 25%;
    right: 15%;
    border-radius: 0;
    transform: rotate(45deg);
    animation: floatDiamond 15s ease-in-out infinite;
    animation-delay: -3s;
}

/* Small square */
.shape-5 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    right: 25%;
    border-radius: 8px;
    animation: floatSquare 18s ease-in-out infinite;
    animation-delay: -7s;
}

/* Large ring */
.shape-6 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -150px;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.05);
    animation: floatShape 30s ease-in-out infinite;
    animation-delay: -12s;
}

/* Glowing orbs */
.shape-glow {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(198, 6, 80, 0.6) 0%, transparent 70%);
    border: none;
    border-radius: 50%;
    filter: blur(2px);
}

.shape-glow-1 {
    top: 40%;
    left: 10%;
    animation: floatGlow 8s ease-in-out infinite;
}

.shape-glow-2 {
    top: 70%;
    right: 20%;
    width: 30px;
    height: 30px;
    animation: floatGlow 10s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes floatDiamond {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.2;
    }

    50% {
        transform: rotate(45deg) translateY(-20px);
        opacity: 0.5;
    }
}

@keyframes floatSquare {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.25;
    }

    50% {
        transform: translateY(-25px) rotate(90deg);
        opacity: 0.4;
    }
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-15px) scale(1.3);
        opacity: 0.8;
    }
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

/* ========================================
   HERO BADGE
   ======================================== */
.hero-badge {
    display: inline-block;
    margin-bottom: 24px;
}

.badge-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   ENHANCED HERO TITLE
   ======================================== */
.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .title-line {
    display: block;
}

.hero-title .title-line.highlight {
    background: linear-gradient(135deg, #ffffff 0%, #FF1E6C 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 3s ease infinite;
}

@keyframes gradientText {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ========================================
   HERO CTA BUTTONS
   ======================================== */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-glow {
    position: relative;
    overflow: visible;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 0.6;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

/* ========================================
   WELCOME SECTION ENHANCEMENTS
   ======================================== */
.image-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.experience-badge {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    max-width: 200px;
}

.floating-card i {
    color: var(--accent-primary);
    font-size: 20px;
    margin-bottom: 8px;
}

.floating-card p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

[data-theme="dark"] .floating-card {
    background: var(--card-bg);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(198, 6, 80, 0.1);
    border-radius: 6px;
    color: var(--accent-primary);
    font-size: 12px;
}

.content-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 24px 0;
}

.welcome-signature {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.signature-line {
    width: 40px;
    height: 2px;
    background: var(--accent-primary);
}

.signature-name {
    font-weight: 700;
    color: var(--text-primary);
    font-style: italic;
}

/* ========================================
   SECTION HEADER
   ======================================== */
.section-header {
    margin-bottom: 60px;
}

.section-title .highlight {
    color: var(--accent-primary);
    position: relative;
}

/* ========================================
   ENHANCED COMPANY CARDS
   ======================================== */
.company-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s var(--ease-smooth);
    border: 1px solid var(--border-color);
    /* Performance optimization: GPU acceleration */
    will-change: transform;
    transform: translateZ(0);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(198, 6, 80, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.company-card:hover .card-glow {
    opacity: 1;
}

.company-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.image-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    pointer-events: none;
}

.company-icon {
    position: absolute;
    top: -25px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.company-content {
    position: relative;
    padding: 40px 30px 30px;
}

.company-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.company-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ========================================
   VALUE ITEMS ENHANCED
   ======================================== */
.value-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(198, 6, 80, 0.35);
    transition: all 0.3s ease;
}

.value-icon i {
    color: #ffffff !important;
}

.value-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(198, 6, 80, 0.5);
}

.value-content h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.value-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   VALUES IMAGE ENHANCEMENT
   ======================================== */
.image-wrapper {
    position: relative;
}

.image-wrapper img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-primary);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
}

/* ========================================
   STATS SECTION ENHANCED
   ======================================== */
.stats-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

[data-theme="dark"] .stats-section {
    background: linear-gradient(135deg, #1a1d31 0%, #0d0f1a 100%);
}

.stats-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(198, 6, 80, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(198, 6, 80, 0.08) 0%, transparent 30%);
    pointer-events: none;
}

.stats-intro {
    margin-bottom: 60px;
}

.section-label.light {
    color: #1a1a2e !important;
}

.section-label.light .label-icon {
    color: var(--accent-primary) !important;
}

.section-title.light {
    color: #1a1a2e !important;
}

[data-theme="dark"] .section-label.light,
[data-theme="dark"] .section-title.light {
    color: #ffffff !important;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(198, 6, 80, 0.35);
    transition: all 0.3s ease;
}

.stat-icon i {
    color: #ffffff !important;
}

.stat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(198, 6, 80, 0.5);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-suffix {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
    display: inline;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   LOCATION CARDS ENHANCED
   ======================================== */
.location-card {
    position: relative;
    text-align: center;
    padding: 50px 30px 40px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-smooth);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.location-flag {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.location-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    position: relative;
}

.location-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
}

.location-icon i {
    font-size: 32px;
    color: white;
}

.location-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.location-card ul {
    text-align: left;
}

.location-card ul li {
    margin-bottom: 12px;
}

.location-card ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.location-card ul li a i {
    font-size: 10px;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.location-card ul li a:hover {
    color: var(--accent-primary);
}

.location-card ul li a:hover i {
    transform: translateX(4px);
}

/* ========================================
   CTA SECTION ENHANCED
   ======================================== */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: var(--accent-gradient);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.highlight-light {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 8px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-section .btn-primary {
    background: white;
    color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.cta-section .btn-primary:hover {
    background: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-smooth);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.theme-toggle i {
    font-size: 20px;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-smooth);
}

.theme-toggle .fa-moon {
    display: block;
}

.theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: block;
}

/* ========================================
   ANIMATED 3D BACKGROUND EFFECTS
   ======================================== */
.hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 600px 600px at 20% 20%, rgba(216, 0, 39, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 500px 500px at 80% 30%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 400px 400px at 60% 80%, rgba(139, 0, 0, 0.12) 0%, transparent 50%);
    animation: floatingOrbs 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatingOrbs {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(2%, 3%) rotate(2deg);
    }

    50% {
        transform: translate(-1%, 5%) rotate(-1deg);
    }

    75% {
        transform: translate(3%, -2%) rotate(1deg);
    }
}

/* Animated Mesh Gradient Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    background:
        radial-gradient(circle at 10% 20%, rgba(216, 0, 39, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.03) 0%, transparent 40%);
    animation: meshMove 30s ease-in-out infinite;
}

@keyframes meshMove {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%;
    }

    50% {
        background-position: 100% 50%, 0% 50%;
    }
}

/* Particle Field Effect */
.particle-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatUp 15s linear infinite;
    opacity: 0;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 11s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 13s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 15s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 1s;
    animation-duration: 11s;
}

.particle:nth-child(10) {
    left: 95%;
    animation-delay: 3s;
    animation-duration: 16s;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* ========================================
   GLASSMORPHISM - Header
   ======================================== */
.header {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.header.scrolled {
    background: var(--glass-bg) !important;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   ENHANCED BUTTONS
   ======================================== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-out-expo), height 0.6s var(--ease-out-expo);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent-gradient);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: var(--shadow-md), 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 8px 30px var(--accent-glow);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ========================================
   SCROLL ANIMATIONS (AOS-like)
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    /* Performance optimization */
    will-change: opacity, transform;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(5) {
    transition-delay: 0.5s;
}

.animate-on-scroll:nth-child(6) {
    transition-delay: 0.6s;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-slide-left.animated,
.animate-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   MICRO-INTERACTIONS
   ======================================== */
.nav-link,
.btn-link {
    position: relative;
}

.nav-link::after,
.btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover::after,
.btn-link:hover::after {
    width: 100%;
}

.btn-link i,
.location-icon i {
    transition: transform 0.3s var(--ease-bounce);
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* Social icons glow */
.header-social a,
.footer-social a {
    transition: all 0.3s var(--ease-smooth);
}

.header-social a:hover,
.footer-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* ========================================
   ENHANCED HERO SECTION
   ======================================== */
.hero-overlay,
.page-hero-overlay {
    background: var(--hero-gradient) !important;
}

.hero-content,
.page-hero-content {
    animation: fadeInUp 1s var(--ease-out-expo);
    position: relative;
    z-index: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PREMIUM LOADING SKELETON
   ======================================== */
#preloader {
    background: var(--bg-primary);
}

.loader {
    position: relative;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.spinner::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: var(--accent-secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   BACK TO TOP ENHANCED
   ======================================== */
.back-to-top {
    background: var(--primary-color, #D80027);
    border: none;
    box-shadow: 0 4px 15px rgba(216, 0, 39, 0.4);
    transition: all 0.4s var(--ease-smooth);
}

.back-to-top i {
    color: white;
}

.back-to-top:hover {
    background: var(--primary-dark, #8B0000);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(216, 0, 39, 0.5);
}

.back-to-top:hover i {
    color: white;
}

/* ========================================
   SMOOTH PAGE TRANSITIONS
   ======================================== */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.5s var(--ease-smooth), color 0.5s var(--ease-smooth);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .theme-toggle {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 15px;
        /* Added gap for better tap targets */
    }

    .hero-cta .btn {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-badge {
        margin-bottom: 16px;
    }

    .badge-text {
        font-size: 11px;
        padding: 8px 16px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-suffix {
        font-size: 24px;
    }

    .floating-shapes {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .btn-outline {
        width: 100%;
    }
}

/* ========================================
   USER REQUEST overrides & BUG FIXES
   ======================================== */
:root {
    /* Override global gradient variable just in case */
    --hero-gradient: rgba(0, 0, 0, 0.6) !important;
}

/* 1. Fix Horizontal Scroll (Android/Mobile) */
html,
body {
    overflow-x: hidden !important;
    width: 100%;
}

/* 2. Fix Hero Visibility & Layout (Black Overlay) */
html body .hero-overlay,
html body .page-hero-overlay {
    background-color: #000000 !important;
    /* Fallback color */
    background: #000000 !important;
    background-image: none !important;
    opacity: 0.6 !important;
}

/* Ensure parallax image doesn't bleed out (causing un-overlaid strips) */
html body .hero,
html body .page-hero,
html body .company-hero {
    overflow: hidden !important;
    position: relative !important;
}

/* 3. Fix Scroll Indicator Position & Icon */
.scroll-indicator {
    bottom: 20px !important;
    /* Move to bottom to avoid button overlap */
    z-index: 20;
    /* Ensure it stays on top */
}

@media (max-width: 480px) {
    .scroll-indicator {
        bottom: 20% !important;
    }
}

/* Fix mouse icon visibility if it was hidden */
.mouse {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.wheel {
    background-color: #fff !important;
}

/* 4. Fix Footer Logo (Remove white filter) */
.footer-logo {
    filter: none !important;
}

/* 5. Refine Services Grid (Responsive) */
.companies-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 40px !important;
}

.company-card {
    border: 1px solid var(--border-color);
}

.company-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

/* Companies Overview Grid (our-companies.php) */
.companies-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.company-overview-card {
    display: block;
    text-decoration: none;
    background: var(--card-bg, white);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.1));
    transition: all 0.4s ease;
    border: 1px solid var(--border-color, #eee);
}

.company-overview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.company-overview-card .card-image {
    height: 200px;
    overflow: hidden;
}

.company-overview-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.company-overview-card:hover .card-image img {
    transform: scale(1.05);
}

.company-overview-card .card-content {
    padding: 24px;
}

.company-overview-card h4 {
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.company-overview-card p {
    color: var(--text-secondary, #666);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 1024px) {
    .companies-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {
    .companies-overview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================
   COMPANIES SECTION - CSS Grid Layout
   ======================================== */
.companies-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.companies-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.companies-carousel-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.companies-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Company Cards */
.companies-carousel .company-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.companies-carousel .company-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.companies-carousel .card-image {
    height: 200px;
    overflow: hidden;
}

.companies-carousel .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.companies-carousel .company-card:hover .card-image img {
    transform: scale(1.05);
}

.companies-carousel .card-content {
    padding: 25px;
    position: relative;
}

.companies-carousel .card-icon {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.companies-carousel .card-number {
    position: absolute;
    top: 25px;
    right: 25px;
    font-weight: bold;
    opacity: 0.2;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.companies-carousel .company-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.companies-carousel .company-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.companies-carousel .btn-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.companies-carousel .btn-link:hover {
    gap: 12px;
    color: var(--accent-secondary);
}

.companies-carousel .btn-link i {
    transition: transform 0.3s ease;
}

.companies-carousel .btn-link:hover i {
    transform: translateX(4px);
}

/* Dark mode */
[data-theme="dark"] .companies-carousel .company-card {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive - 2 columns on tablet */
@media (max-width: 1200px) {
    .companies-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - 1 column on mobile */
@media (max-width: 768px) {
    .companies-section {
        padding: 60px 0;
    }

    .companies-carousel-wrapper {
        padding: 0 20px;
    }

    .companies-carousel {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ========================================
   FLOATING MAIL BUTTON
   ======================================== */
.mail-float {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4),
        0 8px 40px rgba(118, 75, 162, 0.2);
    z-index: 998;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    animation: mailPulse 2s ease-in-out infinite;
}

.mail-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    z-index: -1;
    animation: mailRing 2s ease-in-out infinite;
}

.mail-float:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5),
        0 12px 50px rgba(118, 75, 162, 0.3);
}

.mail-float i {
    transition: transform 0.3s ease;
}

.mail-float:hover i {
    transform: scale(1.1);
}

.mail-tooltip {
    position: absolute;
    left: 75px;
    background: white;
    color: #333;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.mail-tooltip::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: white;
}

.mail-float:hover .mail-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes mailPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes mailRing {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

[data-theme="dark"] .mail-tooltip {
    background: var(--card-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .mail-tooltip::before {
    border-right-color: var(--card-bg);
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
   ======================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
}

.mobile-nav-item i {
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--accent-primary);
}

.mobile-nav-item.active i,
.mobile-nav-item:hover i {
    transform: translateY(-2px) scale(1.1);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 0 0 3px 3px;
}

.mobile-nav-item.mail-nav {
    color: #667eea;
}

.mobile-nav-item.mail-nav:hover {
    color: #764ba2;
}

[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(13, 15, 26, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Show mobile nav on small screens only */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }

    .mobile-bottom-nav {
        display: block;
    }

    /* Hide floating Mail button on mobile (it's in nav) */
    .mail-float {
        display: none;
    }

    /* Adjust nav items for smaller screens */
    .mobile-nav-item {
        padding: 8px 6px;
        font-size: 11px;
        flex: 1;
        width: auto;
    }

    .mobile-nav-container {
        padding: 0 5px;
        justify-content: space-between;
    }
}

@media (max-width: 360px) {
    .mobile-nav-item span {
        display: none;
    }

    .mobile-nav-item i {
        font-size: 18px;
        margin-bottom: 0;
    }

    .mobile-nav-item.active::before {
        bottom: -8px;
        top: auto;
    }
}

/* Mobile floating buttons - positioned to avoid content overlap */
@media (max-width: 768px) {

    /* Move floating buttons to not overlap with content */
    .back-to-top {
        bottom: 90px;
        right: 15px;
        width: 42px;
        height: 42px;
    }

    .theme-toggle {
        bottom: 145px;
        right: 15px;
        width: 42px;
        height: 42px;
    }

    /* Add padding to footer to prevent overlap with mobile nav */
    .footer {
        padding-bottom: 80px;
    }

    /* Adjust body padding for fixed nav */
    body {
        padding-bottom: 70px;
    }
}

/* Extra small screens - further adjustments */
@media (max-width: 360px) {
    .back-to-top {
        bottom: 75px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .theme-toggle {
        bottom: 120px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .back-to-top i,
    .theme-toggle i {
        font-size: 16px;
    }
}

/* ========================================
   SCROLL PROGRESS INDICATOR
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 1001;
    transition: width 0.1s ease-out;
    /* Performance optimization */
    will-change: width;
    transform: translateZ(0);
}

/* ========================================
   UNIQUE VISUAL ENHANCEMENTS
   ======================================== */
/* Animated gradient border for cards on hover */
.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), #ff6b6b, var(--accent-primary));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGradient 3s ease infinite;
    pointer-events: none;
}

.company-card:hover::before {
    opacity: 1;
}

@keyframes borderGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Glowing dots background pattern */
.glow-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.glow-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(2px);
    animation: glowFloat 8s ease-in-out infinite;
}

.glow-dot:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.glow-dot:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: 1s;
}

.glow-dot:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.glow-dot:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 3s;
}

.glow-dot:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes glowFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 0.6;
    }
}

/* Enhanced card shine effect */
.company-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.company-card:hover::after {
    left: 100%;
}

/* Section divider wave */
.section-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.section-wave .shape-fill {
    fill: var(--bg-primary);
}

/* Cursor glow effect (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .cursor-glow {
        position: fixed;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(216, 0, 39, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        /* Updated in JS to use transform only, removed left/top */
        transition: opacity 0.3s ease;
        opacity: 0;
        /* Performance optimization: GPU acceleration */
        will-change: transform;
        transform: translate(-50%, -50%) translateZ(0);
    }

    body:hover .cursor-glow {
        opacity: 1;
    }
}

/* Magnetic hover for social icons */
.header-social a,
.footer-social a {
    position: relative;
    overflow: hidden;
}

.header-social a::before,
.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.header-social a:hover::before,
.footer-social a:hover::before {
    opacity: 1;
}

.header-social a i,
.footer-social a i {
    position: relative;
    z-index: 1;
}

/* Text gradient animation for headings */
.text-reveal {
    -webkit-text-fill-color: inherit;
    background: none;
}

/* Floating animation for location cards */
.location-card {
    animation: floatCard 6s ease-in-out infinite;
}

.location-card:nth-child(2) {
    animation-delay: -2s;
}

.location-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.location-card:hover {
    animation-play-state: paused;
}

/* ========================================
   LOGO SWITCHING
   ======================================== */
.logo-dark {
    display: none;
}

.logo-light {
    display: block;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

/* Ensure logos are sized correctly */
.logo img,
.footer-logo {
    max-height: 60px;
    width: auto;
}

/* General Section Styles - stick header offset */
section {
    scroll-margin-top: 100px;
}