/* ============================================================
   chloe.cx — Luxury Botanical Neomorphic Design
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    --bg-deep: #0A1628;
    --bg-surface: #0F2233;
    --shadow-dark: #060E1A;
    --shadow-light: #163044;
    --accent-primary: #00E5CC;
    --accent-secondary: #C8E6E0;
    --text-body: #8FADB8;
    --text-muted: #5C8A96;
    --botanical: #2ECC71;
    --warmth: #E07A5F;
    --heading-on-light: #0A2A3C;

    --neo-convex: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --neo-inset: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    --neo-convex-hover: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);

    --font-display: 'Josefin Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;

    --sidebar-width: 280px;
    --sidebar-collapsed: 60px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-body);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Organic Background Blobs --- */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.04;
    will-change: border-radius, transform;
}

.blob-1 {
    width: 40vw;
    height: 40vw;
    background: var(--accent-primary);
    top: 10%;
    left: -10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph-1 30s ease-in-out infinite alternate, blob-drift-1 60s ease-in-out infinite alternate;
}

.blob-2 {
    width: 30vw;
    height: 30vw;
    background: var(--botanical);
    top: 40%;
    right: -5%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-morph-2 35s ease-in-out infinite alternate, blob-drift-2 55s ease-in-out infinite alternate;
}

.blob-3 {
    width: 25vw;
    height: 25vw;
    background: var(--accent-primary);
    bottom: 10%;
    left: 30%;
    border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
    animation: blob-morph-3 28s ease-in-out infinite alternate, blob-drift-3 65s ease-in-out infinite alternate;
}

.blob-4 {
    width: 35vw;
    height: 35vw;
    background: var(--botanical);
    top: 60%;
    left: 10%;
    border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
    opacity: 0.03;
    animation: blob-morph-4 32s ease-in-out infinite alternate, blob-drift-4 50s ease-in-out infinite alternate;
}

@keyframes blob-morph-1 {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
}

@keyframes blob-morph-2 {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 40% 60% 60% 40% / 40% 70% 30% 60%; }
}

@keyframes blob-morph-3 {
    0% { border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%; }
    100% { border-radius: 70% 30% 40% 60% / 30% 50% 50% 70%; }
}

@keyframes blob-morph-4 {
    0% { border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%; }
    100% { border-radius: 30% 70% 60% 40% / 60% 40% 60% 40%; }
}

@keyframes blob-drift-1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(8vw, 5vh); }
}

@keyframes blob-drift-2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-6vw, 8vh); }
}

@keyframes blob-drift-3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5vw, -6vh); }
}

@keyframes blob-drift-4 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-7vw, 4vh); }
}

/* --- Floating Leaf Particles --- */
.leaf-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.leaf-particle {
    position: absolute;
    bottom: -30px;
    pointer-events: none;
    opacity: 0;
    animation: leaf-float linear forwards;
}

.leaf-particle svg {
    fill: var(--botanical);
}

@keyframes leaf-float {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    10% {
        opacity: var(--leaf-opacity, 0.15);
    }
    85% {
        opacity: var(--leaf-opacity, 0.15);
    }
    100% {
        opacity: 0;
        transform: translateY(calc(-100vh - 60px)) rotate(var(--leaf-rotation, 360deg));
    }
}

/* --- Sidebar Navigation --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-surface);
    box-shadow: var(--neo-convex);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.sidebar.visible {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-brand {
    margin-bottom: 3rem;
    padding: 0 0.5rem;
}

.sidebar-brand-text {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2rem;
    color: var(--accent-secondary);
    letter-spacing: 0.08em;
}

.sidebar-nav {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--text-muted);
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 2px;
    height: 60%;
    background: var(--accent-primary);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.nav-item:hover {
    box-shadow: var(--neo-inset);
    color: var(--text-body);
}

.nav-item.active {
    box-shadow: var(--neo-inset);
    color: var(--accent-primary);
}

.nav-item.active::before {
    transform: translateY(-50%) scaleY(1);
}

.nav-item.active .nav-icon {
    stroke: var(--accent-primary);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    transition: stroke 0.2s ease;
}

.nav-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sidebar-avatar {
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    box-shadow: var(--neo-convex);
}

/* --- Mobile Navigation --- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-surface);
    box-shadow: 0 -4px 16px var(--shadow-dark);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
}

.mobile-nav-item {
    background: none;
    border: none;
    padding: 0.6rem;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-muted);
    transition: box-shadow 0.2s ease, color 0.2s ease;
}

.mobile-nav-item .nav-icon {
    width: 22px;
    height: 22px;
}

.mobile-nav-item.active {
    box-shadow: var(--neo-inset);
    color: var(--accent-primary);
}

.mobile-nav-item.active .nav-icon {
    stroke: var(--accent-primary);
}

/* --- Main Content Area --- */
.content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 10;
    padding: 0 clamp(2rem, 4vw, 4rem);
    scroll-snap-type: y proximity;
}

/* --- Opening Section --- */
.opening-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--accent-secondary);
    letter-spacing: 0.08em;
    text-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
    opacity: 0;
    transition: opacity 0.8s ease;
    text-align: center;
}

.brand-name.visible {
    opacity: 1;
}

.brand-line-container {
    width: 60%;
    max-width: 600px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.brand-line {
    width: 100%;
    height: 2px;
    display: block;
}

.brand-line line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.2s ease-in-out;
}

.brand-line.drawn line {
    stroke-dashoffset: 0;
}

.opening-tagline {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity 0.6s ease 1.8s;
}

.opening-tagline.visible {
    opacity: 1;
}

/* --- Leaf Decorations Between Sections --- */
.leaf-decoration {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    pointer-events: none;
    opacity: 0.15;
}

.leaf-decoration svg {
    width: 60px;
    height: auto;
    animation: leaf-drift 90s linear infinite;
}

.leaf-deco-1 svg { animation-duration: 80s; }
.leaf-deco-2 svg { animation-duration: 95s; }
.leaf-deco-3 svg { animation-duration: 70s; }
.leaf-deco-4 svg { animation-duration: 85s; transform-origin: center; }

@keyframes leaf-drift {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Content Plateaus --- */
.plateau {
    background: var(--bg-surface);
    border-radius: 24px;
    box-shadow: var(--neo-convex);
    padding: clamp(2rem, 4vw, 4rem);
    margin-bottom: 100px;
    scroll-snap-align: start;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.plateau.visible {
    opacity: 1;
    transform: translateY(0);
}

.plateau.settled {
    box-shadow: var(--neo-convex-hover);
}

/* River-bend alternating positions */
.plateau-1 {
    margin-left: 5%;
    width: 85%;
}

.plateau-2 {
    margin-left: 10%;
    width: 80%;
}

.plateau-3 {
    margin-left: 3%;
    width: 90%;
}

.plateau-4 {
    margin-left: 8%;
    width: 82%;
}

.plateau-5 {
    margin-left: 2%;
    width: 88%;
    margin-bottom: 120px;
}

.plateau-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 1.5rem;
}

.plateau-heading {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--accent-secondary);
    letter-spacing: 0.08em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

/* --- Neomorphic Divider --- */
.neo-divider {
    width: 60%;
    height: 2px;
    background: var(--bg-surface);
    box-shadow: var(--neo-inset);
    border-radius: 1px;
    margin-bottom: 2rem;
}

.plateau-text {
    color: var(--text-body);
    max-width: 680px;
    margin-bottom: 1.25rem;
}

.plateau-text:last-child {
    margin-bottom: 0;
}

/* --- Botanics Grid --- */
.botanics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.botanic-card {
    background: var(--bg-surface);
    border-radius: 20px;
    box-shadow: var(--neo-convex);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.botanic-card:hover {
    box-shadow: var(--neo-convex-hover);
}

.botanic-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.botanic-icon svg {
    width: 100%;
    height: 100%;
}

.botanic-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-secondary);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.botanic-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- Process Steps --- */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1rem;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
    text-transform: uppercase;
    min-width: 2.5rem;
    padding-top: 0.35rem;
}

.step-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--accent-secondary);
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* --- Atelier Showcase --- */
.atelier-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.showcase-item {
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.neo-convex {
    background: var(--bg-surface);
    box-shadow: var(--neo-convex);
}

.showcase-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.showcase-visual {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Texture Rings */
.texture-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--accent-primary);
}

.ring-1 {
    width: 80px;
    height: 80px;
    opacity: 0.2;
    animation: ring-pulse 4s ease-in-out infinite;
}

.ring-2 {
    width: 56px;
    height: 56px;
    opacity: 0.35;
    animation: ring-pulse 4s ease-in-out 1s infinite;
}

.ring-3 {
    width: 32px;
    height: 32px;
    opacity: 0.5;
    animation: ring-pulse 4s ease-in-out 2s infinite;
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: var(--ring-start-opacity, 0.2); }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.ring-1 { --ring-start-opacity: 0.2; }
.ring-2 { --ring-start-opacity: 0.35; }
.ring-3 { --ring-start-opacity: 0.5; }

/* Vessel Visual */
.vessel-visual svg {
    width: 60px;
    height: auto;
}

/* Compound Dots */
.compound-visual {
    position: relative;
}

.compound-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--botanical);
}

.dot-1 { width: 8px; height: 8px; top: 10px; left: 15px; opacity: 0.5; animation: dot-float 6s ease-in-out infinite; }
.dot-2 { width: 12px; height: 12px; top: 30px; left: 45px; opacity: 0.3; animation: dot-float 7s ease-in-out 1s infinite; }
.dot-3 { width: 6px; height: 6px; top: 50px; left: 25px; opacity: 0.6; animation: dot-float 5s ease-in-out 2s infinite; }
.dot-4 { width: 10px; height: 10px; top: 20px; left: 55px; opacity: 0.4; animation: dot-float 8s ease-in-out 0.5s infinite; }
.dot-5 { width: 7px; height: 7px; top: 55px; left: 50px; opacity: 0.35; animation: dot-float 6.5s ease-in-out 1.5s infinite; }

@keyframes dot-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(4px, -6px); }
    66% { transform: translate(-3px, 4px); }
}

/* --- Contact Form --- */
.contact-form-area {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.form-field {
    border-radius: 16px;
    padding: 1.25rem 1.5rem 1rem;
}

.neo-inset {
    background: var(--bg-surface);
    box-shadow: var(--neo-inset);
}

.field-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.neo-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}

.neo-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.neo-textarea {
    min-height: 100px;
    resize: vertical;
}

.neo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 16px;
    background: var(--bg-surface);
    box-shadow: var(--neo-convex);
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-self: flex-start;
}

.neo-button:hover {
    box-shadow: var(--neo-inset);
}

.neo-button:active {
    box-shadow: var(--neo-inset);
    transform: scale(0.98);
}

/* --- Contact Footer --- */
.contact-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-divider {
    color: var(--text-muted);
    opacity: 0.3;
}

/* --- Magnetic Element Base --- */
.magnetic-element {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 60px;
    }

    .sidebar {
        padding: 1.5rem 0.5rem;
        align-items: center;
    }

    .sidebar-brand-text {
        font-size: 1.4rem;
    }

    .nav-label {
        display: none;
    }

    .nav-item {
        padding: 0.75rem;
        justify-content: center;
    }

    .nav-item::before {
        left: -2px;
    }

    .botanics-grid,
    .atelier-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .content {
        margin-left: 0;
        padding: 0 16px;
        padding-bottom: 80px;
    }

    .plateau-1,
    .plateau-2,
    .plateau-3,
    .plateau-4,
    .plateau-5 {
        margin-left: 0;
        width: 100%;
    }

    .plateau {
        padding: clamp(1.5rem, 3vw, 2.5rem);
        margin-bottom: 60px;
    }

    .botanics-grid,
    .atelier-showcase {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .process-step {
        flex-direction: column;
        gap: 0.75rem;
    }

    .brand-line-container {
        width: 80%;
    }

    .leaf-decoration {
        display: none;
    }
}

/* --- Selection --- */
::selection {
    background: var(--accent-primary);
    color: var(--bg-deep);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--shadow-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
