@import url('https://fonts.googleapis.com/css2?family=Staatliches&family=Rubik+Mono+One&family=Black+Ops+One&family=Orbitron:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    font-family: 'Rubik Mono One', monospace;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: blur(3px);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.splash-screen.fade-out {
    opacity: 0;
    transform: scale(1.2) translateY(-50px);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
}

.splash-content {
    text-align: center;
    color: #808080;
}

.splash-title {
    font-family: 'Black Ops One', cursive;
    font-size: 6rem;
    font-weight: 400;
    text-shadow: 2px 2px 0px #000, 4px 4px 0px #333, 0 0 15px rgba(128,128,128,0.8);
    margin-bottom: 2rem;
    letter-spacing: 4px;
    transform: skew(-3deg);
    /* Animation will be set via .czoko-page class */
}

.splash-subtitle {
    font-family: 'Rubik Mono One', monospace;
    font-size: 1.5rem;
    color: #666;
    text-shadow: 1px 1px 0px #000;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Portfolio specific styles */
.portfolio-content {
    margin-top: 100vh;
    width: 100%;
    padding-top: 2rem;
}

.portfolio-sec.navigation {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 800px;
    padding: 2rem 0;
}

.section-title {
    font-family: 'Black Ops One', cursive;
    font-size: 3rem;
    color: #808080;
    text-shadow: 2px 2px 0px #000, 4px 4px 0px #333, 0 0 8px rgba(128,128,128,0.6);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 2px;
    transform: skew(-2deg);
    /* Animation will be set via .czoko-page class */
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #ccc;
    text-shadow: 1px 1px 0px #000;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    background: rgba(128, 128, 128, 0.2);
    padding: 1rem;
    border-radius: 10px;
    font-family: 'Black Ops One', cursive;
    color: #808080;
    text-shadow: 1px 1px 0px #000;
    text-align: center;
    transform: skew(-2deg);
    transition: all 0.3s ease;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.skill-item:hover {
    background: rgba(128, 128, 128, 0.4);
    transform: skew(-2deg) scale(1.05);
    text-shadow: 1px 1px 0px #000, 0 0 10px rgba(128,128,128,0.8);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    transform: skew(-1deg);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: skew(-1deg) translateY(-5px);
    border-color: rgba(128, 128, 128, 0.5);
}

.project-title {
    font-family: 'Black Ops One', cursive;
    font-size: 1.5rem;
    color: #808080;
    text-shadow: 1px 1px 0px #000, 0 0 5px rgba(128,128,128,0.6);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.project-desc {
    font-family: 'Rubik Mono One', monospace;
    color: #ccc;
    text-shadow: 1px 1px 0px #000;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.project-tech {
    font-family: 'Black Ops One', cursive;
    color: #666;
    font-size: 0.9rem;
    text-shadow: 1px 1px 0px #000;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-family: 'Rubik Mono One', monospace;
    font-size: 1.2rem;
    color: #ccc;
    text-shadow: 1px 1px 0px #000;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    font-family: 'Black Ops One', cursive;
    font-size: 1.2rem;
    color: #808080;
    text-decoration: none;
    text-shadow: 1px 1px 0px #000, 0 0 5px rgba(128,128,128,0.6);
    padding: 1rem 2rem;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    transform: skew(-2deg);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(128, 128, 128, 0.2);
    transform: skew(-2deg) scale(1.05);
    text-shadow: 1px 1px 0px #000, 0 0 10px rgba(128,128,128,0.8);
    border-color: rgba(128, 128, 128, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.header {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
    pointer-events: none;
}

.header.hidden {
    opacity: 0;
    transform: translate(-50%, -60%);
    pointer-events: none;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    width: 200px;
    height: 200px;
    animation: rotateSwing 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

@keyframes rotateSwing {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(30deg); }
}

.title {
    font-family: 'Black Ops One', cursive;
    font-size: 5rem;
    font-weight: 400;
    color: #808080;
    text-shadow: 2px 2px 0px #000, 4px 4px 0px #333, 0 0 8px rgba(128,128,128,0.6);
    margin-bottom: 1rem;
    position: relative;
    min-height: 5rem;
    letter-spacing: 4px;
    transform: skew(-3deg);
    filter: contrast(1.2) brightness(0.9);
    text-align: center;
    width: 100%;
    display: block;
    /* Animation will be set via .czoko-page class */
}

/* 146 BPM = 2.4333 beats per second = ~411ms per beat */
@keyframes pulse146bpm {
    0%, 100% { 
        opacity: 1;
        text-shadow: 2px 2px 0px #000, 4px 4px 0px #333, 0 0 8px rgba(128,128,128,0.6);
    }
    50% { 
        opacity: 0.7;
        text-shadow: 1px 1px 0px #000, 2px 2px 0px #333, 0 0 4px rgba(128,128,128,0.3);
    }
}

/* Apply 146 BPM pulse to titles on both index.html and czoko.html */
.home .title,
.home #typewriter-title,
.home .splash-title,
.czoko-page .title, 
.czoko-page #typewriter-title, 
.czoko-page .splash-title {
    animation: pulse146bpm 0.411s infinite !important;
}

@keyframes fadeInOut {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.3;
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}


.subtitle {
    font-family: 'Rubik Mono One', monospace;
    font-size: 1.2rem;
    color: #666;
    text-shadow: 1px 1px 0px #000;
    margin-top: 0.5rem;
    letter-spacing: 1px;
    text-transform: lowercase;
    opacity: 0.8;
}

.navigation {
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
    pointer-events: auto;
}

.navigation.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: #808080;
    font-family: 'Black Ops One', cursive;
    font-size: 1.2rem;
    font-weight: 400;
    text-shadow: 2px 2px 0px #000, 4px 4px 0px #333;
    transition: all 0.3s ease;
    position: relative;
    margin: 0;
    transform: skew(-3deg);
    border: 2px solid transparent;
    background: linear-gradient(45deg, rgba(128,128,128,0.1), rgba(64,64,64,0.1));
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.typewriter-link::after {
    content: '|';
    animation: blink 1s infinite;
    color: #666;
}


.nav-link:hover {
    transform: translateY(-2px) skew(-2deg) scale(1.02);
    background: linear-gradient(135deg, #444 0%, #2a2a2a 100%);
    box-shadow: 4px 4px 0px #111;
    border-color: #777;
    color: #fff;
}

.nav-link:active {
    transform: translateY(-2px) scale(1.02);
}

.sparkle-border {
    position: relative;
}

.sparkle-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    background-size: 400% 400%;
    border-radius: 27px;
    z-index: -1;
    animation: sparkleGradient 2s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sparkle-border:hover::before {
    opacity: 1;
}

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

.decorative-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.graffiti {
    position: absolute;
    font-size: 3rem;
    color: #333;
    animation: fadeInOut 4s ease-in-out infinite;
    font-family: 'Black Ops One', cursive;
}

.graffiti-1 {
    top: 20%;
    left: 8%;
    animation-delay: 0s;
}

.graffiti-2 {
    top: 70%;
    right: 12%;
    animation-delay: 2s;
}

.graffiti-3 {
    top: 40%;
    left: 85%;
    animation-delay: 1s;
}

.smoke {
    position: absolute;
    font-size: 2rem;
    color: #444;
    animation: drift 6s ease-in-out infinite;
    opacity: 0.6;
}

.smoke-1 {
    bottom: 40%;
    left: 10%;
    animation-delay: 0s;
}

.smoke-2 {
    bottom: 35%;
    left: 15%;
    animation-delay: 1s;
}

.smoke-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes fadeInOut {
    0%, 100% { 
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1);
    }
}

@keyframes drift {
    0% { 
        transform: translateX(0px) translateY(0px);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(20px) translateY(-30px);
        opacity: 0.7;
    }
    100% { 
        transform: translateX(-10px) translateY(-60px);
        opacity: 0.2;
    }
}

.sparkle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkleGlow 2s ease-in-out infinite;
}

@keyframes sparkleGlow {
    0%, 100% { 
        transform: scale(0);
        opacity: 0;
    }
    50% { 
        transform: scale(3);
        opacity: 0.6;
    }
}

.dollar {
    position: fixed;
    font-size: 2.5rem;
    color: #666;
    font-weight: bold;
    text-shadow: 2px 2px 0px #000;
    pointer-events: none;
    z-index: 1000;
    animation: flyDollar 25s ease-out infinite;
    font-family: 'Black Ops One', cursive;
    opacity: 0.7;
}

@keyframes flyDollar {
    0% {
        transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateX(calc(100vw - 50px)) translateY(-200px) rotate(90deg) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateX(0px) translateY(-400px) rotate(180deg) scale(1);
        opacity: 1;
    }
    75% {
        transform: translateX(calc(100vw - 50px)) translateY(-200px) rotate(270deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateX(0px) translateY(0px) rotate(360deg) scale(1);
        opacity: 1;
    }
}

.dollar:nth-child(2n) {
    animation-delay: 2s;
    color: #444;
    text-shadow: 2px 2px 0px #000;
}

.dollar:nth-child(3n) {
    animation-delay: 4s;
    font-size: 2rem;
    color: #555;
    text-shadow: 2px 2px 0px #000;
}

.dollar:nth-child(4n) {
    animation-delay: 6s;
    color: #777;
    font-size: 2.8rem;
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link {
        width: 80%;
        max-width: 300px;
    }
    
    .logo {
        width: 120px;
        height: 120px;
    }
}