/* 
 * company-services.css - Enhanced styling for services page with premium dark theme
 * ENHANCED: Better visibility with improved contrast and clearer visual hierarchy
 */

/* =============================================
   ENHANCED DARK THEME VARIABLES
   ============================================= */
:root {
    /* Enhanced contrast colors */
    --dark-bg-primary: #0f0f12;
    --dark-bg-secondary: #1a1a1f;
    --dark-bg-tertiary: #252530;
    --dark-text-primary: #ffffff;
    --dark-text-secondary: #e0e0e0;
    --dark-text-muted: #b0b0b5;
    
    /* Enhanced accent colors */
    --primary-color: #4f7fff;
    --primary-hover: #6b8dff;
    --accent-gold: #ffd700;
    --accent-gold-rgb: 255, 215, 0;
    --success-color: #00ff88;
    --warning-color: #ffb347;
    
    /* Enhanced border and shadow colors */
    --border-light: rgba(255, 255, 255, 0.15);
    --border-lighter: rgba(255, 255, 255, 0.25);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --shadow-darker: rgba(0, 0, 0, 0.7);
    
    /* Gradient backgrounds */
    --card-gradient: linear-gradient(145deg, 
        rgba(30, 30, 40, 0.95), 
        rgba(20, 20, 30, 0.98));
    --card-gradient-hover: linear-gradient(145deg, 
        rgba(40, 40, 55, 0.95), 
        rgba(30, 30, 45, 0.98));
}

/* =============================================
   BASE DARK THEME OVERRIDES
   ============================================= */
body {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

/* =============================================
   SERVICE PAGE SPECIFIC STYLES - ENHANCED
   ============================================= */

/* Hero Section Styling - Enhanced Visibility */
.services-hero {
    background: linear-gradient(
        135deg,
        rgba(15, 15, 20, 0.85) 0%,
        rgba(25, 25, 35, 0.8) 50%,
        rgba(15, 15, 20, 0.85) 100%
    ), url('../images/slider/luxury-beach-sri-lanka.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 200px 0 120px;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 20, 0.7) 0%,
        rgba(25, 25, 35, 0.5) 50%,
        rgba(15, 15, 20, 0.8) 100%
    );
    z-index: 1;
}

.services-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10rem;
    background: linear-gradient(to top, var(--dark-bg-primary), transparent);
    z-index: 2;
}

.services-hero h1 {
    position: relative;
    z-index: 3;
    color: #ffffff;
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(79, 127, 255, 0.3);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.services-hero p {
    position: relative;
    z-index: 3;
    color: var(--dark-text-secondary);
    font-size: 1.3rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Enhanced Card Styling */
.card, .service-card {
    background: var(--card-gradient);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 
        0 15px 40px var(--shadow-dark),
        0 5px 15px rgba(79, 127, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    overflow: hidden;
    position: relative;
}

.card::before, .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    z-index: 1;
}

.card:hover, .service-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: var(--card-gradient-hover);
    border-color: var(--border-lighter);
    box-shadow: 
        0 25px 60px var(--shadow-darker),
        0 10px 30px rgba(79, 127, 255, 0.2),
        0 0 40px rgba(var(--accent-gold-rgb), 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card .card-body {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.service-card .card-title {
    color: var(--dark-text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card .card-text {
    color: var(--dark-text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Enhanced Service List Styling */
.service-list, .services-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.service-list li, .services-list li {
    position: relative;
    padding: 1rem 0 1rem 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.service-list li:last-child, .services-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-list li:before, .services-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-gold));
    border-radius: 50%;
    box-shadow: 
        0 0 15px rgba(79, 127, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-list li:hover, .services-list li:hover {
    color: var(--dark-text-primary);
    transform: translateX(8px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.service-list li:hover:before, .services-list li:hover:before {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 
        0 0 20px rgba(79, 127, 255, 0.8),
        0 3px 6px rgba(0, 0, 0, 0.4);
}

/* Enhanced Section Header Styling */
.premium-section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.premium-section-header h2 {
    color: var(--dark-text-primary);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-section-header h2:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(79, 127, 255, 0.4);
}

.premium-section-header p {
    color: var(--dark-text-secondary);
    font-size: 1.3rem;
    font-weight: 500;
    max-width: 700px;
    margin: 2rem auto 0;
    line-height: 1.6;
}

.section-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    margin: 2rem auto;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(79, 127, 255, 0.4);
}

/* Enhanced Glass Effect */
.glass-effect {
    background: var(--card-gradient);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--border-light);
    box-shadow: 
        0 20px 40px var(--shadow-dark),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    z-index: 1;
}

.glass-effect:hover {
    background: var(--card-gradient-hover);
    border-color: var(--border-lighter);
    box-shadow: 
        0 25px 60px var(--shadow-darker),
        0 0 40px rgba(79, 127, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.glass-effect h3 {
    color: var(--dark-text-primary);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.glass-effect p {
    color: var(--dark-text-secondary);
    line-height: 1.6;
}

/* Enhanced Team Card Styling */
.team-card {
    background: var(--card-gradient);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 
        0 15px 40px var(--shadow-dark),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    z-index: 1;
}

.team-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: var(--card-gradient-hover);
    border-color: var(--border-lighter);
    box-shadow: 
        0 25px 60px var(--shadow-darker),
        0 0 40px rgba(var(--accent-gold-rgb), 0.2);
}

.team-img-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 4px solid var(--border-light);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(79, 127, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.team-card:hover .team-img-container {
    transform: scale(1.05);
    border-color: var(--accent-gold);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(var(--accent-gold-rgb), 0.5);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.team-card:hover .team-img {
    transform: scale(1.1);
}

.team-card h3 {
    color: var(--dark-text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.team-card .text-muted {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.team-card .small {
    color: var(--dark-text-secondary);
    line-height: 1.5;
}

/* Enhanced CTA Section */
.bg-primary {
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--primary-hover),
        var(--accent-gold)) !important;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--accent-gold);
}

.bg-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 1;
}

.cta-premium {
    position: relative;
    z-index: 2;
}

.bg-primary h2 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}

.bg-primary p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-contact-info p {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced Button Styling */
.btn-cta-light, .btn-cta-outline {
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-cta-light {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: var(--primary-color);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.4),
        0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-cta-light:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, #ffffff, #ffffff);
    color: var(--accent-gold);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-cta-outline {
    border: 3px solid rgba(255, 255, 255, 0.9);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-cta-outline:hover {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: var(--primary-color);
    border-color: #ffffff;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Enhanced Partners Section */
.partners-row p {
    background: var(--card-gradient);
    border: 2px solid var(--border-light);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    color: var(--dark-text-secondary);
    font-weight: 500;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.partners-row p:hover {
    background: var(--card-gradient-hover);
    border-color: var(--primary-color);
    color: var(--dark-text-primary);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(79, 127, 255, 0.3);
}

/* Enhanced WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(37, 211, 102, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.whatsapp-btn img {
    width: 35px;
    height: 35px;
    filter: brightness(1.1);
}

/* Enhanced Loading States */
.spinner-border.text-primary {
    border-color: var(--primary-color);
    border-right-color: transparent;
    width: 3.5rem;
    height: 3.5rem;
    border-width: 4px;
    animation: spinner-border 1s linear infinite;
}

/* Enhanced Animations */
.animate-in {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.float-element {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Enhanced Image Zoom Effect */
.img-zoom-container {
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid var(--border-light);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.img-zoom-container:hover {
    border-color: var(--primary-color);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(79, 127, 255, 0.3);
}

.img-zoom {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(0.9);
}

.img-zoom:hover {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

/* Responsive Enhancements */
@media (max-width: 1199.98px) {
    .services-hero h1 {
        font-size: 3.5rem;
    }
    .premium-section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .services-hero {
        padding: 160px 0 100px;
    }
    .services-hero h1 {
        font-size: 3rem;
    }
    .card, .service-card {
        margin-bottom: 30px;
    }
    .team-img-container {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 767.98px) {
    .services-hero {
        padding: 140px 0 80px;
        background-attachment: scroll;
    }
    .services-hero h1 {
        font-size: 2.5rem;
    }
    .premium-section-header h2 {
        font-size: 2rem;
    }
    .service-card .card-body {
        padding: 2rem;
    }
    .team-img-container {
        width: 140px;
        height: 140px;
    }
    .btn-cta-light, .btn-cta-outline {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .services-hero {
        padding: 120px 0 70px;
    }
    .services-hero h1 {
        font-size: 2rem;
    }
    .premium-section-header h2 {
        font-size: 1.8rem;
    }
    .service-card .card-body,
    .team-card {
        padding: 1.5rem;
    }
    .whatsapp-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-btn img {
        width: 30px;
        height: 30px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --dark-text-primary: #ffffff;
        --dark-text-secondary: #ffffff;
        --border-light: rgba(255, 255, 255, 0.5);
        --border-lighter: rgba(255, 255, 255, 0.7);
    }
    
    .card, .service-card, .team-card, .glass-effect {
        border-width: 3px;
        border-color: rgba(255, 255, 255, 0.6);
    }
    
    .service-list li:before, .services-list li:before {
        border: 2px solid #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .services-hero {
        background-attachment: scroll;
    }
}

/* Dark mode specific enhancements */
@media (prefers-color-scheme: dark) {
    /* Ensure dark theme is properly applied */
    body {
        background: var(--dark-bg-primary);
        color: var(--dark-text-primary);
    }
    
    /* Enhanced text visibility in dark mode */
    h1, h2, h3, h4, h5, h6 {
        color: var(--dark-text-primary);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    p, li, span {
        color: var(--dark-text-secondary);
    }
    
    /* Enhanced button visibility */
    .btn-primary {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
        border-color: var(--primary-color);
        color: #ffffff;
        box-shadow: 0 8px 20px rgba(79, 127, 255, 0.3);
    }
    
    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-hover), var(--accent-gold));
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(79, 127, 255, 0.4);
    }
}

/* Print styles */
@media print {
    .services-hero {
        background: none;
        color: #000000;
        padding: 2rem 0;
    }
    
    .card, .service-card, .team-card {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .whatsapp-btn {
        display: none;
    }
}

/* Focus states for accessibility */
.card:focus,
.service-card:focus,
.team-card:focus,
.btn:focus,
.btn-cta-light:focus,
.btn-cta-outline:focus {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
    box-shadow: 
        0 0 0 3px var(--accent-gold),
        0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Keyboard navigation enhancements */
.keyboard-navigation .card:focus,
.keyboard-navigation .service-card:focus,
.keyboard-navigation .team-card:focus {
    transform: translateY(-5px) scale(1.02);
}

/* Loading state enhancements */
.loading-skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    height: 20px;
    margin-bottom: 10px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Error state styling */
.error-state {
    background: linear-gradient(135deg, 
        rgba(255, 99, 99, 0.1), 
        rgba(255, 99, 99, 0.05));
    border: 2px solid rgba(255, 99, 99, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: var(--dark-text-primary);
}

.error-state h3 {
    color: #ff6363;
    margin-bottom: 1rem;
}

.error-state p {
    color: var(--dark-text-secondary);
    margin-bottom: 1.5rem;
}

/* Success state styling */
.success-state {
    background: linear-gradient(135deg, 
        rgba(0, 255, 136, 0.1), 
        rgba(0, 255, 136, 0.05));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: var(--dark-text-primary);
}

.success-state h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Enhanced scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg-secondary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-hover));
    border-radius: 6px;
    border: 2px solid var(--dark-bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-hover), var(--accent-gold));
}

/* Selection styling */
::selection {
    background: rgba(79, 127, 255, 0.3);
    color: var(--dark-text-primary);
}

::-moz-selection {
    background: rgba(79, 127, 255, 0.3);
    color: var(--dark-text-primary);
}

/* Additional utility classes for enhanced visibility */
.text-glow {
    text-shadow: 0 0 10px rgba(79, 127, 255, 0.5);
}

.border-glow {
    box-shadow: 0 0 20px rgba(79, 127, 255, 0.3);
}

.bg-glow {
    background: radial-gradient(circle, 
        rgba(79, 127, 255, 0.1) 0%, 
        transparent 70%);
}

/* Enhanced visibility for form elements */
.form-control, .form-select {
    background: var(--dark-bg-tertiary);
    border: 2px solid var(--border-light);
    color: var(--dark-text-primary);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1.05rem;
}

.form-control:focus, .form-select:focus {
    background: var(--dark-bg-secondary);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(79, 127, 255, 0.3);
    color: var(--dark-text-primary);
}

.form-control::placeholder {
    color: var(--dark-text-muted);
    font-size: 1rem;
}

/* Enhanced navbar visibility if present */
.navbar-dark {
    background: linear-gradient(135deg, 
        rgba(15, 15, 20, 0.95), 
        rgba(25, 25, 35, 0.98)) !important;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: var(--dark-text-primary) !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: var(--accent-gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Footer enhancements if present */
.footer, footer {
    background: linear-gradient(135deg, 
        var(--dark-bg-primary), 
        var(--dark-bg-secondary)) !important;
    border-top: 2px solid var(--border-light);
    color: var(--dark-text-secondary);
}

.footer h5, footer h5,
.footer h6, footer h6 {
    color: var(--dark-text-primary);
    font-weight: 700;
}

.footer a, footer a {
    color: var(--dark-text-secondary);
    transition: all 0.3s ease;
}

.footer a:hover, footer a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* End of enhanced dark theme styles */