/* CSS Variables for Easy Color Customization */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background-light: #f9fafb;
    --background-dark: #111827;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    --gradient-dark: linear-gradient(135deg, #1f2937, #111827);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: var(--secondary-color);
    color: var(--accent-color);
    padding: 8px 0;
    font-size: 14px;
}

/* Header Styles - UPDATED LOGO HEIGHT */
.navbar {
    background: var(--accent-color) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 150px; /* Changed from 50px to 150px */
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.header-contact {
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-contact:hover {
    background: #1d4ed8;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Hero Section with Background Image */
.hero-section {
    background: linear-gradient(rgba(37, 99, 235, 0.8), rgba(30, 64, 175, 0.8)), 
                url('../images/image-1.jpg') center/cover no-repeat;
    color: var(--accent-color);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.emergency-call {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px;
    text-align: center;
}

.phone-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-decoration: none;
    display: block;
    margin: 15px 0;
}

.phone-number:hover {
    color: var(--accent-color);
    opacity: 0.8;
}

/* Button Styles */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* About Section with Background */
.about-section {
    padding: 100px 0;
    background: linear-gradient(rgba(249, 250, 251, 0.9), rgba(249, 250, 251, 0.9)), 
                url('../images/image-2.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

/* Request Callback Section */
.callback-section {
    background: linear-gradient(rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.95)), 
                url('../images/image-3.jpg') center/cover no-repeat;
    color: var(--accent-color);
    padding: 100px 0;
    position: relative;
}

.callback-form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}

/* Contact Form Section */
.contact-form-section {
    background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.9)), 
                url('../images/image-4.jpg') center/cover no-repeat;
    color: var(--accent-color);
    padding: 100px 0;
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.contact-form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}

.form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--accent-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    color: var(--accent-color);
}

.form-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--accent-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-select:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    color: var(--accent-color);
}

.form-select option {
    background: var(--background-dark);
    color: var(--accent-color);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Avatar Images */
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Dynamic Stars */
.fas.fa-star,
.fas.fa-star-half-alt,
.far.fa-star {
    color: #fbbf24;
    margin-right: 2px;
}

/* Google Reviews Section */
.reviews-section {
    padding: 100px 0;
    background: linear-gradient(rgba(249, 250, 251, 0.95), rgba(249, 250, 251, 0.95)), 
                url('../images/image-7.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.google-rating {
    max-width: 400px;
    margin: 0 auto;
}

.google-rating .stars {
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 10px;
}

.review-card {
    background: var(--accent-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 0 0 0 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.review-stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    position: relative;
}

.review-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -15px;
    left: -10px;
    font-family: serif;
    opacity: 0.3;
}

.review-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    bottom: -25px;
    right: -5px;
    font-family: serif;
    opacity: 0.3;
}

/* Services Grid with Background Images */
.services-section {
    padding: 100px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url('../images/image-5.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.service-card {
    background: var(--accent-color);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.service-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.service-card p {
    position: relative;
    z-index: 2;
}

/* Features Section */
.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--accent-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-icon {
    background: var(--primary-color);
    color: var(--accent-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* Statistics Section */
.stats-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: var(--accent-color);
}

.stats-card {
    text-align: center;
    padding: 30px 20px;
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

.stats-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Footer with Background */
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), 
                url('../images/image-6.jpg') center/cover no-repeat;
    color: var(--accent-color);
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.social-links a {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
    opacity: 0.8;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    left: 25px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20b954;
    color: #fff;
    transform: scale(1.1);
}

/* Success/Error Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b3ebf2;
}

/* Form Radio Buttons Styling */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 80px; /* Smaller on mobile */
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .phone-number {
        font-size: 2rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .stats-number {
        font-size: 2.5rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .contact-form, .callback-form {
        padding: 25px;
    }

    /* Mobile background attachment fix */
    .hero-section,
    .about-section,
    .services-section {
        background-attachment: scroll;
    }
}

/* Additional Mobile Responsive Improvements */
@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .emergency-call {
        padding: 20px;
        margin-top: 20px;
    }
    
    .phone-number {
        font-size: 1.8rem;
    }
    
    .about-section,
    .callback-section,
    .contact-form-section,
    .services-section {
        padding: 60px 0;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .top-bar {
        display: none !important;
    }
    
    .hero-section,
    .callback-section,
    .contact-form-section,
    .footer {
        background: none !important;
        color: #000 !important;
    }
}