/* ============================================
   Library of Care - Unified Scroll-Snap System
   ============================================ */

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

:root {
    --primary-bg: #0a1432;
    --slide-odd-bg: transparent;
    --slide-even-bg: transparent;
    --text-color: #e0f0ff;
    --heading-color: #ffffff;
    --card-bg: rgba(15, 25, 55, 0.40);
    --card-border: rgba(255, 255, 255, 0.15);
    --accent-color: #78b4ff;
}

body {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background: var(--primary-bg);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* Full-screen Athena background (uses --bg-image from HTML) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--bg-image) center center / cover no-repeat;
    filter: saturate(60%) brightness(75%) contrast(85%);
}

/* Dark overlay for readability */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 50, 0.45) 0%,
        rgba(10, 20, 50, 0.30) 50%,
        rgba(10, 20, 50, 0.55) 100%
    );
    pointer-events: none;
}

/* ---- Scroll Container ---- */
.slides-container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
    background: transparent;
}

/* Athena watermark disabled — now handled by body::before */
.slides-container::after {
    display: none;
}

/* ---- Individual Slide ---- */
.slide {
    width: 100%;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align to left to give space for character on right */
    position: relative;
    overflow: hidden;
    background: transparent !important;
    /* Let container background show */
}

.slide .content {
    max-width: 850px;
    width: 90%;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .slide .content {
        padding: 60px 40px;
    }
}

/* ---- Title Slide ---- */
.slide-title {
    background: transparent !important;
    color: var(--heading-color);
}

.slide-title .content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.slide-title h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Soft Blue Gradient Text */
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.3;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)) drop-shadow(0 0 8px rgba(0,0,0,0.5));
}

.slide-title .subtitle {
    font-size: 1.2rem;
    color: rgba(200, 220, 255, 0.85);
    line-height: 1.8;
    font-weight: 500;
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.9), 1px -1px 0 rgba(0,0,0,0.9),
        -1px  1px 0 rgba(0,0,0,0.9), 1px  1px 0 rgba(0,0,0,0.9),
         0 2px 8px rgba(0,0,0,0.95);
}

.slide-title .meta {
    margin-top: 40px;
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.slide-title .meta-item {
    color: rgba(200, 220, 255, 0.8);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 15px;
    border-radius: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.slide-title .meta-icon {
    font-size: 16px;
}

/* ---- Summary Slide ---- */
.slide-summary {
    background: transparent !important;
    color: var(--text-color);
}

.slide-summary .content {
    text-align: center;
    margin: 0 auto;
}

.slide-summary h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--heading-color);
    -webkit-text-fill-color: var(--heading-color);
    background: none;
    border: none;
    margin-bottom: 32px;
    filter: none;
    text-shadow:
        -2px -2px 0 #000, 2px -2px 0 #000,
        -2px  2px 0 #000, 2px  2px 0 #000,
        -2px  0   0 #000, 2px  0   0 #000,
         0   -2px 0 #000, 0    2px 0 #000,
         0 4px 16px rgba(0,0,0,0.9);
}

.slide-summary .card h3 {
    color: var(--heading-color);
}

.slide-summary .card p {
    color: var(--text-color);
}

/* ---- Section Header ---- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 220, 255, 0.8);
    margin-bottom: 15px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    backdrop-filter: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #89f7fe, #66a6ff);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.slide-header {
    text-align: left;
    margin-bottom: 36px;
    border-bottom: 2px solid rgba(120, 180, 255, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    background: linear-gradient(135deg, #515ecf 0%, #66a6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.8)) drop-shadow(0 0 6px rgba(0,0,0,0.5));
}

h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin: 16px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-shadow:
        -2px -2px 0 #000, 2px -2px 0 #000,
        -2px  2px 0 #000, 2px  2px 0 #000,
        -2px  0   0 #000, 2px  0   0 #000,
         0   -2px 0 #000, 0    2px 0 #000,
         0 4px 16px rgba(0,0,0,0.9);
}

/* ---- Transparent Cards ---- */
.card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(120, 180, 255, 0.08);
    border-color: rgba(120, 180, 255, 0.5);
}

.card-icon {
    font-size: 1.8em;
    margin-right: 12px;
}

/* ---- Feature Cards (Transparent) ---- */
.feature-card {
    background: transparent;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(120, 180, 255, 0.08);
    box-shadow: none;
    border-color: rgba(120, 180, 255, 0.5);
}

.feature-card h3,
.feature-card h4 {
    color: #ffffff;
    justify-content: center;
    text-shadow:
        -2px -2px 0 #000, 2px -2px 0 #000,
        -2px  2px 0 #000, 2px  2px 0 #000,
        -2px  0   0 #000, 2px  0   0 #000,
         0   -2px 0 #000, 0    2px 0 #000,
         0 4px 16px rgba(0,0,0,0.9);
}

.feature-card p {
    color: rgba(200, 220, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.9), 1px -1px 0 rgba(0,0,0,0.9),
        -1px  1px 0 rgba(0,0,0,0.9), 1px  1px 0 rgba(0,0,0,0.9),
         0 2px 8px rgba(0,0,0,0.95);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

/* ---- Grids ---- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ---- Care Navigation Header ---- */
.care-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 200;
}

.care-nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #e0f0ff;
    letter-spacing: 1px;
    text-decoration: none;
}

.care-nav .brand-icon {
    font-size: 18px;
}

.care-nav .back-link {
    font-size: 13px;
    color: rgba(200, 220, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.care-nav .back-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

/* ---- Nav Dots ---- */
.nav-dots {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.nav-dot:hover,
.nav-dot.active {
    background: #66a6ff;
    border-color: #66a6ff;
    transform: scale(1.2);
}

.nav-dot-label {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #e0f0ff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.nav-dot:hover .nav-dot-label {
    opacity: 1;
}

/* ---- Pagination Bar (Progress + Counter) ---- */
.pagination-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: none;
    border-radius: 999px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.page-counter {
    color: #e0f0ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.pagination-progress {
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.pagination-progress-fill {
    height: 100%;
    background: rgba(120, 180, 255, 0.8);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* ---- Scroll Hint ---- */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(200, 220, 255, 0.5);
    font-size: 12px;
    text-align: center;
    animation: pulse 2s infinite;
    z-index: 2;
}

.scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom, rgba(200, 220, 255, 0.3), transparent);
    margin: 10px auto 0;
}

/* ---- Care Credit ---- */
.care-credit {
    text-align: center;
    font-size: 13px;
    color: rgba(200, 220, 255, 0.5);
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}

/* ---- Enhanced Text Readability (Strong Outlines) ---- */
.slide .content p,
.slide .content li {
    font-size: 1rem;
    line-height: 1.85;
    color: #e8f0ff;
    letter-spacing: 0.03em;
    font-weight: 500;
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.9), 1px -1px 0 rgba(0,0,0,0.9),
        -1px  1px 0 rgba(0,0,0,0.9), 1px  1px 0 rgba(0,0,0,0.9),
         0 2px 8px rgba(0,0,0,0.95);
}

.slide .content .card p,
.slide .content .feature-card p {
    line-height: 1.85;
    letter-spacing: 0.03em;
}

.slide .content .slide-header h2 {
    border-left: 3px solid rgba(120, 180, 255, 0.7);
    padding-left: 12px;
}

/* ---- Animations ---- */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* ---- Responsive ---- */
@media (max-width: 899px) {
    .slide .content {
        max-width: 100%;
        margin-left: 0;
        padding: 80px 16px 60px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .nav-dots {
        display: none;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}