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

.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

body {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('images/background.png') center/cover no-repeat fixed;
    color: #ffffff;
    overflow-x: hidden;
}

/* Hero Section */
/* ============================================================
CINEMATIC PARALLAX HERO — OVERHAUL LENGKAP
GANTI seluruh blok .hero di style.css dengan ini
   ============================================================ */

/* ── Hero wrapper ── */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #020208;
}

/* ── Layer system — setiap layer bergerak dengan kecepatan berbeda ── */
/* Layer 0: Sky / deep background (paling lambat) */
.hero-layer-sky {
    position: absolute;
    inset: 0;
    background: url('images/hero-background.png') center / cover no-repeat;
    z-index: 0;
    will-change: transform;
}

/* Layer 1: Atmospheric fog / overlay */
.hero-layer-fog {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% 100%, rgba(2,2,8,0.95) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 30% 60%, rgba(94,236,255,0.04) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 70% 40%, rgba(167,139,250,0.03) 0%, transparent 50%);
    z-index: 1;
    will-change: transform;
}

/* Layer 2: Particle canvas (tengah) */
.hero-canvas-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Layer 3: Character image (lebih cepat dari bg) */
.hero-layer-char {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    z-index: 3;
    will-change: transform;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-layer-char img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 95vh;
    object-fit: contain;
    object-position: bottom right;
    align-self: flex-end;
    /* Mask gradient — karakter fade ke bawah dan ke kiri */
    -webkit-mask-image:
        linear-gradient(to left, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%),
        linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to left, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%),
        linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%);
    mask-composite: intersect;
    filter: brightness(0.88) saturate(1.1);
    transition: filter 0.5s ease;
}

/* Aura di belakang karakter */
.hero-char-aura {
    position: absolute;
    bottom: -5%;
    right: 5%;
    width: 65%;
    height: 80%;
    background: radial-gradient(ellipse at 60% 80%,
        rgba(94,236,255,0.08) 0%,
        rgba(167,139,250,0.05) 40%,
        transparent 70%);
    z-index: 2;
    will-change: transform;
    filter: blur(40px);
    pointer-events: none;
}

/* Layer 4: Content teks (paling depan, paling cepat) */
.hero-layer-content {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    pointer-events: none;
}

/* Teks side */
.hero-text {
    pointer-events: all;
    will-change: transform;
}

/* Eyebrow */
.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(94,236,255,0.6);
    margin-bottom: 1rem;
    opacity: 0;
    animation: heroFadeUp 0.8s 0.2s ease forwards;
}

/* Title — massive cinematic */
.hero-title {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.03em;
    background: linear-gradient(
        160deg,
        #ffffff 0%,
        rgba(94,236,255,0.9) 35%,
        rgba(167,139,250,0.8) 70%,
        rgba(236,72,153,0.6) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation:
        heroFadeUp 0.8s 0.4s ease forwards,
        gradientShift 8s ease-in-out infinite;
    opacity: 0;
    margin-bottom: 0.5rem;
}

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

/* Subtitle — Japanese */
.hero-subtitle-jp {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.2);
    margin-bottom: 2rem;
    opacity: 0;
    animation: heroFadeUp 0.8s 0.55s ease forwards;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.45);
    max-width: 460px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: heroFadeUp 0.8s 0.7s ease forwards;
}

/* Metadata strip */
.hero-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: heroFadeUp 0.8s 0.85s ease forwards;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hmi-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
}

.hmi-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: heroFadeUp 0.8s 1s ease forwards;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s ease;
    background: linear-gradient(135deg, #5eecff, #a78bfa);
    color: #05050f;
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: inherit;
}

.btn-primary:hover::after { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(94,236,255,0.35);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s ease;
    letter-spacing: 0.04em;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(94,236,255,0.4);
    color: #5eecff;
    transform: translateY(-3px);
}

/* Right side — empty, karakter image ada di absolute layer */
.hero-image { display: none; } /* hide lama */

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 6;
    opacity: 0;
    animation: heroFadeUp 0.8s 1.4s ease forwards;
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
}

.arrow-down {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(94,236,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%   { opacity: 1; transform: scaleY(1);   transform-origin: top; }
    100% { opacity: 0; transform: scaleY(0.3); transform-origin: top; }
}

/* Mouse-follow vignette REMOVED FOR PERFORMANCE */
.hero-vignette {
    display: none;
}

/* Entry animations */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-layer-content {
        grid-template-columns: 1fr;
        padding-top: 6rem;
        align-items: flex-start;
    }

    .hero-layer-char {
        width: 100%;
        height: 50vh;
        bottom: 0;
        top: auto;
        -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
        mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    }

    .hero-description { max-width: 100%; }
    .hero-title { font-size: clamp(4rem, 14vw, 7rem); }
    .hero-layer-content { padding-bottom: 3rem; }
}

@media (max-width: 540px) {
    .hero-meta { gap: 1.25rem; }
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-secondary { text-align: center; }
}

/* Image Slider Section Premium */
.image-slider-section {
    padding: 4rem 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #020208, #0a0a14);
    position: relative;
    border-top: 1px solid rgba(94, 236, 255, 0.1);
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.image-slider-section::before, .image-slider-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 2;
    pointer-events: none;
}
.image-slider-section::before {
    left: 0;
    background: linear-gradient(to right, #020208 0%, transparent 100%);
}
.image-slider-section::after {
    right: 0;
    background: linear-gradient(to left, #0a0a14 0%, transparent 100%);
}

.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.slider-track {
    display: flex;
    gap: 2rem;
    animation: scrollRight 35s linear infinite;
    width: max-content;
}

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

.slider-track:hover {
    animation-play-state: paused;
}

.slide-item {
    flex-shrink: 0;
    width: 320px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slide-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(94, 236, 255, 0.1);
    transition: all 0.3s ease;
    pointer-events: none;
}

.slide-item:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 15px 40px rgba(94, 236, 255, 0.3);
    border-color: rgba(94, 236, 255, 0.5);
    z-index: 10;
}

.icard-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

/* Video Preview Styles */
.icard-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
    will-change: opacity, transform;
}

.icard-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.identity-card:hover .icard-video-wrap {
    opacity: 1;
    visibility: visible;
}

.icard-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

/* ============================================================
   MAGICAL EFFECTS: CURSOR & BACKGROUND
   ============================================================ */

#cursorTrailCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10000;
}

/* Background Magic Circle */
.magic-circle-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    pointer-events: none;
    z-index: -1;
    perspective: 1200px;
    opacity: 0.15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magic-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(94, 236, 255, 0.4);
    box-shadow: 0 0 20px rgba(94, 236, 255, 0.1);
    position: relative;
    animation: rotate3DPlane 25s linear infinite;
    transform-style: preserve-3d;
    will-change: transform;
}

.magic-circle::before,
.magic-circle::after {
    content: '';
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    border: 1px dashed rgba(94, 236, 255, 0.2);
    animation: rotate3DInverse 15s linear infinite;
}

.magic-circle::after {
    inset: 25%;
    border: 0.5px solid rgba(157, 92, 255, 0.3);
    animation: rotate3DPlane 40s linear infinite reverse;
}

@keyframes rotate3DPlane {
    0% { transform: rotateX(60deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateZ(360deg); }
}

@keyframes rotate3DInverse {
    0% { transform: rotateZ(360deg); }
    100% { transform: rotateZ(0deg); }
}

/* Scroll Reveal Animations - Simplified for Visibility Reliability */
.reveal-section {
    opacity: 1; /* Default to visible to fix the vanishing bug */
    transform: none;
    transition: opacity 0.8s ease;
}

.reveal-section.revealed {
    opacity: 1;
    transform: none;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.85) contrast(1.1);
}

.slide-item:hover img {
    transform: scale(1.15);
    filter: brightness(1.1) contrast(1.1);
}

/* Characters Section */
.characters-section {
    padding: 6rem 2rem;
    background: url('images/characters-bg.jpg') center/cover no-repeat;
    position: relative;
}

.section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #5eecff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.characters-slider {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.characters-slider::-webkit-scrollbar {
    display: none;
}

.character-card {
    scroll-snap-align: center;
    flex-shrink: 0;
    flex: 0 0 350px;
    width: 350px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(94, 236, 255, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Kursor Trail (Tambahkan class ini agar JS Anda tidak merusak layout) */
.cursor-trail {
    mix-blend-mode: screen;
    filter: blur(2px);
}

.character-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(94, 236, 255, 0.3);
    border-color: #5eecff;
}

.character-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.character-card:hover .character-image img {
    transform: scale(1.1);
}

.character-info {
    padding: 1.5rem;
}

.character-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #5eecff;
}

.character-info p {
    color: #b8b8b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.character-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(94, 236, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #5eecff;
    border: 1px solid rgba(94, 236, 255, 0.3);
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #5eecff;
    background: transparent;
    color: #5eecff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #5eecff;
    color: #0a0a0a;
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(94, 236, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #5eecff;
    transform: scale(1.3);
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 2rem;
    background: url('images/gallery-bg.jpg') center/cover no-repeat;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    color: #5eecff;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: #1a1a2e;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #5eecff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #5eecff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(94, 236, 255, 0.2);
    color: #b8b8b8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .character-card {
        width: 280px;
    }
}

/* ===== CONTACT & SUPPORT SECTION ===== */
.contact-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg,
        rgba(10, 10, 20, 0.95) 0%,
        rgba(15, 5, 30, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(94, 236, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-subtitle {
    text-align: center;
    color: #888;
    font-size: 1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Developer Card */
.dev-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(94, 236, 255, 0.15);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dev-card:hover {
    border-color: rgba(94, 236, 255, 0.4);
    box-shadow: 0 0 40px rgba(94, 236, 255, 0.08);
}

.dev-avatar {
    position: relative;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #5eecff, #a78bfa) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dev-initial {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #5eecff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.dev-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.dev-handle {
    color: #5eecff;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.github-link:hover {
    background: #5eecff;
    color: #0a0a0a;
    border-color: #5eecff;
    transform: translateY(-2px);
}

/* Social Media Grid */
.socmed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.socmed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(94, 236, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.socmed-card:hover {
    transform: translateY(-8px);
    border-color: rgba(94, 236, 255, 0.5);
    box-shadow: 0 15px 35px rgba(94, 236, 255, 0.15);
}

.socmed-card[data-platform="instagram"]:hover { border-color: #e1306c; box-shadow: 0 15px 35px rgba(225, 48, 108, 0.2); }
.socmed-card[data-platform="tiktok"]:hover    { border-color: #69c9d0; box-shadow: 0 15px 35px rgba(105, 201, 208, 0.2); }
.socmed-card[data-platform="discord"]:hover   { border-color: #5865f2; box-shadow: 0 15px 35px rgba(88, 101, 242, 0.2); }
.socmed-card[data-platform="telegram"]:hover  { border-color: #26a5e4; box-shadow: 0 15px 35px rgba(38, 165, 228, 0.2); }
.socmed-card[data-platform="whatsapp"]:hover  { border-color: #25d366; box-shadow: 0 15px 35px rgba(37, 211, 102, 0.2); }
.socmed-card[data-platform="email"]:hover     { border-color: #ea4335; box-shadow: 0 15px 35px rgba(234, 67, 53, 0.2); }
.socmed-card[data-platform="youtube"]:hover   { border-color: #ff0000; box-shadow: 0 15px 35px rgba(255, 0, 0, 0.2); }
.socmed-card[data-platform="facebook"]:hover  { border-color: #1877f2; box-shadow: 0 15px 35px rgba(24, 119, 242, 0.2); }
.socmed-card[data-platform="x"]:hover         { border-color: #fff; box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1); }
.socmed-card[data-platform="gitlab"]:hover    { border-color: #fca121; box-shadow: 0 15px 35px rgba(252, 161, 33, 0.2); }

.socmed-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(94, 236, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5eecff;
    transition: background 0.3s ease;
}

.socmed-card[data-platform="instagram"] .socmed-icon { color: #e1306c; background: rgba(225, 48, 108, 0.08); }
.socmed-card[data-platform="tiktok"]    .socmed-icon { color: #69c9d0; background: rgba(105, 201, 208, 0.08); }
.socmed-card[data-platform="discord"]   .socmed-icon { color: #5865f2; background: rgba(88, 101, 242, 0.08); }
.socmed-card[data-platform="telegram"]  .socmed-icon { color: #26a5e4; background: rgba(38, 165, 228, 0.08); }
.socmed-card[data-platform="whatsapp"]  .socmed-icon { color: #25d366; background: rgba(37, 211, 102, 0.08); }
.socmed-card[data-platform="email"]     .socmed-icon { color: #ea4335; background: rgba(234, 67, 53, 0.08); }
.socmed-card[data-platform="youtube"]   .socmed-icon { color: #ff0000; background: rgba(255, 0, 0, 0.08); }
.socmed-card[data-platform="facebook"]  .socmed-icon { color: #1877f2; background: rgba(24, 119, 242, 0.08); }
.socmed-card[data-platform="x"]         .socmed-icon { color: #fff; background: rgba(255, 255, 255, 0.05); }
.socmed-card[data-platform="gitlab"]    .socmed-icon { color: #fca121; background: rgba(252, 161, 33, 0.08); }

.socmed-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.socmed-handle {
    font-size: 0.78rem;
    color: #666;
}

/* Projects Grid */
.projects-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.projects-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(94, 236, 255, 0.3), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(94, 236, 255, 0.06);
    border-color: rgba(94, 236, 255, 0.3);
    transform: translateX(6px);
}

.project-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.project-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.project-desc {
    font-size: 0.78rem;
    color: #666;
}

.project-arrow {
    color: #5eecff;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Contact Section */
@media (max-width: 768px) {
    .socmed-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .dev-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .github-link {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .socmed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}
/* ===== END CONTACT SECTION ===== */

/* ===== PROFILE & SUPPORT ME ===== */
.profile-section {
    padding: 6rem 2rem;
    position: relative;
    background: linear-gradient(180deg,
        rgba(5, 5, 15, 0.97) 0%,
        rgba(10, 5, 25, 0.99) 100%);
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(94, 236, 255, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(167, 139, 250, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.profile-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Profile Hero Card */
.profile-hero-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(94, 236, 255, 0.12);
    border-radius: 28px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.profile-hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(94,236,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.profile-hero-card:hover {
    border-color: rgba(94, 236, 255, 0.3);
    box-shadow: 0 30px 70px rgba(94, 236, 255, 0.07);
}

/* Photo */
.profile-photo-wrap {
    position: relative;
    width: 220px;
    height: 280px;
    margin: 0 auto;
}

.profile-photo-ring {
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: linear-gradient(135deg, #5eecff, #a78bfa, #ec4899);
    z-index: 0;
    animation: ringRotate 6s linear infinite;
}

@keyframes ringRotate {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.profile-photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    z-index: 1;
    display: block;
    border: 3px solid #0a0a14;
}

.profile-status-dot {
    position: absolute;
    bottom: 10px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid #0a0a14;
    z-index: 2;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(34,197,94,0.5); }
    50%       { box-shadow: 0 0 20px rgba(34,197,94,0.9); }
}

/* Profile Text */
.profile-greeting {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #5eecff;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.profile-name {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
}

.profile-name span {
    background: linear-gradient(135deg, #5eecff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #888;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.profile-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.stack-badge {
    padding: 0.3rem 0.9rem;
    background: rgba(94, 236, 255, 0.08);
    border: 1px solid rgba(94, 236, 255, 0.2);
    border-radius: 20px;
    font-size: 0.78rem;
    color: #5eecff;
    letter-spacing: 0.05em;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-github:hover {
    background: #fff;
    color: #0a0a14;
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-support {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    background: linear-gradient(135deg, #5eecff, #a78bfa);
    border: none;
    border-radius: 30px;
    color: #0a0a14;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
}

.btn-support:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(94, 236, 255, 0.35);
    filter: brightness(1.1);
}

/* ── Identity Toggle ── */
.identity-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.identity-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(94,236,255,0.2);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    cursor: pointer;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    width: 100%;
    text-align: left;
    overflow: hidden;
    transition: all 0.3s ease;
}

.identity-toggle:hover {
    background: rgba(94,236,255,0.05);
    border-color: rgba(94,236,255,0.4);
}

.identity-toggle.active {
    background: rgba(94,236,255,0.06);
    border-color: #5eecff;
    box-shadow: 0 0 30px rgba(94,236,255,0.1);
}

.toggle-icon {
    color: #5eecff;
    font-size: 1rem;
    flex-shrink: 0;
    animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px #5eecff); }
    50% { transform: scale(1.3); filter: drop-shadow(0 0 12px #5eecff); }
}

.toggle-text {
    flex: 1;
    background: linear-gradient(270deg, #fff, #5eecff, #a78bfa, #5eecff, #fff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradientPan 5s ease infinite;
    filter: drop-shadow(0 0 8px rgba(94,236,255,0.5));
}

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

.toggle-arrow {
    font-size: 0.9rem;
    color: #5eecff;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.identity-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.toggle-ripple {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(94,236,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.identity-toggle:hover .toggle-ripple {
    opacity: 1;
}

.identity-hint {
    font-size: 0.8rem;
    color: #555;
    text-align: center;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.identity-block.revealed .identity-hint {
    opacity: 0;
    pointer-events: none;
}

/* Identity Cards Grid */
.identity-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    perspective: 1200px; /* Ditambahkan 3D perspective */
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s ease;
}

.identity-cards.open {
    max-height: 800px;
    opacity: 1;
}

/* Individual Identity Card */
.identity-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    overflow: visible;
    cursor: pointer;
    /* Efek magis melayang saat terbuka, ringan (GPU Accelerated) */
    transform: translate3d(0, 50px, 0) rotateX(-15deg) scale(0.9);
    transform-origin: top center;
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.7s ease;
    transition-delay: var(--delay);
}

.identity-cards.open .identity-card {
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    opacity: 1;
}

.identity-card:hover {
    transform: translateY(-10px) !important;
    border-color: rgba(94,236,255,0.35);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Per-character accent colors */
.identity-card[data-char="frieren"]:hover { border-color: #5eecff; box-shadow: 0 20px 40px rgba(94,236,255,0.15); }
.identity-card[data-char="himmel"]:hover  { border-color: #fbbf24; box-shadow: 0 20px 40px rgba(251,191,36,0.15); }
.identity-card[data-char="fern"]:hover    { border-color: #a78bfa; box-shadow: 0 20px 40px rgba(167,139,250,0.15); }
.identity-card[data-char="ubel"]:hover    { border-color: #f87171; box-shadow: 0 20px 40px rgba(248,113,113,0.15); }

.icard-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.icard-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.identity-card:hover .icard-img-wrap img {
    transform: scale(1.08);
}

.icard-glow {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(10,10,20,0.95) 0%, transparent 100%);
}

.icard-content {
    padding: 1.1rem;
}

.icard-badge {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.icard-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.6rem;
}

.identity-card[data-char="frieren"] .icard-name, .identity-card[data-char="frieren"] .icard-name-link { color: #f4f4f2; }
.identity-card[data-char="himmel"]  .icard-name, .identity-card[data-char="himmel"]  .icard-name-link { color: #24c2fb; }
.identity-card[data-char="fern"]    .icard-name, .identity-card[data-char="fern"]    .icard-name-link { color: #6f56bb; }
.identity-card[data-char="ubel"]    .icard-name, .identity-card[data-char="ubel"]    .icard-name-link { color: #32c63a; }

.icard-name-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.icard-name-link:hover {
    filter: brightness(1.3) drop-shadow(0 0 8px currentColor);
    transform: translateX(4px);
}

.icard-name-arrow {
    font-size: 0.9rem;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.icard-name-link:hover .icard-name-arrow {
    transform: translate(2px, -2px);
    opacity: 1;
}

.icard-desc {
    font-size: 0.78rem;
    line-height: 1.7;
    color: #777;
    margin-bottom: 0.85rem;
}

.icard-trait {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.icard-trait span {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.68rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
}

/* Responsive */
@media (max-width: 900px) {
    .profile-hero-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .profile-photo-wrap { margin: 0 auto; }
    .profile-bio { margin: 0 auto 1.5rem; }
    .profile-stack, .profile-actions { justify-content: center; }
    .identity-cards { grid-template-columns: repeat(2, 1fr); }
    .identity-cards.open { max-height: 1400px; }
}

@media (max-width: 540px) {
    .identity-cards { grid-template-columns: repeat(2, 1fr); }
    .profile-name { font-size: 2rem; }
    .identity-toggle { font-size: 1.2rem; padding: 1rem 1.25rem; }
}
/* ===== END PROFILE SECTION ===== */

/* ===== ANIME INFO MODAL ===== */
.anime-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.anime-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.anime-modal-box {
    background: #0d0d1a;
    border: 1px solid rgba(94, 236, 255, 0.2);
    border-radius: 24px;
    width: 100%;
    max-width: 780px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(94,236,255,0.3) transparent;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(94,236,255,0.05);
}

.anime-modal-overlay.open .anime-modal-box {
    transform: translateY(0) scale(1);
}

.anime-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.anime-modal-close:hover {
    background: rgba(255,255,255,0.15);
    transform: rotate(90deg);
}

/* Loading */
.anime-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 4rem 2rem;
    color: #888;
    font-size: 0.9rem;
}

.anime-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(94, 236, 255, 0.15);
    border-top-color: #5eecff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header layout */
.anime-modal-header {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.anime-modal-poster {
    width: 160px;
    height: 230px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 2px solid rgba(94,236,255,0.15);
}

.anime-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.anime-modal-badges span {
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-status {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.4);
    color: #22c55e;
}

.badge-type {
    background: rgba(94,236,255,0.1);
    border: 1px solid rgba(94,236,255,0.3);
    color: #5eecff;
}

.badge-year {
    background: rgba(167,139,250,0.1);
    border: 1px solid rgba(167,139,250,0.3);
    color: #a78bfa;
}

.anime-modal-meta h2 {
    font-size: 1.9rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.anime-modal-subtitle {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 1.25rem;
}

.anime-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.anime-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.anime-stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
}

.anime-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5eecff;
}

/* Synopsis */
.anime-modal-synopsis {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.025);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
}

.anime-modal-synopsis h4 {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5eecff;
    margin-bottom: 0.85rem;
}

.anime-modal-synopsis p {
    font-size: 0.88rem;
    line-height: 1.85;
    color: #999;
}

/* Genres */
.anime-modal-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.genre-tag {
    padding: 0.35rem 0.9rem;
    background: rgba(167,139,250,0.08);
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 20px;
    font-size: 0.78rem;
    color: #a78bfa;
}

/* Footer */
.anime-modal-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-mal {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #5eecff, #a78bfa);
    border-radius: 30px;
    color: #0a0a14;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-mal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(94,236,255,0.3);
}

/* Error */
.anime-error {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.btn-retry {
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(94,236,255,0.3);
    background: transparent;
    color: #5eecff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    background: rgba(94,236,255,0.1);
}

/* Responsive */
@media (max-width: 600px) {
    .anime-modal-header {
        grid-template-columns: 1fr;
    }
    .anime-modal-poster {
        width: 130px;
        height: 185px;
    }
    .anime-modal-box {
        padding: 1.5rem;
    }
}
/* ===== END ANIME INFO MODAL ===== */

/* ============================================================
   TAMBAH DI PALING BAWAH style.css
   ============================================================ */

/* ── Shared helpers ── */
.cs-eyebrow {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #5eecff;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.cs-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 560px;
    margin: -1.5rem auto 3.5rem;
}

/* ============================================================
   CHARACTERS SECTION — OVERHAUL
   ============================================================ */
.characters-section {
    padding: 6rem 2rem;
    background: url('images/characters-bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.characters-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 15, 0.88);
    z-index: 0;
}

.cs-header,
.char-tabs,
.char-showcase {
    position: relative;
    z-index: 1;
}

.cs-header {
    text-align: center;
    margin-bottom: 0;
}

/* ── Tabs ── */
.char-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.char-tab {
    padding: 0.55rem 1.4rem;
    border: 1px solid rgba(94,236,255,0.2);
    background: rgba(255,255,255,0.03);
    border-radius: 30px;
    color: #888;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.04em;
}

.char-tab:hover {
    border-color: rgba(94,236,255,0.5);
    color: #fff;
    background: rgba(94,236,255,0.07);
}

.char-tab.active {
    border-color: #5eecff;
    background: rgba(94,236,255,0.12);
    color: #5eecff;
    box-shadow: 0 0 20px rgba(94,236,255,0.1);
}

/* ── Panel ── */
.char-showcase {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    min-height: 540px;
}

.char-panel {
    display: none;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: start;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(94,236,255,0.1);
    border-radius: 28px;
    padding: 3rem;
    animation: panelFadeIn 0.45s ease;
    backdrop-filter: blur(10px);
}

.char-panel.active {
    display: grid;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Portrait */
.char-portrait-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.char-portrait-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 20px;
    transition: transform 0.6s ease;
}

.char-panel:hover .char-portrait-img {
    transform: scale(1.04);
}

.char-portrait-glow {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 40px var(--glow-color, rgba(94,236,255,0.2));
    pointer-events: none;
}

/* Quick Stats */
.char-quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.qs-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.qs-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
}

.qs-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ddd;
}

/* Right panel content */
.char-name-block {
    margin-bottom: 1.5rem;
}

.char-rune {
    font-size: 0.85rem;
    color: #444;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.char-fullname {
    font-size: 2.8rem;
    font-weight: 900;
    color: #5eecff;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.char-title-tag {
    font-size: 0.82rem;
    color: #666;
    letter-spacing: 0.05em;
}

/* Quote */
.char-quote {
    border-left: 3px solid rgba(94,236,255,0.35);
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.02);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #999;
    font-size: 0.88rem;
    line-height: 1.75;
}

/* Lore */
.char-lore {
    font-size: 0.88rem;
    line-height: 1.9;
    color: #777;
    margin-bottom: 1.75rem;
}

/* Power Bars */
.char-power-bars {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.cpb-row {
    display: grid;
    grid-template-columns: 160px 1fr 36px;
    align-items: center;
    gap: 0.85rem;
}

.cpb-label {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
}

.cpb-track {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.cpb-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--color, #5eecff);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--color, #5eecff);
}

.cpb-fill.animated {
    width: var(--w, 0%);
}

.cpb-num {
    font-size: 0.75rem;
    color: #555;
    text-align: right;
}

/* Trait chips */
.char-trait-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trait-chip {
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(94,236,255,0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #5eecff;
    background: rgba(94,236,255,0.05);
    transition: all 0.2s ease;
}

.trait-chip:hover {
    background: rgba(94,236,255,0.12);
    transform: translateY(-1px);
}

/* ============================================================
   MEMORY / TIMELINE SECTION
   ============================================================ */
.memory-section {
    padding: 7rem 2rem;
    background: linear-gradient(180deg,
        rgba(5, 5, 15, 0.98) 0%,
        rgba(8, 3, 20, 1) 100%);
    position: relative;
    overflow: hidden;
}

.memory-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(94,236,255,0.3), transparent);
}

.mem-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.mem-header {
    text-align: center;
    margin-bottom: 5rem;
}

/* Timeline */
.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Center line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(94,236,255,0.2) 10%,
        rgba(94,236,255,0.2) 90%,
        transparent 100%);
    transform: translateX(-50%);
}

.tl-item {
    display: flex;
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tl-item.visible {
    opacity: 1;
    transform: translateY(0) !important;
}

.tl-item[data-side="left"] {
    justify-content: flex-start;
    padding-right: calc(50% + 2.5rem);
    transform: translateX(-30px);
}

.tl-item[data-side="right"] {
    justify-content: flex-end;
    padding-left: calc(50% + 2.5rem);
    transform: translateX(30px);
}

/* Dot */
.tl-dot {
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--dot-color, #5eecff);
    transform: translateX(-50%);
    box-shadow: 0 0 16px var(--dot-color, #5eecff),
                0 0 32px var(--dot-color, rgba(94,236,255,0.3));
    z-index: 2;
    flex-shrink: 0;
}

/* Card */
.tl-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 3px solid var(--accent, #5eecff);
    border-radius: 16px;
    padding: 1.75rem;
    max-width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.tl-item[data-side="right"] .tl-card {
    border-left: none;
    border-right: 3px solid var(--accent, #5eecff);
}

.tl-card:hover {
    border-color: var(--accent, #5eecff);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transform: translateY(-4px);
}

.tl-year {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 0.5rem;
}

.tl-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent, #5eecff);
    margin-bottom: 0.85rem;
}

.tl-body {
    font-size: 0.85rem;
    line-height: 1.85;
    color: #777;
    margin-bottom: 1rem;
}

.tl-tag {
    font-size: 0.68rem;
    color: #555;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 0.75rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .char-panel.active {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .char-portrait-img { height: 260px; }
    .char-fullname { font-size: 2rem; }
    .cpb-row { grid-template-columns: 100px 1fr 30px; }
    .cpb-label { font-size: 0.68rem; }
}

@media (max-width: 700px) {
    /* Timeline: single column on mobile */
    .timeline-container::before { left: 20px; }

    .tl-item[data-side="left"],
    .tl-item[data-side="right"] {
        padding-right: 0;
        padding-left: 3.5rem;
        justify-content: flex-start;
    }

    .tl-dot { left: 20px; }

    .tl-item[data-side="right"] .tl-card {
        border-right: none;
        border-left: 3px solid var(--accent, #5eecff);
    }

    .char-tab { font-size: 0.78rem; padding: 0.5rem 1rem; }
}


/* ============================================================
SPELL COLLECTION — FIXED CSS
============================================================ */

.spells-section {
    padding: 7rem 2rem;
    background: #06020f;   /* solid dulu, bukan gradient transparan */
    position: relative;
    overflow: hidden;
    /* DEBUG: uncomment baris di bawah kalau mau verify section ada */
    /* outline: 3px solid red; */
}

/* Animated rune background */
.spells-section::before {
    content: '✦ ◈ ◎ ⊗ ◌ ✿ ◉ ◆ ✦ ◈ ◎ ⊗ ◌ ✿ ◉ ◆';
    position: absolute;
    inset: 0;
    font-size: 1.5rem;
    color: rgba(94,236,255,0.025);
    line-height: 3.5rem;
    letter-spacing: 2rem;
    word-break: break-all;
    pointer-events: none;
    animation: runeShift 20s linear infinite;
    z-index: 0;
}

@keyframes runeShift {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.spells-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.spells-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.spells-subtitle {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.8;
    max-width: 580px;
    margin: -1.5rem auto 2rem;
}

.spells-hint {
    display: block;
    margin-top: 0.5rem;
    color: #5eecff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

/* ── Filters ── */
.spell-filters {
    display: none; /* Disembunyikan untuk mode 3D Book */
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.04em;
}

.sf-btn:hover {
    border-color: rgba(94,236,255,0.3);
    color: #ccc;
}

.sf-btn.active {
    background: rgba(94,236,255,0.1);
    border-color: rgba(94,236,255,0.5);
    color: #5eecff;
}

.rarity-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── GRIMOIRE 3D BOOK CONTAINER ── */
.grimoire-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1800px;
    padding: 3rem 0;
    height: 520px;
}

.spell-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(218, 165, 32, 0.5); /* Aksen Emas Kuningan */
    color: #daa520;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spell-nav-btn:hover {
    background: rgba(218, 165, 32, 0.2);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(218,165,32,0.4);
}

/* Base Buku */
.grimoire-book {
    position: relative;
    width: 320px;
    height: 460px;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    /* Kemiringan awal (tergeletak/menghadap diagonal) */
    transform: rotateX(15deg) rotateY(20deg);
}

/* Saat buku di halaman isi, geser ke tengah layar biar seimbang Kiri-Kanan */
.grimoire-book.open {
    transform: rotateX(12deg) rotateY(0deg) translateX(160px); 
}

@media (max-width: 800px) {
    .grimoire-wrapper {
        height: 400px; /* Reduced wrapper height */
    }
    .grimoire-book {
        width: 280px;
        height: 400px;
    }
    .grimoire-book.open {
        /* Centering left edge spine */
        transform: rotateX(8deg) rotateY(0deg) translateX(140px) scale(0.75); 
    }
}

@media (max-width: 600px) {
    .grimoire-wrapper {
        height: 380px;
        overflow-x: hidden; /* Hide horizontal overflow on mobile to be safe */
    }
    .grimoire-book {
        width: 260px;
        height: 380px;
        transform: rotateX(5deg) rotateY(15deg) translateX(0) scale(0.65);
    }
    .grimoire-book.open {
        transform: rotateX(5deg) rotateY(0deg) translateX(130px) scale(0.65); 
    }
    .spell-nav-btn {
        transform: translateY(-50%) scale(0.85);
    }
    .spell-prev { left: 0px; }
    .spell-next { right: 0px; }
}

/* Halaman-Halaman */
.book-page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    cursor: pointer;
}

.book-page.flipped {
    transform: rotateY(-180deg);
}

/* Muka & Belakang Selembar Kertas */
.page-front, .page-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Kertas Kuno Perkamen */
    background-color: #e8dcc4;
    background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 24px, rgba(139,69,19,0.05) 25px), radial-gradient(circle at center, rgba(0,0,0,0) 30%, rgba(139,69,19,0.2) 100%);
    border: 1px solid #c2b280;
    border-radius: 3px 12px 12px 3px;
    box-shadow: inset 4px 0 10px rgba(0,0,0,0.15), inset -4px 0 10px rgba(255,255,255,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-back {
    transform: rotateY(180deg);
    border-radius: 12px 3px 3px 12px;
    box-shadow: inset -4px 0 10px rgba(0,0,0,0.15), inset 4px 0 10px rgba(255,255,255,0.4);
}

/* Cover Kulit Luar */
.cover-front, .cover-back {
    background-color: #2b1f1a;
    background-image: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.8) 100%), linear-gradient(45deg, #2b1f1a 25%, #3a2820 50%, #2b1f1a 75%);
    border: 3px solid #8b6508;
    border-radius: 4px 15px 15px 4px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8), 6px 6px 15px rgba(0,0,0,0.6);
}

.cover-back {
    border-radius: 15px 4px 4px 15px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8), -6px 6px 15px rgba(0,0,0,0.6);
}

/* Inner Text di Halaman */
.page-content {
    text-align: center;
    color: #4a3b32;
    padding: 30px 20px;
    font-family: 'Times New Roman', serif;
}
.page-content h3 { 
    font-size: 1.8rem; 
    border-bottom: 2px solid #8b5a2b; 
    padding-bottom: 10px; 
    margin-bottom: 15px;
    color: #3e2712;
    font-style: italic;
}
.page-content p { 
    font-size: 1.05rem; 
    line-height: 1.8; 
}

/* Desain Emas di Cover Buku */
.cover-design {
    width: 86%;
    height: 92%;
    border: 2px double #daa520;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #daa520;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.2);
}

.cover-design h2 { 
    font-size: 1.3rem; 
    font-family: 'Georgia', serif; 
    margin-bottom: 0.5rem; 
    letter-spacing: 4px; 
    text-transform: uppercase;
}
.cover-design h1 { 
    font-size: 3rem; 
    font-family: 'Georgia', serif; 
    margin-bottom: 2.5rem; 
    text-shadow: 0 0 10px rgba(218,165,32,0.4);
}
.cover-seal {
    width: 90px; height: 90px;
    border: 2px dashed #daa520;
    border-radius: 50%;
    animation: sealSpin1 20s linear infinite;
    position: relative;
    box-shadow: 0 0 15px rgba(218,165,32,0.3);
}
.cover-seal::after {
    content: 'Ф';
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-family: serif;
    animation: sealSpin2 10s linear infinite;
}

/* Magic Particles for Page Turn (DOM Based) */
.book-particle {
    position: absolute;
    border-radius: 50%;
    background: #5eecff;
    box-shadow: 0 0 8px #5eecff;
    pointer-events: none;
    z-index: 100;
    animation: bookParticleAnim 1s ease-out forwards;
}

@keyframes bookParticleAnim {
    0% { transform: scale(1) translate(0, 0); opacity: 1; }
    100% { transform: scale(0) translate(var(--dx), var(--dy)); opacity: 0; }
}

/* ── OVERRIDE SPELL CARD AGAR MASUK KE BUKU ── */
.spell-card {
    width: 85%;
    height: 90%;
    perspective: 1000px;
    cursor: pointer;
    /* Reset properti bawaan slider lama */
    flex: none;
    opacity: 1 !important;
    transform: none !important;
}

.sc-inner {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px; /* Sedikit kotak biar seperti kartu tarot ajaib */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.spell-card.unlocked .sc-inner {
    transform: rotateY(180deg);
}

/* ── FRONT ── */
.sc-front {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    /* Background sedikit tembus pandang atau gradasi kuno untuk menyatu tekstur kertas */
    background: linear-gradient(145deg, rgba(20,15,25,0.92), rgba(10,8,20,0.95));
    border: 1px solid rgba(94,236,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.spell-card:hover .sc-front {
    border-color: rgba(94,236,255,0.4);
    box-shadow: 0 0 30px rgba(94,236,255,0.08),
                inset 0 0 30px rgba(94,236,255,0.03);
}

/* Seal rings */
.sc-seal {
    position: relative;
    width: 100px; height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-seal-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(94,236,255,0.25);
}

.sc-seal-ring.r1 {
    width: 90px; height: 90px;
    animation: sealSpin1 8s linear infinite;
    border-style: dashed;
}

.sc-seal-ring.r2 {
    width: 70px; height: 70px;
    animation: sealSpin2 5s linear infinite reverse;
}

@keyframes sealSpin1 { to { transform: rotate(360deg); } }
@keyframes sealSpin2 { to { transform: rotate(360deg); } }

.sc-seal-core {
    font-size: 0.65rem;
    color: rgba(94,236,255,0.5);
    letter-spacing: 0.05em;
    text-align: center;
    z-index: 1;
    line-height: 1.4;
    max-width: 56px;
}

.spell-card:hover .sc-seal-ring {
    border-color: rgba(94,236,255,0.5);
}

/* Front rarity */
.sc-front-rarity {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
}

.sc-front-rarity.useless   { color:#9ca3af; background:rgba(107,114,128,0.15); border:1px solid rgba(107,114,128,0.3); }
.sc-front-rarity.combat    { color:#60a5fa; background:rgba(59,130,246,0.12);  border:1px solid rgba(59,130,246,0.3); }
.sc-front-rarity.rare      { color:#c084fc; background:rgba(167,139,250,0.12); border:1px solid rgba(167,139,250,0.3); }
.sc-front-rarity.legendary { color:#fbbf24; background:rgba(251,191,36,0.12);  border:1px solid rgba(251,191,36,0.3); }

.sc-front-hint {
    font-size: 0.7rem;
    color: #3d3d5c;
    letter-spacing: 0.08em;
}

/* Legendary shimmer */
.spell-card[data-rarity="legendary"] .sc-front {
    border-color: rgba(251,191,36,0.2);
}

.spell-card[data-rarity="legendary"] .sc-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(251,191,36,0.04) 50%, transparent 60%);
    animation: legendaryShimmer 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes legendaryShimmer {
    0%   { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* ── BACK ── */
.sc-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(180deg);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(10,10,24,0.99), rgba(6,4,16,1));
    border: 1px solid var(--spell-color, #5eecff);
    box-shadow: 0 0 30px var(--spell-glow, rgba(94,236,255,0.15)),
                inset 0 0 40px rgba(0,0,0,0.5);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    overflow: hidden;
}

.sc-back-particles {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, var(--spell-glow, rgba(94,236,255,0.08)) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.sc-rarity-badge { font-size:0.65rem; letter-spacing:0.14em; text-transform:uppercase; font-weight:700; position:relative; z-index:1; }
.sc-rarity-badge.useless   { color:#6b7280; }
.sc-rarity-badge.combat    { color:#60a5fa; }
.sc-rarity-badge.rare      { color:#c084fc; }
.sc-rarity-badge.legendary { color:#fbbf24; }

.sc-symbol { font-size:1.8rem; color:var(--spell-color,#5eecff); opacity:0.5; line-height:1; position:relative; z-index:1; }
.sc-name   { font-size:1.15rem; font-weight:800; color:var(--spell-color,#5eecff); line-height:1.1; position:relative; z-index:1; }
.sc-jp     { font-size:0.65rem; color:rgba(255,255,255,0.2); letter-spacing:0.08em; margin-top:-0.3rem; position:relative; z-index:1; }
.sc-effect { font-size:0.76rem; line-height:1.7; color:#777; flex:1; position:relative; z-index:1; }

.sc-tags { display:flex; flex-wrap:wrap; gap:0.3rem; position:relative; z-index:1; }
.sc-tags span { padding:0.2rem 0.55rem; border-radius:10px; font-size:0.64rem; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08); color:#888; }

.sc-user { font-size:0.66rem; color:#444; border-top:1px solid rgba(255,255,255,0.05); padding-top:0.5rem; letter-spacing:0.04em; position:relative; z-index:1; }

/* ── Counter ── */
.spells-counter { text-align:center; font-size:0.82rem; color:#555; letter-spacing:0.08em; }
.spells-counter span { color:#5eecff; font-weight:700; }
.spells-counter-bar { width:280px; height:3px; background:rgba(255,255,255,0.05); border-radius:2px; margin:0.75rem auto 0; overflow:hidden; }
.spells-counter-fill { height:100%; background:linear-gradient(to right,#5eecff,#a78bfa); border-radius:2px; width:0%; transition:width 0.5s ease; }

/* ── Responsive ── */
@media (max-width: 900px) { .spells-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .spells-grid { grid-template-columns: 1fr; } .spell-card { height:320px; } }

/* ============================================================
ELECTRIC BORDER — CSS Additions
Tambah di paling bawah style.css
   ============================================================ */

/* ── Identity card — siapkan untuk electric overflow ── */
.identity-cards {
    /* Perlu overflow visible agar canvas electric tidak terpotong */
    overflow: visible !important;
}

.identity-card {
    /* Electric canvas perlu overflow visible */
    overflow: visible !important;
    /* Background tetap solid supaya konten tidak tembus */
    position: relative;
}

/* Konten dalam card tetap clipped rapi */
.icard-img-wrap,
.icard-content {
    position: relative;
    z-index: 1;
}

.icard-img-wrap {
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

/* ── Nama karakter sebagai link ── */
.icard-name-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: inherit;          /* warisi warna per karakter dari CSS var */
    position: relative;
    transition: all 0.25s ease;
    cursor: pointer;
}

.icard-name-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: currentColor;
    transition: width 0.3s ease;
    opacity: 0.6;
}

.icard-name-link:hover::after {
    width: 100%;
}

.icard-name-link:hover {
    opacity: 0.85;
    transform: translateX(2px);
}

/* Arrow icon next to name */
.icard-name-arrow {
    font-size: 0.7em;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.icard-name-link:hover .icard-name-arrow {
    opacity: 0.7;
    transform: translateY(-3px);
}

/* Kalau URL masih '#' — tanda bahwa belum diisi */
.icard-name-link[href="#"] .icard-name-arrow {
    display: none;
}

.icard-name-link[href="#"] {
    cursor: default;
    pointer-events: none;   /* disable klik sampai URL diisi */
}

/* ── Hover state electric card — intensify glow ── */
.identity-card:hover {
    z-index: 10;    /* naik ke atas saat hover supaya canvas tidak tertimpa */
}

/* ── Override: pastikan electric canvas tidak menggeser layout ── */
.identity-card > canvas.eb-canvas,
.identity-card canvas {
    pointer-events: none !important;
    position: absolute !important;
    z-index: 2 !important;
}

/* ============================================================
   TYPING QUOTE SECTION
   Tambah di paling bawah style.css
   ============================================================ */

/* ── Wrapper ── */
.quote-section {
    position: relative;
    padding: 8rem 2rem;
    background: #030309;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas background particles */
.quote-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Radial vignette */
.quote-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 70% at 50% 50%,
        transparent 0%,
        rgba(3, 3, 9, 0.7) 70%,
        rgba(3, 3, 9, 0.95) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.quote-wrapper {
    position: relative;
    z-index: 1;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* ── Header ── */
.quote-header { text-align: center; }
.quote-header .section-title { margin-bottom: 0; }

/* ── Stage ── */
.quote-stage {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 3.5rem 4rem;
    position: relative;
    backdrop-filter: blur(20px);
    transition: border-color 0.5s ease;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.quote-stage.glow-frieren { border-color: rgba(94,236,255,0.2);  box-shadow: 0 0 60px rgba(94,236,255,0.05); }
.quote-stage.glow-himmel  { border-color: rgba(251,191,36,0.2);  box-shadow: 0 0 60px rgba(251,191,36,0.05); }
.quote-stage.glow-fern    { border-color: rgba(167,139,250,0.2); box-shadow: 0 0 60px rgba(167,139,250,0.05); }
.quote-stage.glow-heiter  { border-color: rgba(250,204,21,0.2);  box-shadow: 0 0 60px rgba(250,204,21,0.05); }
.quote-stage.glow-stark   { border-color: rgba(249,115,22,0.2);  box-shadow: 0 0 60px rgba(249,115,22,0.05); }
.quote-stage.glow-eisen   { border-color: rgba(161,161,170,0.2); box-shadow: 0 0 60px rgba(161,161,170,0.05); }
.quote-stage.glow-serie   { border-color: rgba(236,72,153,0.2);  box-shadow: 0 0 60px rgba(236,72,153,0.05); }

/* Quote index */
.quote-index {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    color: #333;
    letter-spacing: 0.1em;
}

.qi-sep {
    width: 20px;
    height: 1px;
    background: #333;
}

/* Character row */
.quote-char-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

.quote-char-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.1);
}

.quote-char-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
}

.qca-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
}

.quote-char-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.qci-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ddd;
    letter-spacing: 0.03em;
}

.qci-role {
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 0.06em;
}

/* Decorative quote marks */
.quote-mark-open,
.quote-mark-close {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 5rem;
    line-height: 0.6;
    color: rgba(94,236,255,0.08);
    user-select: none;
    pointer-events: none;
    transition: color 0.5s ease;
}

.quote-mark-open  { align-self: flex-start; margin-bottom: -1rem; }
.quote-mark-close { align-self: flex-end; margin-top: -1.5rem; }

.quote-stage.glow-himmel .quote-mark-open,
.quote-stage.glow-himmel .quote-mark-close { color: rgba(251,191,36,0.1); }
.quote-stage.glow-fern .quote-mark-open,
.quote-stage.glow-fern .quote-mark-close   { color: rgba(167,139,250,0.1); }

/* The text itself */
.quote-text {
    font-size: 1.45rem;
    line-height: 1.75;
    color: #e8e8e8;
    font-style: italic;
    letter-spacing: 0.01em;
    min-height: 80px;
    position: relative;
}

/* Cursor blink */
.qt-cursor {
    display: inline-block;
    color: #5eecff;
    font-style: normal;
    font-weight: 300;
    animation: cursorBlink 0.7s step-end infinite;
    margin-left: 2px;
    font-size: 1.3rem;
    vertical-align: baseline;
    transition: color 0.5s ease;
}

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

.quote-stage.glow-himmel .qt-cursor { color: #fbbf24; }
.quote-stage.glow-fern   .qt-cursor { color: #a78bfa; }
.quote-stage.glow-stark  .qt-cursor { color: #f97316; }
.quote-stage.glow-eisen  .qt-cursor { color: #a1a1aa; }
.quote-stage.glow-heiter .qt-cursor { color: #facc15; }
.quote-stage.glow-serie  .qt-cursor { color: #ec4899; }

/* Context badge */
.quote-context {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 1rem;
    margin-top: 0.25rem;
}

/* Reflection */
.quote-reflection {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.75;
    font-style: normal;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.quote-reflection.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Controls ── */
.quote-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.qc-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #666;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.qc-btn:hover {
    border-color: rgba(94,236,255,0.4);
    color: #5eecff;
    background: rgba(94,236,255,0.07);
    transform: scale(1.08);
}

.qc-btn:disabled { opacity: 0.25; pointer-events: none; }

/* Dots */
.quote-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.qdot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.qdot.active {
    background: #5eecff;
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(94,236,255,0.5);
}

/* Replay */
.qc-replay {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    border-radius: 30px;
    color: #444;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.qc-replay:hover {
    border-color: rgba(94,236,255,0.3);
    color: #5eecff;
}

/* ── Transition anim ── */
.quote-stage.fading {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.quote-stage.entering {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .quote-stage    { padding: 2.5rem 1.75rem; }
    .quote-text     { font-size: 1.15rem; }
    .quote-mark-open,
    .quote-mark-close { font-size: 3.5rem; }
}

/* ============================================================
   HERO PREMIUM PATCH — tambahkan di paling bawah style.css
   ============================================================ */

/* ── Fix: body start invisible, JS akan fade in ── */
body {
    opacity: 0;
}

/* ── Hero: pastikan tidak ada overflow yang memotong karakter ── */
.hero {
    overflow: hidden;
    background: #020208;
}

/* ── Sky layer: full cover, tidak ada gap saat parallax ── */
.hero-layer-sky {
    position: absolute;
    inset: -15%;
    background: url('images/background.jpg') center / cover no-repeat;
    will-change: transform;
    z-index: 0;
    transform-origin: center center;
    transition: margin-top 0.1s linear;
}

/* ── Character layer: cover kanan hero ── */
.hero-layer-char {
    position: absolute;
    right: -2%;
    top: 0;
    bottom: 0;
    width: 58%;
    z-index: 3;
    will-change: transform;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-layer-char img {
    width: 100%;
    max-width: 700px;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;

    /* Dual-axis fade: ke kiri dan ke bawah */
    -webkit-mask-image:
        linear-gradient(to left,  rgba(0,0,0,0.95) 35%, rgba(0,0,0,0) 100%),
        linear-gradient(to top,   rgba(0,0,0,0) 0%,    rgba(0,0,0,1) 18%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to left,  rgba(0,0,0,0.95) 35%, rgba(0,0,0,0) 100%),
        linear-gradient(to top,   rgba(0,0,0,0) 0%,    rgba(0,0,0,1) 18%);
    mask-composite: intersect;

    /* Subtle tinting supaya menyatu dengan atmosphere */
    filter: brightness(0.9) saturate(1.15) contrast(1.05);
    will-change: transform, filter;
    transform-origin: center bottom;
}

/* ── Atmospheric glow behind character ── */
.hero-char-aura {
    position: absolute;
    bottom: -10%;
    right: 2%;
    width: 70%;
    height: 90%;
    background:
        radial-gradient(ellipse 60% 70% at 65% 75%,
            rgba(94, 236, 255, 0.09) 0%,
            rgba(167, 139, 250, 0.06) 40%,
            transparent 75%);
    z-index: 2;
    filter: blur(50px);
    pointer-events: none;
    will-change: transform;
}

/* ── Premium fog with depth ── */
.hero-layer-fog {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 130% 90% at 50% 110%, rgba(2,2,8,0.98) 0%, transparent 55%),
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(2,2,8,0.85) 0%, transparent 65%),
        radial-gradient(ellipse 70%  50% at 25% 55%,  rgba(94,236,255,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50%  60% at 75% 35%,  rgba(167,139,250,0.03) 0%, transparent 55%);
    z-index: 1;
    will-change: transform;
}

/* ── Scanline texture overlay for cinematic feel ── */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 4;
    pointer-events: none;
}

/* ── Vignette: darker on edges ── */
.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 700px at var(--mx, 50%) var(--my, 50%),
        transparent 0%,
        rgba(2, 2, 8, 0.2) 100%
    );
    z-index: 4;
    pointer-events: none;
}

/* ── Content z-index above vignette ── */
.hero-layer-content {
    position: relative;
    z-index: 6;
    max-width: 1200px;
    width: 100%;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    pointer-events: none;
}

.hero-text {
    pointer-events: all;
}

/* ── Hero title: sharper gradient, refined ── */
.hero-title {
    font-size: clamp(5.5rem, 13vw, 11rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.04em;
    background: linear-gradient(
        150deg,
        #ffffff 0%,
        rgba(94, 236, 255, 0.95) 30%,
        rgba(167, 139, 250, 0.85) 65%,
        rgba(236, 72, 153, 0.65) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation:
        heroFadeUp 0.9s 0.4s ease forwards,
        gradientShift 10s ease-in-out infinite;
    opacity: 0;
    margin-bottom: 0.4rem;
    text-shadow: none;
}

/* ── Description text: slightly more visible ── */
.hero-description {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.52);
    max-width: 480px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: heroFadeUp 0.9s 0.7s ease forwards;
}

/* ── Meta strip: cleaner separator ── */
.hero-meta {
    display: flex;
    gap: 0;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: heroFadeUp 0.9s 0.85s ease forwards;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1.5rem 0 0;
    margin-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-meta-item:last-child {
    border-right: none;
    margin-right: 0;
}

.hmi-label {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.18);
    text-transform: uppercase;
}

.hmi-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.01em;
}

/* ── Buttons: more premium ── */
.hero-buttons {
    display: flex;
    gap: 0.85rem;
    opacity: 0;
    animation: heroFadeUp 0.9s 1s ease forwards;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    padding: 0.95rem 2.4rem;
    border: none;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s ease;
    background: linear-gradient(135deg, #5eecff, #a78bfa);
    color: #05050f;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(94, 236, 255, 0.4);
}

.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
    padding: 0.95rem 2.2rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s ease;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(94, 236, 255, 0.08);
    border-color: rgba(94, 236, 255, 0.45);
    color: #5eecff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(94, 236, 255, 0.1);
}

/* ── Scroll indicator: updated ── */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 7;
    opacity: 0;
    animation: heroFadeUp 0.9s 1.5s ease forwards;
}

.scroll-indicator span {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}

.arrow-down {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(94, 236, 255, 0.6), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}

/* ── Particle canvas: always full size ── */
.hero-canvas-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* ── Eyebrow: refined ── */
.hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(94, 236, 255, 0.55);
    margin-bottom: 1rem;
    opacity: 0;
    animation: heroFadeUp 0.9s 0.2s ease forwards;
}

/* ── Japanese subtitle ── */
.hero-subtitle-jp {
    font-size: 0.82rem;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 2rem;
    opacity: 0;
    animation: heroFadeUp 0.9s 0.55s ease forwards;
}

/* ── Keyframes (override) ── */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollPulse {
    0%   { opacity: 0.8; transform: scaleY(1);    transform-origin: top; }
    80%  { opacity: 0;   transform: scaleY(0.15); transform-origin: top; }
    100% { opacity: 0;   transform: scaleY(0);    transform-origin: top; }
}

/* ── Mobile responsive fixes ── */
@media (max-width: 900px) {
    .hero-layer-content {
        grid-template-columns: 1fr;
        padding: 7rem 1.75rem 4rem;
        align-items: flex-start;
        justify-items: start;
    }

    .hero-layer-char {
        width: 100%;
        height: 48vh;
        top: auto;
        bottom: 0;
        right: 0;
        align-items: flex-end;
        justify-content: center;
        -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
        mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    }

    .hero-description { max-width: 100%; }
    .hero-title       { font-size: clamp(4rem, 15vw, 7rem); }
    .hero-meta        { gap: 0; }
    .hero-meta-item   { padding: 0 1rem 0 0; margin-right: 1rem; }
}

@media (max-width: 540px) {
    .hero-meta-item { padding: 0 0.75rem 0 0; margin-right: 0.75rem; }
    .hero-buttons   { flex-direction: column; gap: 0.75rem; }
    .btn-primary, .btn-secondary { text-align: center; justify-content: center; width: 100%; }
}

/* ============================================================
3D SHOWCASE SECTION
============================================================ */
.three-showcase {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #020208, #05050f);
    position: relative;
    overflow: hidden;
}

.showcase-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.showcase-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(94,236,255,0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
    border-color: rgba(94,236,255,0.4);
    box-shadow: 0 10px 40px rgba(94,236,255,0.1);
}

.showcase-card h3 {
    font-size: 1.5rem;
    color: #5eecff;
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-hint {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Sketchfab wrapper logic */
.sketchfab-card .sf-embed-container {
    width: 100%;
    margin-top: 1.5rem;
    position: relative;
    /* Aspect ratio 4:3 */
    padding-bottom: 75%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.sf-embed-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.sf-embed-footer {
    display: none;
}

/* ThreeJS Container */
.threejs-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.relic-header {
    text-align: center;
    min-height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.relic-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 10;
}

.rn-btn {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(94, 236, 255, 0.3);
    color: #5eecff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rn-btn:hover {
    background: rgba(94, 236, 255, 0.2);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(94,236,255,0.4);
}

.relic-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.rd-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: 0.3s;
}

.rd-dot.active {
    background: #5eecff;
    width: 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px #5eecff;
}

.threejs-card .three-canvas-wrap {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: radial-gradient(circle at center, rgba(167,139,250,0.1), transparent 70%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.threejs-card .three-canvas-wrap:active {
    cursor: grabbing;
}

@media (max-width: 900px) {
    .showcase-grid { grid-template-columns: 1fr; }
}