/* ==========================================================================
   CommonScents Candles — Welcome Page Styles
   ========================================================================== */

:root {
    --bg-color-1: #FAF6F0;
    --bg-color-2: #F3EAE0;
    --bg-color-3: #EAE0D2;
    --text-primary: #4E3E37;
    --text-secondary: #7A6A60;
    --glow-color: rgba(230, 192, 120, 0.25);
    --glow-color-hover: rgba(220, 175, 95, 0.45);
    --card-shadow: 0 30px 70px rgba(100, 80, 60, 0.12), 0 10px 25px rgba(100, 80, 60, 0.06);
    --card-shadow-hover: 0 45px 90px rgba(85, 65, 45, 0.2), 0 15px 35px rgba(85, 65, 45, 0.08);
}

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

body, html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color-1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Welcome page specific centering */
body.welcome-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

/* Background Ambient Glow & Light Source */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
                                var(--bg-color-1) 0%, 
                                var(--bg-color-2) 50%, 
                                var(--bg-color-3) 100%);
    z-index: 1;
}

/* Interactive Soft Candlelight Glow */
.ambient-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, 
                                var(--glow-color) 0%, 
                                rgba(250, 246, 240, 0) 60%);
    z-index: 2;
    pointer-events: none;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

/* Background Canvas for Ember Drift */
#ambient-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 40px;
    opacity: 0;
    animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 20px;
    right: 20px;
    height: 1px;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
    border-color: rgba(78, 62, 55, 0.12);
    background-color: rgba(250, 245, 236, 0.5);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Centered Container */
.welcome-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 24px;
}

/* Welcome Card Layout */
.welcome-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

/* Logo Wrapper & Card Presentation */
.logo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 36px;
    background-color: #FAF5EC;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--card-shadow);
    transform: scale(0.95);
    opacity: 0;
    animation: fadeInUpScale 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}

/* Logo Crop Box to hide the black border */
.logo-crop-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 36px;
    position: relative;
}

/* Brand Logo (zoomed & offset to crop the outer black border) */
.brand-logo {
    position: absolute;
    top: -4.2%;
    left: -4.2%;
    width: 108.4%;
    height: 108.4%;
    object-fit: cover;
    pointer-events: none;
}

/* Custom Aura Glow behind the Logo */
.glow-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 36px;
    z-index: -1;
    background: radial-gradient(circle, var(--glow-color-hover) 0%, rgba(250, 246, 240, 0) 70%);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Logo Wrapper Hover Interactions */
.logo-wrapper:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: var(--card-shadow-hover);
}

.logo-wrapper:hover .glow-ring {
    opacity: 1;
    transform: scale(1.35);
}

/* Touch Active State */
.logo-wrapper:active {
    transform: translateY(-2px) scale(0.995);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Typography & Text Styling */
.coming-soon-text {
    text-align: center;
    margin-top: 36px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUpText 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(100, 80, 60, 0.05);
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Animations */
@keyframes fadeInUpScale {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.93);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUpText {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.8;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-1%, 2%) scale(1.08);
    }
    100% {
        opacity: 0.7;
        transform: translate(2%, -1%) scale(0.95);
    }
}

/* Social Container & Button Styles */
.social-container {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpText 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 28px;
    border: 1px solid rgba(78, 62, 55, 0.18);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-primary);
    background-color: rgba(250, 245, 236, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(100, 80, 60, 0.03);
}

.social-icon {
    width: 18px;
    height: 18px;
    stroke: var(--text-primary);
    transition: stroke 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Hover Interactions */
.social-button:hover {
    border-color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.08);
    color: #B59424;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(100, 80, 60, 0.06);
}

.social-button:hover .social-icon {
    stroke: #B59424;
}

/* Active Press State */
.social-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(100, 80, 60, 0.04);
}

/* ==========================================================================
   My Story Page Styles
   ========================================================================== */
.story-page {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 120px 24px 80px;
}

.story-container {
    width: 100%;
    max-width: 720px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.08em;
    margin-bottom: 48px;
    transition: color 0.4s ease, gap 0.4s ease;
}

.back-link:hover {
    color: var(--text-primary);
    gap: 12px;
}

.back-arrow {
    font-size: 1.1rem;
    transition: transform 0.4s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-3px);
}

/* Story Header */
.story-header {
    text-align: center;
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUpText 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.story-title {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.story-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

/* Decorative Divider */
.story-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 48px 0;
    opacity: 0;
    animation: fadeInUpText 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.divider-line {
    width: 60px;
    height: 1px;
    background-color: rgba(78, 62, 55, 0.15);
}

.divider-icon {
    font-size: 1.2rem;
    color: rgba(212, 175, 55, 0.6);
}

/* Story Content Sections */
.story-section {
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUpText 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.story-section:nth-child(3) { animation-delay: 0.3s; }
.story-section:nth-child(4) { animation-delay: 0.45s; }
.story-section:nth-child(5) { animation-delay: 0.6s; }
.story-section:nth-child(6) { animation-delay: 0.75s; }
.story-section:nth-child(7) { animation-delay: 0.9s; }

.story-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.story-section p {
    font-family: 'Inter', sans-serif;
    font-size: 1.02rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.85;
    letter-spacing: 0.015em;
}

/* Highlight / Pull Quote */
.story-quote {
    position: relative;
    padding: 32px 36px;
    margin: 56px 0;
    border-left: 3px solid rgba(212, 175, 55, 0.35);
    background-color: rgba(250, 245, 236, 0.35);
    backdrop-filter: blur(6px);
    border-radius: 0 20px 20px 0;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUpText 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.story-quote p {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    letter-spacing: 0.03em;
}

/* Story Footer / CTA */
.story-footer {
    text-align: center;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(78, 62, 55, 0.08);
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUpText 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.story-footer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.story-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border: 1px solid rgba(78, 62, 55, 0.18);
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background-color: rgba(250, 245, 236, 0.4);
    backdrop-filter: blur(8px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-cta:hover {
    border-color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.08);
    color: #B59424;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(100, 80, 60, 0.06);
}

/* Mobile responsive layout */
@media (max-width: 600px) {
    .site-header {
        padding: 16px 20px;
    }
    .nav-link {
        font-size: 0.78rem;
        padding: 6px 14px;
    }
    .logo-wrapper {
        border-radius: 28px;
        max-width: 85vw;
    }
    .logo-crop-box {
        border-radius: 28px;
    }
    .glow-ring {
        border-radius: 28px;
    }
    .brand-name {
        font-size: 1.8rem;
        letter-spacing: 0.15em;
    }
    .tagline {
        font-size: 0.8rem;
        letter-spacing: 0.22em;
        padding: 0 10px;
    }
    .coming-soon-text {
        margin-top: 28px;
    }
    .social-container {
        margin-top: 32px;
    }
    .social-button {
        padding: 10px 22px;
        gap: 10px;
    }
    .social-text {
        font-size: 0.82rem;
    }
    .social-icon {
        width: 16px;
        height: 16px;
    }
    /* Story Page Mobile */
    .story-page {
        padding: 100px 20px 60px;
    }
    .story-title {
        font-size: 1.9rem;
    }
    .story-section h2 {
        font-size: 1.2rem;
    }
    .story-section p {
        font-size: 0.95rem;
    }
    .story-quote {
        padding: 24px 24px;
        margin: 40px 0;
    }
    .story-quote p {
        font-size: 1.02rem;
    }
}
