/* okurairi.com - The Vault of the Forgotten */
/* Colors: #0D0F1A #2A1F3D #6B3FA0 #9E2B3A #1B4D89 #1A7A5C #D4A843 #EDE8F5 #C8BFD6 */
/* Fonts: Nunito (display), Quicksand (body) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: #0D0F1A;
    color: #EDE8F5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== SIDEBAR ========== */

#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #0D0F1A;
    border-right: 1px solid rgba(107, 63, 160, 0.2);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.sidebar-header {
    padding: 40px 28px 32px;
    border-bottom: 1px solid rgba(107, 63, 160, 0.15);
}

.domain-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: #EDE8F5;
    margin-bottom: 8px;
}

.domain-tagline {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #C8BFD6;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.vault-index {
    list-style: none;
    padding: 24px 0;
    flex: 1;
}

.vault-index-item {
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vault-index-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #6B3FA0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.vault-index-item:hover::before,
.vault-index-item.active::before {
    transform: scaleY(1);
}

.vault-index-item:hover {
    background: rgba(107, 63, 160, 0.08);
}

.vault-index-item.active {
    background: rgba(107, 63, 160, 0.12);
}

.index-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: #D4A843;
    opacity: 0.6;
    min-width: 20px;
}

.vault-index-item.active .index-number {
    opacity: 1;
}

.index-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #C8BFD6;
    transition: color 0.3s ease;
}

.vault-index-item:hover .index-label,
.vault-index-item.active .index-label {
    color: #EDE8F5;
}

.sidebar-footer {
    padding: 20px 28px;
    border-top: 1px solid rgba(107, 63, 160, 0.15);
}

.vault-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4A843;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.status-text {
    font-size: 0.75rem;
    color: #C8BFD6;
    opacity: 0.5;
    letter-spacing: 0.08em;
}

/* ========== SIDEBAR TOGGLE (Mobile) ========== */

#sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 200;
    width: 44px;
    height: 44px;
    background: rgba(13, 15, 26, 0.9);
    border: 1px solid rgba(107, 63, 160, 0.3);
    border-radius: 12px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #EDE8F5;
    border-radius: 1px;
    transition: all 0.3s ease;
}

#sidebar-toggle.open .toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#sidebar-toggle.open .toggle-bar:nth-child(2) {
    opacity: 0;
}

#sidebar-toggle.open .toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== MAIN CONTENT ========== */

#main-content {
    margin-left: 280px;
    min-height: 100vh;
}

/* ========== VAULT SECTIONS ========== */

.vault-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 60px;
    overflow: hidden;
}

.section-inner {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.section-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(4rem, 8vw, 8rem);
    color: rgba(107, 63, 160, 0.08);
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: #EDE8F5;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.section-description {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    color: #C8BFD6;
    max-width: 600px;
    margin-bottom: 32px;
}

/* ========== HERO SECTION ========== */

.hero-form {
    margin-bottom: 60px;
}

.inflated-badge {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #EDE8F5;
    background: radial-gradient(ellipse at 30% 30%, rgba(107, 63, 160, 0.6), rgba(42, 31, 61, 0.8));
    padding: 20px 40px;
    border-radius: 24px;
    box-shadow:
        0 4px 12px rgba(107, 63, 160, 0.3),
        0 12px 40px rgba(107, 63, 160, 0.15),
        inset 0 -4px 12px rgba(0, 0, 0, 0.3),
        inset 0 4px 12px rgba(237, 232, 245, 0.1);
    letter-spacing: 0.05em;
    animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #6B3FA0, transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

.scroll-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.7rem;
    color: #C8BFD6;
    opacity: 0.5;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 1;
}

.orb-purple {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(107, 63, 160, 0.15), transparent 70%);
    top: 10%;
    right: -10%;
}

/* ========== STAGGER LAYOUT ========== */

.stagger-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    width: 100%;
}

.stagger-reverse {
    direction: rtl;
}

.stagger-reverse > * {
    direction: ltr;
}

.stagger-text {
    padding-right: 20px;
}

.stagger-reverse .stagger-text {
    padding-right: 0;
    padding-left: 20px;
}

.stagger-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== VAULT METADATA ========== */

.vault-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-tag {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: #C8BFD6;
    background: rgba(107, 63, 160, 0.1);
    border: 1px solid rgba(107, 63, 160, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

/* ========== INFLATED CUBE ========== */

.inflated-cube {
    width: 220px;
    height: 220px;
    position: relative;
    animation: float-gentle 8s ease-in-out infinite;
}

.cube-face {
    position: absolute;
    border-radius: 24px;
}

.cube-front {
    width: 200px;
    height: 200px;
    top: 10px;
    left: 10px;
    background: radial-gradient(ellipse at 35% 25%, rgba(107, 63, 160, 0.7), rgba(42, 31, 61, 0.9));
    box-shadow:
        0 8px 32px rgba(107, 63, 160, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 -8px 24px rgba(0, 0, 0, 0.4),
        inset 0 8px 24px rgba(237, 232, 245, 0.08);
}

.cube-top {
    width: 180px;
    height: 40px;
    top: 0;
    left: 20px;
    background: radial-gradient(ellipse at 50% 80%, rgba(158, 43, 58, 0.4), rgba(107, 63, 160, 0.6));
    border-radius: 20px 20px 4px 4px;
    transform: perspective(300px) rotateX(30deg);
    opacity: 0.7;
}

.cube-right {
    width: 40px;
    height: 180px;
    top: 20px;
    right: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(27, 77, 137, 0.4), rgba(42, 31, 61, 0.8));
    border-radius: 4px 20px 20px 4px;
    transform: perspective(300px) rotateY(-20deg);
    opacity: 0.6;
}

.cube-highlight {
    position: absolute;
    width: 80px;
    height: 30px;
    top: 35px;
    left: 40px;
    background: radial-gradient(ellipse, rgba(237, 232, 245, 0.15), transparent);
    border-radius: 50%;
}

/* ========== INFLATED SPHERE ========== */

.inflated-sphere {
    width: 240px;
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-gentle 7s ease-in-out infinite;
    animation-delay: -2s;
}

.sphere-inner {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 35% 30%, rgba(212, 168, 67, 0.6), rgba(158, 43, 58, 0.4), rgba(42, 31, 61, 0.9));
    box-shadow:
        0 8px 40px rgba(212, 168, 67, 0.3),
        0 20px 80px rgba(158, 43, 58, 0.15),
        inset 0 -10px 30px rgba(0, 0, 0, 0.5),
        inset 0 10px 20px rgba(237, 232, 245, 0.1);
}

.sphere-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 67, 0.15);
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation: ring-rotate 12s linear infinite;
}

.ring-2 {
    width: 220px;
    height: 220px;
    animation: ring-rotate 18s linear infinite reverse;
    border-color: rgba(107, 63, 160, 0.12);
}

.ring-3 {
    width: 240px;
    height: 240px;
    animation: ring-rotate 24s linear infinite;
    border-color: rgba(158, 43, 58, 0.08);
}

@keyframes ring-rotate {
    0% { transform: rotate(0deg) scaleY(0.3); }
    100% { transform: rotate(360deg) scaleY(0.3); }
}

.sphere-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08), transparent 60%);
    pointer-events: none;
}

/* ========== MOUNTAIN CONTAINER ========== */

.mountain-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: float-gentle 9s ease-in-out infinite;
    animation-delay: -4s;
}

.mountain-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 30px rgba(27, 77, 137, 0.3));
}

.mountain-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(26, 122, 92, 0.15), transparent);
    filter: blur(20px);
}

/* ========== GEM CONTAINER ========== */

.gem-container {
    width: 200px;
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-gentle 6s ease-in-out infinite;
    animation-delay: -1s;
}

.gem-body {
    width: 120px;
    height: 160px;
    position: relative;
}

.gem-facet {
    position: absolute;
}

.facet-top {
    width: 0;
    height: 0;
    left: 0;
    top: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 60px solid rgba(158, 43, 58, 0.7);
    filter: drop-shadow(0 0 20px rgba(158, 43, 58, 0.4));
}

.facet-left {
    width: 0;
    height: 0;
    left: 0;
    top: 60px;
    border-top: 0 solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(107, 63, 160, 0.6);
    border-left: 0 solid transparent;
}

.facet-right {
    width: 0;
    height: 0;
    right: 0;
    top: 60px;
    border-top: 0 solid transparent;
    border-left: 60px solid transparent;
    border-bottom: 100px solid rgba(27, 77, 137, 0.6);
    border-right: 0 solid transparent;
}

.facet-bottom {
    position: absolute;
    width: 120px;
    height: 20px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, rgba(107, 63, 160, 0.4), rgba(27, 77, 137, 0.4));
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.gem-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(158, 43, 58, 0.1), transparent 60%);
    pointer-events: none;
    animation: gem-pulse 3s ease-in-out infinite;
}

@keyframes gem-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
}

.gem-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #D4A843;
}

.p1 { top: 10%; left: 20%; animation: particle-float 4s ease-in-out infinite; }
.p2 { top: 30%; right: 10%; animation: particle-float 5s ease-in-out infinite 0.5s; }
.p3 { bottom: 20%; left: 10%; animation: particle-float 3.5s ease-in-out infinite 1s; }
.p4 { top: 15%; right: 25%; animation: particle-float 4.5s ease-in-out infinite 1.5s; background: #9E2B3A; }
.p5 { bottom: 30%; right: 20%; animation: particle-float 3s ease-in-out infinite 2s; background: #6B3FA0; }
.p6 { bottom: 10%; left: 30%; animation: particle-float 5.5s ease-in-out infinite 0.8s; background: #1B4D89; }

@keyframes particle-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 1; }
}

/* ========== ARCHIVE GRID ========== */

.archive-desc {
    margin-bottom: 48px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.archive-card {
    background: rgba(42, 31, 61, 0.3);
    border: 1px solid rgba(107, 63, 160, 0.15);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.archive-card:hover {
    transform: translateY(-4px);
    border-color: rgba(107, 63, 160, 0.35);
    box-shadow:
        0 8px 32px rgba(107, 63, 160, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-orb {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.archive-card:hover .card-orb {
    opacity: 0.6;
}

.archive-card[data-color="purple"] .card-orb { background: #6B3FA0; }
.archive-card[data-color="ruby"] .card-orb { background: #9E2B3A; }
.archive-card[data-color="sapphire"] .card-orb { background: #1B4D89; }
.archive-card[data-color="emerald"] .card-orb { background: #1A7A5C; }
.archive-card[data-color="gold"] .card-orb { background: #D4A843; }

.card-content {
    position: relative;
    z-index: 2;
}

.card-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #EDE8F5;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.card-desc {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #C8BFD6;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-date {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: #D4A843;
    opacity: 0.6;
    letter-spacing: 0.08em;
}

/* ========== FOOTER ========== */

.vault-footer {
    padding: 60px;
    border-top: 1px solid rgba(107, 63, 160, 0.1);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-domain {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #EDE8F5;
    opacity: 0.4;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.footer-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, #6B3FA0, transparent);
    margin: 0 auto 16px;
}

.footer-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    color: #C8BFD6;
    opacity: 0.4;
    letter-spacing: 0.05em;
}

/* ========== REVEAL ANIMATIONS ========== */

.vault-section .section-number,
.vault-section .section-title,
.vault-section .section-description,
.vault-section .vault-metadata,
.vault-section .hero-form,
.vault-section .scroll-indicator,
.vault-section .stagger-visual,
.archive-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.vault-section.revealed .section-number {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.vault-section.revealed .section-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.vault-section.revealed .section-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.vault-section.revealed .vault-metadata {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.vault-section.revealed .hero-form {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.vault-section.revealed .scroll-indicator {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.vault-section.revealed .stagger-visual {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.vault-section.revealed .archive-card {
    opacity: 1;
    transform: translateY(0);
}

.vault-section.revealed .archive-card:nth-child(1) { transition-delay: 0.1s; }
.vault-section.revealed .archive-card:nth-child(2) { transition-delay: 0.2s; }
.vault-section.revealed .archive-card:nth-child(3) { transition-delay: 0.3s; }
.vault-section.revealed .archive-card:nth-child(4) { transition-delay: 0.4s; }
.vault-section.revealed .archive-card:nth-child(5) { transition-delay: 0.5s; }
.vault-section.revealed .archive-card:nth-child(6) { transition-delay: 0.6s; }

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #sidebar-toggle {
        display: flex;
    }

    #main-content {
        margin-left: 0;
    }

    .vault-section {
        padding: 60px 24px;
    }

    .stagger-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stagger-reverse {
        direction: ltr;
    }

    .stagger-text {
        padding-right: 0;
        padding-left: 0;
    }

    .stagger-reverse .stagger-text {
        padding-left: 0;
    }

    .inflated-cube {
        width: 160px;
        height: 160px;
    }

    .cube-front {
        width: 140px;
        height: 140px;
    }

    .cube-top {
        width: 120px;
    }

    .cube-right {
        height: 120px;
    }

    .inflated-sphere {
        width: 180px;
        height: 180px;
    }

    .sphere-inner {
        width: 130px;
        height: 130px;
    }

    .ring-1 { width: 150px; height: 150px; }
    .ring-2 { width: 165px; height: 165px; }
    .ring-3 { width: 180px; height: 180px; }

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

    .gem-container {
        width: 150px;
        height: 180px;
    }

    .gem-body {
        width: 90px;
        height: 120px;
    }

    .facet-top {
        border-left-width: 45px;
        border-right-width: 45px;
        border-bottom-width: 45px;
    }

    .facet-left {
        top: 45px;
        border-right-width: 45px;
        border-bottom-width: 75px;
    }

    .facet-right {
        top: 45px;
        border-left-width: 45px;
        border-bottom-width: 75px;
    }

    .facet-bottom {
        width: 90px;
    }
}

@media (max-width: 480px) {
    .section-number {
        font-size: 3rem;
    }

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

    .inflated-badge {
        font-size: 1rem;
        padding: 14px 28px;
    }
}
