@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
    --transition: all 300 ms ease-in-out;
    --dark-color: #332e29;
    --light-color:#fff;
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    outline: 0;
    transition: none;
}
html{
    font-size: 10px;
    scroll-behavior: smooth;
}
body{
    font-size: 1.6rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}
button, .btn{
    cursor: pointer;
    border: none;
    background: transparent;
}
ul{
    list-style-type: none;
}
a{
    text-decoration: none;
    color: var(--dark-color);
}
.text{
    color: var(--light-color);
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin-top: 10px;
}
img{
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    border: none ;
    outline: none ;
    box-shadow: none ;
    background: transparent ;
    image-rendering: optimizeQuality;
}
.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.vh-100{
    min-height: 100vh;
}
h1, h2, h3{
    margin-top: 0;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--dark-color);
}
.flex{
    display: flex;
    align-items: center;
    justify-content: center;
}
.py-7{
    padding: 7rem 0;
}
.grid{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}
.lead{
    opacity: 0.8;
    padding: 1rem 0;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1.8;
}
.home {
    position: absolute; /* Change from relative to absolute */
    top: 0;
    right: 0;
    width: 200px;
    height: auto;
    margin-top: 100px; /* Optional: Adds some space from the top */
    z-index: 100; /* Ensures it stays above other elements */
}

/*header*/
#header{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0 ,0 ,0, 0.3)), url('../photos/header.jpg') center/
    cover no-repeat fixed;
    justify-content: flex-start;
    align-items: flex-end; 
}
#header .container{
    width: 100%;
}
.header-content{
    padding-bottom: 4rem;
}
.header-content h1{
    font-size: 4.5rem;
    margin-bottom: 0;
    text-transform: uppercase;
    color: var(--light-color);
}
.header-content h3{
    text-transform: uppercase;
    color: var(--light-color);
}
.social-links{
    display: flex;
    margin-top: 3.5rem;
}
.social-links li a{
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    margin-right: 1rem;
    border-radius: .3rem;
    box-shadow: 0 0 6px 5px rgba(0 ,0 ,0, 0.2);
    transition: var(--transition);
}
.social-links li a:hover{
    opacity: 0.9;
}
/*About*/
#about{
    background-color: var(--light-color);
}
.about-left{
    margin-bottom: 4rem;
    height: 480px;
    overflow: hidden;
}
/*button down and title - reusable*/
.btn-down{
    font-size: 3rem;
    display: inline-block;
    margin-top: 3rem;
    transition: var(--transition);
}
.btn-down:hover{
    opacity: 0.8;
    transform: translate(5px);
}
.btn-down-white{
    color: var(--light-color);
    margin-bottom: 3rem;
}
.title{
    margin-bottom: 5rem;
}
.title h2{
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    position: relative;
    width: 600px;
}
.title h2::after{
    position: absolute;
    content: "";
    top: 120%;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--dark-color);
}

/*works*/
#work{
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../photos/work-background.jpg') center/cover no-repeat fixed; /*background photo*/
    color: var(--light-color);
}
#work .title h2, #work h3{
    color: var(--light-color);
    padding-top: 3rem;
}
#work .title h2::after{
    background: var(--light-color);
}
.work-bottom{
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 2rem;
}
.work-bottom > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;
}
.work-bottom > div .icon img {
    width: 150px;
    margin: 0;
    padding: 0;
    padding-bottom: 4rem;
    border: none ;
    outline: none ;
    box-shadow: none ;
    background: transparent ;
}
/* portfolio */
#portfolio{
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../photos/portfolio-background.jpg') center/cover no-repeat fixed;
}
#portfolio .title h2, #work h3{
    color: var(--light-color);
    text-align: left;
}
#portfolio .title h2::after{
    background: var(--light-color);
    align-items: left;
}
#portfolio .title a, i{
    margin-top: 1px;
    margin-bottom: 1px;
    margin-left: 0px;
}
.portfolio-grid > div{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* Centers the images */
    gap: 10px;  /* Adds space between images */
}
.portfolio-grid > div:hover{
    transform: scale(0.9);
}
.portfolio-grid > img {
    width: calc(33.33% - 10px);  /* Each image takes up 1/3 of the container */
    aspect-ratio: 1/1;  /* Makes the images square */
    object-fit: cover;  /* Prevents distortion */
    transition: transform 0.3s ease-in-out;
}
.portfolio-gallery {
    padding: 3rem 0;
    background-color: #f8f8f8;
    text-align: center;
}
.portfolio-item {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
.portfolio-item:hover {
    transform: scale(1.1); /* Zoom effect on hover */
}
/* Fullscreen Zoom-In Effect */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.fullscreen img {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    display: block;
    margin: auto;
}

.fullscreen.hidden {
    display: none;
}
/* contact */
#contact{
    background-color: rgb(248, 248, 248);
}
.contact-content{
    flex-direction: column;
    align-items: stretch;
}
.contact-left{
    margin-bottom: 5rem;
}
.contact-left .lead{
    padding: 0.5rem;
}
.contact-left form{
    margin-top: 3rem;
}
.contact-left form .form-control{
    display: block;
    margin: 1.6rem 0;
    border: 2px solid rgba(0, 0, 0, 0.3);
    padding: 1rem;
    width: 100%;
}
.contact-left form .form-control::placeholder{
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}
.contact-left .btn-submit{
    padding: 1.4rem 3rem;
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-color);
    color: var(--light-color);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.6rem;
    transition: var(--transition);
}
.contact-left .btn-submit:hover{
    background-color: #000;
}

/* footer */
#footer{
    background-color: var(--dark-color);
    color: var(--light-color);
}
.footer-content{
    text-align: center;
}
.footer-content h3{
    color: var(--light-color);
    font-size: 2.5rem;
    letter-spacing: 1px;
}
.footer-content ul{
    flex-direction: column;
}
.footer-content ul li a{
    color: var(--light-color);
    font-size: 1.5rem;
    transition: var(--transition);
}
.footer-content ul li a:hover{
    opacity: 0.7;
}
.footer-content ul li{
    margin: .5rem 1rem;
}
.footer-content > div:first-child{
    margin-bottom: 3rem;
}
.footer-content > div:first-child div{
    width: 150px;
    height: 150px;
    overflow: hidden;
    margin: 5rem auto;
    align-items: center;
    border-radius: 50%;
}

.disclamer{
    text-align: center;
    margin-top: 4rem;
    font-size: 1.4rem;
    opacity: 0.7; /* Makes it slightly faded */
}

/*Media Queries*/
@media(min-width: 450px){
    .work-bottom{
        grid-template-columns: repeat(2, 1fr);
        column-gap: 3rem;
        row-gap: 0; 
    } 
}

@media(min-width: 576px){
    .title h2{
        font-size: 4rem;
    }
    .work-bottom{
        grid-template-columns: repeat(5, 1fr);
    }
    .portfolio-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;

    }
    .portfolio-grid > div{
        height: 300px;
        overflow: hidden;
    }
    .portfolio-grid > div img{
        height: 100%;
        object-fit: cover;
    }
    .contact-left form .form-control{
        max-width: 500px;
    }
    .footer-content ul{
        flex-direction: row;
    }
}
@media(min-width: 768px){
    .header-content h1{
        font-size: 7rem;
    }
    .about-content{
        grid-template-columns: repeat(2, 1fr);
        column-gap: 6rem;
        row-gap: 0;
    }
    .about-left{
        margin-bottom: 0;
    }
    .contact-content{
        flex-direction: row;
    }
    .contact-right{
        padding-left: 3rem;
        width: 50%;
    }
    .contact-left{
        width: 50%;
    }
}
@media(min-width: 1200px){
    .portfolio-grid{
        grid-template-columns: repeat(3, 1fr);
    }
    .portfolio-grid > div:nth-child(2){
        grid-column: 2 / 4;
    }
    .portfolio-grid > div:nth-child(6){
        grid-column: 1 / 3;
    }
}
