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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid black;
    position: relative;
}

/* Project Overview */
.project-overview {
    padding: 2rem;
    background-color: #f8f8f8;
    text-align: center; /* Centers the text */
}

.project-overview h2 {
    font-size: 2.5rem; /* Increase the font size of the heading */
    margin-bottom: 1rem; /* Space below the heading */
}

.project-overview p {
    font-size: 1.2rem; /* Increase the font size of the paragraph */
    max-width: 800px; /* Optional: Limit the paragraph width for readability */
    margin: 0 auto; /* Center the paragraph */
}

.logo img {
    width: 90px; 
    height: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 30px;
    height: 4px;
    background-color: black;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    color: white;
    height: 60vh;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Keep the image behind the text and button */
}

.hero-title {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem; /* Space between the title and the button */
}

/* Button */
.hero-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    background-color: #333;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s;
    margin-top: 1rem; /* Adjust spacing below the title */
}

.hero-button:hover {
    background-color: #555;
    transform: scale(1.05);
}

/* Project Overview */
.project-overview {
    padding: 2rem;
    background-color: #f8f8f8;
}

/* Mockups Section */
.mockups {
    padding: 2rem;
    background-color: #ffffff;
}

.mockup-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mockup-image {
    width: 40%;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Challenges and Solutions */
.challenges-solutions {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 20px; /* Space between columns */
    padding: 2rem;
    background-color: #f8f8f8;
}

.challenges, .solutions, .tools-used {
    padding: 20px; /* Optional: Add space inside each section */
}

h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333;
}

/* Tools Used */
.tools-used {
    padding: 2rem;
    background-color: #f8f8f8;
    text-align: center;

}

.tools-used ul {
    list-style: none;
    padding: 0;
}

.tools-used li {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap; /* Stack items on smaller screens */
        position: relative; /* Ensure proper stacking */
        z-index: 10; /* Ensure navbar stays above other elements */
    }

    /* Hamburger Menu */
    .hamburger-menu {
        display: flex; /* Show hamburger menu on mobile */
        position: relative; /* Ensure it stacks properly */
        z-index: 20; /* Higher than the logo */
    }

    /* Hide nav links by default on small screens */
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        background-color: white;
        position: absolute;
        top: 80px;
        left: 0;
        border-top: 2px solid black;
    }

    /* Show the nav links when the 'active' class is added */
    .nav-links.active {
        display: flex;
    }

    /* About Section */
    .about h2 {
        font-size: 1.5rem;
    }

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

    /* Mockups Section */
    .mockup-grid {
        grid-template-columns: 1fr;  /* Stack images in a single column */
    }

    .mockup-image {
        width: 90%;  /* Image takes up most of the screen on mobile */
        max-width: 250px;  /* Optional: Add a maximum width */
    }

    /* Challenges and Solutions Section */
    .challenges-solutions {
        grid-template-columns: 1fr; /* Stack in a single column on small screens */
    }

    .challenges, .solutions, .tools-used {
        width: 100%; /* Ensure full width for each section */
        margin-bottom: 1.5rem; /* Optional: Add space between sections */
    }

    h2 {
        font-size: 1.2rem;
    }

    

    .tools-used li {
        font-size: 1rem;
    }

    .tools-used {
        padding: 2rem;
        background-color: #f8f8f8;
        text-align: left;
        
    }
}

.project-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #333; /* Dark background */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.project-button:hover {
    background-color: #555; /* Lighter background on hover */
}



