/* =====================================================
   PMB UM Pontianak Landing Page - Premium Styles
   Aesthetic: Tropical Equatorial Modern
   ===================================================== */

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #0067B1;
    color: white;
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0067B1 0%, #004A82 100%);
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #004A82 0%, #003561 100%);
}

/* ===== NAVIGATION STYLES ===== */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: #4B5563;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFB81C, #0067B1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #0067B1;
    background: rgba(224, 242, 254, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link.active {
    color: #0067B1;
    background: rgba(224, 242, 254, 0.8);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #4B5563;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #0067B1;
    background: rgba(224, 242, 254, 0.8);
}

.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(0, 103, 177, 0.1);
    backdrop-filter: blur(10px);
}

/* ===== HERO PARALLAX STYLES ===== */
.hero-parallax-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hero-bg-base {
    background: linear-gradient(135deg,
        #003561 0%,
        #004A82 25%,
        #0067B1 50%,
        #004A82 75%,
        #003561 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.parallax-layer {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Stars Pattern */
.stars-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 250px 90px, rgba(255,255,255,0.25), transparent),
        radial-gradient(2px 2px at 300px 30px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 350px 140px, rgba(255,255,255,0.35), transparent),
        radial-gradient(2px 2px at 400px 60px, rgba(255,255,255,0.15), transparent);
    background-size: 400px 150px;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Parallax Orbs */
.parallax-orb {
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 { animation-delay: 0s; }
.orb-2 { animation-delay: -7s; }
.orb-3 { animation-delay: -14s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(30px, 10px) scale(1.02); }
}

/* Equator Line */
.equator-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 184, 28, 0.3) 20%,
        rgba(255, 184, 28, 0.6) 50%,
        rgba(255, 184, 28, 0.3) 80%,
        transparent 100%
    );
    transform: translateY(-50%);
}

.equator-line::before,
.equator-line::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #FFB81C;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 20px rgba(255, 184, 28, 0.5);
}

.equator-line::before { left: 20%; }
.equator-line::after { right: 20%; }

/* Floating Geometric Shapes */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 25s ease-in-out infinite;
}

.shape-1 {
    top: 15%;
    left: 10%;
    width: 60px;
    height: 60px;
    border: 2px solid #FFB81C;
    animation-delay: 0s;
}

.shape-2 {
    top: 70%;
    left: 15%;
    width: 40px;
    height: 40px;
    background: rgba(255, 184, 28, 0.3);
    border-radius: 50%;
    animation-delay: -5s;
}

.shape-3 {
    top: 25%;
    right: 15%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation-delay: -10s;
}

.shape-4 {
    bottom: 30%;
    right: 10%;
    width: 50px;
    height: 50px;
    border: 2px solid #C8102E;
    transform: rotate(45deg);
    animation-delay: -15s;
}

.shape-5 {
    top: 60%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: rgba(0, 103, 177, 0.3);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    animation-delay: -20s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-15px, 15px) rotate(180deg); }
    75% { transform: translate(10px, -10px) rotate(270deg); }
}

/* Noise Overlay */
.noise-overlay {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
}

/* ===== HERO CONTENT ANIMATIONS ===== */
.hero-content {
    opacity: 0;
    animation: heroFadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

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

.hero-badge {
    opacity: 0;
    animation: slideInDown 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-title-line {
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.hero-title-line:nth-child(1) { animation-delay: 0.6s; }
.hero-title-line:nth-child(2) { animation-delay: 0.75s; }
.hero-title-line:nth-child(3) { animation-delay: 0.9s; }
.hero-title-line:nth-child(4) { animation-delay: 1.05s; }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
}

.hero-cta {
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 1.4s;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-stats {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.6s;
}

.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 184, 28, 0.3);
}

/* Hero Visual */
.hero-visual {
    opacity: 0;
    animation: heroVisualIn 1.2s ease forwards;
    animation-delay: 0.8s;
}

@keyframes heroVisualIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.hero-card {
    transition: transform 0.5s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
}

.globe-icon {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 184, 28, 0.4); }
    50% { box-shadow: 0 0 30px 10px rgba(255, 184, 28, 0.2); }
}

/* ===== HERO IMAGE ANIMATION ===== */
.hero-image-container {
    opacity: 0;
    animation: heroImageReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes heroImageReveal {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Floating Badge Animation */
.floating-badge {
    opacity: 0;
    animation: floatBadge 0.8s ease forwards, gentleFloat 4s ease-in-out infinite;
    animation-delay: 1.5s, 2.3s;
}

@keyframes floatBadge {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.floating-element {
    animation: floatElement 4s ease-in-out infinite;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-15px) rotate(12deg); }
}

.floating-element:nth-child(2) {
    animation-name: floatElement2;
}

@keyframes floatElement2 {
    0%, 100% { transform: translateY(0) rotate(-12deg); }
    50% { transform: translateY(-12px) rotate(-12deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s ease forwards, bounce 2s ease-in-out infinite;
    animation-delay: 2s, 2s;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scroll-down {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(6px); opacity: 0; }
}

.animate-scroll-down {
    animation: scroll-down 1.5s ease-in-out infinite;
}

/* Slow Spin */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* ===== SECTION ANIMATIONS ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== CARD STYLES ===== */
.prodi-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}

.prodi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 103, 177, 0.25);
}

/* ===== MODAL STYLES ===== */
#modal-overlay {
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

#modal-overlay.show {
    display: flex !important;
    opacity: 1;
}

#modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== BEASISWA SLIDER ===== */
#beasiswa-slider {
    scroll-snap-type: x mandatory;
}

#beasiswa-slider > div {
    scroll-snap-align: start;
}

/* ===== PERSYARATAN TABS ===== */
.syarat-tab {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.syarat-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.syarat-tab:hover::before {
    left: 100%;
}

.syarat-tab.active {
    box-shadow: 0 4px 15px rgba(0, 103, 177, 0.2);
}

.syarat-content {
    animation: tabFadeIn 0.4s ease;
}

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

/* Syarat list item hover effect */
.syarat-content li {
    transition: all 0.3s ease;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 0.75rem;
}

.syarat-content li:hover {
    background: linear-gradient(135deg, rgba(0, 103, 177, 0.03) 0%, rgba(255, 184, 28, 0.03) 100%);
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5),
                    0 10px 25px -5px rgba(34, 197, 94, 0.3);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0),
                    0 10px 25px -5px rgba(34, 197, 94, 0.3);
    }
}

.floating-wa {
    animation: whatsappPulse 2s infinite;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .hero-title-line {
        font-size: 1.75rem !important;
    }

    .hero-title-line:nth-child(2),
    .hero-title-line:nth-child(4) {
        font-size: 2.25rem !important;
    }

    .floating-shape {
        display: none;
    }

    .equator-line::before,
    .equator-line::after {
        display: none;
    }
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid #FFB81C;
    outline-offset: 3px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print,
    nav,
    #modal-overlay,
    .floating-wa,
    .scroll-indicator {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}
