/* ===========================
   paraligm.com - Styles
   Surreal paradigm-shift aesthetic
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.8;
    color: #2A2030;
    background-color: #E8D0E0;
    overflow-x: hidden;
}

/* --- Minimal Navigation --- */
#nav-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
}

#nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #7858B0;
    background: rgba(248, 244, 248, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
}

#nav-btn:hover {
    transform: scale(1.08);
    border-color: #E88870;
}

.monogram {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #7858B0;
    letter-spacing: -0.01em;
}

.nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    background: rgba(248, 244, 248, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(120, 88, 176, 0.15);
    padding: 12px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu a {
    display: block;
    padding: 8px 20px;
    color: #2A2030;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav-menu a:hover {
    color: #E88870;
    padding-left: 28px;
}

/* --- Dream Portal (Hero) --- */
.dream-portal {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dream-portal__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #E8D0E0 0%, #D0E8D8 100%);
    z-index: 0;
}

/* Nature vines */
.nature-vines {
    position: absolute;
    bottom: 0;
    width: 120px;
    height: 600px;
    z-index: 1;
    opacity: 0.8;
}

.nature-vines--left {
    left: 5%;
}

.nature-vines--right {
    right: 5%;
}

.nature-vines path {
    stroke: #60A870;
}

.vine-path,
.vine-leaf {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.vine-path.animated,
.vine-leaf.animated {
    animation: vineGrow 1200ms ease-out forwards;
}

@keyframes vineGrow {
    to {
        stroke-dashoffset: 0;
    }
}

/* Geometric shards */
.shard {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.3s ease;
}

.shard.visible {
    opacity: 0.5;
}

.shard--1 {
    top: 10%;
    right: 8%;
    width: 80px;
    height: 80px;
}

.shard--2 {
    top: 18%;
    left: 6%;
    width: 60px;
    height: 60px;
}

.shard--3 {
    bottom: 25%;
    right: 12%;
    width: 50px;
    height: 80px;
}

.shard--4 {
    bottom: 15%;
    left: 10%;
    width: 70px;
    height: 70px;
}

.shard--5 {
    top: 40%;
    right: 4%;
    width: 40px;
    height: 60px;
}

/* Portal content */
.dream-portal__content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.dream-portal__title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 4vw, 60px);
    letter-spacing: -0.01em;
    color: #2A2030;
    opacity: 0;
    transform: scale(0.9);
}

.dream-portal__title.animated {
    animation: bounceIn 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.dream-portal__subtitle {
    font-weight: 300;
    font-size: 14px;
    color: #7858B0;
    margin-top: 12px;
    opacity: 0;
}

.dream-portal__subtitle.animated {
    animation: fadeUp 500ms ease-out 400ms forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Concept Panels --- */
.concept-panel {
    position: relative;
    padding: 120px 24px;
    overflow: hidden;
    transition: background-color 800ms ease;
}

.concept-panel[data-bg="lavender"] {
    background: linear-gradient(180deg, #E8D0E0 0%, #F8F4F8 50%, #E8D0E0 100%);
}

.concept-panel[data-bg="mint"] {
    background: linear-gradient(180deg, #D0E8D8 0%, #F8F4F8 50%, #D0E8D8 100%);
}

.concept-panel__inner {
    max-width: 720px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 500ms ease, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.concept-panel__inner.bounce-enter {
    opacity: 1;
    transform: translateY(0);
}

.concept-label {
    display: inline-block;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7858B0;
    margin-bottom: 20px;
}

.concept-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 3vw, 42px);
    letter-spacing: -0.01em;
    color: #2A2030;
    line-height: 1.2;
    margin-bottom: 24px;
}

.concept-body {
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.8;
    color: #2A2030;
    max-width: 600px;
}

.concept-accent {
    margin-top: 40px;
    overflow: visible;
}

.nature-branch {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.nature-branch .vine-path,
.nature-branch .vine-leaf {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}

.nature-branch .vine-path.animated,
.nature-branch .vine-leaf.animated {
    animation: vineGrow 800ms ease-out forwards;
}

/* Panel shards */
.panel-shard {
    position: absolute;
    opacity: 0.25;
    z-index: 1;
    transition: transform 0.3s ease;
}

.panel-shard--right {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 100px;
}

.panel-shard--left {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 100px;
}

/* Concept panel hover */
.concept-panel:hover .concept-panel__inner {
    border-left: 3px solid #E88870;
    padding-left: 20px;
    transition: border-left 0.3s ease, padding-left 0.3s ease;
}

.concept-panel:hover .nature-branch {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.concept-panel:hover .panel-shard {
    transform: translateY(-50%) rotate(5deg);
}

/* --- Metamorphosis Sections --- */
.metamorphosis-section {
    position: relative;
    padding: 80px 24px;
    background: linear-gradient(135deg, #E8D0E0 0%, #D0E8D8 100%);
    overflow: hidden;
}

.metamorphosis-section--reverse {
    background: linear-gradient(135deg, #D0E8D8 0%, #E8D0E0 100%);
}

.metamorphosis-section__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 500ms ease, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.metamorphosis-section__inner.bounce-enter {
    opacity: 1;
    transform: translateY(0);
}

.metamorphosis-svg {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.morph-organic,
.morph-mid,
.morph-geometric,
.morph-circuit,
.morph-connect {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 600ms ease;
}

.morph-organic.animated,
.morph-mid.animated,
.morph-geometric.animated,
.morph-circuit.animated,
.morph-connect.animated {
    stroke-dashoffset: 0;
}

.metamorphosis-caption {
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #7858B0;
    margin-top: 24px;
    letter-spacing: 0.02em;
}

/* Metamorphosis hover: pause mid-shift effect */
.metamorphosis-section:hover .morph-mid {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.metamorphosis-section:hover .morph-geometric {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* --- New Ground (Footer) --- */
.new-ground {
    position: relative;
    padding: 100px 24px 60px;
    background: linear-gradient(180deg, #D0E8D8 0%, #2A2030 100%);
    text-align: center;
    overflow: hidden;
}

.new-ground__harmonized {
    margin-bottom: 48px;
}

.harmonized-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    opacity: 0.7;
}

.new-ground__content {
    position: relative;
    z-index: 2;
}

.new-ground__domain {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(20px, 2.5vw, 32px);
    letter-spacing: -0.01em;
    color: #F8F4F8;
    margin-bottom: 8px;
}

.new-ground__tagline {
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #D0E8D8;
    opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nature-vines {
        width: 80px;
        height: 400px;
    }

    .nature-vines--left {
        left: 2%;
    }

    .nature-vines--right {
        right: 2%;
    }

    .shard--1 { width: 50px; height: 50px; }
    .shard--2 { width: 40px; height: 40px; }
    .shard--3 { width: 35px; height: 55px; }
    .shard--4 { width: 45px; height: 45px; }
    .shard--5 { width: 28px; height: 42px; }

    .concept-panel {
        padding: 80px 20px;
    }

    .panel-shard--right,
    .panel-shard--left {
        width: 40px;
        height: 66px;
    }

    .metamorphosis-section {
        padding: 60px 16px;
    }

    .new-ground {
        padding: 80px 20px 48px;
    }
}

@media (max-width: 480px) {
    #nav-toggle {
        top: 16px;
        left: 16px;
    }

    #nav-btn {
        width: 40px;
        height: 40px;
    }

    .monogram {
        font-size: 15px;
    }

    .nature-vines {
        width: 60px;
        height: 300px;
        opacity: 0.5;
    }

    .shard {
        display: none;
    }

    .concept-panel:hover .concept-panel__inner {
        border-left: none;
        padding-left: 0;
    }

    .panel-shard {
        display: none;
    }
}
