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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    background-color: #000000;
    color: #B0C4D8;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 2s ease;
}

body.loaded {
    background-color: #060A10;
}

/* Star Field Canvas */
#starField {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Particle Field Canvas */
#particleField {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Aurora Ribbons */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.aurora {
    position: absolute;
    width: 200%;
    height: 100px;
    opacity: 0;
    transition: opacity 2s ease;
}

body.loaded .aurora {
    opacity: 1;
}

.aurora-1 {
    top: 30%;
    left: -50%;
    animation: auroraDrift1 40s linear infinite;
}

.aurora-2 {
    top: 60%;
    left: -50%;
    animation: auroraDrift2 55s linear infinite;
}

@keyframes auroraDrift1 {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

@keyframes auroraDrift2 {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.hero-content {
    text-align: center;
}

.site-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 48px;
    letter-spacing: 0.08em;
    color: #E8F0F8;
    text-shadow: 0 0 10px #7EB8D4;
}

.title-letter {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.3s ease, text-shadow 0.3s ease;
}

.title-letter.visible {
    opacity: 1;
}

.title-letter.glow {
    text-shadow: 0 0 40px #7EB8D4;
}

.title-letter.settled {
    text-shadow: 0 0 10px #7EB8D4;
}

.title-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7EB8D4, transparent);
    margin: 24px auto;
    transition: width 3s ease-out;
    opacity: 0.4;
}

.title-line.extended {
    width: 400px;
}

.hero-whisper {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 20px;
    color: #7EB8D4;
    opacity: 0;
    transition: opacity 2s ease;
}

.hero-whisper.visible {
    opacity: 0.6;
}

/* Content Sections */
.content-section {
    position: relative;
    min-height: 120vh;
    display: flex;
    align-items: center;
    z-index: 3;
    padding: 0 10%;
}

.content-block {
    max-width: 480px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.content-block.revealed {
    opacity: 1;
    transform: translateY(0);
}

.pos-left-20 {
    margin-left: 5%;
    margin-right: auto;
}

.pos-right-55 {
    margin-left: 45%;
    margin-right: auto;
}

.pos-center {
    margin: 0 auto;
    text-align: center;
}

/* Typography */
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 48px;
    letter-spacing: 0.08em;
    color: #E8F0F8;
    text-shadow: 0 0 20px rgba(126, 184, 212, 0.2);
    margin-bottom: 32px;
    line-height: 1.2;
    opacity: 0.85;
}

.section-body {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 2.0;
    color: #B0C4D8;
    opacity: 0.6;
    max-width: 420px;
}

.pos-center .section-body {
    margin: 0 auto;
}

.whisper-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 20px;
    color: #7EB8D4;
    opacity: 0.5;
    text-shadow: 0 0 15px rgba(126, 184, 212, 0.15);
    line-height: 1.8;
}

.final-whisper {
    font-size: 36px;
    color: #D4A8E0;
    opacity: 0.5;
}

/* Crystal Section */
.crystal-section {
    flex-direction: column;
    justify-content: center;
}

.crystal-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.crystal {
    height: 120px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease;
}

.crystal-section.in-view .crystal {
    opacity: 1;
    transform: translateY(0);
}

.crystal-1 {
    animation: crystalFloat1 8s ease-in-out infinite;
    animation-play-state: paused;
}

.crystal-2 {
    animation: crystalFloat2 6s ease-in-out infinite;
    animation-play-state: paused;
    animation-delay: 1s;
}

.crystal-3 {
    animation: crystalFloat3 7s ease-in-out infinite;
    animation-play-state: paused;
    animation-delay: 2s;
}

.crystal-section.in-view .crystal-1,
.crystal-section.in-view .crystal-2,
.crystal-section.in-view .crystal-3 {
    animation-play-state: running;
}

@keyframes crystalFloat1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes crystalFloat2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes crystalFloat3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1.5deg); }
}

/* Deep blue ambient */
.content-section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 40%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(10, 16, 24, 0.8) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: #060A10;
}

::-webkit-scrollbar-thumb {
    background: #0A1018;
    border-radius: 2px;
}

/* White accent for highlights */
::selection {
    background: rgba(126, 184, 212, 0.2);
    color: #FFFFFF;
}
