@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
    --primary-color: rgb(4, 117, 0);
    --primary-color-dark: #000000;
    --secondary-color: rgb(4, 117, 0);
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --extra-light: #faf5ff;
    --max-width: 1200px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

header {
    margin-bottom: 50px;
}

body {
    font-family: "Poppins", sans-serif;
}

.image-header {
    display: grid;
    place-items: center;
  }

.image-header img {
  width: min(25rem, 90%);
  border-radius: 10%;
}

nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #ffffff;
    z-index: 99;
}

.nav__content {
    max-width: var(--max-width);
    margin: auto;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: 0.3s;
}

nav .logo a:hover {
    color: var(--primary-color-dark);
}

nav .checkbox {
    display: none;
}

nav input {
    display: none;
}

nav .checkbox i {
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}

ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    transition: left 0.3s;
}

ul li a {
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-dark);
    transition: 0.3s;
}

ul li a:hover {
    border-top-color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    color: var(--secondary-color);
}

.container {
    position: relative;
    min-height: 100vh;
    background: #ddd;
}

.container h1 {
    font-size: 40px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: normal;
    padding: 50px;
    color: #333;
    text-align: center;
    text-transform: capitalize;
}

.container .image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 10px;
}

.container .image-container .image {
    width: 100%;
    height: auto;
    flex: 1 1 calc(50% - 15px); /* Sets up the two-column layout */
    border: 10px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
}

.container .image-container .image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: .2s linear;
}

.container .image-container .image:hover img {
    transform: scale(1.1);
}

.container .popup-image {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .9);
    height: 100%;
    width: 100%;
    z-index: 100;
    display: none;
}

.container .popup-image span {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 60px;
    font-weight: bolder;
    color: #ca8a04;
    cursor: pointer;
    z-index: 100;
}

.container .popup-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #fff;
    border-radius: 5px;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

h2 {
    padding-bottom: 20px;
    color: black;
    font-size: 2.5rem;
    padding-left: 30px;
    padding-right: 30px;
}

h5 {
    padding-bottom: 20px;
    color: rgb(0, 0, 0);
    font-size: 1rem;
    padding-left: 30px;
    padding-right: 30px;
}

/* --- Media Queries for Responsiveness --- */

/* Mobile Navigation */
@media (max-width: 750px) {
    nav .checkbox {
        display: block; /* Shows the hamburger menu icon */
    }

    ul {
        position: absolute;
        width: 100%;
        height: calc(100vh - 85px);
        left: -100%;
        top: 85px;
        background-color: var(--extra-light);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: left 0.3s;
    }

    nav #check:checked ~ ul {
        left: 0;
    }
}

/* Image Gallery Responsiveness */
@media (max-width: 600px) {
    .container .image-container .image {
        flex-basis: 100%; /* Overrides the layout for small screens */
    }
    
    .container .popup-image img {
        width: 90%; /* Adjusts the popup image for mobile */
    }
}