:root {
    --jp-red: #bc002d;
    --jp-red-dark: #8b001e;
    --pure-white: #ffffff;
    --anime-bg: #faf8f5; 
    --ink-black: #111111;
    --shadow-gray: #dfddd9;
    --font-heading: 'Oswald', 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--anime-bg);
    color: var(--ink-black);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.5;
}

/* ================== PRELOADER ANIME ================== */
#preloader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--pure-white); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
.preloader-sun {
    position: absolute; width: 250px; height: 250px;
    background-color: var(--jp-red); border-radius: 50%;
    opacity: 0.15; filter: blur(20px);
}
.loader-content { text-align: center; position: relative; z-index: 10; padding: 20px; }

.anime-slam-logo {
    width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--ink-black);
    animation: logoSlam 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite alternate;
}
.kanji-loading {
    font-family: var(--font-heading); font-size: 2.8rem;
    color: var(--ink-black); letter-spacing: 8px; margin-top: 15px;
}
.loading-bar-container {
    width: 180px; height: 6px; background: #e0e0e0;
    margin: 15px auto; border-radius: 3px; overflow: hidden;
    border: 1px solid var(--ink-black);
}
.loading-bar {
    width: 0%; height: 100%; background: var(--jp-red);
    animation: fillProgress 2s infinite ease-in-out;
}
.loading-status {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; color: var(--jp-red);
}

@keyframes logoSlam {
    0% { transform: scale(0.7) rotate(-5deg); }
    100% { transform: scale(1.05) rotate(5deg); }
}
@keyframes fillProgress {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

.swipe-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--jp-red); z-index: 99994;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.85, 0, 0.15, 1);
}
.swipe-overlay.active { transform: translateX(100%); }

/* ================== NAVIGASI BAR ================== */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 5%; position: fixed; width: 100%; top: 0; z-index: 5000;
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--ink-black);
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink-black); }
.logo-text { font-family: var(--font-heading); font-size: 1.4rem; letter-spacing: 1px; color: var(--ink-black); line-height: 1; }
.jp-sub { font-size: 0.75rem; color: var(--jp-red); display: block; font-family: var(--font-body); letter-spacing: 1px; font-weight: 700; }

.nav-links { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-link-item {
    color: var(--ink-black); text-decoration: none; font-weight: 700; font-size: 0.9rem;
    position: relative; padding: 4px 0;
}
.nav-link-item::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
    background: var(--jp-red); transition: width 0.3s ease;
}
.nav-link-item:hover::after { width: 100%; }

.btn-nav {
    background: var(--ink-black); color: var(--pure-white) !important;
    text-decoration: none; padding: 6px 16px; font-weight: 700;
    border: 2px solid var(--ink-black); box-shadow: 2px 2px 0 var(--jp-red);
    transition: all 0.2s ease; font-size: 0.85rem;
}
.btn-nav:hover {
    transform: translate(2px, 2px); box-shadow: 0px 0px 0 var(--jp-red);
    background: var(--jp-red); border-color: var(--jp-red);
}

/* ================== HERO / BERANDA ================== */
.hero {
    min-height: 100vh;
    position: relative; overflow: hidden;
    background: url('img18.jpg') center/cover no-repeat;
    display: flex; justify-content: center; align-items: center; text-align: center;
    padding: 100px 20px 60px 20px;
}
.hero-bg-effect {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    background: linear-gradient(135deg, rgba(254, 254, 254, 0.92), rgba(245, 240, 230, 0.96));
}
.hero-content {
    position: relative; z-index: 10; width: 100%; max-width: 800px; margin: 0 auto;
}

/* Kartu Akihiro Fujita */
.fujita-history-card {
    background: var(--pure-white);
    border: 3px solid var(--ink-black);
    padding: 16px 20px;
    margin: 0 auto 24px auto;
    box-shadow: 5px 5px 0 var(--ink-black);
    width: 100%; max-width: 650px;
}
.fujita-history-card h3 {
    font-family: var(--font-heading);
    color: var(--jp-red);
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    letter-spacing: 1px; margin-bottom: 6px;
}
.fujita-history-card p {
    font-size: clamp(0.85rem, 2.5vw, 0.98rem);
    font-weight: 600; color: var(--ink-black); font-style: italic; line-height: 1.4;
}
.motto-strip {
    background: var(--ink-black); color: var(--pure-white);
    font-weight: 700; font-size: clamp(0.7rem, 2.2vw, 0.82rem);
    padding: 5px 10px; margin-top: 10px; letter-spacing: 1px; word-break: break-word;
}

/* Logo Group */
.affiliation-badge {
    font-family: var(--font-heading); color: var(--jp-red);
    font-size: clamp(0.85rem, 2.5vw, 1.05rem); letter-spacing: 1.5px; margin-bottom: 12px;
}
.hero-logos-group {
    display: flex; justify-content: center; align-items: center;
    gap: clamp(12px, 3vw, 30px); margin-bottom: 24px; width: 100%;
}
.affiliate-logo {
    width: clamp(55px, 15vw, 100px); height: clamp(55px, 15vw, 100px);
    object-fit: contain; flex-shrink: 0;
}
.hero-logo-large {
    width: clamp(75px, 20vw, 140px); height: clamp(75px, 20vw, 140px);
    border-radius: 50%; object-fit: cover; border: 3px solid var(--ink-black); flex-shrink: 0;
}

.hero-badge {
    display: inline-block; background: var(--jp-red); color: white;
    font-size: 0.7rem; font-weight: 700; padding: 4px 10px;
    letter-spacing: 2px; margin-bottom: 12px;
}
.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 8.5vw, 5rem);
    line-height: 1.05; color: var(--ink-black); letter-spacing: 1px; margin-bottom: 10px;
}
.strike-text { color: var(--jp-red); -webkit-text-stroke: 1.5px var(--ink-black); }
.sub-motto {
    font-size: clamp(0.9rem, 2.8vw, 1.25rem); font-weight: 700;
    color: var(--ink-black); margin: 10px 0 16px 0;
}
.tagline-container {
    font-weight: 700; margin-bottom: 30px; font-size: clamp(0.75rem, 2.4vw, 1rem);
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
}
.tagline-container span { color: var(--jp-red); }

.cta-anime-btn {
    display: inline-block; padding: 14px 32px; background: var(--jp-red); color: white;
    font-weight: 700; text-decoration: none; font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    letter-spacing: 1px; border: 3px solid var(--ink-black);
    box-shadow: 4px 4px 0 var(--ink-black); transition: all 0.2s ease;
}
.cta-anime-btn:hover { transform: translate(2px, 2px); box-shadow: 0px 0px 0 var(--ink-black); background: var(--ink-black); }

/* ================== SECTION UMUM ================== */
.section { padding: 80px 6% 60px 6%; position: relative; width: 100%; }
.alt-bg-anime {
    background-color: var(--pure-white);
    background-image: radial-gradient(var(--shadow-gray) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    border-top: 3px solid var(--ink-black); border-bottom: 3px solid var(--ink-black);
}
.section-header { text-align: center; margin-bottom: 40px; }
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.2rem); color: var(--ink-black); letter-spacing: 1px;
}
.section-subtitle { color: var(--jp-red); font-weight: 700; font-size: clamp(0.85rem, 2.5vw, 1rem); letter-spacing: 1px; text-transform: uppercase; }
.jp-brush-line { width: 100px; height: 4px; background: var(--ink-black); margin: 8px auto 0; position: relative; }
.jp-brush-line::after { content: ''; position: absolute; right: -12px; top: 0; width: 8px; height: 4px; background: var(--jp-red); }

/* Grid Panel Komik */
.manga-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; width: 100%; }
.manga-panel {
    background: var(--pure-white); border: 3px solid var(--ink-black);
    padding: 30px 20px; position: relative; overflow: hidden;
    box-shadow: 5px 5px 0 var(--shadow-gray); transition: all 0.3s ease;
}
.manga-panel:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--jp-red); }
.panel-header { font-family: var(--font-heading); font-size: 0.95rem; color: var(--jp-red); border-bottom: 2px dashed var(--ink-black); padding-bottom: 6px; margin-bottom: 12px; }
.manga-kanji { position: absolute; right: -5px; bottom: -20px; font-family: var(--font-heading); font-size: 6rem; color: rgba(188, 0, 45, 0.04); pointer-events: none; }
.manga-panel h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.manga-panel p { font-size: 0.9rem; color: #444; line-height: 1.5; position: relative; z-index: 2; }

/* Program Cards */
.program-anime-container { display: flex; gap: 20px; margin-bottom: 50px; width: 100%; }
.prog-anime-card {
    flex: 1; background: var(--anime-bg); padding: 30px 20px;
    border: 3px solid var(--ink-black); box-shadow: 5px 5px 0 var(--ink-black);
    position: relative; transition: 0.3s;
}
.prog-anime-card:hover { transform: translateY(-4px); background: var(--pure-white); }
.badge-kategori { position: absolute; top: -13px; left: 15px; background: var(--ink-black); color: white; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border: 1px solid white; }
.prog-anime-card h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--ink-black); margin-bottom: 10px; margin-top: 5px; }
.prog-anime-card p { color: #555; font-size: 0.9rem; line-height: 1.5; }

/* Galeri Komik */
.image-showcase { display: flex; justify-content: center; width: 100%; }
.comic-frame {
    position: relative; width: 100%; max-width: 650px;
    border: 4px solid var(--ink-black); box-shadow: 10px 10px 0 var(--ink-black);
    overflow: hidden; background: #000;
}
.comic-frame img { width: 100%; height: auto; display: block; opacity: 0.95; }
.comic-caption {
    position: absolute; bottom: 10px; left: 10px; background: var(--pure-white);
    color: var(--ink-black); padding: 6px 16px; font-weight: 700;
    border: 2px solid var(--ink-black); box-shadow: 3px 3px 0 var(--jp-red);
    font-size: clamp(0.75rem, 2.2vw, 0.9rem);
}

/* ================== COACH SENSEI PROFILE ================== */
.coach-anime-wrapper {
    display: flex; align-items: center; gap: 40px; max-width: 850px; margin: 0 auto; width: 100%;
}
.coach-visual {
    flex: 1; position: relative; display: flex; justify-content: center; align-items: center; width: 100%;
}
.hinomaru-sun {
    position: absolute; width: clamp(180px, 45vw, 250px); height: clamp(180px, 45vw, 250px);
    background-color: var(--jp-red); border-radius: 50%; z-index: 1; border: 3px dashed var(--ink-black);
}
.coach-anime-photo {
    position: relative; z-index: 2; max-height: clamp(260px, 60vw, 380px);
    max-width: 100%; object-fit: contain;
    filter: drop-shadow(2px 2px 0px var(--pure-white)) 
            drop-shadow(-2px -2px 0px var(--pure-white)) 
            drop-shadow(4px 4px 0px var(--ink-black));
}
.coach-details { flex: 1.3; width: 100%; }
.coach-headline { font-family: var(--font-heading); font-size: clamp(1.8rem, 5vw, 3rem); color: var(--ink-black); line-height: 1.1; margin-bottom: 5px; }
.coach-subheadline { color: var(--jp-red); font-size: clamp(0.95rem, 2.5vw, 1.15rem); font-weight: 700; margin-bottom: 16px; }
.coach-speech-bubble {
    background: var(--pure-white); padding: 20px; border: 3px solid var(--ink-black);
    box-shadow: 5px 5px 0 var(--ink-black); position: relative;
}
.coach-speech-bubble p { font-size: clamp(0.88rem, 2.4vw, 1rem); font-weight: 600; line-height: 1.6; color: #333; }

/* ================== FORMULIR REGISTRASI ================== */
.form-anime-wrapper { display: flex; gap: 40px; width: 100%; }
.info-anime-column { flex: 1; width: 100%; }
.fields-anime-column { flex: 1.2; width: 100%; }
.form-anime-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 8px; }
.form-anime-desc { color: #555; font-weight: 600; margin-bottom: 25px; font-size: 0.9rem; }

.contact-anime-list { display: flex; flex-direction: column; gap: 16px; }

/* LINK KONTAK STYLING */
.ca-item { 
    display: flex; align-items: center; gap: 12px; color: var(--ink-black); 
    font-size: clamp(0.85rem, 2.4vw, 1rem); font-weight: 700; word-break: break-word;
    text-decoration: none; transition: transform 0.2s ease, color 0.2s ease;
}
.ca-item:hover {
    color: var(--jp-red);
    transform: translateX(5px);
}
.ca-item img { width: 30px; height: 30px; border-radius: 4px; border: 2px solid var(--ink-black); object-fit: cover; flex-shrink: 0; }
.emoji-style { font-size: 1.4rem; flex-shrink: 0; }

.form-anime-box {
    background: var(--pure-white); padding: clamp(20px, 4vw, 40px);
    border: 3px solid var(--ink-black); box-shadow: 6px 6px 0 var(--ink-black); width: 100%;
}
.form-anime-box h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 20px; color: var(--jp-red); }
.anime-input-group { margin-bottom: 20px; }
.anime-input-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink-black); margin-bottom: 6px; text-transform: uppercase; }
.anime-input-group input, .anime-input-group select {
    width: 100%; padding: 12px 14px; border: 2px solid var(--ink-black);
    font-size: 0.95rem; color: var(--ink-black); background: var(--anime-bg);
    outline: none; font-weight: 600; font-family: var(--font-body);
}
.anime-input-group input:focus, .anime-input-group select:focus {
    background: var(--pure-white); border-color: var(--jp-red);
}

.anime-submit-btn {
    width: 100%; padding: 14px; background: var(--ink-black); color: white; border: none;
    font-size: 1rem; font-weight: 700; letter-spacing: 1px; cursor: pointer;
    border: 3px solid var(--ink-black); box-shadow: 3px 3px 0 var(--jp-red); transition: 0.2s;
}
.anime-submit-btn:hover { background: var(--jp-red); box-shadow: 0px 0px 0 var(--jp-red); }

/* ================== MODAL & FOOTER ================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(17, 17, 17, 0.75);
    z-index: 999999; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s ease; padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-card {
    background: var(--pure-white); padding: 35px 25px; text-align: center;
    max-width: 400px; width: 100%; transform: scale(0.8); transition: 0.3s ease;
    border: 4px solid var(--ink-black); box-shadow: 8px 8px 0 var(--ink-black);
}
.modal-overlay.open .modal-card { transform: scale(1); }
.modal-badge { display: inline-block; background: var(--jp-red); color: white; font-weight: 700; font-size: 0.7rem; padding: 2px 10px; margin-bottom: 12px; }
.modal-card h2 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 8px; }
.modal-card p { font-size: 0.9rem; font-weight: 600; color: #444; margin-bottom: 20px; }
#closeModalBtn { padding: 10px 28px; background: var(--ink-black); color: white; border: none; font-weight: 700; cursor: pointer; border: 2px solid var(--ink-black); }

footer { text-align: center; padding: 35px 20px; background: var(--ink-black); color: rgba(255,255,255,0.5); border-top: 4px solid var(--jp-red); font-size: 0.85rem; }
.footer-branding { font-family: var(--font-heading); font-size: 1.5rem; color: white; margin-bottom: 6px; letter-spacing: 1px; }

/* ================== SCROLL REVEAL EFFECTS ================== */
.scroll-reveal { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up { transform: translateY(30px); }
.slide-left { transform: translateX(-30px); }
.slide-right { transform: translateX(30px); }
.scale-in { transform: scale(0.95); }
.scroll-reveal.active { opacity: 1; transform: translate(0) scale(1); }

/* ================== MEDIA QUERIES (KHUSUS TAMPILAN HP) ================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .hero { padding-top: 90px; padding-bottom: 40px; min-height: auto; }
    
    .fujita-history-card { padding: 12px 14px; margin-bottom: 18px; box-shadow: 4px 4px 0 var(--ink-black); }
    
    .program-anime-container, .coach-anime-wrapper, .form-anime-wrapper {
        flex-direction: column; gap: 25px;
    }
    
    .coach-anime-wrapper { text-align: center; }
    
    .section { padding: 50px 4%; }
}