/* Body Styling */
body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 80vh;
    font-size: 16px;
    font-family: "Space Mono", monospace;
    background: linear-gradient(#02010a, #06101d, #0e2a47);
    background-attachment: fixed;
    color: #e2e8f0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Dynamic Mountain */
.mount-box {
    position: absolute;
    bottom: 25vh;
    width: 100%;
    height: 15%;
    overflow: hidden;
}
.mount-track {
    position: absolute;
    height: 100%;
    width: auto;
    display: flex;
    bottom: 0;
    left: 0;
    animation: smoothMountain 40s linear infinite;
}
.mountain {
    width: auto;
    fill: #06101d;
    height: 100%;
}
.mountain.reverse {
    transform: scaleX(-1);
}
@keyframes smoothMountain {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Twinkle Star & Moon */
.star {
    z-index: -1;
    position: fixed;
    width: 150%;
    animation: twinkleStar 3s ease-in-out infinite alternate;
}
@keyframes twinkleStar {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.8;
    }
}
.moon {
    filter: blur(5px);
    position: fixed;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: #fcf6bd;
    top: 7.5%;
    right: 12.5%;
    box-shadow:
        0 0 40px 5px rgba(252, 246, 189, 0.8),
        0 0 80px 10px rgba(255, 255, 255, 0.6);
}

/* Dynamic Wave & Sea */
.wave-box {
    background: #09182d;
    margin-top: 75vh;
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 25vh;
    overflow: hidden;
}
.sea-wave {
    position: absolute;
    width: 100%;
}
.sea-wave.I {
    bottom: 0;
    height: 66%;
    background: linear-gradient(#12233f, #09182d, #000000);
}
.sea-wave.II {
    bottom: 0;
    height: 33%;
    background: linear-gradient(#0e385f, #12233f);
}

.wave-track {
    position: absolute;
    width: auto;
    height: 33%;
    display: flex;
    bottom: 0;
    left: 0;
}
.wave-track .wave-reverse {
    transform: scaleX(-1);
}
.wave-track.I {
    bottom: 66%;
    animation: smoothWave 16s linear infinite;
}
.wave-track.I svg {
    fill: #12233f;
}
.wave-track.II {
    bottom: 33%;
    animation: smoothWave 12s linear infinite;
}
.wave-track.II svg {
    fill: #0e385f;
}
.wave-track.III {
    bottom: 0;
    animation: smoothWave 8s linear infinite;
}
.wave-track.III svg {
    fill: #166996;
}
@keyframes smoothWave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Screen 1 : Loading Screen */
.loading-screen {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    z-index: 90;
    justify-content: center;
    align-items: center;
}
.loading-card {
    width: 80%;
    max-width: 400px;
    height: auto;
    padding: 20px;
    margin: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.loading-header {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding-bottom: 6px;
    color: #ffffff;
}
.custom-loader {
    border: 3px solid rgba(0, 240, 255, 0.25);
    width: 100%;
    height: 24px;
    border-radius: 12px;
    background: linear-gradient(#00f0ff 0 0) left / 0% 100% no-repeat
        rgba(228, 228, 237, 0.1);
    animation: p2 5s linear forwards;
}
.loading-text {
    animation: blink 1.5s infinite;
    font-size: 14px;
    color: #8be9fd;
    letter-spacing: 1px;
    margin-top: 20px;
    margin-bottom: 0;
}
@keyframes p2 {
    100% {
        background-size: 100% 100%;
    }
}

/* Main Styling */
.card-box {
    position: relative;
    font-family: "Space Mono", monospace;
    color: #00f0ff;
    border-radius: 6px;
}
.card-header {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    padding-bottom: 6px;
    color: #ffffff;
}
.glass-effect {
    background: rgba(11, 18, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.screen-btn {
    margin-top: 18px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #00f0ff;
    padding: 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    cursor: pointer;
    max-width: 500px;
    width: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.screen-btn:hover {
    background: #00f0ff;
    color: #02010a;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}
.blink-text {
    animation: blink 1.5s infinite;
}
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}
.hidden {
    opacity: 0;
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}
@keyframes in {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.7);
    }
}
.card-in {
    animation: in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.carr-out {
    animation: out 0.3s ease forwards;
}

/* Main Card */
.body-screen {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    z-index: 90;
    justify-content: center;
    align-items: center;
}
.main-card {
    width: 80%;
    max-width: 480px;
    height: 225px;
    padding: 20px;
    position: fixed;
    margin: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.sec-card {
    .main-card {
        width: 80%;
        max-width: 400px;
        height: 200px;
        padding: 20px;
        position: fixed;
        margin: 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

/* Screen 2 : Initialize */
.init-screen,
.dashboard-screen,
.candle-screen {
    position: fixed;
    width: 90%;
    height: 90%;
    top: 0;
    left: 0;
    margin: 5%;
    display: flex;
    flex-direction: column;
    z-index: 100;
    justify-content: center;
    align-items: center;
}
.init body {
    height: 120px;
}
.init-body p {
    margin: 10px 0;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Main Content */
.content {
    position: fixed;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 11;
    background: transparent;
    backdrop-filter: blur(5px);
}

.main-content {
    position: relative;
    height: 75%;
    max-height: 580px;
}

/* Screen 3 : Dashboard */
.dashbtn {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
}
.dashboard-btn {
    margin-top: 18px;
    background: rgba(0, 240, 255, 0.05);
    padding: 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    cursor: pointer;
    max-width: 500px;
    width: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.yes,
.no {
    margin: 5px;
}
.yes {
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #00f0ff;
}
.no {
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: #ff0000;
    z-index: 150;
    transition: transform 0.3s ease;
}
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
}
.data-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted rgba(0, 240, 255, 0.15);
    padding-bottom: 5px;
    font-size: 0.85rem;
    font-family: "JetBrains Mono", monospace;
}
.data-label {
    color: #8be9fd;
}
.data-value {
    color: #ffffff;
    font-weight: bold;
}
/* Screen 4 : Candle Section */
.candle-style {
    transform: translateY(0);
    position: relative;
    z-index: 140;
    width: 75px;
    height: auto;
}
.fire-style {
    transform: translate(-2px, 5px);
    position: relative;
    width: 75px;
    height: auto;
    z-index: 150;
}
.fire-hidden {
    opacity: 0;
}
.candle-container {
    transform: translateY(-20px);
    position: relative;
    width: auto;
    height: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.birthday-text {
    transform: translateY(-15px);
    text-align: center;
}
.birthday-text h3 {
    transform: translateY(10px);
    background-image: linear-gradient(#009abd, #00f0ff);
    font-family: "Space Mono", monospace;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 20px;
}
.birthday-text p {
    background-image: linear-gradient(#009abd, #00f0ff);
    font-family: "Space Mono", monospace;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 12px;
}

/* 1. Kontainer Utama */
.main-content-section {
    width: 100%;
    max-height: 100vh;
    padding-bottom: 10px;
    overflow-y: auto;
    box-sizing: border-box;
    padding-right: 6px;
}

/* 2. Timeline Kontainer */
.cyber-timeline {
    position: relative;
    border-left: 2px solid rgba(0, 240, 255, 0.4);
    box-shadow: -2px 0 8px rgba(0, 240, 255, 0.2);
    margin-left: 12px;
    padding-left: 28px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* 3. Item Timeline */
.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 10px;
}

/* 4. Titik Node / Bullet Neon */
.timeline-node {
    position: absolute;
    left: -34px;
    top: 15px;
    width: 10px;
    height: 10px;
    background: #02010a;
    border: 2px solid #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 6px #00f0ff;
    z-index: 2;
}

/* 5. Kotak Konten Timeline */
.timeline-content {
    padding: 14px 16px;
    border-radius: 6px;
    text-align: left;
}

/* 6. Label Tahun */
.timeline-year {
    font-size: 0.7rem;
    color: #ff79c6;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

/* 7. Kustomisasi Scrollbar Keren ala Cyberpunk */
.main-content-section::-webkit-scrollbar {
    width: 4px;
}

.main-content-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.main-content-section::-webkit-scrollbar-thumb {
    background: #00f0ff;
    border-radius: 4px;
}

/* Guestbook Form */
.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    text-align: left;
}
.terminal-input {
    background: rgba(2, 1, 10, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #00f0ff;
    padding: 10px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}
.terminal-input:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}
.textarea-input {
    resize: none;
}
.form-status {
    font-size: 0.75rem;
    margin-top: 8px;
    color: #50fa7b;
    font-family: "JetBrains Mono", monospace;
}

.boot-box {
    text-align: center;
}
.boot-text {
    font-size: 0.85rem;
    margin: 6px 0;
    color: #8be9fd;
}
.boot-highlight {
    font-size: 0.95rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
}
.big-number {
    font-family: "JetBrains Mono", monospace;
    font-size: 3.5rem;
    font-weight: bold;
    color: #00f0ff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    margin: 5px 0;
    animation: systemBoot 3s ease-in-out infinite;
}
@keyframes systemBoot {
    0%,
    100% {
        opacity: 1;
        transform: scale(0.9);
        filter: blur(2px);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}
.quote-text {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 15px 0;
    line-height: 1.5;
    border-left: 2px solid #00f0ff;
    border-right: 2px solid #00f0ff;
    padding: 0 8px;
}
