@import url('https://fonts.googleapis.com/css?family=Muli:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i&display=swap');
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #694bea;
    --secondary-color: #f8cf46;
}

::-moz-selection {
    color: #fff;
    background: var(--primary-color)
}

::selection {
    color: #fff;
    background: var(--primary-color)
}

::-moz-selection {
    color: var;
    background: var(--primary-color)
}

body {
    padding-top: 120px;
    font-family: 'Muli', sans-serif;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: .5rem;
    font-weight: 600;
    line-height: 1.64;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer
}

a:hover {
    text-decoration: line-through;
    color: var(--primary-color);
}

a.link {
    position: relative;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out
}

a.link::before {
    content: '';
    width: 100%;
    height: 2px;
    background: #d9d9d9;
    position: absolute;
    bottom: -4px;
    left: 0;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out
}

a.link:hover {
    color: #000
}

a.link:hover::before {
    background: #000
}

.space-md {
    padding-top: 90px;
    padding-bottom: 90px
}

#preloader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    background: #fff;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out
}

#preloader.hide {
    visibility: hidden;
    opacity: 0
}

#loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -30px;
    -webkit-animation: loader 1s infinite linear;
    animation: loader 1s infinite linear
}

@-webkit-keyframes loader {
    0% {
        -webkit-transform: scale(1);
        border: 5px solid #222
    }
    50% {
        -webkit-transform: scale(0);
        border: 30px solid #222
    }
    100% {
        -webkit-transform: scale(1);
        border: 10px solid #222
    }
}

@keyframes loader {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        border: 5px solid #222
    }
    50% {
        -webkit-transform: scale(0);
        transform: scale(0);
        border: 30px solid #222
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        border: 10px solid #222
    }
}


/* Container tweak */

.container {
    max-width: 1440px
}


/* Navigation */

.navbar-light .navbar-nav .nav-link {
    color: rgb(0, 0, 0);
    font-weight: 700;
    letter-spacing: .04rem;
}

.navbar-brand {
    display: inline-block;
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
    font-weight: 900;
    text-transform: capitalize;
}


/* Header intro */

.headline {
    position: relative;
    margin-bottom: 100px;
    margin-top: 100px;
}

.headline-content {
    display: block;
    position: relative;
}

.headline-content .headline-title {
    font-weight: 900
}

.headline-subtitle {
    font-size: 24px
}





/* Portfolio */

.portfolio-img-wrapper { 
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.portfolio-card {
    display: flex;
    flex-direction: column;
    height: 420px;
    border: 1px solid #ddd; /* stroke */
    border-radius: 10px;
    padding-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.portfolio-card .card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.portfolio-card .card-category {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-project {
    display: inline-block;
    padding: 8px 15px;
    background-color: #000; /* ganti sesuai tema */
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-project:hover {
    background-color: #333;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 991px) {
    .portfolio-img-wrapper { height: 200px; }
}

@media (max-width: 767px) {
    .portfolio-img-wrapper { height: 180px; }
}

/* Custom styles untuk memastikan gambar portfolio seragam */

.card-img-top {
    width: 100%;
    height: 250px; /* Tentukan tinggi seragam yang Anda inginkan */
    object-fit: cover; /* Ini penting! Memastikan gambar tidak terdistorsi */
}

/* Penyesuaian responsif untuk tinggi gambar */
@media (max-width: 991px) {
    .card-img-top {
        height: 200px; /* Tinggi yang lebih kecil untuk tablet */
    }
}

@media (max-width: 767px) {
    .card-img-top {
        height: 180px; /* Tinggi yang lebih kecil lagi untuk mobile */
    }
}

/* Jika Anda ingin seluruh kartu memiliki tinggi yang sama, tambahkan ini */
.card {
    height: 100%; /* Memastikan setiap kartu dalam baris memiliki tinggi yang sama */
    display: flex; /* Gunakan flexbox pada card container */
    flex-direction: column; /* Mengatur konten di dalam card secara vertikal */
}

.card-body {
    flex-grow: 1; /* Memastikan bagian body kartu mengambil sisa ruang yang tersedia */
}

/* Skill Card (jika juga perlu gambar seragam) */
.skill-card {
    border: 1px solid #000;
    border-radius: 10px;
    padding: 30px 20px;
    transition: all 0.3s ease;
    height: 100%; /* Biarkan height ini fleksibel jika skill card tidak selalu berisi gambar, atau atur tinggi spesifik jika diperlukan */
}

.skill-card img { /* Jika ada gambar di dalam skill-card */
    width: 100%;
    height: 150px; /* Contoh tinggi seragam untuk gambar di skill card */
    object-fit: cover;
    border-radius: 5px; /* Opsional: radius border untuk gambar di skill card */
    margin-bottom: 15px; /* Jarak antara gambar dan teks */
}

.skill-card:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
}
/* >>>>>> END PERUBAHAN UNTUK UKURAN GAMBAR SERAGAM <<<<<< */


/* Portfolio Filters */
#portfolio-filters {
    margin-bottom: 50px
}


/* portfolio filter */

#filters li {
    display: inline-block;
    margin-right: 100px
}

#filters li:last-child {
    margin-right: 0
}

#filters li a {
    font-size: 18px;
    font-weight: 600;
    position: relative;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

#filters li a::after {
    content: '';
    width: 0;
    height: 3px;
    position: absolute;
    bottom: -6px;
    left: 0;
    background: #000;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

#filters li a:hover,
#filters li a.active {
    color: #000
}

#filters li a:hover::after,
#filters li a.active::after {
    width: 100%
}


/* Portfolio items - ini sepertinya alternatif lain untuk item portfolio, saya asumsikan yang di atas lebih relevan untuk "gambar" */
.entry {
    overflow: hidden;
    position: relative; 
    height: 420px; /* Menyamakan tinggi dengan .portfolio-card */
    border-radius: 10px; /* Menyamakan border-radius */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Menyamakan shadow */
}

.entry-image {
    position: relative; /* Diubah dari absolute agar bisa mengontrol tinggi langsung */
    width: 100%;
    height: 250px; /* Tinggi seragam untuk bagian gambar di .entry */
    overflow: hidden;
    z-index: 1;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.entry-image img { /* Target gambar di dalam .entry-image */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.entry:hover .entry-image {
    -webkit-transform: scale(1.1);
    transform: scale(1.1)
}

.work-entry-hover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: rgba(50, 109, 221, 0.9);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out
}

.entry:hover .work-entry-hover {
    opacity: 1;
    visibility: visible
}

.work-entry-content {
    position: absolute; /* Tetap absolute untuk hover overlay */
    bottom: 50px;
    left: 50px;
    z-index: 2; /* Pastikan konten di atas overlay */
}

/* Konten teks di bawah gambar untuk .entry */
.entry .card-body { /* Menambahkan ini jika Anda memiliki teks di bawah gambar di .entry */
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.work-entry-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    position: relative;
    top: 15px;
    -webkit-transition: all .5s cubic-bezier(0.4, .2, 0, 1) .2s;
    transition: all .5s cubic-bezier(0.4, .2, 0, 1) .2s
}

.work-entry-cat {
    font-size: 14px;
    opacity: 0;
    position: relative;
    top: 15px;
    -webkit-transition: all .5s cubic-bezier(0.4, .2, 0, 1) .3s;
    transition: all .5s cubic-bezier(0.4, .2, 0, 1) .3s;
    color: #fff;
}

.entry:hover .work-entry-title,
.entry:hover .work-entry-cat {
    opacity: 1;
    top: 0
}

.project-intro li {
    font-size: 18px;
    color: #000000;
    padding: 12px 0 13px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    max-width: 200px
}

.project-intro li.title {
    font-weight: 700;
    padding: 0px 0 22px;
}


/* Footer */

.footer {
    margin-top: 115px;
}

.footer .footer-title {
    margin-bottom: 100px
}

.footer ul {
    margin-top: 30px
}

.footer ul li {
    margin-bottom: 10px
}

.copy {
    font-weight: 600;
    color: #000;
}


/* Contact */

.contact .form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: 1.875rem .85rem;
    color: #495057;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0;
}


/* RESPONSIVE */

@media (max-width: 991px) {
    body {
        padding-top: 90px;
    }

    .space-md {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .headline {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .headline-content .headline-title {
        font-size: 2.5rem;
    }
    
    .headline-subtitle {
        font-size: 18px;
    }

    /* Portfolio Filters */
    #filters li {
        margin-right: 30px;
        margin-bottom: 10px;
    }
    
    .portfolio-img-wrapper {
        height: 200px; 
    }

    .portfolio-card, .entry {
        height: 380px; 
    }
    .entry-image {
        height: 200px; 
    }

    .portfolio-img {
        height: 100%;
    }

    .work-entry-content {
        bottom: 30px;
        left: 30px;
    }

    .work-entry-title {
        font-size: 18px;
    }

    .project-intro li {
        font-size: 16px;
    }

    /* Footer */
    .footer {
        margin-top: 60px;
    }

    .footer .footer-title {
        margin-bottom: 50px;
    }

    .footer ul {
        margin-top: 15px;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 70px;
    }

    .space-md {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .headline {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .headline-content .headline-title {
        font-size: 2rem;
    }
    
    .headline-subtitle {
        font-size: 16px;
    }

    /* Portfolio Filters */
    #portfolio-filters {
        margin-bottom: 30px;
    }
    
    #filters {
        text-align: center;
    }
    
    #filters li {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }

    #filters li a {
        font-size: 16px;
    }

    .portfolio-img-wrapper {
        height: 180px; 
    }

    .portfolio-card, .entry {
        height: auto; 
        min-height: 350px; 
    }
    .entry-image {
        height: 180px; 
    }

    .portfolio-img {
        height: 100%;
    }
    
    .work-entry-content {
        bottom: 20px;
        left: 20px;
    }

    .work-entry-title {
        font-size: 16px;
    }
    
    .work-entry-cat {
        font-size: 12px;
    }

    .project-intro li {
        font-size: 14px;
        padding: 8px 0 9px;
    }
    
    .project-intro li.title {
        padding: 0px 0 15px;
    }

    /* Footer */
    .footer {
        margin-top: 40px;
    }
    
    .footer .footer-title {
        margin-bottom: 30px;
    }
}