/* Custom CSS for Soni Constructions Website */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2C3E50;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cba45d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E05A00;
}

/* Hero Section Enhancements */
.hero-video {
    filter: brightness(0.6) contrast(1.1);
    transition: filter 0.3s ease;
}

.gradient-overlay {
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

/* Enhanced Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float:nth-child(2) {
    animation-delay: 2s;
}

.animate-float:nth-child(3) {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

/* Service Card Enhancements */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.3);
}

/* Button Enhancements */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Navigation Enhancements */
.navbar-scrolled {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* ESG Section Special Styling */
.esg-card {
    position: relative;
    overflow: hidden;
}

.esg-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, currentColor, transparent);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 0, 0.3);
    border-radius: 50%;
    border-top-color: #cba45d;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Enhancements */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
    border-color: #cba45d;
}

/* Construction Industry Specific Styles */
.construction-pattern {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 107, 0, 0.05) 10px,
            rgba(255, 107, 0, 0.05) 20px
        );
}

.hard-hat-icon {
    color: #FFA500;
}

.construction-accent {
    border-left: 4px solid #cba45d;
}

/* Premium Visual Effects */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.glow-effect {
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(255, 107, 0, 0.3); }
    to { box-shadow: 0 0 30px rgba(255, 107, 0, 0.7); }
}

/* Premium Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Parallax Scroll Effect */
.parallax {
    transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Premium Text Effects */
.text-shadow-premium {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Premium Gradient Borders */
.gradient-border {
    position: relative;
    background: white;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #cba45d, #FFA500);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .hero-video {
        object-position: center center;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .animate-float {
        animation: none; /* Disable on mobile for performance */
    }
}

/* Print Styles */
@media print {
    .fixed, .sticky {
        position: static !important;
    }
    
    video, .hero-video {
        display: none !important;
    }
    
    .service-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .gradient-overlay {
        background: rgba(0, 0, 0, 0.8) !important;
    }
    
    .service-card:hover {
        border: 2px solid #E53E3E !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-bounce,
    .service-card,
    .hero-video {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    .service-card {
        background: #2d3748;
        color: #f7fafc;
    }
}

/* Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Indicators */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #E53E3E;
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #E53E3E;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* Performance Optimizations */
.service-card img,
.hero-video {
    will-change: transform;
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(135deg, #E53E3E, #4A5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #E53E3E, #4A5568) 1;
}

/* Animation Delays for Staggered Effects */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Enhanced Navbar Styles */
#navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 62, 62, 0.1);
}

#navbar a:not(.bg-lsc-red) {
    color: #374151 !important;
    font-weight: 500;
}

#navbar a:not(.bg-lsc-red):hover {
    color: #E53E3E !important;
}

#navbar #mobile-menu-btn {
    color: #374151 !important;
}

#navbar #mobile-menu-btn:hover {
    color: #E53E3E !important;
}

/* Hero section specific navbar styling */
.hero-section ~ * #navbar {
    background: rgba(31, 41, 55, 0.9) !important;
}

.hero-section ~ * #navbar a:not(.bg-lsc-red) {
    color: #ffffff !important;
}

.hero-section ~ * #navbar a:not(.bg-lsc-red):hover {
    color: #fde047 !important;
}

.hero-section ~ * #navbar #mobile-menu-btn {
    color: #ffffff !important;
}

.hero-section ~ * #navbar #mobile-menu-btn:hover {
    color: #fde047 !important;
}

/* For pages without hero sections */
body:not(.home-page) #navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body:not(.home-page) #navbar a:not(.bg-lsc-red) {
    color: #374151 !important;
}

body:not(.home-page) #navbar a:not(.bg-lsc-red):hover {
    color: #E53E3E !important;
}

body:not(.home-page) #navbar #mobile-menu-btn {
    color: #374151 !important;
}

body:not(.home-page) #navbar #mobile-menu-btn:hover {
    color: #E53E3E !important;
}

/* Mobile menu styling for non-home pages */
body:not(.home-page) #mobile-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #E5E7EB !important;
}

body:not(.home-page) #mobile-menu a {
    color: #374151 !important;
}

body:not(.home-page) #mobile-menu a:hover {
    color: #E53E3E !important;
}