:root {
    --primary-color: #0d2c4f;
    --secondary-color: #f9a826;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --text-color: #333;
    --text-light: #f4f4f4;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}
.border-section {
            border: 5px white solid;
            border-radius: 5px;
            padding-bottom: 25px;
        }
a {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.8;
}

body {
    opacity: 0;
    animation: fadeInPage 0.5s ease-in forwards;
}

@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

.container {
    max-width: 1500px;
    margin: 0;
    padding: 0 150px;
}

.section-padding {
    padding: 90px 0;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: #e0961e;
    transform: translateY(-3px);
}

/* --- Hero Section --- */
#hero {
    position: relative;
    /* Desktop background image */
    background-image: url(/assets/desktop-hero-image.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    border: none;
    color: var(--light-color);
    padding: 271px 0;
    text-align: center;
}

#hero::before,
#hero::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
}

#hero::before {
    left: 0;
}

#hero::after {
    right: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    max-height: 500px;
}

.hero-content h1 {
    font-family: var(--font-primary);
    font-size: 2.9rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--light-color);
    margin-top: -150px;
    margin-bottom: 120px;
    width: 100%;
    max-width: 850px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #f8f8f8;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 360px;
}

.animate-hero-title,
.animate-hero-p,
.animate-hero-btn {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-hero-title {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.animate-hero-p {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.animate-hero-btn {
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}


.comparison-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 60vh;
    aspect-ratio: 16 / 9;
}

.before-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-image.after-image {
    overflow: hidden;
    opacity: 0.5;
}

.comparison-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    cursor: ew-resize;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.comparison-slider::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.comparison-slider::after {
    font-family: "Font Awesome 6 Free";
    content: '\f0d9 \f0da';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.2rem;
    position: absolute;
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comparison-slider .before-text,
.comparison-slider .after-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(13, 44, 79, 0.8);
    color: var(--light-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-primary);
    white-space: nowrap;
}

.comparison-slider .before-text {
    right: 30px;
}

.comparison-slider .after-text {
    left: 30px;
}


#reviews {
    background-color: #f9fafb;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: var(--font-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.reviews-summary {
    background-color: #eaf5ff;
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    margin: 40px auto 60px;
    max-width: 900px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.reviews-summary h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.reviews-summary ul {
    list-style-type: none;
    padding-left: 0;
}

.reviews-summary li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.reviews-summary li i {
    color: var(--secondary-color);
    margin-right: 12px;
    margin-top: 5px;
}


.reviews-carousel-container {
    position: relative;
    padding: 0 40px;
}

.reviews-carousel {
    padding-bottom: 50px;
}

.reviews-carousel .swiper-slide {
    height: auto;
    display: flex;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: scale(0.7);
    opacity: 0.7;
}

.reviews-carousel .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
}

.reviews-carousel .review-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reviews-carousel .swiper-button-next,
.reviews-carousel .swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.reviews-carousel .swiper-button-next:hover,
.reviews-carousel .swiper-button-prev:hover {
    background-color: #fff;
}

.reviews-carousel .swiper-button-next::after,
.reviews-carousel .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.reviews-carousel .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.review-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.review-card-header {
    margin-bottom: 15px;
}

.review-card-header h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.review-card-header .review-meta {
    font-size: 0.9rem;
    color: #777;
}

.review-card .stars {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.review-card p {
    margin: 0;
    flex-grow: 1;
}


#why-choose-us {
  background: #1dace0;
background: linear-gradient(90deg, rgba(29, 172, 224, 1) 0%, rgba(22, 106, 196, 1) 44%, rgba(11, 11, 163, 1) 100%);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-choose-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
}

.why-choose-item .icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.why-choose-item h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.why-choose-item p {
    margin: 0;
    color: #0fbfff;
}

.services-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 50px auto 0;
    align-items: start;
}

.service-overview-card {
    text-align: center;
}

.service-overview-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-overview-card h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
}

.fab-call {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    text-decoration: none;
    animation: shake-and-wait 2.8s ease-in-out infinite;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shake-and-wait {

    /* Shake happens in the first 28% of the animation (approx 0.8s) */
    0%,
    28%,
    100% {
        transform: rotate(0deg);
    }

    2%,
    6%,
    10%,
    14%,
    18%,
    22%,
    26% {
        transform: rotate(-10deg);
    }

    4%,
    8%,
    12%,
    16%,
    20%,
    24% {
        transform: rotate(10deg);
    }

    /* From 28% to 100%, it holds at rotate(0deg), creating the pause */
}

/* --- Service Area Section --- */
.service-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.area-card {
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.area-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.area-card .map-container {
    position: relative;
    padding-bottom: 75%;
    /* 4:3 aspect ratio */
    height: 0;
    overflow: hidden;
}

.area-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Maintenance Section --- */
.maintenance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.maintenance-column h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.maintenance-column li {
    margin-bottom: 12px;
}

/* --- Maintenance Accordion Styles --- */
.maintenance-accordion {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 10px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-button:hover {
    background-color: #f5f5f5;
}

.accordion-button .accordion-icon {
    transition: transform 0.3s ease-in-out;
    color: var(--primary-color);
}

.accordion-button.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-top: -100px;
        margin-bottom: 120px;
        width: 100%;
    }

    .fab-call {
        display: flex;
        right: 90px;
    }

    .area-card {
        flex-basis: 100%;
        max-width: 100%;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-grid {
        grid-template-columns: 1fr;
    }

    .services-overview-grid {
        grid-template-columns: 1fr;
    }

    #hero {
        /* Mobile background image */
        background-image: linear-gradient(rgba(13, 44, 79, 0.8), rgba(13, 44, 79, 0.8)), url('../assets/mobile-hero-image.png');
    }

    .chat-assistant {
        bottom: 100px;
        right: 20px;
    }
}

/* --- Contact Page Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    box-sizing: border-box;
    /* Ensures padding doesn't affect width */
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Floating Chat Assistant Styles --- */
.chat-assistant {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.chat-assistant.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-bubble {
    position: absolute;
    bottom: 60px;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.chat-assistant.visible .chat-bubble {
    opacity: 1;
    transform: scale(1);
}

.chat-btn {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 44, 79, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.chat-btn:hover {
    transform: scale(1.1);
    background-color: #0f3a6a;
}

.notification-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background-color: #ff3b30;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
    animation: pulse-red 2s infinite;
}

.chat-assistant.visible .notification-dot {
    display: block;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}