/* =============================================
   namu.biz — Holographic Tree Aesthetic
   Colors: #FF80B0, #60E8D8, #B080FF, #FFD060,
           #4A3828, #F5F0E0, #3A7848
   Fonts: Poiret One, Quicksand, Noto Sans KR
   ============================================= */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.75;
    color: #4A3828;
    background: #F5F0E0;
    overflow-x: hidden;
    position: relative;
}

/* --- Holographic Gradient Background (full page) --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #FF80B0 0%,
        #B080FF 20%,
        #60E8D8 40%,
        #FFD060 60%,
        #FF80B0 80%,
        #B080FF 100%
    );
    background-size: 400% 400%;
    animation: holoShift 12s ease infinite;
    opacity: 0.12;
    z-index: -10;
    pointer-events: none;
}

@keyframes holoShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Holographic Text Effect --- */
.holo-text {
    background: linear-gradient(
        90deg,
        #FF80B0,
        #B080FF,
        #60E8D8,
        #FFD060,
        #FF80B0
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holoTextShift 6s ease infinite;
}

@keyframes holoTextShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Parallax Layers --- */
.parallax-layer {
    width: 100%;
    pointer-events: none;
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: -5;
    will-change: transform;
}

.parallax-mid {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.parallax-fg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 5;
    will-change: transform;
}

/* --- Background Rings (parallax bg decoration) --- */
.bg-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.08;
}

.bg-ring-1 {
    width: 600px;
    height: 600px;
    top: 10%;
    left: -10%;
    border-color: #B080FF;
    border-width: 3px;
}

.bg-ring-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -5%;
    border-color: #FF80B0;
    border-width: 2px;
}

.bg-ring-3 {
    width: 500px;
    height: 500px;
    top: 80%;
    left: 20%;
    border-color: #60E8D8;
    border-width: 4px;
}

/* --- Geometric Leaf Shapes (foreground) --- */
.geo-leaf {
    position: absolute;
    opacity: 0;
    will-change: transform;
    pointer-events: none;
}

.geo-leaf::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
}

/* Triangles */
.leaf-1 {
    width: 30px;
    height: 30px;
    top: -40px;
    left: 15%;
    animation: leafFall1 18s linear infinite;
    animation-delay: 1s;
}
.leaf-1::before {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: #FF80B0;
    opacity: 0.35;
}

.leaf-2 {
    width: 25px;
    height: 25px;
    top: -40px;
    left: 45%;
    animation: leafFall2 22s linear infinite;
    animation-delay: 3s;
}
.leaf-2::before {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: #B080FF;
    opacity: 0.3;
}

.leaf-3 {
    width: 20px;
    height: 20px;
    top: -40px;
    left: 70%;
    animation: leafFall1 20s linear infinite;
    animation-delay: 5s;
}
.leaf-3::before {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: #60E8D8;
    opacity: 0.3;
}

/* Diamonds */
.leaf-4 {
    width: 22px;
    height: 22px;
    top: -40px;
    left: 30%;
    animation: leafFall2 25s linear infinite;
    animation-delay: 2s;
}
.leaf-4::before {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: #FFD060;
    opacity: 0.35;
}

.leaf-5 {
    width: 28px;
    height: 28px;
    top: -40px;
    left: 85%;
    animation: leafFall1 19s linear infinite;
    animation-delay: 7s;
}
.leaf-5::before {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: #3A7848;
    opacity: 0.3;
}

.leaf-6 {
    width: 18px;
    height: 18px;
    top: -40px;
    left: 55%;
    animation: leafFall2 23s linear infinite;
    animation-delay: 4s;
}
.leaf-6::before {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: #FF80B0;
    opacity: 0.25;
}

.leaf-7 {
    width: 24px;
    height: 24px;
    top: -40px;
    left: 8%;
    animation: leafFall1 21s linear infinite;
    animation-delay: 6s;
}
.leaf-7::before {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: #B080FF;
    opacity: 0.3;
}

.leaf-8 {
    width: 16px;
    height: 16px;
    top: -40px;
    left: 92%;
    animation: leafFall2 17s linear infinite;
    animation-delay: 8s;
}
.leaf-8::before {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: #60E8D8;
    opacity: 0.35;
}

.leaf-9 {
    width: 26px;
    height: 26px;
    top: -40px;
    left: 38%;
    animation: leafFall1 24s linear infinite;
    animation-delay: 10s;
}
.leaf-9::before {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: #FFD060;
    opacity: 0.3;
}

.leaf-10 {
    width: 20px;
    height: 20px;
    top: -40px;
    left: 62%;
    animation: leafFall2 20s linear infinite;
    animation-delay: 0s;
}
.leaf-10::before {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: #3A7848;
    opacity: 0.3;
}

@keyframes leafFall1 {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(110vh) translateX(80px) rotate(360deg);
    }
}

@keyframes leafFall2 {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(110vh) translateX(-60px) rotate(-270deg);
    }
}

/* --- Lens Flare Spots --- */
.lens-flares {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.lens-flare {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    will-change: transform;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.flare-1 {
    width: 50px;
    height: 50px;
    top: 12%;
    left: 20%;
    background: radial-gradient(circle, #FF80B0 0%, transparent 70%);
    opacity: 0.4;
    animation: flareDrift1 15s ease-in-out infinite;
}

.flare-2 {
    width: 35px;
    height: 35px;
    top: 25%;
    left: 75%;
    background: radial-gradient(circle, #B080FF 0%, transparent 70%);
    opacity: 0.35;
    animation: flareDrift2 18s ease-in-out infinite;
}

.flare-3 {
    width: 45px;
    height: 45px;
    top: 55%;
    left: 10%;
    background: radial-gradient(circle, #60E8D8 0%, transparent 70%);
    opacity: 0.3;
    animation: flareDrift1 20s ease-in-out infinite;
    animation-delay: 3s;
}

.flare-4 {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 60%;
    background: radial-gradient(circle, #FFD060 0%, transparent 70%);
    opacity: 0.3;
    animation: flareDrift2 16s ease-in-out infinite;
    animation-delay: 5s;
}

.flare-5 {
    width: 25px;
    height: 25px;
    top: 70%;
    left: 85%;
    background: radial-gradient(circle, #FF80B0 0%, transparent 70%);
    opacity: 0.4;
    animation: flareDrift1 14s ease-in-out infinite;
    animation-delay: 2s;
}

.flare-6 {
    width: 40px;
    height: 40px;
    top: 85%;
    left: 35%;
    background: radial-gradient(circle, #B080FF 0%, transparent 70%);
    opacity: 0.35;
    animation: flareDrift2 22s ease-in-out infinite;
    animation-delay: 7s;
}

.flare-7 {
    width: 30px;
    height: 30px;
    top: 8%;
    left: 50%;
    background: radial-gradient(circle, #60E8D8 0%, transparent 70%);
    opacity: 0.3;
    animation: flareDrift1 17s ease-in-out infinite;
    animation-delay: 4s;
}

.flare-8 {
    width: 55px;
    height: 55px;
    top: 60%;
    left: 45%;
    background: radial-gradient(circle, #FFD060 0%, transparent 70%);
    opacity: 0.25;
    animation: flareDrift2 19s ease-in-out infinite;
    animation-delay: 6s;
}

@keyframes flareDrift1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -10px); }
    50% { transform: translate(-10px, 15px); }
    75% { transform: translate(10px, 5px); }
}

@keyframes flareDrift2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-12px, 8px); }
    50% { transform: translate(10px, -12px); }
    75% { transform: translate(-8px, -5px); }
}

/* ============================
   SECTION 1: CANOPY OPENING
   ============================ */
.canopy-opening {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(
        135deg,
        #FF80B0 0%,
        #B080FF 16%,
        #60E8D8 33%,
        #FFD060 50%,
        #FF80B0 66%,
        #B080FF 83%,
        #60E8D8 100%
    );
    background-size: 600% 600%;
    animation: canopyGradient 10s ease infinite;
}

@keyframes canopyGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.canopy-content {
    text-align: center;
    z-index: 3;
    position: relative;
}

.holo-title {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(48px, 8vw, 120px);
    letter-spacing: 0.03em;
    background: linear-gradient(
        90deg,
        #F5F0E0,
        #FFD060,
        #F5F0E0,
        #60E8D8,
        #F5F0E0,
        #FF80B0,
        #F5F0E0,
        #B080FF,
        #F5F0E0
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holoTitleShimmer 8s ease infinite;
    text-shadow: none;
    margin-bottom: 10px;
}

@keyframes holoTitleShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

.holo-subtitle {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 64px);
    background: linear-gradient(
        90deg,
        #F5F0E0,
        #B080FF,
        #F5F0E0,
        #FF80B0,
        #F5F0E0
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holoTitleShimmer 6s ease infinite;
    margin-bottom: 20px;
}

.canopy-tagline {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.5vw, 20px);
    color: #F5F0E0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ============================
   SECTION 2: TREE GALLERY
   ============================ */
.tree-gallery {
    padding: 120px 20px;
    position: relative;
}

.gallery-content {
    max-width: 700px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(32px, 4.5vw, 72px);
    letter-spacing: 0.03em;
    margin-bottom: 30px;
    text-align: center;
}

.section-body {
    color: #4A3828;
    margin-bottom: 60px;
    text-align: center;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.75;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.species-card {
    background: rgba(245, 240, 224, 0.7);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.species-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #FF80B0,
        #B080FF,
        #60E8D8,
        #FFD060,
        #FF80B0
    );
    background-size: 300% 300%;
    animation: shimmerBorder 4s ease infinite;
    z-index: -1;
    opacity: 0.6;
}

.species-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(176, 128, 255, 0.25);
}

.species-card:hover::before {
    animation-duration: 2s;
    opacity: 1;
}

@keyframes shimmerBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.species-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.species-svg {
    width: 100%;
    height: 100%;
}

.species-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4A3828;
    display: block;
    margin-bottom: 8px;
}

.species-desc {
    color: #4A3828;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
}

/* ============================
   SECTION 3: RING CROSS-SECTION
   ============================ */
.ring-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
}

.ring-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.ring-svg {
    width: 100%;
    height: 100%;
    will-change: transform;
}

.ring-svg circle {
    transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

.ring-point {
    transition: r 0.3s ease, opacity 0.3s ease;
}

.ring-point:hover {
    r: 10;
    opacity: 1;
}

/* Ring info labels positioned around the SVG */
.ring-info {
    position: absolute;
    max-width: 180px;
    text-align: center;
    transition: transform 0.3s ease;
}

.ring-info:hover {
    transform: scale(1.1);
}

.ring-info-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4A3828;
    display: block;
    margin-bottom: 4px;
}

.ring-info-text {
    font-size: 12px;
    color: #4A3828;
    opacity: 0.75;
    line-height: 1.5;
}

.ring-info-1 {
    top: 42%;
    right: -5%;
    transform: translateY(-50%);
}

.ring-info-2 {
    top: -2%;
    left: 50%;
    transform: translateX(-50%);
}

.ring-info-3 {
    top: 55%;
    left: -5%;
    transform: translateY(-50%);
}

.ring-info-4 {
    bottom: -2%;
    left: 55%;
}

/* ============================
   SECTION 4: PRODUCT CARDS
   ============================ */
.products-section {
    padding: 120px 20px;
    position: relative;
}

.products-section .section-heading {
    margin-bottom: 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #F5F0E0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 20px rgba(255, 128, 176, 0.2),
        0 4px 20px rgba(176, 128, 255, 0.2),
        0 4px 20px rgba(96, 232, 216, 0.2);
}

/* Holographic shimmer border */
.product-shimmer {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        #FF80B0,
        #B080FF,
        #60E8D8,
        #FFD060,
        #3A7848,
        #FF80B0
    );
    background-size: 400% 400%;
    animation: productShimmer 4s ease infinite;
    z-index: 0;
}

.product-card:hover .product-shimmer {
    animation-duration: 2s;
}

@keyframes productShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulse glow on product cards */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    box-shadow: 0 0 0 0 rgba(176, 128, 255, 0);
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(255, 128, 176, 0.0),
            0 0 30px rgba(176, 128, 255, 0.0);
    }
    50% {
        box-shadow:
            0 0 15px rgba(255, 128, 176, 0.15),
            0 0 30px rgba(176, 128, 255, 0.1);
    }
}

.product-inner {
    position: relative;
    z-index: 1;
    background: #F5F0E0;
    border-radius: 14px;
    padding: 35px 25px;
    text-align: center;
    margin: 3px;
}

.product-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.product-svg {
    width: 100%;
    height: 100%;
}

.product-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4A3828;
    display: block;
    margin-bottom: 10px;
}

.product-desc {
    color: #4A3828;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    background: #4A3828;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Poiret One', cursive;
    font-size: clamp(28px, 3vw, 48px);
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 10px;
}

.footer-tagline {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #F5F0E0;
    opacity: 0.7;
    margin-bottom: 30px;
}

/* Bark-line pattern */
.footer-bark-lines {
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0.3;
}

.footer-bark-lines span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, #FF80B0, #B080FF, #60E8D8);
    border-radius: 1px;
}

.footer-bark-lines span:nth-child(2) { height: 55px; }
.footer-bark-lines span:nth-child(3) { height: 35px; }
.footer-bark-lines span:nth-child(4) { height: 50px; }
.footer-bark-lines span:nth-child(5) { height: 45px; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    .species-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ring-info {
        max-width: 130px;
        font-size: 11px;
    }

    .ring-info-1 {
        right: 0;
    }

    .ring-info-3 {
        left: 0;
    }

    .canopy-opening {
        min-height: 100svh;
    }
}

@media (max-width: 480px) {
    .ring-container {
        max-width: 320px;
    }

    .ring-info {
        max-width: 100px;
        font-size: 10px;
    }

    .ring-info-text {
        display: none;
    }
}
