/* ========================================
   GLOBAL SMOOTH SCROLL
   ======================================== */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   LOADING SCREEN
   ======================================== */
   .loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5a9c 0%, #1e3a5f 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
}

.loading-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.loading-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

/* Loading Animations */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Hide body scroll when loading */
body.loading {
    overflow: hidden;
}

/* ========================================
   MODERN FOOTER STYLES
   ======================================== */
.modern-footer {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a9c 100%);
    color: #ffffff;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-main {
    margin-bottom: 2rem;
}

.footer-section {
    height: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Footer contact items - spesifik untuk footer */
.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact .contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-contact .footer-contact-detail {
    flex: 1;
}

.footer-contact .contact-value {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
}

.footer-contact .contact-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact .contact-link:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

.footer-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: block;
}

.footer-link:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* Footer social links - spesifik untuk footer */
.footer-social .social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-social .social-link:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

.footer-social .social-link i {
    width: 20px;
    text-align: center;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: none;
}

.back-to-top.show {
    display: flex;
}

.back-to-top-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: linear-gradient(135deg, #2d5a9c 0%, #1e3a5f 100%);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s ease forwards;
}

.back-to-top.show .back-to-top-btn {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a9c 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.back-to-top-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.footer-copyright {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
    font-weight: 400;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 991.98px) {
    .modern-footer {
        padding: 2rem 0 1rem 0;
        margin-top: 2rem;
    }

    .footer-logo {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .footer-section-title {
        text-align: center;
        margin-top: 2rem;
    }

    .footer-social {
        display: flex;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .modern-footer {
        padding: 1.5rem 0 1rem 0;
    }

    .footer-logo-img {
        width: 50px;
        height: 50px;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .footer-section-title {
        font-size: 1.1rem;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-copyright {
        margin-bottom: 0.5rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
    
    .back-to-top-btn {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
}
