/* =================================================
   ADELIVIA CLEANING SERVICES - MASTER STYLESHEET
   This file contains ALL custom styles
   ================================================= */

/* ===== CRITICAL: RESET ALL DEFAULTS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ===== CRITICAL: PAGE LAYOUT ===== */
.page {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    flex: 1 !important;
}

.page > header {
    /* Header is now floating, doesn't take up layout space */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    /* Explicitly remove any background */
    background: none !important;
    background-color: transparent !important;
    /* expose header height to CSS so other elements can align to it */
    --header-height: 100px; /* default for large screens */
}

/* override header height for different breakpoints so mobile can position elements relative to it */
@media (max-width: 1199px) and (min-width: 768px) {
    .page > header { --header-height: 80px; }
}

@media (max-width: 767px) {
    .page > header { --header-height: 60px; }
}

@media (max-width: 576px) {
    .page > header { --header-height: 56px; }
}

.page > main {
    flex: 1 0 auto !important;
    /* Remove margin-top since header is floating */
    margin-top: 0 !important;
}

.page > footer {
    flex: 0 0 auto !important;
    margin-top: auto !important;
}

/* ===== BRAND COLORS ===== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* ===== NAVIGATION ===== */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-logo {
    height: 100px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
    /* Add drop shadow for better visibility on transparent background */
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.5));
}

.navbar-logo:hover {
    opacity: 0.9;
    filter: drop-shadow(1px 1px 5px rgba(0, 0, 0, 0.7));
}

/* RESPONSIVE FIX: Reduce logo size ONLY for lg and md screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .navbar-logo {
        height: 70px; /* Smaller on lg/md tablets */
    }
}

/* Mobile responsiveness for navbar logo */
@media (max-width: 767px) {
    .navbar-logo {
        height: 50px; /* Better for mobile visibility */
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 40px;
    }
}

/* Floating Navbar Styles */
.navbar-floating {
    background: transparent !important;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    padding: 0; 
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar-floating .navbar-nav .nav-link {
    color: white !important;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /* Make text 1.2x bigger */
    font-size: 1.25rem;
}

/* RESPONSIVE FIX: Reduce nav link size ONLY for lg and md screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .navbar-floating .navbar-nav .nav-link {
        font-size: 1rem; /* Normal size on lg/md tablets */
    }
}

.navbar-floating .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    /* Make toggler bigger to match larger text */
    font-size: 1.25rem;
}

/* RESPONSIVE FIX: Reduce toggler size ONLY for lg and md screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .navbar-floating .navbar-toggler {
        font-size: 1rem; /* Normal size on lg/md tablets */
    }
}

.navbar-floating .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-floating .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    /* Make toggler icon larger */
    width: 1.5em;
    height: 1.5em;
}

/* RESPONSIVE FIX: Reduce toggler icon size ONLY for lg and md screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .navbar-floating .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
}

/* CTA Button in Navbar */
.navbar-floating .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    /* Make CTA button text larger to match */
    font-size: 1.25rem;
}

/* RESPONSIVE FIX: Reduce CTA button size ONLY for lg and md screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .navbar-floating .btn-primary {
        font-size: 1rem; /* Normal size on lg/md tablets */
    }
}

.navbar-floating.scrolled {
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Screen reader only utility class */
.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;
}

/* Main Content Adjustment */
.main-content {
    /* Remove top padding since navbar is now floating */
    padding-top: 0;
}

/* ===== CARDS ===== */
.services-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== BUTTONS ===== */
.btn-primary {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.btn-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* RESPONSIVE FIX: Reduce large button size ONLY for lg and md screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .btn-lg {
        font-size: 1rem; /* Normal size on lg/md tablets */
    }
}

/* ===== FOOTER ===== */
footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

.footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(100%);
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.9;
}

/* ===== FORMS ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.validation-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 0.5rem;
}

/* ===== BLAZOR ERROR UI ===== */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ===== DEBUGGING: UPDATED FOR FLOATING NAVBAR ===== */
.page > main {
    background-color: #ffffff;
}

.page > footer {
    background-color: #212529;
}

/* ===== OLD HERO SECTION (DEPRECATED) ===== */
/* Legacy hero styles - keeping for reference but overridden by hero-carousel */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 500px;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    overflow: hidden;
    /* Ensure carousel starts at very top, behind floating navbar */
    margin-top: 0;
    padding-top: 0;
}

.hero-carousel .carousel {
    height: 100vh;
    min-height: 600px;
}

.hero-carousel .carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-carousel .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-carousel .carousel-caption {
    position: static;
    padding: 0;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    /* Add top padding to account for floating navbar */
    padding-top: 100px;
}

/* RESPONSIVE FIX: Reduce caption padding ONLY for lg and md screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .hero-carousel .carousel-caption {
        padding-top: 80px; /* Less padding on lg/md tablets */
    }
}

.hero-carousel .hero-content {
    max-width: 100%;
}

.hero-carousel .hero-content h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero-carousel .hero-content p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    font-size: 1.25rem;
}

/* RESPONSIVE FIX: Reduce hero paragraph size ONLY for lg and md screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .hero-carousel .hero-content p {
        font-size: 1rem; /* Normal size on lg/md tablets */
    }
}

.hero-carousel .hero-cta .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* RESPONSIVE FIX: Reduce commercial hero button size ONLY for lg and md screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .commercial-hero .hero-cta .btn {
        font-size: 1rem; /* Normal size on lg/md tablets */
    }
}

.hero-carousel .hero-badges {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
}

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 80px;
    height: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 3;
}

/* RESPONSIVE FIX: Reduce carousel controls size ONLY for lg and md screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 65px;
        height: 65px;
    }
}

/* Carousel Indicators */
.hero-carousel .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
    z-index: 3;
}

.hero-carousel .carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

/* RESPONSIVE FIX: Reduce carousel indicators size ONLY for lg and md screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .hero-carousel .carousel-indicators button {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-carousel .carousel {
        height: 100vh;
        min-height: 500px;
    }

    .hero-carousel .carousel-item {
        height: 100vh;
        min-height: 500px;
    }

    .hero-carousel .carousel-caption {
        padding-top: 120px;
    }

    .hero-carousel .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-carousel .hero-content p {
        font-size: 1.1rem;
    }

    .hero-carousel .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 60px;
        height: 60px;
    }

    .hero-carousel .carousel-control-prev {
        left: 15px;
    }

    .hero-carousel .carousel-control-next {
        right: 15px;
    }

    .hero-carousel .hero-badges {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel .carousel-caption {
        padding-top: 140px;
    }

    .hero-carousel .hero-content h1 {
        font-size: 2rem;
    }

    .hero-carousel .hero-content p {
        font-size: 1rem;
    }

    .hero-carousel .hero-badges small {
        display: block;
        text-align: center;
    }
}

/* Mobile Navbar Styles */
@media (max-width: 991.98px) {
    .navbar-floating .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        margin-top: 0.5rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px); 
    }

    .navbar-floating .navbar-nav {
        gap: 0.25rem;
    }

    .navbar-floating .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
        color: white !important;
        /* Maintain larger text on mobile */
        font-size: 1.5rem;
    }

    .navbar-floating .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }

    .navbar-floating .btn-primary {
        width: 100%;
        margin-top: 0.5rem;
        /* Maintain larger button text on mobile */
        font-size: 1.25rem;
        padding: 0.75rem 1.5rem;
    }

    .navbar-floating .navbar-toggler {
        /* Ensure toggler is appropriately sized on mobile */
        font-size: 1.25rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Very small screen adjustments */
@media (max-width: 480px) {
    .navbar-floating .navbar-nav .nav-link {
        /* Slightly reduce text on very small screens for better fit */
        font-size: 1.3rem;
    }
    
    .navbar-floating .btn-primary {
        font-size: 1.1rem;
    }
}

/* ===== STYLISH SERVICES SECTION ===== */
.services-section-stylish {
    position: relative;
    overflow: hidden;
    min-height: 800px; /* Reverted from 1000px back to 800px */
}

/* Background Image Layer */
.services-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/commercial-cleaning-adelivia.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

/* Diagonal Overlay Effects */
.services-diagonal-overlay {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 120%;
    height: 120%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 35%,
        transparent 50%,
        transparent 65%,
        rgba(255, 255, 255, 0.98) 100%
    );
    z-index: 2;
    transform: rotate(-8deg);
}

.services-diagonal-overlay-secondary {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        -45deg,
        transparent 0%,
        transparent 15%,
        rgba(13, 110, 253, 0.05) 25%,
        rgba(13, 110,253, 0.1) 35%,
        rgba(13, 110, 253, 0.05) 45%,
        transparent 55%,
        transparent 100%
    );
    z-index: 3;
}

/* Content Wrapper - Zero Transparency */
.services-content-wrapper {
    position: relative;
    z-index: 4;
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: none;
    padding: 3rem 0;
}

/* Enhanced Service Cards */
.services-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 20px !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05) !important;
}

.services-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 5px 20px rgba(13, 110, 253, 0.1) !important;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.services-card .card-img-top {
    transition: all 0.4s ease;
    border-radius: 15px 15px 0 0 !important;
}

.services-card:hover .card-img-top {
    transform: scale(1.08);
}

.services-card .card-body {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.services-card .card-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.services-card:hover .card-title {
    color: #0d6efd;
}

.services-card .card-text {
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 0.95rem;
}

.services-card .btn {
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.services-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

/* Section Headers in Stylish Section */
.services-section-stylish h2 {
    color: #2c3e50;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.services-section-stylish .lead {
    color: #5a6c7d;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* ===== STYLISH WHO WE HELP SECTION ===== */
.customers-section {
    position: relative;
    overflow: hidden;
    min-height: 800px;
    background: #f8f9fa !important;
    display: flex;
    align-items: center;
}

.customers-section .container {
    width: 100%;
}

.customers-section h2 {
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.customers-section .lead {
    color: #495057;
}

.customers-section .col-md-4 > div {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 2rem;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.customers-section .col-md-4 > div:hover {
    transform: translateY(-12px) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(13, 110, 253, 0.3);
}

.customers-section .bi {
    transition: all 0.3s ease;
}

.customers-section .col-md-4 > div:hover .bi {
    transform: scale(1.1) rotate(-2deg);
}

/* ===== STYLISH WHY CHOOSE US SECTION ===== */
.why-choose-us {
    position: relative;
    overflow: hidden;
    min-height: 800px;
    background: #ffffff;
    display: flex;
    align-items: center;
}

/* Circular Crop Pattern */
.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/end-of-tenancy-adelivia.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

/* Circular Overlays */
.why-choose-us::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 30%,
        transparent 45%,
        transparent 60%,
        rgba(255, 255, 255, 0.9) 75%,
        rgba(255, 255, 255, 0.95) 100%
    );
    z-index: 2;
}

.why-choose-us .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.why-choose-us h2 {
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.why-choose-us .lead {
    color: #495057;
}

.why-choose-us .col-md-6 > div {
    background: rgba(255, 255, 255, 0.92);
    padding: 2.5rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.7);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.why-choose-us .col-md-6 > div:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(25, 135, 84, 0.4);
    border-radius: 30px;
}

.why-choose-us .bi {
    transition: all 0.4s ease;
}

.why-choose-us .col-md-6 > div:hover .bi {
    transform: scale(1.15) rotateY(10deg);
}

/* ===== STYLISH SERVICE AREA SECTION ===== */
.service-area {
    position: relative;
    overflow: hidden;
    min-height: 800px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
}

/* Triangular Crop Effect */
.service-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(248, 249, 250, 0.9) 0%,
        rgba(248, 249, 250, 0.95) 20%,
        transparent 35%,
        transparent 50%,
        rgba(248, 249, 250, 0.95) 65%,
        rgba(248, 249, 250, 0.9) 100%
    ),
    linear-gradient(
        -45deg,
        rgba(233, 236, 239, 0.8) 0%,
        transparent 30%,
        transparent 70%,
        rgba(233, 236,239, 0.8) 100%
    );
    z-index: 2;
}

.service-area .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.service-area h2 {
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-area .lead {
    color: #495057;
}

.service-area .col-lg-8 > div {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2.5rem;
    border-radius: 0;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.service-area .col-lg-8 > div:hover {
    transform: translateY(-10px);
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(13, 110, 253, 0.4);
}

.service-area p {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Adjustments for New Stylish Sections */
@media (max-width: 768px) {
    .customers-section,
    .why-choose-us,
    .service-area {
        min-height: auto;
        padding: 3rem 0 !important;
    }
    
    .customers-section::after,
    .why-choose-us::after,
    .service-area::after {
        transform: rotate(5deg);
    }
    
    .customers-section .col-md-4 > div,
    .why-choose-us .col-md-6 > div {
        margin-bottom: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .service-area .col-lg-8 > div {
        clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
        padding: 2rem 1.5rem;
    }
    
    .service-area .col-lg-8 > div:hover {
        clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
    }
}

@media (max-width: 576px) {
    .why-choose-us .col-md-6 > div {
        border-radius: 25px;
    }
    
    .why-choose-us .col-md-6 > div:hover {
        border-radius: 20px;
        transform: translateY(-8px) scale(1.02);
    }
    
    .service-area .col-lg-8 > div {
        clip-path: none;
        border-radius: 15px;
    }
    
    .service-area .col-lg-8 > div:hover {
        clip-path: none;
        border-radius: 10px;
    }
}

/* ===== FLOATING ASIDE CONTACT BAR ===== */
.floating-contact-aside {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1020;
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
}

.floating-contact-aside .contact-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.floating-contact-aside .contact-item {
    position: relative;
    background: transparent; /* Completely transparent at rest */
    border: none; /* No border at rest */
    border-radius: 0 50px 50px 0;
    margin-bottom: 2px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: none; /* No blur at rest */
    box-shadow: none; /* No shadow at rest */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
}

.floating-contact-aside .contact-item:hover {
    width: 400px;
    border: none; /* No border when expanded */
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3); /* Only shadow when expanded */
    backdrop-filter: blur(10px); /* Only blur when expanded */
}

.floating-contact-aside .contact-item a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    padding: 0;
}

.floating-contact-aside .contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    /* Icons start with their brand colors but thinner shadows */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Reduced shadow thickness */
    background: transparent; /* Explicitly no background */
}

.floating-contact-aside .contact-text {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    white-space: nowrap;
    padding-left: 1rem;
    padding-right: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: white;
}

.floating-contact-aside .contact-item:hover .contact-text {
    opacity: 1;
    transform: translateX(0);
}

.floating-contact-aside .contact-item:hover .contact-icon {
    transform: scale(1.1);
    color: white; /* Icon turns white when expanded */
}

/* Background color animations - 5 second slow reveal */
.floating-contact-aside .contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.95); /* Default background */
    opacity: 0;
    transition: opacity 5s ease; /* 5 second slow background reveal */
    z-index: -1;
    border-radius: 0 50px 50px 0; /* Match parent border radius */
}

.floating-contact-aside .contact-item:hover::before {
    opacity: 1;
}

/* Icon color changes during expansion - fast transition */
.floating-contact-aside .contact-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: rgba(13, 110, 253, 0.2); /* Default icon background */
    opacity: 0;
    transition: opacity 0.4s ease; /* Fast icon background reveal */
    border-radius: 0 50px 50px 0;
    z-index: -1;
}

.floating-contact-aside .contact-item:hover::after {
    opacity: 1;
}

/* Different colors for different contact types */
.floating-contact-aside .contact-item.phone .contact-icon {
    color: rgba(25, 135, 84, 0.8); /* Green color at rest */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Thinner shadow */
}

.floating-contact-aside .contact-item.phone::before {
    background: rgba(25, 135, 84, 0.95);
}

.floating-contact-aside .contact-item.phone::after {
    background: rgba(25, 135, 84, 0.2);
}

.floating-contact-aside .contact-item.email .contact-icon {
    color: rgba(255, 193, 7, 0.9); /* Yellow color at rest (was quote color) */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Thinner shadow */
}

.floating-contact-aside .contact-item.email::before {
    background: rgba(255, 193, 7, 0.95); /* Yellow background */
}

.floating-contact-aside .contact-item.email::after {
    background: rgba(255, 193, 7, 0.2); /* Light yellow background for icon */
}

.floating-contact-aside .contact-item.email:hover .contact-text,
.floating-contact-aside .contact-item.email:hover .contact-icon {
    color: #212529; /* Dark text on yellow background when fully expanded */
}

/* Social Media Icons */
.floating-contact-aside .contact-item.facebook .contact-icon {
    color: rgba(24, 119, 242, 0.8); /* Facebook blue at rest */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Thinner shadow */
}

.floating-contact-aside .contact-item.facebook::before {
    background: rgba(24, 119, 242, 0.95);
}

.floating-contact-aside .contact-item.facebook::after {
    background: rgba(24, 119, 242, 0.2);
}

.floating-contact-aside .contact-item.instagram .contact-icon {
    color: rgba(240, 148, 51, 0.8); /* Instagram orange at rest */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Thinner shadow */
}

.floating-contact-aside .contact-item.instagram::before {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.floating-contact-aside .contact-item.instagram::after {
    background: rgba(240, 148, 51, 0.2); /* Orange background for icon */
}

.floating-contact-aside .contact-item.linkedin .contact-icon {
    color: rgba(0, 119, 181, 0.8); /* LinkedIn blue at rest */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Thinner shadow */
}

.floating-contact-aside .contact-item.linkedin::before {
    background: rgba(0, 119, 181, 0.95);
}

.floating-contact-aside .contact-item.linkedin::after {
    background: rgba(0, 119, 181, 0.2);
}

.floating-contact-aside .contact-item.youtube .contact-icon {
    color: rgba(255, 0, 0, 0.8); /* YouTube red at rest */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Thinner shadow */
}

.floating-contact-aside .contact-item.youtube::before {
    background: rgba(255, 0, 0, 0.95); /* YouTube red background */
}

.floating-contact-aside .contact-item.youtube::after {
    background: rgba(255, 0, 0, 0.2); /* Light red background for icon */
}

/* Hide on very small screens */
@media (max-width: 991.98px) {
    .floating-contact-aside {
        left: -5px;
    }
    
    .floating-contact-aside .contact-item {
        width: 50px;
        height: 50px;
    }
    
    .floating-contact-aside .contact-item:hover {
        width: 220px;
    }
    
    .floating-contact-aside .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .floating-contact-aside .contact-text {
        font-size: 1rem;
        padding-left: 0.75rem;
        padding-right: 1rem;
    }
    
    .floating-contact-aside .contact-item::after {
        width: 50px;
        height: 50px;
    }
}

/* Show on tablets (sm) - vertical side layout */
@media (min-width: 576px) and (max-width: 991.98px) {
    .floating-contact-aside {
        display: block !important; /* Ensure visible on tablets */
        position: fixed;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        z-index: 1025;
    }
    
    .floating-contact-aside .contact-items {
        flex-direction: column; /* Vertical layout on tablets */
        gap: 0;
    }
    
    .floating-contact-aside .contact-item {
        width: 50px;
        height: 50px;
        border-radius: 0 50px 50px 0; /* Rounded right side */
        margin-bottom: 2px;
    }
    
    .floating-contact-aside .contact-item:hover {
        width: 220px; /* Expand on hover for tablets */
        border-radius: 0 50px 50px 0;
    }
    
    .floating-contact-aside .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .floating-contact-aside .contact-text {
        display: block; /* Show text on tablets */
        font-size: 0.95rem;
        padding-left: 0.75rem;
        padding-right: 1rem;
    }
    
    .floating-contact-aside .contact-item:hover .contact-text {
        opacity: 1; /* Show text on hover */
        transform: translateX(0);
    }
}

/* Mobile Responsiveness - bottom circular buttons */
@media (max-width: 575.98px) {
    .floating-contact-aside {
        display: block;
        position: fixed;
        top: calc(var(--header-height, 56px) + 8px);
        left: 10px;
        bottom: auto;
        transform: none;
        z-index: 100; /* Lower z-index so navbar menu is above aside */

        max-height: 25px !important; /* Remove any max-height */
        pointer-events: auto;
    }
    
    .floating-contact-aside .contact-items {
        flex-direction: row; /* Horizontal layout on mobile */
        gap: 8px;
        justify-content: flex-start;
        flex-wrap: wrap; /* Allow wrapping if needed */
    }
    
    .floating-contact-aside .contact-item {
        width: 46px; /* Slightly smaller to fit under header */
        height: 46px;
        border-radius: 50%; /* Make circular on mobile */
        margin-bottom: 0;
    }
    
    .floating-contact-aside .contact-item:hover {
        width: 46px; /* Don't expand on mobile - keep circular */
        border-radius: 50%;
    }
    
    .floating-contact-aside .contact-icon {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
    
    .floating-contact-aside .contact-text {
        display: none; /* Hide text on mobile for space */
    }
    
    .floating-contact-aside .contact-item:hover .contact-text {
        display: none; /* Keep text hidden even on hover for mobile */
    }
}

/* Very small screens - even more compact */
@media (max-width: 480px) {
    .floating-contact-aside {
        bottom: 15px;
        left: 5px;
    }
    
    .floating-contact-aside .contact-item {
        width: 45px;
        height: 45px;
    }
    
    .floating-contact-aside .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}
