/* =========================================
   $SUNABOZU FINAL STYLE SHEET
   Theme: Daytime Desert Punk (Anime Style)
   ========================================= */

/* --- 1. VARIABLES & RESET --- */
:root {
    /* Palette Siang Hari (Daytime Desert) */
    --color-sky-top: #4facfe;       /* Biru Langit Cerah */
    --color-sky-bottom: #00f2fe;    /* Biru Awan Putih */
    
    /* Warna Pasir (Lighter) */
    --color-dune-far: #d4b483;      /* Pasir Jauh (Krem) */
    --color-dune-mid: #c19a6b;      /* Pasir Tengah (Cokelat Muda) */
    --color-dune-near: #e6bf83;     /* Pasir Dekat (Emas) */
    
    /* Aksen */
    --color-accent-orange: #ff6600; /* Oranye Anime Kuat */
    --color-accent-dark: #333333;   /* Hitam untuk kontras */
    
    /* Teks */
    --color-text-main: #2d2d2d;     /* Abu Gelap (baca di background terang) */
    --color-text-muted: #555555;
    
    --font-head: 'Teko', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    color: var(--color-text-main);
    font-family: var(--font-mono);
    overflow-x: hidden; /* Mencegah scroll horizontal */
    background: var(--color-sky-top);
}

/* --- 2. ANIMATED DESERT BACKGROUND (PARALLAX) --- */
.desert-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -10; /* Di belakang konten */
    overflow: hidden;
}

.sky-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Gradasi Langit Anime Biru Cerah ke Pasir */
    background: linear-gradient(to bottom, var(--color-sky-top) 0%, #ffffff 70%, #e6bf83 100%);
}

/* -- BUKIT PASIR (SVG) -- */
.dune-layer {
    position: absolute;
    bottom: 0; left: 0;
    width: 200%; /* Lebar ganda untuk looping seamless */
    height: 100%;
    background-repeat: repeat-x;
    background-position: bottom left;
}

/* Lapisan Jauh (Gerak Lambat) */
.dune-far {
    height: 45%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23d4b483' fill-opacity='1' d='M0,224L60,213.3C120,203,240,181,360,181.3C480,181,600,203,720,224C840,245,960,267,1080,261.3C1200,256,1320,224,1380,208L1440,192L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 50% auto;
    animation: scrollDesert 60s linear infinite;
    z-index: 1;
    opacity: 0.9;
}

/* Lapisan Tengah (Gerak Sedang) */
.dune-mid {
    height: 35%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23c19a6b' fill-opacity='1' d='M0,128L80,149.3C160,171,320,213,480,213.3C640,213,800,171,960,160C1120,149,1280,171,1360,181.3L1440,192L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 50% auto;
    animation: scrollDesert 40s linear infinite;
    z-index: 2;
}

/* Lapisan Dekat (Gerak Cepat) */
.dune-near {
    height: 25%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23e6bf83' fill-opacity='1' d='M0,192L120,202.7C240,213,480,235,720,224C960,213,1200,171,1320,149.3L1440,128L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 50% auto;
    animation: scrollDesert 20s linear infinite;
    z-index: 3;
}

@keyframes scrollDesert {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Efek Haze/Panas */
.dust-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 220, 150, 0.2) 100%);
    pointer-events: none; z-index: 4;
}

.main-content-wrapper { position: relative; z-index: 10; }


/* --- 3. UTILITIES & BUTTONS --- */
.container { width: 90%; max-width: 1100px; margin: 0 auto; }

.highlight-text {
    color: var(--color-accent-orange); font-weight: bold;
    border-bottom: 3px solid var(--color-accent-orange);
}

/* Button Base Styles */
.btn {
    position: relative;
    padding: 12px 28px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
    text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
    transition: all 0.3s ease; cursor: pointer; border: none; display: inline-flex; align-items: center;
    border-radius: 4px; overflow: hidden;
}

/* Animasi Kilatan Cahaya (Sun Flash) */
.btn::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255, 0.6), transparent);
    transition: 0.5s;
}
.btn:hover::before { left: 100%; }

/* Style Tombol Primary (Oranye) */
.btn-primary { 
    background: var(--color-accent-orange); color: white; 
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}
.btn-primary:hover { 
    background: #e65c00; transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.6);
}

/* Style Tombol Outline */
.btn-outline { 
    border: 2px solid var(--color-accent-dark); color: var(--color-accent-dark); 
    background: rgba(255,255,255,0.5);
}
.btn-outline:hover { 
    background: var(--color-accent-dark); color: white; 
    transform: translateY(-3px);
}

/* --- 4. HERO SECTION --- */
.hero-section {
    min-height: 90vh; display: flex; align-items: center;
    padding: 2rem 5%; position: relative;
}
.hero-content { flex: 1; z-index: 2; text-shadow: 0 2px 10px rgba(255,255,255,0.8); }
.hero-image-container { flex: 1; display: flex; justify-content: center; z-index: 1; }

.hero-img {
    max-width: 100%; height: auto; border-radius: 12px;
    border: 4px solid white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: rotate(-2deg); /* Miring sedikit */
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 0% { transform: translateY(0px) rotate(-2deg); } 50% { transform: translateY(-15px) rotate(-2deg); } 100% { transform: translateY(0px) rotate(-2deg); } }

.hero-content h1 {
    font-family: var(--font-head); font-size: 6rem; line-height: 0.85;
    color: #ffd700; /* Emas */
    -webkit-text-stroke: 2px var(--color-accent-dark);
    margin-bottom: 10px;
    filter: drop-shadow(4px 4px 0px rgba(0,0,0,0.2));
}

.hero-content h2 {
    font-family: var(--font-head); font-size: 3rem; text-transform: uppercase;
    margin-bottom: 15px; color: var(--color-accent-dark);
}
.subtitle { 
    font-size: 1.2rem; color: #444; font-weight: bold; 
    background: rgba(255,255,255,0.6); padding: 10px; border-radius: 5px;
    display: inline-block; margin-bottom: 30px; 
}

/* CA Box & Pulse Animation */
.cta-container { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.ca-box-mini {
    background: white; padding: 12px 18px; border-radius: 6px;
    cursor: pointer; border: 2px solid var(--color-accent-dark);
    display: flex; align-items: center; gap: 10px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    transition: 0.2s;
    animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 102, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

.ca-box-mini:hover {
    animation: none; transform: scale(1.05); background: #fff8e1; border-color: var(--color-accent-orange);
}
.ca-label { color: var(--color-accent-orange); font-weight: bold; font-family: var(--font-head); font-size: 1.2rem; }
.ca-address { font-family: var(--font-mono); font-weight: bold; color: var(--color-accent-dark); }

/* --- 5. LORE & CARDS (Glassmorphism Light) --- */
.lore-section, .legacy-section { padding: 80px 0; }

.section-title h3 {
    font-family: var(--font-head); font-size: 4rem; margin-bottom: 40px;
    color: var(--color-accent-dark); text-align: center;
    text-shadow: 2px 2px 0px white;
}
.section-title span { 
    display: block; text-align: center; color: var(--color-accent-orange); 
    font-weight: bold; letter-spacing: 3px;
}

/* Proof Container */
.proof-container { 
    background: rgba(255, 255, 255, 0.8);
    padding: 40px; border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; gap: 30px;
}
.proof-text h4 { font-family: var(--font-head); font-size: 2.5rem; color: var(--color-accent-dark); }
.proof-text p { color: #444; font-size: 1.1rem; line-height: 1.6; }

.proof-image-wrapper {
    position: relative; border: 4px solid var(--color-accent-orange);
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.proof-img { width: 100%; display: block; }
.scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: rgba(255, 255, 255, 0.7); opacity: 0.5;
    animation: scan 4s linear infinite; box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
@keyframes scan { 0% { top: -10%; } 100% { top: 110%; } }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card {
    background: white; padding: 20px; border-radius: 12px;
    border: 2px solid #eee;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
}
.card:hover { 
    transform: translateY(-15px) rotate(1deg); 
    border-color: var(--color-accent-orange); 
    box-shadow: 0 20px 40px rgba(255, 102, 0, 0.2);
}

.card h4 { font-family: var(--font-head); font-size: 2rem; margin: 15px 0 10px; color: var(--color-accent-dark); }
.card p { color: #666; font-size: 0.95rem; line-height: 1.5; }

.visual-card img {
    width: 100%; height: 220px; object-fit: cover; border-radius: 8px;
    border: 2px solid #f0f0f0; transition: transform 0.5s ease;
}
.visual-card:hover img { transform: scale(1.05); }

/* Alert/Debunk Card */
.alert-card { background: #fff5f5; border-color: #ffcccc; }
.alert-card h4 { color: #d32f2f; }
.alert-card p { color: #b71c1c; }

/* --- 6. FOOTER --- */
.final-section {
    padding: 60px 0; margin-top: 50px;
    background: white; text-align: center;
    border-top: 5px solid var(--color-accent-orange);
}
.glitch-text.small { 
    font-size: 4rem; color: var(--color-accent-dark); 
    -webkit-text-stroke: 0px; 
}
.final-section p { color: #777; font-weight: bold; margin-bottom: 20px; }

.ca-full-box {
    background: #f4f4f4; padding: 15px 30px; border-radius: 50px;
    border: 2px solid #ddd; display: inline-block; margin-bottom: 30px;
}
.ca-full-box code { color: var(--color-accent-dark); font-weight: bold; font-size: 1rem; }

.social-links-footer { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.copyright { margin-top: 40px; color: #999; font-size: 0.8rem; }

/* --- 7. GLITCH ANIMATION (AGGRESSIVE) --- */
.glitch-text { position: relative; display: inline-block; }
.glitch-text::before, .glitch-text::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.8;
}
.glitch-text::before { 
    left: 2px; text-shadow: -2px 0 #ff3333; clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); 
    animation: glitch-anim 3s infinite linear alternate-reverse; 
}
.glitch-text::after { 
    left: -2px; text-shadow: -2px 0 #00fff9; clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); 
    animation: glitch-anim 2s infinite linear alternate-reverse; 
}

@keyframes glitch-anim {
    0% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 1px); }
    20% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(30% 0 20% 0); transform: translate(-1px, 1px); }
    100% { clip-path: inset(50% 0 30% 0); transform: translate(1px, -1px); }
}

/* --- 8. RESPONSIVE --- */
@media (min-width: 769px) {
    .proof-container { flex-direction: row; align-items: center; }
    .proof-text { flex: 1; }
    .proof-image-wrapper { flex: 1.5; }
}
@media (max-width: 768px) {
    .hero-section { flex-direction: column-reverse; text-align: center; padding-top: 100px; }
    .hero-content h1 { font-size: 4.5rem; }
    .proof-container { padding: 20px; }
}

/* --- BONUS SECTION & FEATURE CARD --- */
.bonus-section {
    padding: 60px 0 100px;
    position: relative;
    /* Memberi sedikit tint warna oranye/hangat di background */
    background: linear-gradient(to bottom, transparent, rgba(255, 102, 0, 0.05));
}

.feature-card {
    background: white;
    border-radius: 16px;
    overflow: hidden; /* Agar gambar tidak keluar border */
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 3px solid white;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

/* Layout Horizontal di layar besar */
@media (min-width: 769px) {
    .feature-card {
        flex-direction: row;
        align-items: center;
        max-width: 900px;
        margin: 0 auto; /* Tengah */
    }
    .feature-img-wrapper { flex: 1.2; }
    .feature-content { flex: 1; padding: 40px !important; }
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-accent-orange);
    box-shadow: 0 30px 60px rgba(255, 102, 0, 0.3);
}

.feature-img-wrapper img {
    width: 100%;
    height: 100%;
    min-height: 300px; /* Tinggi minimum agar gambar jelas */
    object-fit: cover;
    display: block;
}

.feature-content {
    padding: 30px;
    text-align: left;
}

.feature-content h4 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--color-accent-orange);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.feature-content p {
    font-size: 1.2rem;
    color: var(--color-accent-dark);
    line-height: 1.6;
    font-weight: bold;
}

/* Tag lucu kecil di bawah */
.funny-tag {
    display: inline-block;
    margin-top: 20px;
    background: var(--color-accent-dark);
    color: var(--color-accent-orange);
    padding: 5px 15px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.9rem;
    transform: rotate(-2deg); /* Miring sedikit */
}

/* --- BONUS GALLERY SECTION --- */
.bonus-section {
    padding: 80px 0 120px;
    background: linear-gradient(to bottom, transparent, rgba(255, 102, 0, 0.05));
}

.gallery-grid {
    display: grid;
    /* Membuat grid responsif: otomatis 3 kolom di desktop, 2 di tablet, 1 di HP */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-card {
    position: relative;
    height: 250px; /* Tinggi seragam */
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Agar gambar pas memenuhi kotak tanpa gepeng */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efek Hover Keren */
.gallery-card:hover {
    border-color: var(--color-accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 102, 0, 0.3);
    z-index: 2;
}

.gallery-card:hover img {
    transform: scale(1.1); /* Zoom in gambar saat hover */
}

/* Caption Nakal yang muncul saat hover */
.overlay-caption {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: rgba(0, 0, 0, 0.7); /* Background gelap transparan */
    color: var(--color-accent-orange);
    font-family: var(--font-head);
    font-size: 1.5rem;
    text-align: center;
    padding: 10px;
    transform: translateY(100%); /* Tersembunyi di bawah */
    transition: transform 0.3s ease;
}

.gallery-card:hover .overlay-caption {
    transform: translateY(0); /* Muncul ke atas saat hover */
}

/* Responsive adjustment untuk layar kecil */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 kolom di HP */
    }
    .gallery-card {
        height: 300px; /* Lebih tinggi di HP biar jelas */
    }
}