/* Custom styles to complement Tailwind CSS */

/* Remove any hover effects from header h1 tags */
h1 {
    transition: none !important;
    cursor: default !important;
}

h1:hover {
    transform: none !important;
    filter: none !important;
    color: inherit !important;
    text-shadow: none !important;
    opacity: 1 !important;
    cursor: default !important;
}

/* Hero section background */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), 
                      url('https://pixabay.com/get/g0b4d946cd1b2970b761e3561d4114c1326d6211459cc0b39e092a6c79abd1a50d2cc86130390168963a828a154ccc53cfde78782589552b50f36157b1b48ae4f_1280.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Enhanced Smooth scrolling and page transitions */
html {
    scroll-behavior: smooth;
}

* {
    scroll-behavior: smooth;
}

body {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0.8;
}

/* Hero Text Slider Styles */
.hero-text-slider {
    position: relative;
    height: auto;
    min-height: 400px;
    overflow: hidden;
}

.hero-text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.hero-text-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.hero-text-slide.exiting {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Slider Indicators */
.hero-text-indicators {
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #dc2626;
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Animation for text content */
.hero-text-slide h1 {
    animation-delay: 0.2s;
}

.hero-text-slide p:first-of-type {
    animation-delay: 0.4s;
}

.hero-text-slide p:last-of-type {
    animation-delay: 0.6s;
}

.hero-text-slide.active h1,
.hero-text-slide.active p {
    animation: slideInFromRight 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Page loading animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Fixed Navigation - Force fixed positioning during scroll */
nav, .navbar-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    width: 100% !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    transform: translateZ(0) !important; /* Force hardware acceleration */
    backface-visibility: hidden !important;
    will-change: transform !important;
}

/* Ensure navigation stays fixed on all devices and browsers */
@media (min-width: 1px) {
    nav, .navbar-fixed {
        position: fixed !important;
    }
}

/* Add adequate body padding to prevent content overlap */
body {
    padding-top: 70px !important; /* Slightly more than nav height for spacing */
}

/* Mobile navigation menu positioning */
#mobile-menu {
    position: fixed !important;
    top: 64px !important; /* Height of nav */
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: white !important;
    border-top: 1px solid #e5e5e5 !important;
}

/* Enhanced Navigation Interactions */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Review Cards Animations */
.review-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

/* Laminate icon with subtle focus effect */
.laminate-focus {
    filter: contrast(1.1) saturate(1.1);
    transition: all 0.3s ease;
}

/* LVT icon with label blur effect */
.lvt-focus {
    filter: contrast(1.15) saturate(1.2) blur(0.3px);
    transition: all 0.3s ease;
}

/* Brands Slider Animation */
.brands-slider-container {
    width: 100%;
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.brands-slider {
    animation: scroll-brands 30s linear infinite;
    width: max-content;
}

.brands-slider:hover {
    animation-play-state: paused;
}

@keyframes scroll-brands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #dc2626;
}

.review-card:nth-child(even) {
    animation: slideInRight 0.6s ease-out;
}

.review-card:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #dc2626 !important;
    font-weight: 600;
}

.nav-link:hover {
    color: #dc2626;
    transform: translateY(-2px);
}

/* Enhanced Service Card Interactions */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: all 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.15);
}

.service-card .service-icon {
    transition: none;
}

.service-card:hover .service-icon {
    transform: none;
}

/* Enhanced Feature Card Interactions */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card .feature-icon {
    transition: none;
}

.feature-card:hover .feature-icon {
    transform: none;
    filter: none;
}

/* Gallery Styling - Clean Static Design with Hover Effects */
.gallery-item {
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Enhanced Button Interactions */
.cta-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::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 ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Enhanced Contact Item Interactions */
.contact-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 16px;
}

.contact-item:hover {
    background: rgba(220, 38, 38, 0.05);
    transform: translateX(8px);
}

.contact-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    background: rgba(220, 38, 38, 0.15);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

/* Enhanced Mobile Menu Animation */
#mobile-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#mobile-menu.show {
    max-height: 400px;
}

.mobile-nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: translateX(8px);
    padding-left: 20px;
}

/* Form Interactions */
input:focus, textarea:focus, select:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
}

input, textarea, select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Loading and Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Pulse Animation for CTAs */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(30, 64, 175, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0);
    }
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Hover Glow Effects */
.glow-on-hover:hover {
    filter: drop-shadow(0 0 15px rgba(220, 38, 38, 0.5));
    transition: filter 0.3s ease;
}

/* Text Animation */
.text-shimmer {
    background: linear-gradient(45deg, #dc2626, #1e40af, #dc2626);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Animation for Icons */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Page Transition Effects */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation for Multiple Elements */
.stagger-animation {
    opacity: 0;
    transform: translateY(30px);
    animation: staggerFadeIn 0.6s ease-out forwards;
}

.stagger-animation:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Print styles */
@media print {
    .fixed,
    nav,
    .cta-button {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card,
    .feature-card {
        border: 2px solid #000;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Logo Styling for Perfect Navigation Fit - Stable and Static */
.nav-logo {
    max-height: 64px;
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    position: static;
    animation: none !important;
    transform: none !important;
    transition: opacity 0.2s ease;
    filter: brightness(1.1) contrast(1.1);
}



/* Ensure no floating animations affect navigation logo */
nav .nav-logo.float {
    animation: none !important;
    transform: none !important;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .nav-logo {
        max-height: 56px;
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        max-height: 48px;
        max-width: 200px;
    }
}

/* Professional color styling */
.accent-gradient {
    background: linear-gradient(135deg, #dc2626, #6b7280);
}

.accent-border {
    border: 2px solid #6b7280;
}

.accent-shadow {
    box-shadow: 0 4px 20px rgba(107, 114, 128, 0.2);
}

.accent-glow:hover {
    filter: drop-shadow(0 0 8px rgba(107, 114, 128, 0.4));
}

/* Professional button styling */
.btn-accent {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
}

/* Professional navy blue accents for key elements */
.professional-accent {
    color: #1e293b;
}

.professional-bg {
    background-color: #f8fafc;
}

.professional-border {
    border-color: #e2e8f0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* This can be extended if dark mode is needed */
}

/* Hero Section Background Slideshow */
.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

/* Responsive hero background for mobile */
@media (max-width: 768px) {
    .hero-bg-slide {
        background-size: cover;
        background-position: center center;
    }
}
