/* Global Styles */
:root {
    --primary-color: #dc3545;
    --secondary-color: #212529;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 3rem;
}

/* Navigation */
.navbar {
    background: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-text {
    margin-left: 0.5rem;
    color: var(--white);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    color: var(--white);
    padding: 2rem 0;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.emergency-btn {
    background: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.emergency-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
}

.hero-image img {
    box-shadow: var(--shadow);
    border: 4px solid var(--white);
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-photo {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-photo img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-photo:hover img {
    transform: scale(1.05);
}

/* Services Section */
.services-section {
    background: var(--white);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* Completed Works Gallery with Photos */
.completed-work-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 200px;
}

.completed-work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80') center/cover;
    opacity: 0.7;
    z-index: 1;
    transition: all 0.3s ease;
}

.completed-work-card:hover::before {
    opacity: 0.9;
    transform: scale(1.05);
}

.completed-work-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    text-align: center;
}

/* Blog Featured Post with Photo */
.blog-featured {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.blog-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-featured img {
    border-radius: 15px 15px 0 0;
}

.blog-featured .card-body {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0 0 15px 15px;
    margin: 0;
    border: none;
}

/* Blog Post Cards */
.blog-post .card {
    transition: var(--transition);
    border: none;
}

.blog-post .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.blog-post .card-body {
    border-radius: 15px;
}

/* Blog Categories */
.blog-post .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* Blog Sidebar */
.blog-post .card-title {
    color: var(--secondary-color);
    font-weight: 600;
}

.blog-post .card-title:hover {
    color: var(--primary-color);
}

/* Newsletter Widget */
.newsletter-widget .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Popular Tags */
.popular-tags .badge {
    cursor: pointer;
    transition: var(--transition);
}

.popular-tags .badge:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    transform: scale(1.05);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content {
    padding-right: 2rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat-item h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--dark-gray);
    font-weight: 500;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1560472354-b33ff0c44a43?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
    z-index: 1;
}

.about-image i {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 50%;
}

/* About Image */
.about-photo {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.about-photo img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.about-photo:hover img {
    transform: scale(1.05);
}

/* Why Choose Us Section */
.why-us-section {
    background: var(--white);
}

.feature-box {
    padding: 2rem 1rem;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    color: var(--primary-color);
}

.feature-box h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--dark-gray);
}

/* Contact CTA Section */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c82333 100%);
}

.contact-info {
    margin-bottom: 2rem;
}

.phone-number h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.whatsapp-info p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Emergency Section with Photo */
.emergency-contact {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.emergency-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.emergency-contact .card-body {
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background: var(--secondary-color);
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.footer p {
    color: #adb5bd;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Floating Emergency Button */
.floating-emergency {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.floating-emergency .btn {
    border-radius: 50px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    }
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.btn-danger {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .floating-emergency {
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-emergency .btn {
        padding: 0.75rem 1rem;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.service-card:hover .service-icon i {
    transform: scale(1.1);
}

.feature-box:hover .feature-icon i {
    transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}
