* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 60px;
    background: #fff;
    color: #333;
}

header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

header.shrink {
    padding: 0.3rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    gap: 0.5rem;
}

.nav-menu li {
    flex: 1;
    text-align: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.4rem 0.3rem;
    display: block;
    border-radius: 8px;
}

.nav-menu a:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 70%;
}

.nav-menu a.active {
    color: #007bff;
    font-weight: 600;
    background: rgba(0, 123, 255, 0.08);
}

.nav-menu a.active::after {
    width: 70%;
}

.section {
    padding: 3rem 1.5rem;
    min-height: auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1E90FF;
    font-size: 1.8rem;
    font-weight: 700;
}

.header {
    background: linear-gradient(135deg, white 0%, white 100%);
    color: white;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.8;
    text-align: center;
    color: black;
}

.btn-nav {
    background:  #1E90FF;
    color:white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.section:nth-child(even) {
    background: white;
}

.section:nth-child(odd):not(.header) {
    background: linear-gradient(135deg, #f8fbff 0%, #e6f2ff 100%);
}

.section p {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 1rem;
    color: #555;
}

#tentang-kami p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

#layanan ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

#layanan li {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.1);
    border-left: 4px solid #1E90FF;
    font-weight: 500;
    text-align: center;
    transition: transform 0.3s ease;
}

#layanan li:hover {
    transform: translateY(-3px);
}

.feature-box {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(30, 144, 255, 0.1);
    transition: transform 0.3s ease;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 2rem;
    color: #1E90FF;
    margin-right: 1rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.feature-box-content {
    flex: 1;
}

.feature-box h5 {
    color: #1E90FF;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-box p {
    text-align: left;
    font-size: 1rem;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

#lokasi .maps {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

#lokasi p {
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
    font-size: 1.1rem;
}

#lokasi p:last-of-type {
    background: linear-gradient(135deg, #1E90FF, #0066CC);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 1rem;

    display: table;
    margin-left: auto;
    margin-right: auto;
    max-width: fit-content;
}
}

.gallery-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 1rem 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: calc(100vw - 3rem);
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    scroll-snap-align: start;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

#contact {
    background: linear-gradient(135deg, #1E90FF 0%, #0066CC 100%);
    color: white;
    text-align: center;
}

#contact h2 {
    color: white;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 100px;
    flex: 1;
    max-width: 140px;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.contact-btn i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    body {
        padding-top: 80px;
    }

    .nav-menu {
        justify-content: center;
        gap: 0;
        padding: 1rem 2rem;
    }

    .nav-menu li {
        flex: none;
        margin: 0 1.5rem;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .nav-menu a::after {
        bottom: 0;
        left: 0;
        transform: none;
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

    .section {
        padding: 4rem 2rem;
    }

    .header h1 {
        font-size: 3rem;
    }

    .header p {
        font-size: 1.2rem;
    }

    #layanan ul {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        max-width: 700px;
    }

    .feature-box {
        max-width: 600px;
    }

    .gallery-item {
        width: calc(50vw - 4rem);
        height: 300px;
    }

    .contact-buttons {
        gap: 2rem;
    }

    .contact-btn {
        min-width: 120px;
        max-width: 160px;
        padding: 2rem 1rem;
    }
}

@media (min-width: 1024px) {
    .gallery-item {
        width: calc(33.333vw - 5rem);
        height: 350px;
    }
}

@media (max-width: 360px) {
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.3rem 0.2rem;
    }
    
    body {
        padding-top: 55px;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .gallery-item {
        width: calc(100vw - 2rem);
        height: 220px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .contact-buttons {
        gap: 1rem;
    }
    
    .contact-btn {
        min-width: 90px;
        padding: 1.2rem 0.8rem;
    }
    
    .contact-btn i {
        font-size: 2rem;
    }
    
    .contact-btn span {
        font-size: 0.8rem;
    }
}