/* Base Styles */
:root {
    --primary-color: #0284C7; /* Sky Blue */
    --secondary-color: #2DD4BF; /* Aqua Green */
    --accent-color: #D1D5DB; /* Shiny Silver */
    --light-color: #F9FAFB; /* Transparent White */
    --dark-color: #374151; /* Soft Gray */
    --white: #FFFFFF;
    --gray: #6B7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--light-color);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--gray);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.logo img {
    height: 100px; /* Increased logo size */
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.3));
}

.logo img:hover {
    transform: scale(1.08);
    filter: brightness(1.2) drop-shadow(0 4px 12px rgba(2, 132, 199, 0.5));
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 60px;
    align-items: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.15rem;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-cta .phone {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 200px;
    text-align: center;
}

.header-cta .phone:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(45, 212, 191, 0.5);
    filter: brightness(1.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.8), rgba(45, 212, 191, 0.6)), url('../images/hero/hero-background.jpeg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 90px;
}

.hero-section h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.hero-section .tagline {
    font-size: 1.6rem;
    margin-bottom: 35px;
    color: #E5E7EB;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 16px 45px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(45, 212, 191, 0.5);
    filter: brightness(1.1);
}

/* Services Section */
.services-section {
    padding: 120px 0;
    background-color: var(--white);
}

.services-section h2 {
    text-align: center;
    margin-bottom: 70px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 50px;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.2);
    filter: brightness(1.05);
}

.service-card.highlighted {
    border: 2px solid var(--secondary-color);
    position: relative;
}

.service-card.highlighted::before {
    content: "Le plus populaire";
    position: absolute;
    top: -18px;
    right: 25px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.service-card img {
    border-radius: 12px;
    margin-bottom: 25px;
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.service-card li {
    margin-bottom: 15px;
    padding-left: 28px;
    position: relative;
    font-size: 1.05rem;
}

.service-card li::before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 25px 0;
}

.service-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 212, 191, 0.5);
    filter: brightness(1.1);
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 120px 0;
    background: var(--light-color);
}

.why-choose-section h2 {
    text-align: center;
    margin-bottom: 70px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.benefit-item {
    text-align: center;
    padding: 35px 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.2);
}

.benefit-item img {
    height: 80px;
    margin-bottom: 25px;
    filter: drop-shadow(0 2px 4px rgba(2, 132, 199, 0.3));
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 18px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 120px 0;
    background: var(--white);
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 70px;
}

.testimonials-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 35px;
    padding: 25px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--light-color);
}

.testimonials-carousel::-webkit-scrollbar {
    height: 8px;
}

.testimonials-carousel::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.testimonials-carousel::-webkit-scrollbar-track {
    background: var(--light-color);
}

.testimonial-card {
    min-width: 360px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
}

.rating {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 25px;
    color: var(--gray);
}

.client-info {
    display: flex;
    align-items: center;
}

.client-photo {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 18px;
    border: 2px solid var(--secondary-color);
}

.client-info strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.95rem;
    color: var(--gray);
}

/* Service Area Section */
.service-area-section {
    padding: 120px 0;
    background: var(--light-color);
}

.service-area-section h2 {
    text-align: center;
    margin-bottom: 25px;
}

.service-area-section p {
    text-align: center;
    margin-bottom: 35px;
    font-size: 1.2rem;
}

/* Gallery Section */
.gallery-section {
    padding: 120px 0;
    background: var(--white);
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 70px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(2, 132, 199, 0.75));
    color: var(--white);
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Video Gallery Section */
.video-gallery-section {
    padding: 120px 0;
    background: var(--light-color);
}

.video-gallery-section h2 {
    text-align: center;
    margin-bottom: 70px;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 50px;
}

.video-item {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.video-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.2);
    filter: brightness(1.05);
}

.video-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 132, 199, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.video-overlay::before {
    content: "▶";
    color: var(--white);
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-item h3 {
    color: var(--primary-color);
    margin: 20px;
    font-size: 1.4rem;
}

.video-item p {
    color: var(--gray);
    margin: 0 20px 20px;
    font-size: 1rem;
}

/* LightGallery Lightbox Styling */
.lg-backdrop {
    background: rgba(0, 0, 0, 0.85) !important;
}

.lg-outer {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.2) !important;
}

.lg-outer .lg-video-cont {
    border-radius: 20px !important;
}

.lg-outer .lg-content {
    color: var(--white) !important;
}

/* Free Quote Section */
.free-quote-section {
    padding: 120px 0;
    background: var(--light-color);
}

.free-quote-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.form-container h2 {
    margin-bottom: 35px;
}

#quote-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #10B981;
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Make form responsive */
@media (min-width: 768px) {
    .form-group {
        display: flex;
        gap: 15px;
    }
    
    .form-group.half {
        width: 48%;
    }
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item .icon {
    font-size: 2rem;
    margin-right: 18px;
    color: var(--secondary-color);
}

.business-hours {
    margin-top: 35px;
}

.business-hours h4 {
    color: var(--primary-color);
    margin-bottom: 18px;
}

/* Form Submit Button */
.submit-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 16px 45px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
    width: 100%;
    margin-top: 15px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 212, 191, 0.5);
    filter: brightness(1.1);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-blend-mode: overlay;
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 90px 0 0;
}

.main-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.main-footer h3,
.main-footer a,
.main-footer p,
.main-footer li,
.copyright {
    color: var(--white) !important;
}

.footer-logo {
    height: 250px; /* Increased height */
    width: auto; /* Maintain aspect ratio */
    margin-bottom: 30px;
    /* This is the correct way to add a glow to the logo's shape, not its box */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 15px;
}

.footer-column a {
    font-size: 1.05rem;
}

.footer-column a:hover {
    color: var(--white);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
}

/* شارة البطاقة المميزة */
.service-card.highlighted {
    position: relative;
    overflow: visible;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

@media (max-width: 768px) {
    .popular-badge {
        right: 50%;
        transform: translateX(50%);
        top: -15px;
        white-space: nowrap;
    }
}