/* ============================================
   sora.quest - Scandinavian Star-Map Parlor
   Gold-Black Luxury | Celestial Navigation
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A0A0F;
    color: #F0DCA0;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- Right Sidebar --- */
#sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 220px;
    height: 100vh;
    background-color: #0A0A0F;
    border-left: 1px solid #2A2A4A;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

#sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 3rem 1.5rem 2rem;
}

#sidebar-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #D4A840;
    opacity: 0.6;
    margin-bottom: 2rem;
}

#sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#sidebar-nav li {
    position: relative;
}

.nav-link {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #D4A840;
    text-decoration: none;
    display: block;
    padding: 0.4rem 0;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #D4A840;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover {
    color: #F0DCA0;
    transform: translateX(4px);
}

.nav-link.active {
    color: #F8F5F0;
}

#sidebar-constellation {
    margin-top: auto;
    opacity: 0.4;
}

.sidebar-stars {
    width: 100%;
    height: auto;
}

/* --- Main Content Area --- */
#main-content {
    margin-right: 220px;
    position: relative;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #0A0A0F;
    overflow: hidden;
}

.hero-bg-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bg-constellation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Hand-drawn star positions */
.hand-drawn-star {
    position: absolute;
}

.star-1 {
    width: 60px;
    height: 60px;
    top: 12%;
    left: 8%;
}

.star-2 {
    width: 45px;
    height: 45px;
    top: 25%;
    right: 15%;
}

.star-3 {
    width: 35px;
    height: 35px;
    bottom: 30%;
    left: 20%;
}

.star-4 {
    width: 50px;
    height: 50px;
    bottom: 15%;
    right: 25%;
}

.hand-drawn-moon {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 10%;
    right: 8%;
}

/* Orbital arc for hero */
.orbital-arc {
    position: absolute;
    border: 1px dashed #D4A840;
    border-radius: 50%;
    pointer-events: none;
}

.orbital-arc-hero {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-left: 5vw;
    max-width: 680px;
}

#hero-title {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #D4A840;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: #F0DCA0;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

/* --- Section 2: Content Card --- */
#section-card {
    position: relative;
    padding: 8rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.section-bg-constellation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.constellation-2 {
    width: 100%;
    height: 100%;
}

.content-card {
    position: relative;
    z-index: 2;
    margin-left: 5vw;
    max-width: 680px;
    background-color: #10101A;
    border: 1px solid #2A2A4A;
    padding: 3rem;
    cursor: pointer;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.content-card:hover {
    border-color: rgba(212, 168, 64, 0.4);
    box-shadow: 0 0 40px rgba(212, 168, 64, 0.05);
}

.card-moon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    opacity: 0.4;
}

.card-moon svg {
    width: 100%;
    height: 100%;
}

.card-heading {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #D4A840;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.card-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #F0DCA0;
    margin-bottom: 1rem;
}

.card-divider {
    width: 60px;
    height: 1px;
    background-color: #D4A840;
    opacity: 0.3;
    margin: 1.5rem 0;
}

/* --- Section 3: Pull Quote --- */
#section-quote {
    position: relative;
    padding: 8rem 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.orbital-arc-quote {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    opacity: 0.12;
}

.pull-quote {
    position: relative;
    z-index: 2;
    margin-left: 5vw;
    max-width: 680px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #D4A840;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.quote-mark {
    font-size: 2.5rem;
    color: #D4A840;
    opacity: 0.4;
    vertical-align: -0.15em;
    line-height: 0;
}

.star-dot-scatter {
    margin-left: 5vw;
    margin-top: 3rem;
    max-width: 680px;
    width: 100%;
}

.star-dot-scatter svg {
    width: 100%;
    height: auto;
}

/* --- Section 4: Closing --- */
#section-closing {
    position: relative;
    padding: 8rem 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.closing-constellation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.converging-stars {
    width: 80%;
    max-width: 600px;
    height: auto;
}

.closing-title {
    position: relative;
    z-index: 2;
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #D4A840;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.closing-text {
    position: relative;
    z-index: 2;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #F0DCA0;
    opacity: 0.6;
    letter-spacing: 0.03em;
}

/* --- Ripple Effect --- */
#ripple-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-expand 600ms ease-out forwards;
    pointer-events: none;
}

.ripple-gold {
    background-color: rgba(212, 168, 64, 0.2);
}

.ripple-dark {
    background-color: rgba(10, 10, 15, 0.1);
}

@keyframes ripple-expand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    #sidebar {
        display: none;
    }

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

    .hero-content,
    .content-card,
    .pull-quote,
    .star-dot-scatter {
        margin-left: 5vw;
        margin-right: 5vw;
    }

    #hero-title {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }

    .orbital-arc-hero {
        width: 500px;
        height: 500px;
    }
}

@media (max-width: 600px) {
    .content-card {
        padding: 2rem 1.5rem;
    }

    .card-heading {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .pull-quote {
        font-size: 1.15rem;
    }

    .orbital-arc-hero {
        width: 350px;
        height: 350px;
    }

    .hand-drawn-star {
        transform: scale(0.7);
    }
}

/* --- Selection Color --- */
::selection {
    background-color: rgba(212, 168, 64, 0.3);
    color: #F8F5F0;
}

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

::-webkit-scrollbar-track {
    background: #0A0A0F;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 64, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 64, 0.5);
}
