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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 680px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(208, 19, 19, 0.1);
    text-align: center;
    margin-top: 10px;
    /* animation: fadeIn 0.8s ease-out; */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi Arrow - dibalik ke atas */
@keyframes bounceArrowDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }
    40% {
        transform: translateY(8px) translateX(-5px);
        opacity: 1;
    }
    60% {
        transform: translateY(4px) translateX(-3px);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 107, 53, 0.8), 0 0 30px rgba(255, 107, 53, 0.6);
    }
}

/* Header Styles */
header {
    margin-bottom: 30px;
    position: relative;
}

header img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

header img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

/* Button Container dengan Arrow */
.button-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    margin: 15px auto;
}

/* Arrow Pointer - Desktop (di atas button) */
.arrow-pointer {
    position: absolute;
    right: -45px;
    top: -10px; /* Posisi di atas button */
    font-size: 24px;
    color: #ff6b35;
    animation: bounceArrowDown 2s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

/* Arrow Text */
.arrow-text {
    position: absolute;
    right: -140px;
    top: -15px; /* Posisi di atas button */
    font-size: 12px;
    color: #ff6b35;
    font-weight: 600;
    white-space: nowrap;
    animation: pulseGlow 2s ease-in-out infinite 0.3s;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Arrow Mobile - di atas button */
.arrow-mobile {
    display: none;
    text-align: center;
    margin-bottom: 10px; /* Margin bawah untuk jarak dengan button */
    font-size: 20px;
    color: #ff6b35;
    animation: bounceArrowDown 1.8s ease-in-out infinite;
    position: relative;
}

.arrow-mobile::after {
    content: "👇 Klik tombol di bawah!";
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Heading */
h1 {
    font-size: 30px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CTA Section */
.cta-section {
    margin: 20px 0;
    position: relative;
}

/* About Section */
.about-section {
    text-align: center;
}

.about-section img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.about-section img:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.25);
}

/* Description Text */
p {
    color: black;
    font-size: 16px;
    margin: 10px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-align: justify;
}

/* Button Styles */
button {
    width: 100%;
    max-width: 400px;
    margin: 15px auto;
    display: block;
    background: linear-gradient(135deg, #002366 0%, #004080 100%);
    border: none;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(0, 35, 102, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 35, 102, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.button-container:hover .arrow-pointer {
    animation-duration: 1s;
    color: #ff4500;
}

button:active {
    transform: translateY(-1px);
    box-shadow: 
        0 2px 8px rgba(0, 35, 102, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.15);
}

button:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
    box-shadow: 
        0 4px 15px rgba(0, 35, 102, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Link Styles */
button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    letter-spacing: 0.3px;
}

/* Icon di dalam button juga beranimasi */
button a i {
    animation: bounceArrowDown 3s ease-in-out infinite 1s;
}

button a svg {
    width: 18px;
    height: 18px;
    fill: white;
}

button a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(113, 128, 150, 0.2);
}

.location-link {
    margin: 0;
    text-align: center;
}

.location-link a {
    color: #002366;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.location-link a:hover {
    color: #002366;
    text-decoration: underline;
    transform: translateY(-2px);
}

footer span {
    color: #a0aec0;
    font-size: 14px;
    font-style: italic;
}

/* Tablet Optimizations */
@media (max-width: 768px) {
    body {
        padding: 10px;
        justify-content: flex-start;
    }

    .container {
        padding: 25px 20px;
        border-radius: 15px;
        margin-top: 10px;
    }

    /* Sembunyikan arrow desktop, tampilkan arrow mobile */
    .arrow-pointer,
    .arrow-text {
        display: none;
    }
    
    .arrow-mobile {
        display: block;
    }

    header img {
        height: 220px;
        margin-bottom: 18px;
    }

    .about-section img {
        height: 180px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    p {
        font-size: 15px;
        margin: 18px 0;
    }

    main {
        gap: 20px;
    }

    .cta-section {
        margin: 15px 0;
    }

    button {
        margin: 12px auto;
    }

    button a {
        padding: 16px 20px;
        font-size: 20px;
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .container {
        padding: 20px 15px;
        margin: 5px;
        border-radius: 12px;
    }

    /* Arrow mobile dengan ukuran yang disesuaikan */
    .arrow-mobile {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .arrow-mobile::after {
        font-size: 11px;
    }

    header img {
        height: 200px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .about-section img {
        height: 160px;
    }

    h1 {
        font-size: 22px;
    }

    p {
        font-size: 14px;
        margin: 0px 0;
    }

    main {
        gap: 3px;
    }

    button a {
        padding: 18px 10px;
        font-size: 13px;
    }

    .location-link a {
        font-size: 14px;
    }
}

/* Mobile kecil */
@media (max-width: 360px) {
    .container {
        padding: 18px 12px;
    }

    .arrow-mobile {
        font-size: 16px;
    }

    .arrow-mobile::after {
        font-size: 10px;
    }

    header img {
        height: 180px;
    }

    .about-section img {
        height: 140px;
    }

    h1 {
        font-size: 20px;
    }

    p {
        font-size: 13px;
        margin: 15px 0;
    }

    button a {
        padding: 14px 16px;
        font-size: 13px;
    }
}

/* Mobile sangat kecil */
@media (max-width: 320px) {
    .arrow-mobile {
        font-size: 14px;
    }

    .arrow-mobile::after {
        font-size: 9px;
    }

    header img {
        height: 160px;
    }

    .about-section img {
        height: 120px;
    }

    h1 {
        font-size: 18px;
    }

    .container {
        padding: 15px 10px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); */
    }

    .container {
        /* background: rgba(26, 32, 44, 0.95); */
        color: black;
    }

    h1 {
        color: black;
    }

    p {
        color: black;
    }

    .location-link a {
        color: #002366;
    }

    .location-link a:hover {
        color: #63b3ed;
    }

    footer span {
        color: #718096;
    }
}

/* Accessibility Improvements */
.location-link a:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        min-height: fit-content;
    }
}