:root {
    --color-primary: #FFEA00;
    /* Neon Yellow */
    --color-secondary: #FF0099;
    /* Shocking Pink */
    --color-accent: #00E5FF;
    /* Electric Blue */
    --color-dark: #1a1a1a;
}

html,
body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    background-color: var(--color-primary);
    color: var(--color-dark);
    overflow-x: hidden;
    width: 100%;
    cursor: crosshair;
}

h1,
h2,
h3,
.display-font {
    font-family: 'Dela Gothic One', cursive;
    letter-spacing: -0.05em;
}

.code-font {
    font-family: 'VT323', monospace;
}

/* Brutalist Shadows */
.brutal-shadow {
    box-shadow: 8px 8px 0px 0px #000;
    border: 4px solid #000;
    transition: all 0.1s ease;
}

.brutal-shadow:active {
    transform: translate(4px, 4px);
    box-shadow: 4px 4px 0px 0px #000;
}

/* Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 15px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(5px, 9999px, 80px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(100px, 9999px, 50px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 60px, 0);
    }
}

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

@keyframes floating {
    0% {
        transform: translate(0, 0px);
    }

    50% {
        transform: translate(0, 15px);
    }

    100% {
        transform: translate(0, -0px);
    }
}

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

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border: 2px solid #000;
}

.bg-grid {
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Egg Rotation */
.rotate-egg:hover {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

/* Portfolio Modal Animation */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 100;
    overflow-y: auto;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-close-anim {
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

/* Contact Form Styles */
#contact-form input,
#contact-form textarea {
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

#contact-form input:focus,
#contact-form textarea:focus {
    box-shadow: inset 0 0 0 2px var(--color-accent);
}

#contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

#form-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}