@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&family=Oswald:wght@300;500;700;800&display=swap');

:root {
    --color-primary: #D60000;
    --color-primary-dark: #8a0000;
    --color-black: #080808;
    --color-dark-gray: #121212;
    --color-off-white: #f0f0f0;
    --color-text-muted: #888888;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --gradient-hero: linear-gradient(180deg, rgba(8, 8, 8, 0.3) 0%, rgba(8, 8, 8, 1) 100%);
    --spacing-container: 1400px;

    --cursor-size: 20px;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    width: 90%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor */
}

html,
body {
    background-color: var(--color-black);
    color: var(--color-off-white);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    /* Critical for mobile */
    max-width: 100vw;
    /* Force viewport width limit */
    width: 100%;
    position: relative;
    line-height: 1.7;
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering .cursor-outline {
    width: 70px;
    height: 70px;
    background-color: rgba(214, 0, 0, 0.1);
    border-color: var(--color-primary);
}

/* --- Typography & Animations --- */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    line-height: 1.1;
    overflow: hidden;
    display: block;
}

.reveal-text span {
    display: block;
    transform: translateY(100%);
    animation: revealUp 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.delay-1 span {
    animation-delay: 0.2s;
}

.delay-2 span {
    animation-delay: 0.4s;
}

.delay-3 span {
    animation-delay: 0.6s;
}

@keyframes revealUp {
    0% {
        transform: translateY(110%);
    }

    100% {
        transform: translateY(0);
    }
}

.title-huge {
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--color-off-white);
    font-family: var(--font-heading);
    line-height: 0.95;
    text-transform: uppercase;
}

.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
    transition: all 0.5s ease;
}

.text-stroke:hover {
    -webkit-text-stroke: 1px var(--color-primary);
    color: rgba(214, 0, 0, 0.1);
}

.text-highlight {
    color: var(--color-primary);
    display: inline-block;
}

/* --- Header --- */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 15vh;
    /* Moves content down from the logo/top */
    padding-bottom: 80px;
    /* Space for the marquee */
}

.hero-bg-wrapper {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.98)), url('../fotos/hero_judogui_belt.png') center/cover no-repeat;
    filter: grayscale(100%) contrast(1.1);
    /* Gradient mask provides the dark neutral tone */
    transition: transform 0.5s ease-out;
}

/* Scanline/Noise Effect */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 900;
    opacity: 0.05;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
}

.hero-content {
    position: relative;
    z-index: 30;
    /* Elevated above marquee */
    text-align: center;
    mix-blend-mode: normal;
}

/* --- Floating Elements --- */
.floating-kanji {
    position: absolute;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    pointer-events: none;
    user-select: none;
    animation: float 10s ease-in-out infinite;
}

.kanji-1 {
    top: 10%;
    right: 10%;
    font-size: 20vw;
    animation-delay: 0s;
}

.kanji-2 {
    bottom: 5%;
    left: 5%;
    font-size: 15vw;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(2deg);
    }
}

/* --- Magnetic Button --- */
.btn-magnetic {
    display: inline-block;
    margin-top: 40px;
    padding: 20px 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-magnetic span {
    position: relative;
    z-index: 2;
}

.btn-magnetic::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0%;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: height 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.btn-magnetic:hover::after {
    height: 100%;
}

.btn-magnetic:hover {
    border-color: var(--color-primary);
}

/* --- Marquee --- */
.marquee-container {
    background: var(--color-primary);
    transform: rotate(-2deg) scale(1.1);
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 15px 0;
    position: relative;
    z-index: 20;
    margin-top: 0;
    /* Removed negative margin to move it down */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.marquee-content {
    display: flex;
    animation: scroll 20s linear infinite;
    gap: 4rem;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    -webkit-text-stroke: 1px transparent;
}

.marquee-item.outline {
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* --- Section Sensei --- */
.sensei-section {
    padding: 150px 0;
    background: #080808;
    position: relative;
}

.grid-sensei {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.sensei-photo-container {
    position: relative;
    height: 120vh;
    /* Tall image */
    overflow: hidden;
    /* Parallax effect container */
}

.sensei-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.sensei-photo-container:hover .sensei-photo,
.sensei-photo-container:active .sensei-photo {
    filter: grayscale(0%);
}

.sensei-badge {
    position: absolute;
    bottom: 50px;
    right: -20px;
    background: var(--color-primary);
    color: white;
    padding: 20px 40px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    transform: rotate(-90deg);
    transform-origin: right bottom;
}

.sensei-text-panel {
    position: sticky;
    top: 50px;
    padding-top: 50px;
}

.sensei-title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-family: var(--font-heading);
    line-height: 0.9;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.highlight-box {
    border-left: 3px solid var(--color-primary);
    padding-left: 30px;
    margin: 40px 0;
}

.stat-item {
    margin-bottom: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #666;
}

/* --- Nav --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 40px;
    z-index: 1000;
    mix-blend-mode: difference;
}

.nav-wrapper {
    max-width: var(--spacing-container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 2px;
}

/* --- Section: Gallery (The Arena) --- */
.gallery-section {
    padding: 100px 0;
    background-color: var(--color-black);
    position: relative;
    z-index: 2;
}

.gallery-header {
    margin-bottom: 60px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), filter 0.5s ease;
    filter: grayscale(100%);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: opacity 0.5s;
}

.gallery-item:hover::after {
    opacity: 0;
}

/* Gallery layout config */
.g-wide {
    grid-column: span 8;
}

.g-tall {
    grid-column: span 4;
    grid-row: span 2;
}

.g-box {
    grid-column: span 4;
}

.g-full {
    grid-column: span 12;
    height: 500px;
}

/* Lightbox Premium */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(214, 0, 0, 0.2);
    border: 1px solid #333;
}

/* Lightbox Premium */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(214, 0, 0, 0.2);
    border: 1px solid #333;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-heading);
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--color-primary);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    user-select: none;
}

.lightbox-nav:hover {
    background: var(--color-primary);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 10001;
}

/* Mobile optimizations for lightbox */
@media(max-width: 768px) {
    .lightbox-img {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .lightbox-nav {
        padding: 15px 10px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        bottom: 20px;
        font-size: 1rem;
        padding: 8px 16px;
    }
}


/* --- Section: The Mantra (Quote) --- */
.mantra-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1544367563-12123d815919?q=80&w=2670&auto=format&fit=crop');
    /* Dojo texture */
}

.mantra-content {
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.mantra-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-off-white);
}

.mantra-author {
    margin-top: 30px;
    display: block;
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--color-primary);
}

/* --- Section: Testimonials & FAQ --- */
.info-combo-section {
    padding: 150px 0;
    background: #080808;
}

.combo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* FAQ Styles */
.faq-list {
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    /* Reverted/Scaled down */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-answer {
    margin-top: 15px;
    color: #888;
    line-height: 1.6;
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.faq-item.active .faq-answer {
    height: auto;
    padding-bottom: 10px;
    /* Spacer */
}

.faq-icon {
    font-size: 1rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}

/* Testimonial Cards */
.testimonial-card {
    background: #0f0f0f;
    padding: 40px;
    margin-bottom: 30px;
    border-left: 2px solid #333;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-left-color: var(--color-primary);
    transform: translateX(10px);
}

.t-text {
    font-style: italic;
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 20px;
}

.t-author {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.t-detail {
    font-size: 0.8rem;
    color: #666;
    display: block;
}

/* Mobile Adjustments */
@media(max-width: 1024px) {
    .title-huge {
        font-size: 3.5rem;
    }

    .grid-sensei,
    .combo-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .sensei-photo-container {
        height: 60vh;
    }

    .g-wide,
    .g-tall,
    .g-box {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-grid {
        grid-auto-rows: 250px;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    /* No custom cursor on touch */
    * {
        cursor: auto;
    }
}