* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f6f1;
    color: #333;
    padding-top: 100px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

header {
    background-color: #1a1a1a;
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    animation: slideInFromTop 0.6s ease-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo img {
    height: 60px;
}

.logo-img {
    height: 60px;
    margin-right: 0px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
}

.nav-links a:hover {
    color: rgb(190, 20, 20);
}

.nav-links a.active {
    color: rgb(190, 20, 20);
    font-weight: bold;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.galeri-hero {
    min-height: calc(100vh - 100px);
    background-color: #f0f0f0;
    padding: 60px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('foto lima.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeri-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.galeri-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.galeri-section {
    padding: 60px 0;
    background-color: white;
}

.galeri-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.galeri-tab {
    padding: 12px 25px;
    background-color: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    margin: 0 5px;
    border-radius: 5px;
}

.galeri-tab.active {
    background-color: #a40e0e;
    color: white;
}

.galeri-content {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 50px;
}

.galeri-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    gap: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.galeri-row::-webkit-scrollbar {
    display: none;
}

.galeri-item {
    min-width: 250px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    flex: 0 0 auto;
}

.galeri-item:hover {
    transform: translateY(-5px);
}

.galeri-item-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.galeri-item-info {
    padding: 0;
    text-align: center;
}

.galeri-item-title {
    font-size: 1.1rem;
    margin: 0;
    padding: 15px;
    color: #333;
    font-weight: bold;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.scroll-arrow:hover {
    background-color: rgba(164, 14, 14, 0.8);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

.scroll-indicator {
    height: 6px;
    background-color: #e0e0e0;
    width: 100%;
    max-width: 1000px;
    margin: 10px auto;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #a40e0e;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #a40e0e;
}

.section-description {
    text-align: center;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.lihat-selengkapnya-container {
    background-color: #a40e0e;
    padding: 10px 15px;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.lihat-selengkapnya {
    display: inline-block;
    color: rgb(252, 252, 252);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lihat-selengkapnya:hover {
    color: #e7d0d0;
    text-decoration: underline;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal {
    background-color: white;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    background-color: #a40e0e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-content {
    padding: 30px;
}

.modal-image-container {
    text-align: center;
    margin-bottom: 20px;
}

.modal-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.modal-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-specs {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.modal-specs h3 {
    margin-bottom: 15px;
    color: #a40e0e;
}

.spec-item {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
}

.spec-label {
    font-weight: bold;
    min-width: 150px;
}

.modal-footer {
    text-align: right;
    padding: 0 30px 20px;
}

.modal-button {
    background-color: #a40e0e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.modal-button:hover {
    background-color: #870b0b;
}

body.modal-open {
    overflow: hidden;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

footer {
    background-color: #222;
    color: #aaa;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 30px;
    background-color: rgb(164, 14, 14);
}

.footer-col p,
.footer-col a {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: rgb(164, 14, 14);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    header {
        padding: 15px 0;
    }

    .nav-logo img,
    .logo-img {
        height: 50px;
    }

    .hamburger-menu {
        display: flex;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        z-index: 998;
        transition: transform 0.3s ease-out;
        transform: translateY(-100%);
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }

    .nav-links li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .galeri-hero {
        min-height: calc(100vh - 80px);
        padding: 40px 0;
    }

    .galeri-hero h1 {
        font-size: 2.5rem;
    }

    .galeri-hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .galeri-tabs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .galeri-tab {
        width: 90%;
        max-width: 300px;
        margin: 0;
    }

    .galeri-content {
        padding: 0 10px;
    }

    .scroll-arrow {
        display: none;
    }

    .galeri-row {
        scrollbar-width: thin;
        scrollbar-color: #a40e0e #f1f1f1;
    }

    .galeri-row::-webkit-scrollbar {
        height: 8px;
        display: block;
    }

    .galeri-row::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .galeri-row::-webkit-scrollbar-thumb {
        background: #a40e0e;
        border-radius: 4px;
    }

    .galeri-item {
        min-width: 240px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .modal {
        width: 95%;
        max-height: 85vh;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-content {
        padding: 20px;
    }

    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .spec-label {
        min-width: unset;
        margin-bottom: 5px;
    }

    .modal-footer {
        padding: 0 20px 15px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    header {
        padding: 10px 0;
    }

    .nav-logo img,
    .logo-img {
        height: 40px;
    }

    .nav-links {
        top: 60px;
    }

    .galeri-hero {
        min-height: calc(100vh - 70px);
        padding: 30px 0;
    }

    .galeri-hero h1 {
        font-size: 2rem;
    }

    .galeri-hero p {
        font-size: 0.9rem;
    }

    .galeri-item {
        min-width: 220px;
    }

    .container {
        padding: 0 15px;
    }

    .galeri-tab {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}