/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Header */
.header {
    background: linear-gradient(to right, #007bff, #6c757d);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.header .logo i {
    font-size: 2rem;
    margin-right: 10px;
}

.header .logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.navmenu ul {
    display: flex;
    list-style: none;
}

.navmenu ul li {
    margin-left: 20px;
}

.navmenu ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.navmenu ul li a:hover, .navmenu ul li a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, #007bff, #00c6ff);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero h2 span.underlight {
    background: #ffce00;
    padding: 0 10px;
    border-radius: 5px;
    color: #333;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 30px;
    text-align: justify;
}

.hero p + p {
    margin-top: 15px;
}

.btn-get-started {
    background: #ff5722;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-get-started:hover {
    background: #e64a19;
}

/* Gallery Section */
#gallery {
    padding: 20px ;
}

.gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery .gallery-item img {
    width: 100%;
    height: auto;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.gallery .gallery-item:hover img {
    transform: scale(1.1);
}

.gallery .gallery-links {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery .gallery-item:hover .gallery-links {
    display: flex;
    opacity: 1;
}

.gallery .gallery-links a {
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px;
    border-radius: 50%;
    margin: 0 10px;
    font-size: 20px;
    transition: background 0.3s ease;
}

.gallery .gallery-links a:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Custom Icons (Panah 2 - Fullscreen and Rantai 2 - Chain) */
.gallery .gallery-links .bi-fullscreen {
    font-size: 10px;
}
.gallery .gallery-links .bi-link-45deg {
    font-size: 22px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .gallery .col-xl-3 {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (max-width: 575px) {
    .gallery .col-xl-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Lightbox Overlay Fullscreen View */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.fullscreen-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    transition: color 0.3s;
}

.fullscreen-overlay .close-btn:hover {
    color: #ff5722;
}

/* Footer */
.footer {
    background: #6c757d;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer .social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer .social-links a:hover {
    color: #ffce00;
    transform: scale(1.2);
    transition: transform 0.3s, color 0.3s;
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: -15px;
    z-index: 99999;
    background-color: #007bff; /* Ubah warna menjadi biru */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 24px;
    color: white; /* Warna ikon menjadi putih untuk kontras */
    line-height: 0;
}

.scroll-top:hover {
    background-color: #0056b3; /* Warna hover lebih ringan */
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
    bottom: 15px;
}


/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#preloader .line {
    width: 50px;
    height: 5px;
    background: #007bff;
    animation: load 1s infinite, pulse 1.5s ease-in-out infinite;
}

@keyframes load {
    0% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        background-color: #007bff;
    }
    50% {
        transform: scale(1.2);
        background-color: #0056b3;
    }
    100% {
        transform: scale(1);
        background-color: #007bff;
    }
}
