/* Custom Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #1e3a8a;
}

/* Hero Section Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Card Hover Effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gallery Hover Effects */
.gallery-item {
    transition: all 0.3s ease;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-answer {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Button Animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::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: left 0.5s;
}

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

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .fixed-contact-buttons {
        right: 1rem;
        top: 1rem;
    }
}

/* Form Focus States */
input:focus, textarea:focus, select:focus {
    outline: none;
    ring: 2px;
    ring-color: #1e3a8a;
    border-color: transparent;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Shadows */
.shadow-custom {
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.1), 0 4px 6px -2px rgba(30, 58, 138, 0.05);
}

.shadow-custom-lg {
    box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.25);
}

/* Backdrop Blur Support */
.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Contact Button Styles */
.contact-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Section Spacing */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Typography */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Interactive Elements */
.interactive-element {
    cursor: pointer;
    user-select: none;
}

.interactive-element:active {
    transform: scale(0.98);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success States */
.success {
    border-color: #10b981;
    background-color: #ecfdf5;
}

/* Error States */
.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}
/* Vid
eo Background Styles */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Video Background Optimizations */
video {
    /* Ensure video covers the entire container */
    object-fit: cover;
    /* Improve performance on mobile */
    will-change: transform;
}

/* Mobile Video Optimizations */
@media (max-width: 768px) {
    /* On mobile, reduce video quality for better performance */
    video {
        /* Fallback to poster image on very small screens if needed */
        min-width: 100%;
        min-height: 100%;
    }
    
    /* Ensure hero section maintains proper height on mobile */
    #home {
        min-height: 100vh;
    }
}

/* Preload and Performance Optimizations */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-webkit-media-controls-play-button {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Ensure smooth video playback */
video {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

/* Hero Section Video Container */
#home .absolute.inset-0.z-0 {
    overflow: hidden;
}

/* Fallback for browsers that don't support video */
.no-video #home video {
    display: none;
}

.no-video #home .video-fallback {
    display: block;
}

/* Video Loading State */
video {
    background: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
}/* Servi
ces Dropdown Styles */
.service-dropdown-item {
    transform: translateY(0);
    transition: all 0.2s ease;
}

.service-dropdown-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Services Page Styles */
.service-nav-btn {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.service-nav-btn:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
}

.service-nav-btn.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.service-detail {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.service-detail.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

/* Service Card Animations */
.service-detail .bg-white {
    transition: all 0.3s ease;
}

.service-detail .bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Dropdown Animation */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group:hover .absolute {
    animation: dropdownFadeIn 0.3s ease-out;
}

/* Service Navigation Responsive */
@media (max-width: 768px) {
    .service-nav-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .service-detail .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail .relative img {
        margin-bottom: 2rem;
    }
}

/* Professional Hover Effects */
.service-dropdown-item .w-10 {
    transition: all 0.3s ease;
}

.service-dropdown-item:hover .w-10 {
    transform: scale(1.1);
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Service Page Hero Animation */
.service-detail h2 {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature Cards Stagger Animation */
.service-detail .grid > div {
    animation-delay: calc(var(--index, 0) * 0.1s);
}

.service-detail .grid > div:nth-child(1) { --index: 1; }
.service-detail .grid > div:nth-child(2) { --index: 2; }
.service-detail .grid > div:nth-child(3) { --index: 3; }
.service-detail .grid > div:nth-child(4) { --index: 4; }
.service-detail .grid > div:nth-child(5) { --index: 5; }
.service-detail .grid > div:nth-child(6) { --index: 6; }/* Lo
go Styles */
.logo-container {
    display: flex;
    align-items: center;
}

/* Navigation Logo */
nav img[alt="KMJ HOLDINGS"] {
    height: 2.5rem; /* 40px */
    width: auto;
    max-width: none;
    transition: all 0.3s ease;
    filter: brightness(1);
}

/* Logo hover effect */
nav a:hover img[alt="KMJ HOLDINGS"] {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Footer Logo */
footer img[alt="KMJ HOLDINGS"] {
    height: 3rem; /* 48px */
    width: auto;
    max-width: 200px;
    transition: all 0.3s ease;
    filter: brightness(0.9); /* Slightly dimmed for footer */
}

footer img[alt="KMJ HOLDINGS"]:hover {
    filter: brightness(1);
    transform: scale(1.02);
}

/* Responsive Logo Adjustments */
@media (max-width: 768px) {
    /* Mobile Navigation Logo */
    nav img[alt="KMJ HOLDINGS"] {
        height: 2rem; /* 32px on mobile */
    }
    
    /* Mobile Footer Logo */
    footer img[alt="KMJ HOLDINGS"] {
        height: 2.5rem; /* 40px on mobile */
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    nav img[alt="KMJ HOLDINGS"] {
        height: 1.75rem; /* 28px on very small screens */
    }
    
    footer img[alt="KMJ HOLDINGS"] {
        height: 2rem; /* 32px on very small screens */
        max-width: 120px;
    }
}

/* Logo Loading State */
img[alt="KMJ HOLDINGS"] {
    background-color: transparent;
    background-image: linear-gradient(90deg, #f0f0f0 25%, transparent 25%, transparent 50%, #f0f0f0 50%, #f0f0f0 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    animation: loading 1.5s infinite linear;
}

img[alt="KMJ HOLDINGS"]:not([src=""]) {
    background: none;
    animation: none;
}

@keyframes loading {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

/* High DPI Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img[alt="KMJ HOLDINGS"] {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Logo Container Flex Alignment */
.flex-shrink-0 a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Ensure logo doesn't break layout */
img[alt="KMJ HOLDINGS"] {
    object-fit: contain;
    object-position: left center;
}

/* Dark mode compatibility (if needed in future) */
@media (prefers-color-scheme: dark) {
    footer img[alt="KMJ HOLDINGS"] {
        filter: brightness(1.2);
    }
}

/* Print styles */
@media print {
    img[alt="KMJ HOLDINGS"] {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}