/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    background-color: #004d40;
    overflow: hidden;
    padding: 10px 0;
    border: 4px solid #2ecc71; /* Add a green border on all sides */
    border-radius: 10px; /* Optional: Rounded corners for a smooth look */
}


.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Centers the links */
}

.navbar ul li {
    margin-right: 30px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    padding: 15px 20px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.navbar ul li a:hover {
    background-color: #2ecc71;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('weathers.jpg'); /* Replace with weather-related image */
    background-size: cover;
    background-position: center center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for better text visibility */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5); /* Dark semi-transparent background */
    padding: 20px 40px;
    border-radius: 10px; /* Rounded corners for the text box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    max-width: 80%; /* Limit the width for a more focused look */
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2em;
    margin: 20px 0;
}

.cta-button {
    background-color: #27ae60;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 2;
}

.cta-button:hover {
    background-color: #2ecc71;
}

/* Features Section (With Boxes) */
.features {
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f9f9f9, #f1f1f1); /* Soft gradient background */
    border-radius: 10px; /* Optional: Rounded corners for the section */
}

.features h2 {
    margin-bottom: 30px;
    color: #333; /* Dark grey color for the heading */
}

.features-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-card {
    background: #ffffff; /* White background for feature cards */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid #004d40; /* Matching the navbar's color for the border */
}

.feature-card:hover {
    transform: translateY(-10px); /* Lift effect on hover */
}

.feature-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.feature-card h3 {
    color: #004d40; /* Dark teal color for headings to match the navbar */
    margin-top: 15px;
}

.feature-card p {
    color: #555; /* Subtle grey text for the description */
}
/* Testimonials Section (With Boxes) */
.testimonials {
    background: linear-gradient(135deg, #f9f9f9, #f1f1f1); /* Soft gradient background */
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px; /* Rounded corners for the section */
}

.testimonials h2 {
    margin-bottom: 30px;
    color: #333; /* Dark grey color for the heading */
}

.testimonial-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial {
    background: #ffffff; /* White background for testimonial cards */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid #004d40; /* Matching the navbar's color for the border */
}

.testimonial:hover {
    transform: translateY(-10px); /* Lift effect on hover */
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
    color: #555; /* Subtle grey text */
}

.testimonial h4 {
    font-weight: bold;
    color: #004d40; /* Dark teal color for the author name */
}

/* Footer */
.footer {
    background-color: #004d40;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Today's Weather Section */
.todays-weather {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f9f9f9, #f1f1f1); /* Match the soft gradient of other sections */
    text-align: center;
    border-radius: 10px; /* Rounded corners for consistency */
    margin: 20px auto;
    max-width: 600px; /* Center align and limit width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border: 2px solid #004d40; /* Matching the navbar border color */
}

.todays-weather h2 {
    color: #004d40; /* Dark teal to match the theme */
    margin-bottom: 20px;
    font-size: 1.8em;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Align items in two columns */
    gap: 20px;
    justify-content: center;
}

.weather-item h3 {
    color: #004d40; /* Matching navbar color */
    margin-bottom: 5px;
    font-size: 1.2em;
}

.weather-item p {
    color: #555; /* Subtle grey for weather values */
    font-size: 1.4em;
    font-weight: bold;
}


/* Responsive Navbar for mobile devices */
@media screen and (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
    }

    .navbar ul li {
        margin-bottom: 10px;
    }

    .navbar ul li a {
        padding: 12px 20px;
    }
}

/* Responsive Features and Testimonials for mobile devices */
@media screen and (max-width: 768px) {
    .features-grid, .testimonial-grid {
        flex-direction: column;
    }
}
