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

/* Enable smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: var(--white);
}

/* Colors */
:root {
    --primary-color: #5086E9; /* Soft Blue */
    --accent-color: #f0f0f0; /* Light Gray */
    --dark-gray: #333333;
    --light-gray: #f7f7f7;
    --white: #ffffff;
}

/* Header */
header {
    width: 100%;
    background-color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header .logo {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

header nav ul li a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu Icon (Mobile) */
.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Menu */
.nav-menu {
    display: flex;
}

.nav-menu.active {
    display: block;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    background-color: var(--light-gray);
    padding: 6rem 1rem;
    text-align: center;
    color: var(--dark-gray);
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    line-height: 1.8;
    color: #555;
}

/* Section Styling (About, Services, Contact) */
section {
    padding: 3rem 1rem;
    margin: 2rem 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

section p, section ul {
    font-size: 1.1rem;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Services List */
.services ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.services ul li {
    background-color: var(--accent-color);
    padding: 15px;
    border-radius: 6px;
    font-size: 1rem;
    color: var(--dark-gray);
}

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

.contact form label {
    display: block;
    font-weight: 600;
    margin-top: 1rem;
    color: var(--dark-gray);
}

.contact form input, 
.contact form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--accent-color);
}

.contact form button {
    padding: 0.8rem;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 1.5rem;
}

.contact form button:hover {
    background-color: #4172c6;
}

/* Footer */
footer {
    padding: 1.5rem 0;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide regular nav menu on mobile */
    }

    .hamburger {
        display: block; /* Show hamburger icon on mobile */
    }

    .nav-menu.active {
        display: flex; /* Display nav menu when active */
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .contact form button {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
}

.fade-out {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.fade-in-on-scroll {
    width: 100%;
    max-width: 400px; /* Limits the maximum width for larger screens */
    height: auto; /* Maintains aspect ratio */
    margin-top: 20px; /* Adds spacing above the image */
    border-radius: 10px; /* Optional: rounds corners for a soft effect */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Fade-in effect when the image is in view */
.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .fade-in-on-scroll {
        max-width: 300px; /* Reduces the max width on tablets */
    }
}

@media (max-width: 480px) {
    .fade-in-on-scroll {
        max-width: 250px; /* Further reduces the width for small screens */
    }
}