html { scroll-behavior: smooth; }
:root {
    --primary-accent: #e56b55;
    --primary-accent-hover: #c44933;
    --text-dark: #f4ecd8;
    --text-light: #f4ecd8;
    --border-color: rgba(255, 255, 255, 0.2);

    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);}

/* ANON STUDIOS Canvas Background */
#ukiyo-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.3; pointer-events: none; }

body {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    background: url('assets/bg_image.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-light);
    overflow-x: hidden;
}

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

.header { animation-delay: 0.2s; }
.carousel { animation-delay: 0.4s; }
.about-us { animation-delay: 0.6s; }
.footer { animation-delay: 0.8s; }

@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); /* For Safari */
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-brutalist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.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);
}

/* Drawer Styling (FIXED) */
.drawer {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0; /* Set left to 0 for transform positioning */
    transform: translateX(-100%); /* Start off-screen */
    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: 4;
}
.drawer.is-open {
    transform: translateX(0); /* Slide into view */
}
.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);
}

/* 3D Skeuomorphic/Brutalist Buttons */
.btn-3d {
    background-color: var(--primary-accent);
    color: var(--text-light);
    border: 1px 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: 0 4px 15px rgba(0, 0, 0, 0.2);
    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: translateY(2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.drawer-toggle:hover {
    background-color: var(--primary-accent-hover);
    color: var(--text-light);
}
.drawer-toggle:active {
     transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Infinite Carousel */
.carousel {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
    padding: 10px;
}
.carousel-wrapper {
    display: flex;
    width: 800%; 
    animation: slide 40s linear infinite;
}
.carousel-item {
    width: 12.5%;
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}
.carousel img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

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

.about-us {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
}
.about-us h2 {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: bold;
}
.about-us p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer {
    text-align: center;
    margin: 40px auto;
    padding: 30px;
    max-width: 800px;
}
.footer p {
    margin-bottom: 15px;
}
.footer a {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: bold;
}

@keyframes pulse-btn {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
    50% { transform: scale(1.02); box-shadow: 0 4px 15px rgba(229, 107, 85, 0.4); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
}
