/* Base Styles */
:root {
    --text-color: #f8f8f8;
    --background-color: #000000;
    --accent-color: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(255, 255, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif; /* Changed to Roboto as it's used in the original style.css */
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto; /* From original style.css */
}

.cosmos {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Section Styles */
.section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.section:target .content,
.section.active .content {
    opacity: 1;
    transform: translateY(0);
}

.text-container {
    position: relative;
}

.text-container p {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.5s forwards;
    animation-delay: calc(var(--i, 0) * 0.5s);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Genesis Section */
.genesis {
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.genesis .text-container p:nth-child(1) { --i: 1; }
.genesis .text-container p:nth-child(2) { --i: 2; }
.genesis .text-container p:nth-child(3) { --i: 3; }

/* What is Arcannia Section */
.what-is {
    background: linear-gradient(to bottom, #000000, #050505);
}

.what-is .text-container p:nth-child(1) { --i: 1; }
.what-is .text-container p:nth-child(2) { --i: 2; }
.what-is .text-container p:nth-child(3) { --i: 3; }

/* Ariel Section */
.ariel {
    background: radial-gradient(circle at center, #050505 0%, #000000 100%);
}

.silhouette {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50% 50% 0 0 / 70% 70% 30% 30%;
    z-index: 1;
    opacity: 0.6;
    animation: pulse 4s ease-in-out infinite;
}

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

.ariel .text-container {
    margin-top: 150px;
}

.ariel .text-container p:nth-child(1) { --i: 1; }
.ariel .text-container p:nth-child(2) { --i: 2; }
.ariel .text-container p:nth-child(3) { --i: 3; }

/* Book of Records Section */
.book {
    background: linear-gradient(to bottom, #000000, #030303);
}

.book .text-container::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    opacity: 0.7;
}

.book .text-container p:nth-child(1) { --i: 1; }
.book .text-container p:nth-child(2) { --i: 2; }

/* Humanari Section */
.humanari {
    background: radial-gradient(circle at center, #030303 0%, #000000 100%);
}

.humanari .text-container p:nth-child(1) { --i: 1; }
.humanari .text-container p:nth-child(2) { --i: 2; }
.humanari .text-container p:nth-child(3) { --i: 3; }

/* The Oath Section */
.oath {
    background: linear-gradient(to bottom, #000000, #020202);
}

.oath .text-container {
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 2rem;
}

.oath .text-container p:nth-child(1) { --i: 1; }
.oath .text-container p:nth-child(2) { --i: 2; }
.oath .text-container p:nth-child(3) { --i: 3; }
.oath .text-container p:nth-child(4) { --i: 4; }

/* The Portal Section */
.portal {
    background: radial-gradient(circle at center, #020202 0%, #000000 100%);
}

.portal .content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: portalPulse 6s ease-in-out infinite;
}

@keyframes portalPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

.portal .text-container p:nth-child(1) { --i: 1; }
.portal .text-container p:nth-child(2) { --i: 2; }
.portal .text-container p:nth-child(3) { --i: 3; }

/* Coming Soon Section */
.coming-soon {
    background: linear-gradient(to bottom, #000000, #010101);
}

.coming-soon .text-container p:nth-child(1) { --i: 1; }
.coming-soon .text-container p:nth-child(2) { --i: 2; }
.coming-soon .text-container p:nth-child(3) { --i: 3; }

/* Intersection Observer for Animations */
.section {
    opacity: 0.3;
    transition: opacity 1s ease;
}

.section.active {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .text-container p {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .silhouette {
        width: 150px;
        height: 225px;
    }

    .book .text-container::before {
        width: 80px;
        height: 120px;
        top: -80px;
    }

    .oath .text-container {
        padding-left: 1rem;
    }

    .portal .content::before {
        width: 200px;
        height: 200px;
    }
}

/* Add Intersection Observer in pure CSS */
@media (prefers-reduced-motion: no-preference) {
    .section {
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .section:not(.active) {
        opacity: 0;
        transform: translateY(20px);
    }

    /* This is a CSS-only approximation of Intersection Observer */
    .section:target {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simple animation to make sections appear as you scroll */
@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Layout styles for single image and headline - from original style.css */
.image-container {
    width: 100%;
    max-height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.headline p {
    margin: 1rem 0;
    text-align: left;
}

.image-container img {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
}

.headline {
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    color: #fff;
    line-height: 1.5;
    padding: 0 1rem;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* Orbitron Bold for humanari_ link */
.headline a {
    font-family: inherit;
    font-weight: inherit;
}

/* Blue color for Humanaris link */
.headline a:link,
.headline a:visited,
.headline a:hover,
.headline a:active {
    color: #c7e0e8 !important;
    text-decoration: none;
}


/* Blue color for Humanaris link */
.direita a:link,
.direita a:visited,
.direita a:hover,
.direita a:active {
    color: #c7e0e8 !important;
    text-decoration: none;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: none;
}

nav ul li .current-page-link {
    color: #c7e0e8 !important;
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}


/* Image sequence container */
.image-sequence-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image wrapper */
.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* First image - initially hidden, will be faded in via JS */
.first-image {
    z-index: 2;
}

/* Second image - hidden initially */
.second-image {
    z-index: 1;
}

/* Image styling */
.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* Fading animations */
@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes fadeOut {
    from {opacity: 1}
    to {opacity: 0}
}