/*--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
--*/
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

/* HEADER */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 60px;
}

#menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

#menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}


/* SLIDER */

.slider-wrapper{
max-width:900px;      /* mengecilkan ukuran slider */
margin:40px auto;
}

.carousel-inner{
height:420px;         /* tinggi frame slider */
background:#f5f5f5;
}

.carousel-inner .item{
height:420px;
text-align:center;
}

.carousel-inner img{
max-height:380px;     /* gambar diperkecil */
max-width:100%;
object-fit:contain;   /* agar gambar tidak terpotong */
margin:auto;
display:block;
}

.carousel-inner .item{
display:flex;
align-items:center;
justify-content:center;
}

/* PORTFOLIO */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h4 {
    padding: 15px;
}


/* SOCIAL */

.icon-bar {
    position: fixed;
    top: 40%;
    right: 0;
}

.icon-bar a {
    display: block;
    padding: 10px;
    background: #333;
    color: #fff;
    text-decoration: none;
}


/* FOOTER */

.footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #fff;
    margin-top: 40px;
}


/* RESPONSIVE */

@media (max-width:768px) {

    .header {
        flex-direction: column;
    }

    .carousel-inner {
        height: 300px;
    }

    .carousel-inner img {
        height: 300px;
    }

}