/* =============================================
   riron.net - Ethereal Aurora Scroll
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #5A6070;
    background-color: #F0F2F5;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* --- Aurora Background --- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(
            135deg,
            rgba(107, 140, 174, 0.15) 0%,
            rgba(168, 138, 154, 0.10) 25%,
            rgba(240, 242, 245, 0.05) 50%,
            rgba(107, 140, 174, 0.12) 75%,
            rgba(168, 138, 154, 0.08) 100%
        ),
        linear-gradient(
            45deg,
            rgba(168, 138, 154, 0.08) 0%,
            rgba(107, 140, 174, 0.15) 30%,
            rgba(240, 242, 245, 0.02) 60%,
            rgba(168, 138, 154, 0.12) 100%
        );
    background-size: 300% 300%, 400% 400%;
    animation: aurora-shift 15s ease-in-out infinite;
}

@keyframes aurora-shift {
    0% {
        background-position: 0% 50%, 100% 50%;
    }
    25% {
        background-position: 50% 0%, 50% 100%;
    }
    50% {
        background-position: 100% 50%, 0% 50%;
    }
    75% {
        background-position: 50% 100%, 50% 0%;
    }
    100% {
        background-position: 0% 50%, 100% 50%;
    }
}

/* --- Leather Texture Overlay --- */
.leather-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-conic-gradient(
        rgba(42, 48, 64, 0.03) 0%,
        rgba(240, 242, 245, 0.01) 25%,
        rgba(42, 48, 64, 0.02) 50%,
        rgba(240, 242, 245, 0.01) 75%
    );
    opacity: 0.03;
}

/* --- Horizontal Scroll Container --- */
.scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 2;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* --- Panel Base --- */
.panel {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.panel-content {
    max-width: 680px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 3;
}

/* --- Hero Panel --- */
.hero-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 700;
    color: #2A3040;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 1s ease-out 0.3s forwards;
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: #5A6070;
    line-height: 1.8;
    margin-bottom: 2em;
    opacity: 0;
    transform: translateY(15px);
    animation: fade-in-up 1s ease-out 0.6s forwards;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25em;
    opacity: 0;
    animation: fade-in-up 1s ease-out 0.9s forwards;
}

.scroll-hint-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #6B8CAE;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-hint-arrow {
    animation: bounce-arrow 2s ease-in-out infinite;
    transform: rotate(-90deg);
}

@keyframes bounce-arrow {
    0%, 100% { transform: rotate(-90deg) translateY(0); }
    50% { transform: rotate(-90deg) translateY(6px); }
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Titles --- */
.section-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #2A3040;
    margin-bottom: 0.6em;
    letter-spacing: -0.01em;
}

/* --- Section Body Text --- */
.section-body {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #5A6070;
    line-height: 1.8;
    margin-bottom: 1.5em;
}

/* --- Concept Card --- */
.concept-card {
    background: #F8F9FA;
    border-radius: 16px;
    padding: 3em 2.5em;
    box-shadow:
        0 4px 24px rgba(42, 48, 64, 0.06),
        0 1px 4px rgba(42, 48, 64, 0.04);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                box-shadow 0.4s ease;
}

.concept-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 8px 40px rgba(42, 48, 64, 0.10),
        0 2px 8px rgba(42, 48, 64, 0.06);
}

/* --- Concept Tags --- */
.concept-tag-group {
    display: flex;
    gap: 0.75em;
    justify-content: center;
    flex-wrap: wrap;
}

.concept-tag {
    display: inline-block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #6B8CAE;
    background: rgba(107, 140, 174, 0.10);
    border: 1px solid rgba(107, 140, 174, 0.20);
    border-radius: 100px;
    padding: 0.4em 1.2em;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                background 0.3s ease;
}

.concept-tag:hover {
    transform: scale(1.08);
    background: rgba(107, 140, 174, 0.18);
}

/* --- Connection Nodes --- */
.connection-lines {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    flex-wrap: wrap;
}

.connection-node {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #F8F9FA;
    background: #6B8CAE;
    border-radius: 12px;
    padding: 0.75em 1.5em;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                background 0.4s ease;
}

.connection-node:hover {
    transform: scale(1.1) translateY(-3px);
    background: #A88A9A;
}

/* --- Emergence Rings --- */
.emergence-visual {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 1.5em auto 0;
}

.emergence-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(107, 140, 174, 0.25);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ring-pulse 4s ease-in-out infinite;
}

.emergence-ring-1 {
    width: 80px;
    height: 80px;
    border-color: rgba(107, 140, 174, 0.35);
    animation-delay: 0s;
}

.emergence-ring-2 {
    width: 130px;
    height: 130px;
    border-color: rgba(168, 138, 154, 0.25);
    animation-delay: 0.5s;
}

.emergence-ring-3 {
    width: 180px;
    height: 180px;
    border-color: rgba(107, 140, 174, 0.15);
    animation-delay: 1s;
}

@keyframes ring-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

/* --- Horizon Glow --- */
.horizon-glow {
    width: 100%;
    height: 120px;
    margin-top: 2em;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(107, 140, 174, 0.20) 0%,
        rgba(168, 138, 154, 0.10) 40%,
        rgba(240, 242, 245, 0) 70%
    );
    animation: glow-breathe 5s ease-in-out infinite;
}

@keyframes glow-breathe {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.1); }
}

/* --- Navigation Dots --- */
.panel-nav {
    position: fixed;
    bottom: 2em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75em;
    z-index: 10;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #6B8CAE;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease,
                transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-dot:hover {
    transform: scale(1.3);
}

.nav-dot.active {
    background: #6B8CAE;
}

/* --- Panel-specific aurora accents --- */
.panel-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: radial-gradient(
        ellipse at 30% 40%,
        rgba(107, 140, 174, 0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.panel-foundations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        160deg,
        rgba(107, 140, 174, 0.06) 0%,
        transparent 40%,
        rgba(168, 138, 154, 0.04) 100%
    );
    pointer-events: none;
}

.panel-connections::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        200deg,
        rgba(168, 138, 154, 0.06) 0%,
        transparent 50%,
        rgba(107, 140, 174, 0.05) 100%
    );
    pointer-events: none;
}

.panel-emergence::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 50% 50%,
        rgba(107, 140, 174, 0.07) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.panel-horizons::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(168, 138, 154, 0.06) 50%,
        rgba(107, 140, 174, 0.08) 100%
    );
    pointer-events: none;
}
