/**
 * EJFixElectric Custom Stylesheet
 * Incorporates: Glassmorphism, Premium Hover animations, Floaters, and responsive grids.
 */

:root {
    --electric-blue: #0052ff;
    --electric-blue-hover: #003ebd;
    --neon-yellow: #ffbd1b;
    --neon-yellow-hover: #e0a300;
    --dark-grey: #121212;
    --card-dark: #1e1e1e;
    --light-grey: #f8f9fa;
    --body-bg: #ffffff;
    --text-primary: #121212;
    --text-secondary: #555555;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* General Resets */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--body-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-warning {
    color: var(--neon-yellow) !important;
}

/* Preloader Wrapper */
.preloader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Glassmorphism Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 82, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-dark {
    background: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

/* Buttons */
.btn-primary {
    background-color: var(--electric-blue);
    border-color: var(--electric-blue);
    color: #ffffff;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    transition: all 0.2s ease;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--electric-blue-hover);
    border-color: var(--electric-blue-hover);
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--neon-yellow);
    border-color: var(--neon-yellow);
    color: #121212;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    transition: all 0.2s ease;
}
.btn-warning:hover, .btn-warning:focus {
    background-color: var(--neon-yellow-hover);
    border-color: var(--neon-yellow-hover);
    transform: translateY(-2px);
}

/* Navbar active styles */
.navbar-nav .nav-link {
    transition: color 0.2s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--neon-yellow) !important;
}

/* Premium Product Cards & Hover Effects */
.product-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 82, 255, 0.12);
}
.product-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.product-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.product-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

/* Hero Section Banner */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 30%, rgba(0, 82, 255, 0.8) 100%), url('../images/commercial_electrical.jpg') no-repeat center center;
    background-size: cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 5rem 0;
}
.hero-badge {
    background-color: rgba(255, 189, 27, 0.15);
    border: 1px solid var(--neon-yellow);
    color: var(--neon-yellow);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Floating Actions CSS */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 90px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}
.float-whatsapp:hover {
    transform: scale(1.1);
    color: #ffffff;
    background-color: #20ba5a;
}

.float-call {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: var(--electric-blue);
    color: #ffffff;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}
.float-call:hover {
    transform: scale(1.1);
    color: #ffffff;
    background-color: var(--electric-blue-hover);
}

.back-to-top-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 165px;
    right: 30px;
    z-index: 999;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top-btn:hover {
    transform: translateY(-3px);
}

/* Cookie Banner Styling */
.cookie-banner {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.cookie-banner.show-banner {
    opacity: 1;
    transform: translateY(0);
    display: block !important;
}

/* Interactive Accordion Customization */
.accordion-button:not(.collapsed) {
    background-color: rgba(0, 82, 255, 0.08);
    color: var(--electric-blue);
    font-weight: 600;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 82, 255, 0.25);
}

/* Footer Hover Effects */
footer a.hover-warning {
    transition: color 0.2s ease;
}
footer a.hover-warning:hover {
    color: var(--neon-yellow) !important;
}

/* Custom Gallery Filter Layout */
.gallery-item {
    transition: all 0.3s ease;
    cursor: pointer;
}
.gallery-item:hover {
    transform: scale(1.03);
}

/* Stats Counter Grid Styling */
.stats-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
}
.stats-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--electric-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Extra Micro animations utilities */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Forms Design */
.form-control:focus, .form-select:focus {
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 82, 255, 0.18);
}

/* Utilities for layouts */
.bg-light-grey {
    background-color: var(--light-grey);
}
.border-primary-accent {
    border-color: var(--electric-blue) !important;
}
.border-warning-accent {
    border-color: var(--neon-yellow) !important;
}
.text-justify {
    text-align: justify;
}

/* Responsive Custom Adjustments */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 60vh;
        text-align: center;
    }
    .back-to-top-btn {
        bottom: 165px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    .float-whatsapp {
        bottom: 95px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    .float-call {
        bottom: 30px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
}
