:root {
    --primary-accent: #f9c1c1;
    --primary-accent-hover: #d13b3b;
    --text-dark: #000;
    --text-light: #fff;
    --border-color: #000;
}

/* Ukiyo-e Canvas Background */
#ukiyo-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

body {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    background: url('https://raw.githubusercontent.com/KABURAKURIA/BACKGROUND-ASSETS/main/visuals/bg%20image.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* General Animation for main components */
.animated-component {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.8s ease-out forwards;
}

.header { animation-delay: 0.2s; }
.projects-container { animation-delay: 0.4s; }
.footer { animation-delay: 0.6s; }

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

/* Glassmorphism + Neobrutalism Card Style */
.glass-brutalist-card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 3px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.9);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.glass-brutalist-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px rgba(0,0,0,0.9);
}

.header {
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    margin: 100px 20px 0 20px;
    position: relative;
    z-index: 1;
    background-color: rgba(58, 58, 58, 0.2);
    border-bottom: 8px solid var(--text-light);
}
.header h1 {
    font-size: clamp(1.8rem, 1rem + 3vw, 2.5rem);
}

/* --- Consistent Drawer Styling --- */
.drawer {
    height: 100%;
    width: 250px; /* Consistent size */
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 3px solid var(--border-color);
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    overflow-x: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-top: 60px;
    z-index: 1001;
}
.drawer.is-open {
    transform: translateX(0);
}
.drawer a {
    padding: 15px 20px;
    text-decoration: none;
    font-size: 1.1em;
    color: var(--text-light);
    display: block;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: bold;
}
.drawer a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}
.drawer-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.drawer-close:hover {
    transform: rotate(90deg);
}

/* Consistent Buttons */
.btn-3d {
    background-color: var(--primary-accent);
    color: var(--text-dark);
    border: 3px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    font-family: 'IBM Plex Mono', monospace;
    text-decoration: none;
    display: inline-block;
    box-shadow: 4px 4px 0px var(--border-color);
    transition: transform 0.1s linear, box-shadow 0.1s linear;
}
.btn-3d:hover {
    background-color: var(--primary-accent-hover);
    color: var(--text-light);
}
.btn-3d:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px var(--border-color);
}

.drawer-toggle {
    font-size: 24px;
    color: var(--text-dark);
    background-color: var(--primary-accent);
    border: 3px solid var(--border-color);
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 4px 4px 0px var(--border-color);
    transition: transform 0.1s linear, box-shadow 0.1s linear;
}
.drawer-toggle:active {
     transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px var(--border-color);
}

/* --- PROJECTS LIST STYLING --- */
.projects-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.project-item {
    padding: 1.5rem 2rem;
    color: var(--text-dark);
    border-bottom: 2px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: default;
    /* **NEW** Staggered Animation */
    opacity: 0;
    transform: translateY(20px); /* Add initial transform */
    animation: fadeInUpItem 0.5s ease-out forwards;
}
.project-item:last-child {
    border-bottom: none;
}

.project-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02) translateY(0); /* Adjust hover transform */
    border-radius: 8px;
}

.project-info .project-title {
    font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
    font-weight: 700;
    margin: 0;
}

.project-info .project-description {
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    opacity: 0.8;
}

/* Keyframes for the new staggered animation */
@keyframes fadeInUpItem {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply staggered delay to each project item */
.project-item:nth-child(1) { animation-delay: 0.5s; }
.project-item:nth-child(2) { animation-delay: 0.6s; }
.project-item:nth-child(3) { animation-delay: 0.7s; }
.project-item:nth-child(4) { animation-delay: 0.8s; }
.project-item:nth-child(5) { animation-delay: 0.9s; }
.project-item:nth-child(6) { animation-delay: 1.0s; }
.project-item:nth-child(7) { animation-delay: 1.1s; }
.project-item:nth-child(8) { animation-delay: 1.2s; }

/* Footer */
.footer {
    text-align: center;
    margin: 40px auto;
    padding: 30px;
    max-width: 800px;
}
.footer p { margin: 0.5rem 0; }
.footer a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
}
