@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@300;400;500;600;700&family=Press+Start+2P&display=swap');

:root {
    --primary: #FFD600; /* Kuning */
    --secondary: #FF4D9D; /* Pink */
    --accent: #00D1FF; /* Cyan */
    --success: #00FF66; /* Hijau */
    --black: #000000;
    --white: #FFFFFF;
    --brutalist-shadow: 6px 6px 0px 0px var(--black);
    --brutalist-shadow-sm: 4px 4px 0px 0px var(--black);
    --brutalist-shadow-lg: 10px 10px 0px 0px var(--black);
    --brutalist-border: 4px solid var(--black);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 4V28L14 22H24L8 4Z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E"), auto;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
}

.font-mono {
    font-family: 'IBM Plex Mono', monospace;
}

.font-pixel {
    font-family: 'Press Start 2P', cursive;
}

/* Neo Brutalist Components */
.brutalist-card {
    background: var(--white);
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    transition: all 0.2s ease;
}

.brutalist-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--brutalist-shadow-lg);
}

.brutalist-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow-sm);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    transition: all 0.1s ease;
}

.brutalist-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--brutalist-shadow);
}

.brutalist-button:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* Retro Utilities */
.grid-bg {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    z-index: -1;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

.marquee-container {
    background: var(--black);
    color: var(--white);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: var(--brutalist-border);
    border-bottom: var(--brutalist-border);
}

.marquee-text {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.5rem;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--white);
    border-left: var(--brutalist-border);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border: 3px solid var(--black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Sections */
section {
    padding: 5rem 10%;
    position: relative;
    min-height: 50vh; /* Ensure sections have at least some height */
}

#about {
    scroll-margin-top: 80px; /* Offset for fixed navbar */
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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