/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 70px; /* Offset for sticky header */
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: #222;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Utility Classes */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.bg-dark {
    background-color: #222;
    color: #fff;
}

.text-white {
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Header */
header.sticky-header {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header nav ul {
    display: flex;
    gap: 20px;
}

header nav a {
    position: relative;
    padding-bottom: 5px;
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0070f3;
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

header nav a:hover {
    color: #0070f3;
}

/* Mobile Menu */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    header nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    }

    header nav ul.active {
        display: flex;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: #fff;
    padding: 10rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: #0070f3;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #005bb5;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Services Grid */
.services {
    padding: 5rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 30px;
    border: none;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 112, 243, 0.4);
}

.card .icon {
    font-size: 2.5rem;
    color: #0070f3;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-style: italic;
}

.testimonial-card h4 {
    margin-top: 1rem;
    font-style: normal;
    color: #0070f3;
    text-align: right;
}

/* Location */
.location-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.location-info {
    flex: 1;
    min-width: 300px;
}

.location-info h3 {
    margin-bottom: 1rem;
}

.location-info p {
    margin-bottom: 1rem;
}

.map-container {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact-details {
    text-align: center;
    font-size: 1.2rem;
}

.contact-details p {
    margin: 10px 0;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 5px;
    border: none;
    font-family: inherit;
}

.contact-form button {
    align-self: flex-start;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 3rem 0;
    font-size: 0.9rem;
}

footer a {
    color: #4da3ff;
}

/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000; /* Higher than the sticky header */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
    margin-bottom: 15px;
    color: #d9534f; /* Alert color */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #d9534f;
}
