/* Tambahkan di awal file */
:root {
    --neon-green: #0f0;
    --neon-pink: #f0f;
    --neon-blue: #0ff;
    --neon-yellow: #ff0;
    --neon-red: #f00;
}

/* CRT Effect lebih intens */
.crt-effect::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 255, 0, 0.08) 0 0 / 100% 2px,
        rgba(0, 0, 0, 0.2));
    pointer-events: none;
    z-index: 9999;
    animation: scanlines 60s linear infinite;
}

@keyframes scanlines {
    from { background-position: 0 0; }
    to { background-position: 0 -100vh; }
}

/* Glitch Effect */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}
.glitch::before {
    color: var(--neon-pink);
    animation: glitch-effect 3s infinite;
}
.glitch::after {
    color: var(--neon-blue);
    animation: glitch-effect 2s infinite reverse;
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

/* Deklarasi Font Kustom */
@font-face {
    font-family: 'Press Start 2P';
    src: url('../fonts/press-start-2p-v15-latin-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'VT323';
    src: url('../fonts/vt323-v17-latin-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Gaya Dasar dengan Texture Vintage */
body {
    background-image: 
    linear-gradient(rgba(0, 150, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    color: #3a3226;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Heading dengan Font Retro */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Press Start 2P', cursive;
    color: #5d2906;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
}

/* Navigasi Retro */
.navbar {
    background-color: #5d2906 !important;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
}

.navbar-brand {
    font-size: 1.2rem;
}

/* Tombol Aksi */
.btn-primary {
    background-color: #8B4513;
    border: 2px solid #5D2906;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #A0522D;
    transform: translateY(-2px);
}

/* Efek Kartu Retro */
.card {
    background: rgba(255, 248, 220, 0.85);
    border: 3px solid #8B4513;
    border-radius: 0;
    box-shadow: 5px 5px 0px rgba(139, 69, 19, 0.3);
}

.card-header {
    background: linear-gradient(to bottom, #8B4513, #5D2906) !important;
    color: #FFD700 !important;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Tabel dengan Gaya Retro */
.table {
    background-color: rgba(255, 248, 220, 0.7);
}

.table th {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    background-color: #5D2906 !important;
    color: #FFD700 !important;
    letter-spacing: 1px;
}

/* Form Input */
.form-control {
    background-color: rgba(255, 248, 220, 0.9);
    border: 2px solid #8B4513;
    border-radius: 0;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

/* Efek Hover Link */
a {
    color: #8B4513;
    text-decoration: underline;
}

a:hover {
    color: #5D2906;
    text-decoration: none;
}

/* Footer Retro */
.footer {
    background: linear-gradient(to bottom, #5D2906, #3a2011);
    color: #FFF8DC;
    border-top: 3px solid #8B4513;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

/* Animasi Retro */
@keyframes pixelBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.btn:hover {
    animation: pixelBounce 0.4s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}

/* Pixel Text Effect */
.pixel-text {
    position: relative;
    display: inline-block;
}

.pixel-text::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FFD700;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pixel-text:hover::after {
    transform: scaleX(1);
}

/* Vintage Border Effect */
.vintage-border {
    border: 12px solid transparent;
    padding: 15px;
    position: relative;
}

.vintage-border::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 3px dashed #8B4513;
    pointer-events: none;
}

/* CRT Screen Effect (untuk konten utama) */
/*.crt-effect {*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/

/*.crt-effect::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);*/
/*    background-size: 100% 4px;*/
/*    z-index: 1;*/
/*    pointer-events: none;*/
/*    animation: scanline 6s linear infinite;*/
/*}*/

@keyframes scanline {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* ========== HEADER STYLES ========== */
.pixel-banner {
    background: #000;
    border-bottom: 4px dashed var(--neon-green);
    padding: 10px 0;
    text-align: center;
    color: var(--neon-green);
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
}

.pixel-nav {
    background: #111 !important;
    border-bottom: 3px solid var(--neon-pink);
    font-family: 'Press Start 2P', cursive;
}

.pixel-nav .navbar-item {
    color: var(--neon-yellow) !important;
    text-shadow: 2px 2px 0 var(--neon-red);
    font-size: 0.8rem;
}

/* ========== FOOTER STYLES ========== */
.retro-footer {
    background: #111;
    border-top: 3px dotted var(--neon-blue);
    color: var(--neon-green);
    padding: 20px 0;
    margin-top: 40px;
    font-family: 'VT323', monospace;
}

.retro-footer a {
    color: var(--neon-yellow);
}

.retro-footer a:hover {
    color: var(--neon-pink);
}

.retro-console {
    background: #000;
    border: 3px solid var(--neon-red);
    color: var(--neon-green);
    font-family: 'VT323', monospace;
    padding: 10px;
    margin: 20px;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 300px;
    max-height: 150px;
    overflow-y: auto;
}

.console-header {
    color: var(--neon-yellow);
    border-bottom: 1px solid var(--neon-green);
    margin-bottom: 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

/* ========== UTILITY CLASSES ========== */
.retro-90s {
    background: #000 url('../images/pixel-grid.png');
    color: var(--neon-green);
    font-family: 'VT323', monospace;
    line-height: 1.6;
}

.pixel-heart {
    color: var(--neon-red);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ========== HOMEPAGE STYLES ========== */
.retro-homepage {
    padding: 20px;
    animation: flicker 0.1s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 0.95; }
    100% { opacity: 1; }
}

/* Marquee Effect */
.retro-marquee-container {
    background: #000;
    border: 2px solid var(--neon-red);
    padding: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.retro-marquee {
    color: var(--neon-yellow);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.pixel-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px dashed var(--neon-blue);
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-ascii {
    flex: 1;
    min-width: 300px;
    color: var(--neon-green);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.retro-subtitle {
    color: var(--neon-pink);
    font-size: 1.5rem;
    margin: 20px 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Feature Boxes */
.retro-features {
    margin: 50px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-box {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-green);
    padding: 20px;
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translate(-5px, -5px);
    box-shadow: 5px 5px 0 var(--neon-pink);
}

.feature-icon {
    background: var(--neon-blue);
    color: #000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-price {
    color: var(--neon-yellow);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    margin: 10px 0;
}

/* Testimonial */
.retro-testimonial {
    margin: 50px 0;
}

.testimonial-box {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-pink);
    padding: 30px;
    position: relative;
}

.testimonial-quote {
    position: absolute;
    top: 10px;
    left: 10px;
    color: var(--neon-blue);
    font-family: 'Press Start 2P', cursive;
    font-size: 3rem;
    opacity: 0.3;
}

blockquote {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: var(--neon-green);
    margin: 20px 0;
    padding-left: 30px;
}

.testimonial-author {
    text-align: right;
    color: var(--neon-yellow);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

.neon-text {
    color: var(--neon-blue);
}

/* Status Box */
.retro-status {
    margin: 50px 0;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.status-box {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-green);
    padding: 15px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-light {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
}

.status-box.online .status-light {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.status-box.offline .status-light {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}