*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#f8f8f8;
    color:#333;
}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 5%;
    background:#111;
    color:white;
    position:sticky;
    top:0;
    z-index:100;
}

.logo-section{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo{
    width:55px;
    height:55px;
    object-fit:cover;
    border-radius:50%;
}

nav{
    display:flex;
    gap:20px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:bold;
}

.hero{
    height:50vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    background:linear-gradient(
        rgba(0,0,0,.5),
        rgba(0,0,0,.5)
    ),
    url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32');
    background-size:cover;
    background-position:center;
    color:white;
}

.hero h2{
    font-size:3rem;
}

.hero p{
    margin-top:10px;
    font-size:1.2rem;
}

.section-title{
    text-align:center;
    margin:40px 0;
}

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
    padding:20px 5%;
}

.gallery-item{
    overflow:hidden;
    border-radius:10px;
    background:white;
    box-shadow:0 3px 10px rgba(0,0,0,.15);
}

.gallery-item img{
    width:100%;
    height:300px;
    object-fit:cover;
    transition:.4s;
}

.gallery-item img:hover{
    transform:scale(1.05);
}

footer{
    text-align:center;
    padding:30px;
    background:#111;
    color:white;
    margin-top:50px;
}

.footer-buttons{
    margin-bottom:20px;
}

.btn{
    display:inline-block;
    padding:10px 20px;
    margin:5px;
    background:white;
    color:black;
    text-decoration:none;
    border-radius:5px;
    font-weight:bold;
}

.btn:hover{
    background:#ddd;
}

/* Mobile */

@media(max-width:768px){

    header{
        flex-direction:column;
        gap:15px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h2{
        font-size:2rem;
    }

    .gallery-item img{
        height:250px;
    }
}
/* Modal */

.modal{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.95);
    justify-content:center;
    align-items:center;
}

.modal-content{
    max-width:90%;
    max-height:85%;
    border-radius:10px;
}

.close-btn{
    position:absolute;
    top:20px;
    right:30px;
    color:white;
    font-size:40px;
    cursor:pointer;
}

.nav-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(255,255,255,0.2);
    border:none;
    color:white;
    font-size:35px;
    cursor:pointer;
    padding:15px;
    border-radius:50%;
}

.prev-btn{
    left:20px;
}

.next-btn{
    right:20px;
}

.nav-btn:hover{
    background:rgba(255,255,255,0.4);
}

/* Mobile */

@media(max-width:768px){

    .nav-btn{
        font-size:25px;
        padding:10px;
    }

    .close-btn{
        font-size:35px;
    }
}
