/* Basic styling for the body */
*{

    font-size:medium;

}

a {
     text-decoration: none;
 }


 .menu-icon {
     display: none;
     font-size: 28px;
     cursor: pointer;
 }

 nav {
     display: flex;
     align-items: center;
     justify-content: space-between;
     background-color: #f9f9f9;
     padding: 30px 100px;
 }

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

 h1 {
     max-height: 60px;
 }


 nav ul li {
     list-style: none;
     display: inline-block;
     padding: 10px 20px;
 }

 nav ul li a {
     color: #000;
     position: relative;
     padding: 5px 0;
 }

 nav ul li a:hover {
     color: #fd4766;
 }

 nav ul li a:after {
     content: "";
     position: absolute;
     left: 0;
     width: 0;
     height: 3px;
     background: #fd4766;
     transition: 0.3s;
     bottom: 0;

 }

 nav ul li a:hover:after {
     width: 100%;

 }

 nav h1 {
     font-size: 30px;
     font-weight: 600;
     margin-left: 10%;
 }

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

 nav ul li {
     list-style: none;
     display: inline-block;
     padding: 10px 20px;
 }

 nav ul li a {
     color: #1d1d24;
     position: relative;
     padding: 5px 0;
 }



 nav ul li a:after {
     content: "";
     position: absolute;
     left: 0;
     width: 0;
     height: 3px;
     background: #fd4766;
     transition: 0.3s;
     bottom: 0;
 }

 nav ul li a:hover:after {
     width: 100%
 }



.h1,button {
    cursor: pointer;
    
    color: #fff;

    font-size: 16px;

    margin-right: 50px;

    text-transform: uppercase;

    letter-spacing: 2px;

    padding: 16px 40px;

    margin-right: 67px ;

    border-radius: 500px;

    display: inline-block;

    font-weight: 500;

    transition: all 0.4s ease-in-out;

    background-size: 152% 100%;

    background: #fd4766;

    border: 2px solid #fd4766;

}



.h1,button:hover {

    background: transparent;

    border-color: #fd4766;

    color: #fd4766;

}



.h1,button:hover {

    background: #fff;

    color: #00abf0;

    transform: scale(1.05);

}


/* Main container for the portfolio gallery */

.portfolio-gallery {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 20px;

    padding: 20px;

}



/* Styling for each gallery item */

.gallery-item {

    position: relative;

    overflow: hidden;

    border-radius: 8px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



/* Hover effect for the gallery item */

.gallery-item:hover {

    transform: translateY(-5px);

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);

}



/* Styling for the gallery images */

.gallery-item img {

    width: 100%;

    height: 100%;

    display: block;

    transition: transform 0.3s ease, filter 0.3s ease;

}





/* Hover effect for the image */

.gallery-item:hover img {

    transform: scale(1.1);

    filter: brightness(1.2);

}



/* Styling for the caption */

.gallery-item .caption {

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    background-color: rgba(0, 0, 0, 0.7);

    color: #fff;

    padding: 15px;

    transform: translateY(100%);

    transition: transform 0.3s ease;

}



/* Shows the caption on hover */

.gallery-item:hover .caption {

    transform: translateY(0);

}



/* Styling for the caption heading */

.caption h3 {

    margin: 0 0 5px;

    font-size: 1.2em;

}



/* Styling for the caption paragraph */

.caption p {

    margin: 0;

    font-size: 0.9em;

}



/* Media query for smaller screens */

@media (max-width: 768px) {

    nav {

        flex-direction: column;

        align-items: center;

        padding: 20px;

        text-align: center;

    }

    

    /* FIX: Show the menu icon on mobile */

    .menu-icon {

        display: block;

        position: absolute;

        top: 35px;

        right: 25px;

    }



    /* FIX: Hide the nav links by default on mobile */

    .nav-links {

        display: none;

        flex-direction: column;

        width: 100%;

        margin-top: 10px;

    }



    /* FIX: Show the nav links when 'active' class is added */

    .nav-links.active {

        display: flex;

    }



    .nav-links li {

        margin: 10px 0;

    }



    .portfolio-gallery {

        grid-template-columns: 1fr;

    }

}