@charset "UTF-8";

/* =========================================
   Theme: Neural Flow (Connected Talent)
   Target: introduction_flow.html
   ========================================= */

:root {
    --flow-node-width: 450px;
    --flow-gap-y: 150px;
    --flow-gap-x: 60px; /* From center line */
    --marker-size: 60px;
/* Ensure Buddy is removed or Styles reset if needed (Buddy removed from HTML) */
/* Hero Image (Center) - Massive & Dynamic (Full Screen) */
/* Hero Image (Center) - Massive & Dynamic (Full Screen) */
/* Hero Image (Center) - Massive & Transparent */
.hero-img-center {
    position: relative;
    width: 90vw;
    height: 90vh;
    max-width: 1600px;
    z-index: 0;
    margin: 5vh auto;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    transition: transform 0.5s ease-out;
    border-radius: 50px; /* "Delete corners" = Rounded edges for soft look */
    overflow: hidden;
}

.hero-img-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.8; /* "Transparency thin" = 0.8 (visible but transparent) */
}

/* Stylish Overlay Text */
.hero-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 80px; /* "Nice placement" */
    z-index: 10;
    opacity: 1 !important; /* Force Visible */
    text-align: left;
    color: #ffffff;
    /* Dark gradient behind text for readability */
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.hero-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 0.3em;
    margin-bottom: 15px;
    opacity: 0.9;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 90px;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-jp-name {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: 0.5em;
    margin-left: 5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Overlay Text Removed */

/* Deep Glass Theme */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-blur: 15px;
}

body {
    background-color: #f7f9fb; /* Light base */
    overflow-x: hidden;
}

/* --- Container --- */
.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 200px;
    min-height: 200vh;
}

/* --- SVG Connectors --- */
#connector-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.neural-line {
    fill: none;
    stroke: url(#neuralGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(79, 172, 254, 0.4));
    opacity: 0.8;
}

/* --- Nodes (Cards) --- */
.gallery-node {
    position: relative;
    width: var(--flow-node-width);
    margin-bottom: var(--flow-gap-y);
    z-index: 20;
    opacity: 0; /* Hidden initially for JS reveal */
}

/* Staggered Positioning (Desktop) */
@media (min-width: 901px) {
    .node-left {
        margin-left: calc(50% - var(--flow-node-width) - var(--flow-gap-x));
        text-align: right;
    }
    .node-right {
        margin-left: calc(50% + var(--flow-gap-x));
        text-align: left;
    }
    
    /* Markers Positioning */
    .node-left .node-marker {
        right: -80px;
        left: auto;
    }
    .node-right .node-marker {
        left: -80px;
        right: auto;
    }
}

/* --- Glass Card with Tilt --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.05),
        inset 0 0 0 1px rgba(255,255,255,0.5);
    
    transform-style: preserve-3d; /* For Tilt Depth */
    transform: translateZ(0);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease;
}

/* Inner 3D pops */
.node-visual img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    transform: translateZ(20px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.node-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(30px);
    display: inline-block;
}

.node-content p {
    color: #444;
    line-height: 1.8;
    transform: translateZ(25px);
}

/* --- Markers --- */
.node-marker {
    position: absolute;
    top: 0;
    width: var(--marker-size);
    height: var(--marker-size);
    border-radius: 50%;
    background: white;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.1),
        inset 0 0 10px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en, sans-serif);
    font-weight: 800;
    color: #bac8d3;
    font-size: 1.2rem;
    z-index: 25;
}

/* Highlight Active Marker */
.gallery-node.active .node-marker {
    color: white;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    box-shadow: 0 0 20px rgba(161, 140, 209, 0.6);
    transform: scale(1.1);
    transition: all 0.5s ease;
}


/* --- Buddy Hero (Chi-bi Character) --- */
@keyframes buddyFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.hero-img-center .buddy-hero {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px !important;
    height: auto !important;
    z-index: 25;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    animation: buddyFloat 6s ease-in-out infinite;
    pointer-events: auto;
    border-radius: 0 !important; 
    box-shadow: none !important;
    object-fit: contain !important;
}

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    /* Hero Adjustments */
    .hero-img-center {
        width: 92vw;
        height: 60vh; /* Shorter for mobile to encourage scroll */
        margin: 2vh auto;
        border-radius: 30px;
        max-width: 100%; /* Prevent overflow */
    }
    
    .hero-text-overlay {
        padding: 30px 20px;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); /* Stronger contrast mobile */
        width: 100%;
        box-sizing: border-box; /* Ensure padding doesn't widen */
    }

    .hero-name {
        font-size: 10vw !important; /* Force responsive size */
        margin-bottom: 5px;
        line-height: 1.2;
        white-space: nowrap; /* Prevent any wrapping inside lines */
        word-break: normal; /* No breaking words */
    }

    .hero-label {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .hero-jp-name {
        font-size: 16px;
    }

    /* Gallery Adjustments */
    .gallery-container {
        padding: 60px 15px 100px;
        min-height: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .gallery-node {
        width: 100%; /* Full width */
        margin-left: 0 !important; /* Reset margin */
        text-align: left !important;
        margin-bottom: 60px;
        max-width: 100%;
    }
    
    .glass-card {
        padding: 25px; /* Compact padding */
    }

    .node-marker {
        position: relative;
        top: auto;
        left: 0 !important;
        right: auto !important;
        margin-bottom: 10px;
    }
    
    #connector-stage {
        display: none; /* Hide connectors on mobile mainly */
    }
}
