/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --text-color: #333;
    --bg-light: #f4f6f7;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
    --radius: 8px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    font-size: 16px;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
    /* More spacing */
}

.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.85);
    /* Glassmorphism opacity */
    backdrop-filter: blur(12px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: none;
}

@media (min-width: 768px) {
    nav ul {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:not(.btn):hover {
    color: var(--accent-color);
}

/* Hero */
.hero {
    /* Real image with dark overlay for readability */
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/galery/181189030_132526545560302_3812198934366072519_n.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);

    /* Flexbox for perfect vertical centering */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    /* Takes up 60% of viewport height */
    padding: 2rem 0;

    text-align: center;
    text-align: center;
    background-attachment: fixed;
    /* Parallax Effect */
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.6);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Social Buttons */
.btn-facebook {
    background-color: #1877F2;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    border: none;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
}

.btn-facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.4);
}

.facebook-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Services Cards (Polished) */
.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 50%;
}

/* Stats */
.stats {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    border-top: 4px solid var(--accent-color);
    border-bottom: 4px solid var(--accent-color);
}

.stat-item h3 {
    color: var(--accent-color);
    font-size: 3rem;
    margin: 0;
    font-weight: 800;
}

/* Team */
.team-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
    position: relative;
    border-left: 5px solid var(--accent-color);
}

/* Intervention Zone */
.zone-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.zone-badge {
    background: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid transparent;
    /* subtle border */
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zone-badge:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.zone-icon {
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text::before {
    content: "“";
    font-size: 4rem;
    color: rgba(230, 126, 34, 0.2);
    position: absolute;
    top: -2rem;
    left: -1rem;
    font-family: serif;
}

.client-info h4 {
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.stars {
    color: #f1c40f;
    /* Gold color for stars */
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: inherit;
    transition: border 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

/* Animations (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulsing Button Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(230, 126, 34, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Gallery Zoom Effect */
.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 300px;
    /* Enforce uniform height */
    position: relative;
    background: #eee;
    /* Placeholder color before load */
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Modern Input Focus override */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.15);
    /* Softer, larger glow */
    transform: translateY(-2px);
    /* Subtle lift */
}

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.lightbox.hidden {
    display: none;
    opacity: 0;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    /* Smooth open */
}

.lightbox-content:hover {
    transform: scale(1.01);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background: #1a252f;
    color: #bdc3c7;
    text-align: center;
    padding: 3rem 0;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.text-muted {
    color: #666;
    font-size: 0.9rem;
}

/* Scroll to Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 1.5rem;
    border: none;
    outline: none;
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background-color 0.3s;
}

#scrollTopBtn:hover {
    background-color: #d35400;
    transform: translateY(-3px);
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden on desktop */
    z-index: 9999;
}

.sticky-btn {
    flex: 1;
    text-align: center;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sticky-btn.call {
    background: var(--white);
    color: var(--primary-color);
}

.sticky-btn.quote {
    background: var(--accent-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
    }

    body {
        padding-bottom: 60px;
        /* Prevent content occlusion */
    }

    #scrollTopBtn {
        bottom: 80px;
        /* Move up above the bar */
    }
}