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

/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Navigation Styles */
nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

nav .logo img {
    width: 150px;
}

nav .nav-links {
    list-style: none;
    display: flex;
}

nav .nav-links li {
    margin-left: 20px;
}

nav .nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

nav .nav-links a:hover {
    color: #29abe2;
}

nav .cta-button {
    background-color: #29abe2;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
}

nav .cta-button:hover {
    background-color: #238bb5;
}

/* Hero Section Styles */
#hero {
    background-image: url('https://watchtowermsp.com/Images/WatchtowerHorizon.png');
    background-size: cover;
    background-position: top;
    color: #fff;
    padding-top: 200px;
    padding-bottom: 200px;
    text-align: center;
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(41, 171, 226, 0.5); /* Overlay with logo blue color */
}

#hero .hero-content {
    position: relative;
    z-index: 1;
}

#hero .hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

#hero .hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

#hero .hero-button {
    background-color: #fff;
    color: #29abe2;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1em;
    border-radius: 5px;
}

#hero .hero-button:hover {
    background-color: #f0f0f0;
}

/* Section Styles with scroll-margin-top */
section {
    scroll-margin-top: 80px; /* Adjust this value based on your nav bar height */
}

/* Services Section Styles */
#services {
    padding: 60px 0;
    background-color: #f9f9f9;
}

#services h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #29abe2;
}

/* Services Grid Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(41, 171, 226, 0.2);
}

.service-icon {
    font-size: 3em;
    color: #29abe2;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.service-card h4 {
    margin-top: 20px;
    font-size: 1.2em;
    color: #333;
}

.service-card p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

/* Pricing Calculator Styles */
#calculator {
    background-color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

#calculator h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #29abe2;
}

#calculator p {
    margin-bottom: 40px;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.pricing-item {
    background-color: #f9f9f9;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    text-align: center;
    position: relative;
}

.pricing-item h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #29abe2;
}

.pricing-item p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.input-container {
    margin-bottom: 10px;
}

.input-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.input-container input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.item-price {
    margin-top: 10px;
    font-size: 1.2em;
    color: #333;
}

.subtotal {
    margin-top: 10px;
    font-weight: bold;
    color: #29abe2;
}

#total-price {
    margin-top: 40px;
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
}

/* Contact Section Styles */
#contact {
    background-color: #29abe2;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

#contact h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

#contact p {
    margin-bottom: 30px;
    font-size: 1.2em;
}

/* Contact Form Styles */
#contact form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group textarea {
    resize: vertical;
}

.contact-button {
    background-color: #fff;
    color: #29abe2;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-button:hover {
    background-color: #e6e6e6;
}

/* Thank You Section Styles */
#thank-you {
    padding: 150px 0;
    text-align: center;
}

#thank-you h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #29abe2;
}

#thank-you p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #333;
}

/* Ensure the button is properly spaced */
#thank-you .contact-button {
    display: inline-block;
    margin-top: 20px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav .nav-links {
        display: none;
    }

    nav .container {
        flex-direction: column;
    }

    #hero .hero-content h1 {
        font-size: 2.5em;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .pricing-item {
        width: 100%;
        max-width: 400px;
    }
}

/* Learn More Link Styles */
.learn-more {
    display: inline-block;
    margin-top: 15px;
    color: #29abe2;
    text-decoration: none;
    font-weight: bold;
}

.learn-more:hover {
    text-decoration: underline;
}

/* Service Detail Styles */
#service-detail {
    padding: 100px 0;
}

#service-detail h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #29abe2;
}

#service-detail p {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #555;
}

#service-detail h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

#service-detail ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
}

#service-detail ul li {
    font-size: 1em;
    margin-bottom: 10px;
    color: #555;
}

#service-detail .contact-button {
    display: inline-block;
    margin-top: 20px;
    background-color: #29abe2;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#service-detail .contact-button:hover {
    background-color: #238bb5;
}

/* Service Detail Styles */
#service-detail {
    padding: 100px 0;
}

#service-detail h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #29abe2;
}

#service-detail p {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #555;
}

#service-detail h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

#service-detail ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
}

#service-detail ul li {
    font-size: 1em;
    margin-bottom: 10px;
    color: #555;
}

#service-detail .contact-button {
    display: inline-block;
    margin-top: 20px;
    background-color: #29abe2;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#service-detail .contact-button:hover {
    background-color: #238bb5;
}

/* Responsive Styles for Service Detail */
@media (max-width: 768px) {
    #service-detail {
        padding: 80px 20px;
    }

    #service-detail h1 {
        font-size: 2em;
        text-align: center;
    }

    #service-detail h2 {
        font-size: 1.5em;
    }

    #service-detail p,
    #service-detail ul li {
        font-size: 1em;
    }

    #service-detail ul {
        margin-left: 0;
        padding-left: 20px;
    }
}


/* Active Navigation Link Style */
nav .nav-links a.active {
    color: #29abe2;
    font-weight: bold;
    /* You can add more styles here */
}
