/**
 * Enhanced Footer styles for SchutzCarr Armored Vehicles theme
 * Featuring tactical UI elements and premium design aesthetics
 */

/* Floating Secure Line Button */
.secure-line-floating {
    position: fixed;
    bottom: calc(var(--spacing-lg) + 70px); /* Moved higher to avoid overlap with Back to Top button */
    right: var(--spacing-lg);
    z-index: 9999; /* Increased to ensure proper stacking with back to top button */
}

.secure-line-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.secure-line-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

.secure-line-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
}

.secure-line-btn:hover::before {
    left: 100%;
}

.secure-line-btn i {
    font-size: 1.5rem;
    margin-right: var(--spacing-xs);
}

/* Enhanced Footer with 3D Elements - Optimized */
.site-footer {
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-base) 100%);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(212, 169, 104, 0.1);
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    will-change: transform; /* Performance optimization */
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-1), transparent);
    opacity: 0.3;
    box-shadow: 0 0 15px rgba(212, 169, 104, 0.3);
    z-index: 1; /* Ensure proper stacking */
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(212, 169, 104, 0.03)" stroke-width="0.5"/></svg>');
    pointer-events: none;
    opacity: 0.5;
    z-index: 0; /* Ensure proper stacking */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 2; /* Ensure content is above decorative elements */
}

/* Ensure all footer sections have the same height */
.footer-contact,
.global-presence,
.trust-indicators {
    display: flex;
    flex-direction: column;
    min-height: 500px; /* Set a fixed minimum height for all sections */
}

/* Tactical Grid Background */
.tactical-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(212, 169, 104, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 169, 104, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
    /* Reduce GPU load by using hardware acceleration only when needed */
    backface-visibility: hidden;
}

/* Enhanced Section Headers with 3D Effect */
.footer-contact h3,
.global-presence h3,
.security-badges h3,
.client-indicators h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    font-family: 'Pragmatica Extended', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 8px 15px 10px 0;
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
    transform-style: preserve-3d;
}

.footer-contact h3::before,
.global-presence h3::before,
.security-badges h3::before,
.client-indicators h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 4px;
    height: 100%;
    background: var(--color-accent-1);
    transform: translateZ(-1px);
    box-shadow: 0 0 10px rgba(212, 169, 104, 0.5);
}

.footer-contact h3::after,
.global-presence h3::after,
.security-badges h3::after,
.client-indicators h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-1), transparent);
    box-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
    animation: headerGlow 3s infinite alternate;
}

@keyframes headerGlow {
    0% {
        opacity: 0.7;
        width: 40px;
    }
    100% {
        opacity: 1;
        width: 70px;
    }
}

/* Enhanced Contact Methods with 3D Effect - Optimized with Accessibility */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    perspective: 1000px;
    flex: 1; /* Take up all available space */
}

.contact-method {
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.8) 0%, rgba(18, 24, 32, 0.9) 100%);
    border-radius: 8px;
    padding: var(--spacing-md);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 169, 104, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 169, 104, 0.05);
    transform-style: preserve-3d;
    transform: translateZ(0);
    backdrop-filter: blur(5px);
    will-change: transform, box-shadow; /* Performance optimization */
    /* Accessibility improvements */
    outline: none;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent-1);
    opacity: 0.7;
    transition: opacity 0.3s ease, width 0.3s ease;
    box-shadow: 0 0 15px rgba(212, 169, 104, 0.5);
    transform: translateZ(1px);
}

.contact-method::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(212, 169, 104, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-method:hover,
.contact-method:focus-within {
    transform: translateY(-5px) translateZ(10px);
    border-color: rgba(212, 169, 104, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(212, 169, 104, 0.2);
    outline: none;
}

.contact-method:hover::before,
.contact-method:focus-within::before {
    opacity: 1;
    width: 6px;
}

.contact-method:hover::after,
.contact-method:focus-within::after {
    opacity: 1;
}

/* Keyboard focus indicator for accessibility */
.contact-method:focus-visible {
    outline: 2px solid var(--color-accent-1);
    outline-offset: 2px;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--color-accent-1);
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-fast);
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
    position: relative;
    z-index: 2;
}

.contact-method:hover i {
    transform: scale(1.1) translateZ(5px);
    color: var(--color-accent-1-light);
}

.contact-method h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    position: relative;
    z-index: 2;
    transition: all var(--transition-fast);
}

.contact-method:hover h4 {
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
    color: #fff;
}

/* Tactical Corner Elements */
.contact-method .tactical-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: var(--color-accent-1);
    opacity: 0.5;
    transition: all var(--transition-medium);
    z-index: 1;
}

.contact-method .tactical-corner.top-left {
    top: 0;
    left: 0;
    border-top: 2px solid;
    border-left: 2px solid;
}

.contact-method .tactical-corner.top-right {
    top: 0;
    right: 0;
    border-top: 2px solid;
    border-right: 2px solid;
}

.contact-method .tactical-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.contact-method .tactical-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

.contact-method:hover .tactical-corner {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    border-width: 2px;
}

/* Enhanced Secure Phone with 3D Effect */
.secure-phone {
    color: var(--color-text-primary);
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(135deg, rgba(212, 169, 104, 0.1) 0%, rgba(212, 169, 104, 0.05) 100%);
    border-radius: 6px;
    transition: all var(--transition-fast);
    border: 1px solid rgba(212, 169, 104, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 169, 104, 0.05);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.secure-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 169, 104, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.secure-phone:hover {
    background: linear-gradient(135deg, rgba(212, 169, 104, 0.15) 0%, rgba(212, 169, 104, 0.1) 100%);
    color: var(--color-accent-1);
    text-decoration: none;
    transform: translateY(-2px) translateZ(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 169, 104, 0.2);
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
}

.secure-phone:hover::before {
    transform: translateX(100%);
}

/* Enhanced Verification Badge with Glow Effect */
.verification-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(18, 140, 126, 0.1) 100%);
    color: #25D366;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid rgba(37, 211, 102, 0.2);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 5px rgba(37, 211, 102, 0.2);
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.verification-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(37, 211, 102, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.verification-badge:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(18, 140, 126, 0.15) 100%);
    border-color: rgba(37, 211, 102, 0.3);
    transform: translateY(-2px) translateZ(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 10px rgba(37, 211, 102, 0.3);
    color: #2edc70;
}

.verification-badge:hover::before {
    opacity: 1;
}

.verification-badge i {
    font-size: 0.9rem;
    margin-right: 8px;
    margin-bottom: 0;
    transition: all var(--transition-fast);
    text-shadow: 0 0 5px rgba(37, 211, 102, 0.3);
}

.verification-badge:hover i {
    transform: scale(1.1) translateZ(5px);
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

/* Enhanced Global Presence with Dynamic Region Buttons */
.global-presence h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.global-network {
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.8) 0%, rgba(18, 24, 32, 0.9) 100%);
    border-radius: 8px;
    padding: var(--spacing-md);
    height: 100%;
    border: 1px solid rgba(212, 169, 104, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 169, 104, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-style: preserve-3d;
    perspective: 1000px;
    flex: 1; /* Take up all available space */
}

.global-network::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-1), transparent);
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
}

.global-network::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(212, 169, 104, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 169, 104, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* Network Introduction */
.network-intro {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(212, 169, 104, 0.1);
    position: relative;
    transform-style: preserve-3d;
}

.network-intro::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent-1), transparent);
    opacity: 0.5;
}

.network-icon {
    margin-right: var(--spacing-md);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.9) 0%, rgba(18, 24, 32, 1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 169, 104, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 169, 104, 0.05);
    position: relative;
    transform: translateZ(5px);
}

.network-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid rgba(212, 169, 104, 0.1);
    opacity: 0.5;
    animation: pulse-slow 3s infinite;
}

@keyframes pulse-slow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.network-icon i {
    font-size: 1.5rem;
    color: var(--color-accent-1);
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.5);
}

.network-text {
    flex: 1;
}

.network-text p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
    font-style: italic;
}

/* Enhanced Operational Regions */
.operational-regions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    perspective: 800px;
    flex: 1; /* Take up remaining space */
    margin-top: auto; /* Push to the bottom */
}

/* Dynamic Region Buttons - Optimized with Accessibility */
.region-button {
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.7) 0%, rgba(18, 24, 32, 0.8) 100%);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 169, 104, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 169, 104, 0.05);
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    cursor: pointer;
    will-change: transform, box-shadow; /* Performance optimization */
    /* Accessibility improvements */
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.region-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 169, 104, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.region-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-1), transparent);
    opacity: 0.3;
    transition: opacity 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}

.region-button:hover,
.region-button:focus {
    transform: translateY(-5px) translateZ(20px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(212, 169, 104, 0.3);
    outline: none;
}

.region-button:hover::before,
.region-button:focus::before {
    opacity: 1;
}

.region-button:hover::after,
.region-button:focus::after {
    opacity: 0.8;
    height: 3px;
    box-shadow: 0 0 10px rgba(212, 169, 104, 0.5);
}

/* Keyboard focus indicator for accessibility */
.region-button:focus-visible {
    outline: 2px solid var(--color-accent-1);
    outline-offset: 2px;
}

.region-icon {
    margin-bottom: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.9) 0%, rgba(18, 24, 32, 1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 169, 104, 0.2);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 169, 104, 0.05);
    transform-style: preserve-3d;
    will-change: transform, box-shadow; /* Performance optimization */
}

.region-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 169, 104, 0.2) 0%, transparent 70%);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.region-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid rgba(212, 169, 104, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease, left 0.3s ease, right 0.3s ease, bottom 0.3s ease;
}

.region-button:hover .region-icon,
.region-button:focus .region-icon {
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.8) 0%, rgba(18, 24, 32, 0.9) 100%);
    transform: translateZ(15px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 169, 104, 0.2);
}

.region-button:hover .region-icon::before,
.region-button:focus .region-icon::before {
    opacity: 0.8;
}

.region-button:hover .region-icon::after,
.region-button:focus .region-icon::after {
    opacity: 1;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-color: rgba(212, 169, 104, 0.2);
    /* Reduce animations for better performance */
    animation: pulse-slow 3s infinite;
}

/* Reduce animation load on mobile devices */
@media (prefers-reduced-motion: reduce) {
    .region-button:hover .region-icon::after,
    .region-button:focus .region-icon::after {
        animation: none;
    }
}

.region-icon i {
    color: var(--color-accent-1);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
    position: relative;
    z-index: 2;
}

.region-button:hover .region-icon i,
.region-button:focus .region-icon i {
    color: var(--color-accent-1-light);
    transform: scale(1.2) translateZ(5px);
    text-shadow: 0 0 15px rgba(212, 169, 104, 0.6);
    /* Optimize animation for performance */
    animation: iconPulse 2s infinite alternate;
}

/* Reduce animation load on mobile devices */
@media (prefers-reduced-motion: reduce) {
    .region-button:hover .region-icon i,
    .region-button:focus .region-icon i {
        animation: none;
    }
}

@keyframes iconPulse {
    0% {
        text-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(212, 169, 104, 0.7);
    }
}

.region-name {
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.region-button:hover .region-name {
    color: var(--color-accent-1);
    transform: translateZ(10px);
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
}

.region-stat {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    background: rgba(212, 169, 104, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 5px;
    opacity: 0.8;
    transform: translateY(0);
}

.region-button:hover .region-stat {
    color: var(--color-accent-1-light);
    transform: translateY(-2px) translateZ(10px);
    background: rgba(212, 169, 104, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

/* Region-specific styles */
.region-button.middle-east .region-icon i {
    color: #E5C894;
}

.region-button.africa .region-icon i {
    color: #D4A968;
}

.region-button.europe .region-icon i {
    color: #C49856;
}

.region-button.north-america .region-icon i {
    color: #B38D50;
}

.region-button.asia .region-icon i {
    color: #A68142;
}

.region-button.south-america .region-icon i {
    color: #97743A;
}

/* Tactical corners for region buttons */
.region-button .tactical-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: var(--color-accent-1);
    opacity: 0.5;
    z-index: 1;
    transition: all 0.3s ease;
}

.region-button .tactical-corner.top-left {
    top: 0;
    left: 0;
    border-top: 2px solid;
    border-left: 2px solid;
}

.region-button .tactical-corner.top-right {
    top: 0;
    right: 0;
    border-top: 2px solid;
    border-right: 2px solid;
}

.region-button .tactical-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.region-button .tactical-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

.region-button:hover .tactical-corner {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    border-width: 2px;
    box-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
}

/* Responsive adjustments for region buttons */
@media (max-width: 768px) {
    .operational-regions {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }

    .region-button {
        min-height: 90px;
        padding: 8px;
    }

    .region-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    .region-icon i {
        font-size: 0.9rem;
    }

    .region-name {
        font-size: 0.8rem;
    }

    .region-stat {
        font-size: 0.7rem;
        padding: 2px 5px;
    }

    .network-intro {
        flex-direction: column;
        text-align: center;
    }

    .network-icon {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .operational-regions {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .region-button {
        min-height: 80px;
        padding: 6px;
    }

    .region-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 6px;
    }

    .region-icon i {
        font-size: 0.8rem;
    }

    .region-name {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }

    .region-stat {
        font-size: 0.65rem;
        padding: 1px 4px;
    }

    .region-button:hover {
        transform: translateY(-2px) translateZ(5px);
    }

    .region-button:hover .region-icon {
        transform: translateZ(5px) scale(1.05);
    }
}

/* Enhanced Trust Indicators with 3D Effect */
.trust-indicators {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    perspective: 1000px;
    flex: 1; /* Take up all available space */
}

.security-badges h3,
.client-indicators h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.client-indicators {
    flex: 1; /* Take up remaining space */
    margin-top: auto; /* Push to the bottom */
    display: flex;
    flex-direction: column;
}

.badge-container {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    justify-content: flex-start;
    perspective: 800px;
}

/* Enhanced Security Badges with 3D Effect */
.security-badge {
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.9) 0%, rgba(18, 24, 32, 1) 100%);
    color: var(--color-accent-1);
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    letter-spacing: 0.05em;
    border: 1px solid rgba(212, 169, 104, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 169, 104, 0.05);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.security-badge i {
    color: var(--color-accent-1);
    font-size: 1rem;
    transition: all var(--transition-fast);
    text-shadow: 0 0 5px rgba(212, 169, 104, 0.3);
    position: relative;
    z-index: 2;
}

.security-badge:hover i {
    transform: scale(1.2) translateZ(5px);
    color: var(--color-accent-1-light);
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.5);
}

.security-badge span {
    position: relative;
    z-index: 2;
    transition: all var(--transition-fast);
}

.security-badge:hover span {
    transform: translateZ(5px);
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
}

.security-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent-1);
    opacity: 0.7;
    box-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
    z-index: 1;
}

.security-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 169, 104, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.security-badge:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(212, 169, 104, 0.3);
    color: var(--color-accent-1-light);
}

.security-badge:hover::after {
    opacity: 1;
}

/* Enhanced Client Types with 3D Effect */
.client-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    perspective: 800px;
    flex: 1; /* Take up remaining space */
    margin-top: auto; /* Push to the bottom */
}

/* Ensure client types in footer display properly */
.client-indicators .client-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.client-type {
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.7) 0%, rgba(18, 24, 32, 0.8) 100%);
    border-radius: 6px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(212, 169, 104, 0.1);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 169, 104, 0.05);
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.client-indicator-pulse {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent-1);
    border-radius: 50%;
    opacity: 0.7;
    box-shadow: 0 0 5px rgba(212, 169, 104, 0.3);
    z-index: 3;
}

.client-indicator-pulse::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-accent-1);
    opacity: 0;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.client-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 169, 104, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.client-type:hover {
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.8) 0%, rgba(18, 24, 32, 0.9) 100%);
    border-color: rgba(212, 169, 104, 0.2);
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 169, 104, 0.2);
}

.client-type:hover::before {
    opacity: 1;
}

.client-type i {
    color: var(--color-accent-1);
    margin-right: var(--spacing-xs);
    transition: all var(--transition-fast);
    text-shadow: 0 0 5px rgba(212, 169, 104, 0.3);
    position: relative;
    z-index: 2;
}

.client-type:hover i {
    transform: scale(1.1) translateZ(5px);
    color: var(--color-accent-1-light);
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.5);
}

.client-type span {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 2;
}

.client-type:hover span {
    color: var(--color-text-primary);
    transform: translateZ(5px);
    text-shadow: 0 0 5px rgba(212, 169, 104, 0.2);
}

/* Confidentiality Section - Full Width Container */
.confidentiality-section {
    position: relative;
    background: linear-gradient(180deg, rgba(18, 24, 32, 0.95) 0%, rgba(26, 32, 40, 0.95) 100%);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    border-top: 1px solid rgba(212, 169, 104, 0.1);
    border-bottom: 1px solid rgba(212, 169, 104, 0.1);
    position: relative;
    overflow: hidden;
}

.confidentiality-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(212, 169, 104, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 169, 104, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Divider with Icon */
.confidentiality-divider {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 169, 104, 0.3) 50%, transparent 100%);
    text-align: center;
    z-index: 2;
}

.divider-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.9) 0%, rgba(18, 24, 32, 1) 100%);
    border-radius: 50%;
    border: 1px solid rgba(212, 169, 104, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(212, 169, 104, 0.1);
    transform: translateY(-50%);
}

.divider-icon i {
    color: var(--color-accent-1);
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.5);
}

/* Enhanced Security Reminder with 3D Effect */
.security-reminder {
    background: linear-gradient(135deg, rgba(26, 32, 40, 0.5) 0%, rgba(18, 24, 32, 0.6) 100%);
    padding: var(--spacing-lg);
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(212, 169, 104, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 169, 104, 0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
    max-width: 800px;
    margin: 0 auto;
}

/* Enhanced Tactical Corners with Optimized Animation */
.tactical-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--color-accent-1);
    opacity: 0.7;
    z-index: 1;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
    will-change: opacity, box-shadow; /* Performance optimization */
}

.tactical-corner.top-left {
    top: 0;
    left: 0;
    border-top: 2px solid;
    border-left: 2px solid;
    animation: glowPulse 4s infinite alternate;
}

.tactical-corner.top-right {
    top: 0;
    right: 0;
    border-top: 2px solid;
    border-right: 2px solid;
    animation: glowPulse 4s infinite alternate 1s;
}

.tactical-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid;
    border-left: 2px solid;
    animation: glowPulse 4s infinite alternate 2s;
}

.tactical-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid;
    border-right: 2px solid;
    animation: glowPulse 4s infinite alternate 3s;
}

/* Reduce animation load on mobile devices */
@media (prefers-reduced-motion: reduce) {
    .tactical-corner {
        animation: none !important;
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 5px rgba(212, 169, 104, 0.3);
    }
    100% {
        opacity: 0.9;
        box-shadow: 0 0 15px rgba(212, 169, 104, 0.5);
    }
}

.security-reminder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-1), transparent);
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(212, 169, 104, 0.3);
}

.security-reminder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(212, 169, 104, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 169, 104, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.security-reminder p {
    color: var(--color-text-primary);
    font-size: 1rem;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.2);
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: all 0.3s ease;
    padding: 0 20px;
}

.security-reminder:hover p {
    transform: translateZ(10px);
    text-shadow: 0 0 15px rgba(212, 169, 104, 0.3);
}

.security-reminder p::before {
    content: '\f023'; /* Lock icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--color-accent-1);
    margin-right: 12px;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(212, 169, 104, 0.5);
    transition: all 0.3s ease;
}

.security-reminder:hover p::before {
    opacity: 1;
    transform: scale(1.1) translateZ(15px);
}

/* Footer Menu */
.footer-menu {
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
}

.footer-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: var(--color-accent-1);
    opacity: 0.5;
}

.footer-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-menu li {
    margin: 0 var(--spacing-sm);
    position: relative;
}

.footer-menu li::after {
    content: '•';
    color: var(--color-accent-1);
    opacity: 0.5;
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.footer-menu li:last-child::after {
    display: none;
}

.footer-menu a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    padding: 5px 0;
    position: relative;
}

.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-1);
    transition: width var(--transition-medium);
}

.footer-menu a:hover {
    color: var(--color-accent-1);
    text-decoration: none;
}

.footer-menu a:hover::after {
    width: 100%;
}

/* Footer Logo and Copyright */
.site-info {
    border-top: 1px solid rgba(212, 169, 104, 0.05);
    padding: var(--spacing-md) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.site-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-1), transparent);
    opacity: 0.3;
}

.footer-logo {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--color-accent-1);
    opacity: 0.5;
}

.schutzcarr-logo-footer {
    max-width: 180px;
    height: auto;
    opacity: 0.9;
    transition: all var(--transition-fast);
    filter: drop-shadow(0 0 5px rgba(212, 169, 104, 0.2));
}

.schutzcarr-logo-footer:hover {
    opacity: 1;
    transform: scale(1.02);
    filter: drop-shadow(0 0 8px rgba(212, 169, 104, 0.3));
}

.copyright {
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

/* Responsive Styles - Optimized */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }

    .trust-indicators {
        grid-column: span 2;
    }

    .badge-container {
        justify-content: center;
    }

    /* Reduce 3D effects on tablets for better performance */
    .region-button:hover,
    .region-button:focus,
    .contact-method:hover,
    .contact-method:focus-within {
        transform: translateY(-3px) translateZ(5px);
    }
}

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

    .trust-indicators {
        grid-column: span 1;
    }

    .secure-line-floating {
        bottom: calc(var(--spacing-md) + 120px); /* Positioned above back to top button */
        right: var(--spacing-md); /* Keep on right side */
        left: auto; /* Remove left positioning */
    }

    .secure-line-btn span {
        display: none;
    }

    .secure-line-btn i {
        margin-right: 0;
    }
}

/* Additional mobile adjustments for very small screens */
@media (max-width: 480px) {
    .secure-line-floating {
        bottom: calc(var(--spacing-sm) + 110px); /* Positioned above back to top button on very small screens */
        right: var(--spacing-sm); /* Keep on right side with smaller spacing */
        left: auto; /* Remove left positioning */
    }

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

    .badge-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .security-badge {
        margin-bottom: var(--spacing-xs);
    }

    /* Confidentiality section responsive adjustments */
    .confidentiality-section {
        padding: var(--spacing-lg) 0;
        margin-top: var(--spacing-md);
    }

    .security-reminder {
        padding: var(--spacing-md);
    }

    .security-reminder p {
        font-size: 0.9rem;
    }

    /* Further reduce 3D effects on mobile for better performance */
    .contact-method,
    .region-button,
    .security-badge,
    .client-type {
        transform: none !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .contact-method:hover,
    .contact-method:focus-within,
    .region-button:hover,
    .region-button:focus {
        transform: translateY(-2px) !important;
    }

    /* Optimize animations for mobile */
    .region-icon i,
    .contact-method i,
    .security-badge i,
    .client-type i {
        animation: none !important;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding-top: var(--spacing-lg);
    }

    .client-indicators .client-types {
        grid-template-columns: 1fr;
    }

    .footer-content {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }

    /* Confidentiality section small screen adjustments */
    .confidentiality-section {
        padding: var(--spacing-md) 0;
        margin-top: var(--spacing-sm);
    }

    .divider-icon {
        width: 30px;
        height: 30px;
    }

    .divider-icon i {
        font-size: 0.8rem;
    }

    .security-reminder {
        padding: var(--spacing-sm);
    }

    .security-reminder p {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .footer-menu ul {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .footer-menu li {
        margin: 0;
    }

    .footer-menu li::after {
        display: none;
    }

    /* Simplify animations for small screens */
    .tactical-corner {
        width: 15px;
        height: 15px;
        animation: none !important;
    }

    .region-button .tactical-corner,
    .contact-method .tactical-corner,
    .security-reminder .tactical-corner {
        opacity: 0.5;
    }

    .region-button:hover .tactical-corner,
    .region-button:focus .tactical-corner,
    .contact-method:hover .tactical-corner,
    .contact-method:focus-within .tactical-corner,
    .security-reminder:hover .tactical-corner {
        width: 15px;
        height: 15px;
    }
}
