/* --- Global Styles --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #111111;
    background-image: linear-gradient(45deg, #111111, #2a2a2a, #111111);
    background-attachment: fixed;
    color: #f1f1f1;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows nav items to wrap on smaller screens */
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
}

.logo .tagline {
    font-size: 0.9rem;
    color: #aaaaaa;
    display: block;
    margin-top: -5px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f1f1;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav ul li a:hover {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 60vh;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #ffffff;
    color: #000000;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid #ffffff;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background-color: transparent;
    color: #ffffff;
}

/* --- Content Sections --- */
.content-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* --- Services Section --- */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    background-color: #1a1a1a;
    padding: 2rem;
    border: 1px solid #333333;
    border-radius: 8px;
    width: calc(50% - 1rem);
    box-sizing: border-box;
    min-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #5cadff;
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.4);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
}

/* --- About Us & Contact Sections --- */
.about-content, .contact-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    background-color: #1a1a1a;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

.mission-statement {
    margin-top: 2.5rem;
    padding: 2rem;
    background-color: #222222;
    border-left: 4px solid #007bff;
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.mission-statement h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.mission-statement p {
    font-style: italic;
    color: #aaaaaa;
}

/* --- Widget & Contact Styling --- */
.widget-wrapper {
    margin: 2rem auto; /* Adds space around widgets */
}

.contact-detail {
    margin: 0.5rem 0;
}

.email-link {
    color: #ffffff;
    font-weight: bold;
    border-bottom: 1px solid #ffffff;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.email-link:hover {
    color: #aaccff;
    border-bottom: 1px solid #aaccff;
}

/* 
=========================================
    MOBILE OPTIMIZATION (MEDIA QUERIES)
=========================================
*/
@media screen and (max-width: 768px) {
    
    /* --- General Adjustments --- */
    .content-section {
        padding: 3rem 5%; /* Reduce padding on smaller screens */
    }

    /* --- Navigation --- */
    nav {
        flex-direction: column; /* Stack logo and links vertically */
        gap: 1rem;
    }

    nav ul {
        justify-content: center; /* Center the nav links */
    }

    nav ul li {
        margin-left: 1rem; /* Reduce space between links */
        margin-right: 1rem;
    }

    /* --- Typography --- */
    .hero h1 {
        font-size: 2.2rem; /* Reduce main headline size */
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem; /* Reduce section title size */
    }
    
    /* --- Service Cards --- */
    .service-card {
        width: 100%; /* Make cards full width to stack them */
        min-width: unset; /* Remove minimum width */
    }
}