@import url('base.css');
/* Import base styles */

/* =========================================
   Shared Styles for Proposals
   ========================================= */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--color-bg-body);
}

.fv-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

/* Navigation Overlay (Mock for preview) */
.nav-mock {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    /* Ensure visibility on light/dark */
    color: white;
}

.nav-mock .logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.nav-mock ul {
    display: flex;
    gap: 30px;
}

.nav-mock li {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

/* Micro-interaction: Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    z-index: 10;
    opacity: 0;
    /* Hidden initially */
    animation: fadeIn 1s ease 3s forwards;
    /* Delay show */
}

.scroll-indicator span {
    margin-bottom: 10px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transform: translateY(-100%);
    animation: scrollDown 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

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

    100% {
        transform: translateY(100%);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* =========================================
   Proposal A: Silence to Frenzy
   ========================================= */
.fv-a-wrapper {
    background-color: #000;
}

/* Opening Sequence Overlay */
.opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through after animation */
}

/* Fog Background Layer */
.fog-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* Behind text */
}

.fog-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
}

.fog-layer-1 {
    top: 30%;
    left: -50%;
    animation: fogMove 20s linear infinite;
    opacity: 0.6;
}

.fog-layer-2 {
    top: -20%;
    left: -20%;
    width: 150%;
    height: 150%;
    animation: fogMove 25s linear infinite reverse;
    opacity: 0.4;
    background: radial-gradient(ellipse at center, rgba(200, 200, 200, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
}

.fog-layer-3 {
    bottom: -10%;
    left: -10%;
    width: 120%;
    height: 80%;
    animation: fogMove 15s linear infinite;
    opacity: 0.5;
    background: radial-gradient(ellipse at center, rgba(150, 150, 150, 0.15) 0%, rgba(0, 0, 0, 0) 50%);
}

@keyframes fogMove {
    0% {
        transform: translateX(0) scale(1);
    }

    50% {
        transform: translateX(10%) scale(1.1);
    }

    100% {
        transform: translateX(0) scale(1);
    }
}

/* Impact Text Typography */
.impact-text-container {
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 5rem);
    line-height: 1.4;
    text-align: center;
    overflow: visible;
    position: relative;
}

.char-span {
    display: inline-block;
    opacity: 0;
    transform: scale(1.1) translateY(20px);
    /* Start slightly larger and lower */
    filter: blur(0);
}

.char-active {
    animation: slideUpGlow 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Shine effect wrapper - triggered after text entry */
.impact-text-container.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shinePass 1.5s ease-in-out;
}

@keyframes shinePass {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Slide Up + Glow Animation */
@keyframes slideUpGlow {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(1.1);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0);
    }

    20% {
        opacity: 1;
        text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
        /* Sharp finish */
    }
}

/* The Flash */
.flash-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 9998;
}

.flash-trigger {
    animation: flash 1s ease-out forwards;
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Main Content Layer (Behind intro) */
.main-hero {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-hero.visible {
    opacity: 1;
}

/* Parallax Background */
.parallax-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('public/images/hero_new.jpg');
    /* Placeholder */
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: grayscale(100%) brightness(0.4);
    transition: transform 0.1s linear, filter 1.5s ease;
}

.main-hero.color-bloom .parallax-bg {
    filter: grayscale(0%) brightness(0.8);
}

/* Hero Content */
.fv-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: #fff;
    /* mix-blend-mode: overlay; Removed to improve visibility */
    /* Blend with image */
}

.fv-content h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease 0.5s;
    /* Add foggy glow effect manually since overlay is gone */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
}

.fv-content h1 span {
    color: var(--color-primary);
    display: block;
}

.fv-content.animate-in h1 {
    opacity: 1;
    transform: translateY(0);
}

/* Beam of Light / Yellow Stripe */
.light-beam {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 100px rgba(255, 215, 0, 0.5);
    transform: skewX(-20deg) translateX(-50%);
    z-index: 2;
    transition: width 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.main-hero.visible .light-beam {
    width: 300px;
}

/* =========================================
   Proposal B: Professional / Luxury
   ========================================= */
.fv-b-wrapper {
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gold-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 85%;
    border: 1px solid rgba(197, 160, 89, 0.3);
    z-index: 2;
    overflow: hidden;
}

.frame-line {
    position: absolute;
    background: var(--color-primary);
    transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Top Line */
.frame-line.top {
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
}

.frame-line.right {
    top: 0;
    right: 0;
    width: 3px;
    height: 0;
}

.frame-line.bottom {
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
}

.frame-line.left {
    bottom: 0;
    left: 0;
    width: 3px;
    height: 0;
}

.frame-active .frame-line.top {
    width: 100%;
}

.frame-active .frame-line.right {
    height: 100%;
    transition-delay: 0.2s;
}

.frame-active .frame-line.bottom {
    width: 100%;
    transition-delay: 0.4s;
}

.frame-active .frame-line.left {
    height: 100%;
    transition-delay: 0.6s;
}

.b-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    width: 80%;
    max-width: 1400px;
    gap: 4rem;
    position: relative;
    z-index: 5;
    align-items: center;
}

.b-image-box {
    position: relative;
    height: 600px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.5s ease 0.5s;
}

.b-image-box.active {
    opacity: 1;
    transform: translateX(0);
}

.b-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 3D Tilt Wrapper would go here */
}

.b-text-box {
    color: #fff;
    text-align: right;
}

.mask-text {
    overflow: hidden;
    display: block;
}

.mask-text span {
    display: block;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.text-active .mask-text span {
    transform: translateY(0);
}

.b-title {
    font-family: var(--font-en);
    font-size: 5rem;
    line-height: 0.9;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-primary-light);
}

.b-subtitle {
    font-size: 1.2rem;
    color: #aeaeae;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* =========================================
   Proposal C: Tech / Modern
   ========================================= */
.fv-c-wrapper {
    background: #050505;
    color: #fff;
    perspective: 1000px;
}

#canvas-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

.c-center-stage {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 100%;
    padding-top: 15vh;
}

.glitch-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 6rem;
    position: relative;
    color: #fff;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(30px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(80px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    100% {
        clip: rect(50px, 9999px, 30px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(90px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(50px, 9999px, 40px, 0);
    }

    60% {
        clip: rect(20px, 9999px, 90px, 0);
    }

    80% {
        clip: rect(80px, 9999px, 50px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 20px, 0);
    }
}