/* ═══════════════════════════════════════════
   LAPAN ROKET — xAI-Inspired Original Reset
   Dark Minimalist Premium Aesthetic
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --bg-dark: #050505;
    --bg-elevated: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-main: #e0e0e0;
    --text-secondary: #888888;
    --text-dim: #555555;
    --accent: #ffffff;
    --glass-blur: 24px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --radius: 14px;
    --radius-sm: 8px;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1100px;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    cursor: none;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none;
}

a, button { cursor: none; }

::selection {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ── Space Background System ── */
.space-background {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: -20;
    overflow: hidden;
}

.nebula-bg {
    position: absolute;
    inset: 0;
    background: url('images/deep-space-bg.png') center/cover no-repeat;
    opacity: 0.35;
    mix-blend-mode: screen;
}

.stars-layer {
    position: absolute;
    inset: -500px;
    background: transparent;
}

.stars-1 {
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 150px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 290px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 430px 80px, #fff, rgba(0,0,0,0));
    background-size: 500px 500px;
    animation: moveStars 120s linear infinite;
    opacity: 0.4;
}

.stars-2 {
    background-image: 
        radial-gradient(1.5px 1.5px at 100px 100px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 250px 250px, #fff, rgba(0,0,0,0));
    background-size: 600px 600px;
    animation: moveStars 90s linear infinite;
    opacity: 0.3;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes moveStars {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

/* ── Metallic Silver Titles ── */
.shard-text {
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    position: relative;
    letter-spacing: 0.1em;
}

.shard-text::before, .shard-text::after {
    display: none !important;
}

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

/* ── Custom Rocket Cursor ── */
.cursor-rocket {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%) rotate(-45deg);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    transition: transform 0.05s ease-out;
    opacity: 0;
}

.cursor-rocket.visible {
    opacity: 1;
}

.cursor-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99998;
}

/* ── Labels ── */
.test-label {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-transform: uppercase;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(5px);
    padding: 2px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.footer-test-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ── Navigation ── */
#navbar {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
}

#navbar:hover {
    background: rgba(10, 10, 10, 0.85);
    border-color: var(--border-hover);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
}

.nav-brand {
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bg-dark);
    background: var(--accent);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 999px;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.nav-cta:hover { 
    transform: translateY(-2px) scale(1.05); 
    background: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-image img {
    width: 140%;
    height: 140%;
    object-fit: contain;
    filter: brightness(1);
    animation: rocketDrift 12s ease-in-out infinite;
    position: absolute;
    bottom: -20%;
    left: -20%;
    transform-origin: center;
}

@keyframes rocketDrift {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
        filter: brightness(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)); 
    }
    50% { 
        transform: translate(15px, -10px) scale(1.02) rotate(0.5deg); 
        filter: brightness(1.1) drop-shadow(0 0 40px rgba(255, 255, 255, 0.4)); 
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-dark) 85%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container);
    padding: 0 40px;
    text-align: left;
    margin-top: -50px;
}

.hero-title {
    position: relative;
    margin-bottom: 40px;
}

.hero-title-ghost {
    display: block;
    font-size: clamp(6rem, 15vw, 14rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    user-select: none;
    pointer-events: none;
}

.hero-title-main {
    display: block;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -3px;
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 10px;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-search-box {
    max-width: 500px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-search-box:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 1rem;
    color: #fff;
    padding: 8px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.search-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.search-arrow:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

.hero-footer-label {
    position: absolute;
    bottom: 30px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Sections ── */
.section {
    position: relative;
    padding: 140px 0;
    border-top: 1px solid var(--border);
}

.section-alt {
    background: var(--bg-elevated);
}

.section-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    margin-bottom: 60px;
}

.section-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -1px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.content-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
}

.content-text strong { color: #fff; }

/* ── Timeline ── */
.timeline {
    border-left: 1px solid var(--border);
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-dim);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.timeline-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ── Info Cards ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
}

.card-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ── Gallery ── */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 350px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    filter: grayscale(0) contrast(1);
}

.gallery-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 4px;
}

/* ── Footer ── */
.footer {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

/* ── Music Toggle ── */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.music-icon {
    font-size: 1.1rem;
    transition: var(--transition);
}

.music-toggle.playing .music-icon {
    animation: bounce 0.6s ease-in-out infinite;
    color: #fff;
    text-shadow: 0 0 15px #fff;
}

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

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

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .section-grid, .cards-grid, .gallery-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-content { text-align: center; }
    .hero-search-box { margin: 0 auto; }
}
