@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Inter:wght@400;700&display=swap');

:root {
    --shinobi-black: #050505;
    --shinobi-dark: #111111;
    --shinobi-crimson: #ff0033;
    --shinobi-blood: #8b0000;
    --shinobi-spirit: #00d4ff;
    --shinobi-grey: #a0a0a0;
    --shinobi-white: #f5f5f5;
    --shinobi-font-header: 'Permanent Marker', cursive;
    --shinobi-font-body: 'Inter', sans-serif;
    --blade-angle: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
    --shadow-glow: 0 0 20px rgba(255, 0, 51, 0.3);
}

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

body {
    background-color: var(--shinobi-black);
    color: var(--shinobi-white);
    font-family: var(--shinobi-font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--shinobi-black);
}

::-webkit-scrollbar-thumb {
    background: var(--shinobi-crimson);
}

/* Animations */
@keyframes blade-flash {
    0% {
        transform: translateX(-100%) skewX(-45deg);
    }

    100% {
        transform: translateX(200%) skewX(-45deg);
    }
}

@keyframes spirit-pulse {

    0%,
    100% {
        opacity: 0.5;
        box-shadow: 0 0 10px var(--shinobi-spirit);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 25px var(--shinobi-spirit);
    }
}

/* --- AGE GATE --- */
.shinobi-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shinobi-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

.shinobi-gate.hidden {
    opacity: 0;
    pointer-events: none;
}

.gate-scroll {
    position: relative;
    background: var(--shinobi-dark);
    padding: 3rem;
    border-left: 4px solid var(--shinobi-crimson);
    border-right: 4px solid var(--shinobi-crimson);
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: rotate(-1deg);
}

.gate-scroll::before,
.gate-scroll::after {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    height: 20px;
    background: var(--shinobi-crimson);
}

.gate-scroll::before {
    top: -10px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.gate-scroll::after {
    bottom: -10px;
    clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
}

.gate-title {
    font-family: var(--shinobi-font-header);
    font-size: 2.5rem;
    color: var(--shinobi-crimson);
    margin-bottom: 1rem;
    text-shadow: 2px 2px #333;
}

.gate-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.shinobi-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid var(--shinobi-crimson);
    color: var(--shinobi-white);
    font-family: var(--shinobi-font-header);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.shinobi-btn:hover {
    background: var(--shinobi-crimson);
    color: var(--shinobi-black);
    box-shadow: var(--shadow-glow);
}

/* --- NAVIGATION --- */
.shinobi-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.shinobi-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-symbol {
    width: 40px;
    height: 40px;
    background: var(--shinobi-crimson);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.brand-name {
    font-family: var(--shinobi-font-header);
    font-size: 1.5rem;
    color: var(--shinobi-white);
}

.shinobi-links {
    display: flex;
    gap: 2rem;
}

.shinobi-link {
    color: var(--shinobi-white);
    text-decoration: none;
    font-family: var(--shinobi-font-header);
    font-size: 1.1rem;
    position: relative;
}

.shinobi-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--shinobi-crimson);
    transition: width 0.3s;
}

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

/* --- HERO --- */
.shinobi-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff0033' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6zM36 4V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-blade {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-tag {
    color: var(--shinobi-crimson);
    font-family: var(--shinobi-font-header);
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--shinobi-font-header);
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    transform: skewX(-5deg);
}

.hero-title span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px var(--shinobi-white);
}

.hero-title span.accent {
    color: var(--shinobi-white);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 30px var(--shinobi-crimson);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--shinobi-grey);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SECTIONS --- */
.shinobi-section {
    padding: 100px 0;
    position: relative;
}

.section-slash {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--shinobi-dark);
    clip-path: var(--blade-angle);
    z-index: 5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blade-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.blade-visual {
    position: relative;
}

.blade-img-wrapper {
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    border: 2px solid var(--shinobi-crimson);
}

.blade-img-wrapper img {
    width: 100%;
    display: block;
    filter: grayscale(100%) contrast(120%);
    transition: filter 0.5s;
}

.blade-img-wrapper:hover img {
    filter: grayscale(0%) contrast(100%);
}

.blade-text h2 {
    font-family: var(--shinobi-font-header);
    font-size: 3rem;
    color: var(--shinobi-crimson);
    margin-bottom: 1.5rem;
}

/* --- FEATURES GRID --- */
.jutsu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.jutsu-card {
    background: var(--shinobi-dark);
    padding: 2.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.jutsu-card:hover {
    border-color: var(--shinobi-crimson);
    transform: translateY(-10px);
}

.jutsu-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.jutsu-card h3 {
    font-family: var(--shinobi-font-header);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* --- SHOWCASE --- */
.pumpkin-showcase {
    background: #000;
    padding: 80px 0;
    text-align: center;
}

.showcase-frame {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border: 5px solid var(--shinobi-dark);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.2);
}

.play-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spirit-btn {
    padding: 1rem 3rem;
    background: var(--shinobi-spirit);
    color: var(--shinobi-black);
    font-family: var(--shinobi-font-header);
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    animation: spirit-pulse 2s infinite;
}

/* --- ABOUT CARDS --- */
.scrolls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 50px;
}

.scroll-entry {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    background: linear-gradient(135deg, #111 0%, #080808 100%);
    border-left: 2px solid var(--shinobi-crimson);
}

.scroll-entry h3 {
    font-family: var(--shinobi-font-header);
    margin-bottom: 1rem;
    color: var(--shinobi-white);
}

/* --- CONTACT --- */
.contact-shadow {
    background: var(--shinobi-dark);
    padding: 4rem;
    border-radius: 0;
    position: relative;
}

.contact-shadow::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--shinobi-crimson);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.shinobi-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 1rem 0;
    color: white;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.shinobi-input:focus {
    outline: none;
    border-color: var(--shinobi-crimson);
}

/* --- FOOTER --- */
.shinobi-footer {
    padding: 80px 0 40px;
    background: var(--shinobi-black);
    border-top: 1px solid #1a1a1a;
}

.footer-blade-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-mission p {
    color: var(--shinobi-grey);
    margin-top: 1.5rem;
}

.footer-nav h4 {
    font-family: var(--shinobi-font-header);
    margin-bottom: 1.5rem;
    color: var(--shinobi-crimson);
}

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

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: var(--shinobi-grey);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--shinobi-white);
}

.footer-copyright {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
    color: #444;
    font-size: 0.9rem;
}

/* --- CONTENT PAGES --- */
.shinobi-content-page {
    padding-top: 150px;
}

.text-blade {
    background: var(--shinobi-dark);
    margin-bottom: 2rem;
    padding: 2.5rem;
    border-left: 3px solid var(--shinobi-crimson);
}

.text-blade h2 {
    font-family: var(--shinobi-font-header);
    margin-bottom: 1.5rem;
    color: var(--shinobi-crimson);
}

.text-blade ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.text-blade li {
    margin-bottom: 0.5rem;
}

/* --- GAME AREA --- */
.play-ground-area {
    padding: 100px 0;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
}

.game-blade {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border: 2px solid var(--shinobi-crimson);
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.2);
    overflow: hidden;
}

.game-blade::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 51, 0.1), transparent);
    animation: blade-flash 5s linear infinite;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 992px) {
    .blade-layout {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .footer-blade-layout {
        grid-template-columns: 1fr;
    }

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

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

    .hero-title {
        font-size: 2.5rem;
    }
}