/* ======= EXTREME LIQUID GLASS UI ======= */
:root {
    --bg-dark: #050a08;
    
    /* Aurora Orb Colors (Glowing Nature) */
    --orb-1: #00ff87; /* Neon green */
    --orb-2: #60efff; /* Aqua */
    --orb-3: #fcfb83; /* Soft sun gold */
    --orb-4: #086d4e; /* Deep emerald */
    
    /* Liquid Glass Material */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-border-light: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    --glass-inset: inset 0 1px 1px rgba(255, 255, 255, 0.2), inset 0 -1px 1px rgba(255, 255, 255, 0.05);
    --blur-heavy: blur(40px);
    --blur-light: blur(20px);
    
    /* Text */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-pill: 100px;
    --radius-huge: 40px;
    --radius-md: 24px;
    
    /* Jelly Spring Bezier */
    --transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}
.container-sm { max-width: 900px; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.glow-text {
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 255, 135, 0.3);
}

.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 30px; }

/* ======= BACKGROUND: AURORA MESH (LIQUID LIGHT) ======= */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background: var(--bg-dark);
    overflow: hidden;
}

.orb {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: floatOrb 20s infinite ease-in-out alternate;
    will-change: transform;
}
.orb-1 {
    background: var(--orb-1);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}
.orb-2 {
    background: var(--orb-2);
    top: 40%;
    right: -20%;
    width: 50vw;
    height: 50vw;
    animation-delay: -5s;
}
.orb-3 {
    background: var(--orb-3);
    bottom: -30%;
    left: 20%;
    animation-delay: -10s;
    opacity: 0.3;
}
.orb-4 {
    background: var(--orb-4);
    top: 20%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    animation-delay: -15s;
    opacity: 0.4;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -15%) scale(0.9); }
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E');
    opacity: 0.05; /* Extreme subtle noise for realistic glass */
    pointer-events: none;
}

/* ======= LIQUID GLASS MATERIAL UTILITY ======= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-light);
    border-left: 1px solid var(--glass-border-light);
    box-shadow: var(--glass-shadow), var(--glass-inset);
    border-radius: var(--radius-huge);
    transition: var(--transition);
}
.glass-panel:hover {
    animation: jellyUI 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.glass-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}
.glass-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255,255,255,0.2);
    animation: jellyUI 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes jellyUI {
    0% { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.08, 0.92, 1); }
    40% { transform: scale3d(0.92, 1.08, 1); }
    50% { transform: scale3d(1.04, 0.96, 1); }
    65% { transform: scale3d(0.96, 1.04, 1); }
    75% { transform: scale3d(1.02, 0.98, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

/* ======= NAVIGATION ======= */
.nav-glass {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 0 35px;
    z-index: 1000;
    background: rgba(10, 15, 12, 0.4);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: var(--transition);
}
.nav-glass.scrolled {
    top: 20px;
    width: 85%;
    max-width: 800px;
    background: rgba(5, 10, 8, 0.7);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    /* Soft glow to blend the white background of the image with the dark mode UI */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transform-origin: center;
    /* Animasi bergoyang lambat secara otomatis */
    animation: jellyLogo 5s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo:hover img {
    /* Animasi bergoyang cepat ketika kursor menyentuh logo */
    animation: jellyLogo 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes jellyLogo {
    0% { transform: scale3d(1, 1, 1); }
    10% { transform: scale3d(1.25, 0.75, 1); }
    15% { transform: scale3d(0.75, 1.25, 1); }
    20% { transform: scale3d(1.15, 0.85, 1); }
    25% { transform: scale3d(0.95, 1.05, 1); }
    30% { transform: scale3d(1.05, 0.95, 1); }
    35% { transform: scale3d(1, 1, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.btn-nav {
    padding: 12px 30px;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
}

/* ======= HERO GLASS ======= */
.hero {
    padding: 180px 0 100px;
}

.hero-glass-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 20px;
    border-radius: var(--radius-huge);
}

.hero-content {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-tag {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.05);
    align-self: flex-start;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 25px;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions .btn-primary {
    padding: 18px 40px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hero-actions i {
    font-size: 1.4rem;
}

.hero-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 600px;
    background: rgba(0,0,0,0.5); /* fallback */
    border: 1px solid rgba(255,255,255,0.2);
}

.image-mask {
    position: absolute;
    inset: 10px;
    border-radius: 20px;
    overflow: hidden;
}

.image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85; /* Blend with background */
    mix-blend-mode: luminosity; /* makes image look ethereal */
    transition: transform 5s ease;
}
.hero-glass-panel:hover .image-mask img {
    transform: scale(1.1);
}

.img-highlight {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    pointer-events: none;
}

.glass-stats {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.3);
}

.glass-stats i {
    font-size: 3rem;
    color: var(--orb-1);
    text-shadow: 0 0 15px var(--orb-1);
}
.glass-stats h2 {
    font-size: 2rem;
    margin-bottom: 0;
}
.glass-stats span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ======= MARQUEE ======= */
.marquee-wrapper {
    margin: 50px 0 100px;
    padding: 0 20px;
}
.glass-slider {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    padding: 25px 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.glass-slider::before, .glass-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.glass-slider::before {
    left: 0;
    background: linear-gradient(to right, rgba(5,10,8,0.8), transparent);
}
.glass-slider::after {
    right: 0;
    background: linear-gradient(to left, rgba(5,10,8,0.8), transparent);
}

.marquee {
    display: flex;
    align-items: center;
    gap: 50px;
    white-space: nowrap;
    animation: liquidScroll 25s linear infinite;
}
.marquee span {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.marquee i {
    font-size: 1.5rem;
    color: var(--orb-2);
    filter: drop-shadow(0 0 10px var(--orb-2));
}

@keyframes liquidScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ======= BENTO GLASS GRID ======= */
.bento {
    padding: 50px 0 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 3.5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 280px 280px;
    gap: 30px;
}

/* Card Specifics */
.glass-panel.card-img {
    padding: 10px; /* Outer glass frame */
    position: relative;
    overflow: hidden;
}
.glass-panel.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-huge) - 10px);
    opacity: 0.7; /* ethereal mix */
    mix-blend-mode: lighten;
    transition: transform 1s ease, opacity 0.5s ease;
}
.glass-panel.card-img:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.card-large {
    grid-column: span 2;
    grid-row: span 2;
}
.glass-overlay {
    position: absolute;
    inset: 10px; /* align with padding */
    border-radius: calc(var(--radius-huge) - 10px);
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    pointer-events: none;
}
.glass-overlay h3 { font-size: 2.2rem; }

.card-info {
    grid-column: span 1;
    grid-row: span 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.icon-liquid {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--orb-1);
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0,255,135,0.2);
}
.card-info h3 { margin-bottom: 10px; font-size: 1.6rem; }
.card-info p { color: var(--text-muted); font-size: 0.9rem; }

.card-sm { grid-column: span 1; grid-row: span 1; }

.card-stats {
    grid-column: span 1;
    grid-row: span 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stat-glass h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-glass p { color: var(--orb-2); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px;}

.card-wide {
    grid-column: span 3;
    grid-row: auto;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wide-content h3 { font-size: 2rem; margin-bottom: 10px; }
.wide-content p { color: var(--text-muted); max-width: 500px; }
.icon-massive { font-size: 5rem; color: rgba(255,255,255,0.2); }

/* ======= CTA / LOCATION ======= */
.location {
    padding: 50px 0 100px;
}

.cta-panel {
    padding: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-panel h2 { font-size: 3rem; margin-bottom: 15px; }

.map-glass-container {
    width: 100%;
    position: relative;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.3);
}

.map-glass-container iframe {
    border-radius: 14px;
    /* Blend iframe visually into dark mode */
    filter: invert(90%) hue-rotate(180deg) brightness(80%) contrast(120%);
}

.map-overlay-glare {
    position: absolute;
    inset: 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* ======= FOOTER ======= */
footer {
    padding-bottom: 40px;
}

.footer-glass {
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-pill); /* Pill shaped footer for extreme modernism */
}

.footer-brand h2 { font-size: 1.5rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }

.footer-socials { display: flex; gap: 15px; }
.glass-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
}
.glass-icon:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    animation: jellyUI 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
    .hero-glass-panel {
        grid-template-columns: 1fr;
    }
    .hero-image {
        height: 400px;
    }
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .card-large, .card-wide { grid-column: span 2; }
    .card-wide { flex-direction: column; text-align: center; gap: 20px;}
    .footer-glass {
        flex-direction: column;
        gap: 20px;
        border-radius: var(--radius-md);
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-glass {
        padding: 0 15px 0 20px;
        width: 95%;
    }
    .nav-links, .btn-nav { display: none; }
    .hamburger { display: block; }
    .hero h1 { font-size: 3rem; }
    .hero-content { padding: 40px 20px; }
    .bento-grid { grid-template-columns: 1fr; }
    .card-large, .card-wide { grid-column: span 1; }
    .glass-stats { left: 10px; bottom: 10px; }
    .cta-panel { padding: 40px 20px; }
}

/* ======= MOBILE MENU (CSS ONLY) ======= */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(5, 10, 8, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transform: scale(1.05);
}
.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}
.mobile-menu ul {
    list-style: none;
    text-align: center;
    padding: 0;
}
.mobile-menu li {
    margin: 25px 0;
}
.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: inline-block;
}
.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger links */
.mobile-menu.active li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-menu.active li:nth-child(2) a { transition-delay: 0.2s; }
.mobile-menu.active li:nth-child(3) a { transition-delay: 0.3s; }
.mobile-menu.active li:nth-child(4) a { transition-delay: 0.4s; }

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: background 0.3s, transform 0.3s;
}
.close-menu:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.2);
}

/* Base Interactions */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.85); /* Compress for strong spring entry */
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1); /* Jelly spring */
}
.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ======= MOBILE PERFORMANCE OVERRIDES ======= */
@media (max-width: 768px) {
    /* 1. Eliminate heavy blur, fallback to dark semi-transparent backgrounds */
    .glass-panel {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* simplified shadow */
    }
    .orb {
        filter: blur(40px); /* huge reduction in GPU strain */
    }
    .orb-1, .orb-2 {
        opacity: 0.3; /* lower opacity for smoother blend */
        width: 80vw;
        height: 80vw;
    }
    .noise-overlay {
        display: none !important; /* Disable expensive fractal noise completely */
    }
    
    /* 2. Better Mobile Spacing & Aesthetics */
    .hero {
        padding: 130px 0 60px;
    }
    .hero h1 { 
        font-size: 2.6rem; 
        margin-bottom: 15px; 
        line-height: 1.15;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .glass-tag {
        margin-bottom: 20px;
    }
    .hero-content {
        padding: 30px 20px;
    }
    .hero-image {
        height: 300px;
    }
    .glass-stats {
        left: 10px;
        right: 10px;
        bottom: 10px;
        justify-content: center;
        padding: 15px 20px;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .card-wide {
        padding: 30px 20px;
    }
    .wide-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-panel {
        padding: 30px 15px;
    }
    .cta-panel h2 {
        font-size: 2rem;
    }
    
    .footer-glass {
        padding: 30px 20px;
    }
    
    .nav-glass {
        height: 65px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        background: rgba(10, 15, 12, 0.7);
    }
}
