/* Gaya Responsif Bersama */

/* Gaya Navigasi Dasar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: none;
}

.nav-scrolled {
    border: 1px solid rgba(211, 211, 211, 0.2);
    box-shadow: 0 4px 20px rgba(30, 30, 30, 0.5);
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.acc-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    z-index: 2101;
}

a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--text-secondary-color);
    background-color: rgba(211, 211, 211, 0.1);
    border-radius: 0.4rem;
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

.acc-links .login-btn {
    width: 100%;
    border: 1px solid rgba(211, 211, 211, 0.2);
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background-color: #1f1142;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.acc-links .register {
    display: block;
    text-align: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.acc-links .register:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Navigasi Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn.active {
    transform: rotate(90deg);
}

.mobile-menu-btn .menu-icon {
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

/* Gaya Navigasi Dasar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: none;
}

.nav-scrolled {
    border: 1px solid rgba(211, 211, 211, 0.2);
    box-shadow: 0 4px 20px rgba(30, 30, 30, 0.5);
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.acc-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    z-index: 2101;
}

a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem;
    font-size: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-secondary-color);
    background-color: rgba(211, 211, 211, 0.1);
    border-radius: 0.4rem;
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    z-index: 2102;
}

.mobile-menu-btn.active {
    transform: rotate(90deg);
}

.mobile-menu-btn .menu-icon {
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.menu-open-body {
    overflow: hidden;
    position: fixed; 
    width: 100%;
    height: 100%;
}

@media (max-width: 1023px) {
    nav {
        padding: 0.5rem 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links,
    .acc-links {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        height: 100vh;
        width: 80vw;
        max-width: 320px;
        background: rgba(24, 24, 24, 0.97);
        flex-direction: column;
        gap: 1.2rem;
        z-index: 1000;
        align-items: flex-start;
        border-radius: 1.2rem 0 0 1.2rem;
        box-shadow: -8px 0 32px 0 rgba(31, 38, 135, 0.15);
        border-left: 1px solid rgba(255,255,255,0.08);
        padding: 2rem 1.5rem 2rem 1.5rem;
        box-sizing: border-box;
        overflow-y: auto;
        transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
        padding: 0.9rem 0.5rem;
        font-size: 1.05rem;
        border-radius: 0.7rem;
        background: none;
        color: #fff;
        transition: background 0.2s, color 0.2s;
    }

    .nav-links .acc-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

}

/* Tipografi Responsif */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    p {
        font-size: 0.9rem !important;
    }
}

/* Jarak Responsif */
@media (max-width: 768px) {
    body {
        padding: 1rem !important;
    }

    .container, 
    .section-container,
    .content-container {
        padding: 1.5rem !important;
    }

    .section {
        margin: 2rem 0 !important;
    }
}

/* Tata Letak Grid Responsif */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .grid-2 {
        grid-template-columns: 1fr !important;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* Kartu Responsif */
@media (max-width: 768px) {
    .card {
        padding: 1rem !important;
    }

    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Tabel Responsif */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }
}

/* Gambar Responsif */
img {
    max-width: 100%;
    height: auto;
}

/* Formulir Responsif */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 1rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea {
        width: 100%;
        padding: 0.8rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Tombol Responsif */
@media (max-width: 768px) {
    .btn {
        width: 100%;
        padding: 0.8rem;
        text-align: center;
    }

    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Footer Responsif */

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-newsletter {
        grid-column: 1 / -1;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .legal-links {
        flex-wrap: wrap;
        gap: 1rem 2rem;
    }
}


/* Sembunyikan pada Mobile /
.hide-on-mobile {
    display: block;
}

/* Tampilkan pada Mobile */
.show-on-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }

    .show-on-mobile {
        display: block;
    }
}

/* Animasi Scroll */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tombol Scroll ke Atas */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

/* Efek Fade In untuk Bagian */
.section-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.section-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
}

/* Penundaan Animasi untuk Bagian */
.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }


.nav-overlay {
    display: block; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease; 
}

.nav-overlay.active {
    opacity: 1; 
    pointer-events: auto;
}

