/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    box-sizing: border-box;
    color: #333;
}

/* Navbar */
nav {
    background-color: #2C3E50;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav .logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

nav .logo img:hover {
    transform: scale(1.05);
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav .nav-links li {
    display: inline;
}

nav .nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

/* Standard nav link hover effect */
nav .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Special styling for Budget App button */
nav .nav-links a[href*="Budget_App"] {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-weight: 600;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav .nav-links a[href*="Budget_App"]:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile responsiveness for navigation */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    nav .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    nav .nav-links a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    nav .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    nav .nav-links a {
        width: 200px;
        text-align: center;
        margin-bottom: 5px;
    }
}

/* Hero Section */
.hero {
    height: 80vh; /* Adjust height (80% of viewport height) */
    background-image: url('header.jpg'); /* Path to your image */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    display: flex; /* Flexbox for centering content */
    justify-content: center; /* Horizontally centers content */
    align-items: center; /* Vertically centers content */
    text-align: center; /* Centers text inside the hero section */
    color: white; /* Ensures text is readable */
    padding: 20px; /* Optional padding for spacing */
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black overlay with 50% transparency */
    z-index: 1; /* Places the overlay below the content */
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensures the text is above the overlay */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.4;
}

/* About Us Section */
.about-section {
    padding: 50px 20px;
    background-color: #ffffff; /* Optional: Background color */
    text-align: center; /* Center-align text */
}

.about-container {
    max-width: 1000px; /* Limit the width */
    margin: 0 auto; /* Center the container horizontally */
    text-align: left; /* Align the text inside the container to the left */
}

.about-section h2 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8; /* Adjust line height for better readability */
}

/* Section Styling */
section {
    padding: 50px 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2C3E50;
}

.service-card {
    background-color: #f9f9f9;
    padding: 20px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    max-width: 1000px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

form label {
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
}

form input, form textarea, form button {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

form button {
    background-color: #2C3E50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #1A242F;
}

/* Contact Section */
.contact-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.contact-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 10px;
}

.contact-section p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #555;
}

.contact-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.contact-details {
    text-align: left;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    max-width: 400px;
    margin: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-details:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.contact-details h3 {
    font-size: 1.2rem;
    color: #2C3E50;
    margin-bottom: 10px;
}

.contact-details p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
}

.contact-details a {
    color: #2C3E50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    text-decoration: underline;
    color: #e74c3c;
}

/* Footer */
footer {
    background-color: #2C3E50;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* General Fade-In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes for Fade-In Effect */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Initial position */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Final position */
    }
}

/* Budget App Link Animation */
@keyframes budgetPulse {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 15px rgba(231, 76, 60, 0.4);
    }
}

nav .nav-links a[href*="Budget_App"] {
    animation: budgetPulse 3s ease-in-out infinite;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}