/* ============================================
   penclo.com - Holographic Luxury Botanical Hive
   ============================================ */

/* --- CSS Custom Properties (Color Palette) --- */
:root {
    --color-gold-light: #E8D8A0;
    --color-gold-warm: #B0A070;
    --color-gold-pure: #C0A040;
    --color-gold-deep: #8A7030;
    --color-black-luxury: #0C0A04;
    --color-pink-holographic: #E080A0;
    --color-teal-holographic: #60C0B0;
    --color-gold-shadow: rgba(192, 160, 64, 0.2);
    --color-gold-shadow-light: rgba(192, 160, 64, 0.04);
    --color-gold-shadow-medium: rgba(192, 160, 64, 0.08);
    --color-gold-shadow-dark: rgba(192, 160, 64, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-black-luxury);
    color: var(--color-gold-warm);
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Wave Ripples Background --- */
.wave-ripples {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.wave {
    fill: none;
    stroke: var(--color-gold-pure);
    stroke-width: 1;
    opacity: 0.06;
}

.wave-1 {
    animation: waveOscillate1 10s ease-in-out infinite;
}

.wave-2 {
    animation: waveOscillate2 12s ease-in-out infinite;
}

.wave-3 {
    animation: waveOscillate3 8s ease-in-out infinite;
}

@keyframes waveOscillate1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}

@keyframes waveOscillate2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes waveOscillate3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* --- Holographic Overlay --- */
.holographic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(224, 128, 160, 0.03) 0%,
        transparent 25%,
        rgba(96, 192, 176, 0.03) 50%,
        transparent 75%,
        rgba(224, 128, 160, 0.02) 100%
    );
    animation: holographicShift 15s ease-in-out infinite;
    /* Uses pink and teal from --color-pink-holographic and --color-teal-holographic in gradient */
}

@keyframes holographicShift {
    0%, 100% {
        background-position: 0% 0%;
        opacity: 0.6;
    }
    33% {
        background-position: 100% 50%;
        opacity: 1;
    }
    66% {
        background-position: 50% 100%;
        opacity: 0.8;
    }
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--color-gold-light);
}

.section-heading {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold-pure), transparent);
    margin: 1rem auto 0;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 5;
    position: relative;
    opacity: 0;
    animation: heroFadeIn 2s ease-out 0.5s forwards;
}

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

.hero-title {
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 900;
    color: var(--color-gold-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow:
        0 0 40px rgba(232, 216, 160, 0.3),
        0 0 80px var(--color-gold-shadow-dark);
    position: relative;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, var(--color-gold-shadow-medium) 0%, transparent 70%);
    pointer-events: none;
}

.hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    color: var(--color-gold-pure);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-top: 1.5rem;
    opacity: 0;
    animation: subtitleFadeIn 1.5s ease-out 1.5s forwards;
}

@keyframes subtitleFadeIn {
    0% { opacity: 0; letter-spacing: 0.5em; }
    100% { opacity: 1; letter-spacing: 0.25em; }
}

/* Botanical Hero Decorations */
.botanical-hero {
    position: absolute;
    height: 70%;
    max-height: 500px;
    top: 15%;
    z-index: 3;
    opacity: 0;
    animation: botanicalReveal 2s ease-out 1s forwards;
}

.botanical-hero-left {
    left: 3%;
}

.botanical-hero-right {
    right: 3%;
}

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

/* --- Hive Section --- */
.hive-section {
    position: relative;
    z-index: 2;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Honeycomb Grid */
.honeycomb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    max-width: 900px;
    margin: 0 auto;
}

/* Hex Cell */
.hex-cell {
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--color-black-luxury);
    filter: drop-shadow(0 0 2px var(--color-gold-pure));
    aspect-ratio: 1 / 1.1547;
    overflow: hidden;
    cursor: pointer;
    transition: transform 300ms ease-out, filter 300ms ease-out;
}

.hex-cell:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 6px var(--color-gold-pure)) drop-shadow(0 0 12px var(--color-gold-shadow));
    z-index: 10;
}

/* Offset even rows (4,5,6 cells) */
.hex-cell:nth-child(4),
.hex-cell:nth-child(5),
.hex-cell:nth-child(6) {
    margin-top: -8%;
}

/* Offset row 3 */
.hex-cell:nth-child(7),
.hex-cell:nth-child(8),
.hex-cell:nth-child(9) {
    margin-top: -8%;
}

.hex-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20%;
    text-align: center;
    background: radial-gradient(ellipse at center, var(--color-gold-shadow-light) 0%, var(--color-black-luxury) 70%);
    transition: background 500ms ease-out;
}

.hex-cell:hover .hex-inner {
    background: radial-gradient(ellipse at center, var(--color-gold-shadow-medium) 0%, rgba(12, 10, 4, 0.95) 70%);
}

/* Botanical backgrounds in cells */
.botanical-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: transform 500ms ease-out;
}

.hex-cell:hover .botanical-bg {
    transform: scale(1.5);
}

.botanical-bg-feature {
    opacity: 1;
}

/* Hex Labels */
.hex-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--color-gold-pure);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

.hex-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--color-gold-light);
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 2;
}

.hex-text {
    font-family: 'Lora', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    color: var(--color-gold-warm);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    opacity: 0.8;
}

/* Feature cell accent */
.hex-cell-feature {
    filter: drop-shadow(0 0 4px var(--color-gold-pure)) drop-shadow(0 0 8px var(--color-gold-shadow));
}

.hex-cell-feature .hex-inner {
    background: radial-gradient(ellipse at center, rgba(192, 160, 64, 0.06) 0%, var(--color-black-luxury) 70%);
}

.hex-cell-feature:hover .hex-inner {
    background: radial-gradient(ellipse at center, rgba(192, 160, 64, 0.12) 0%, rgba(12, 10, 4, 0.95) 70%);
}

/* Wave Row Ripples */
.wave-row-ripple {
    position: absolute;
    width: 100%;
    height: 60px;
    left: 0;
    pointer-events: none;
    z-index: 1;
    /* Uses var(--color-gold-pure) for stroke in SVG */
}

.wave-row-1 {
    top: 40%;
    animation: waveRowOsc 10s ease-in-out infinite;
}

.wave-row-2 {
    top: 70%;
    animation: waveRowOsc 10s ease-in-out infinite reverse;
}

@keyframes waveRowOsc {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

/* --- Showcase Section --- */
.showcase-section {
    position: relative;
    z-index: 2;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.showcase-item {
    text-align: center;
}

.showcase-frame {
    position: relative;
    overflow: hidden;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--color-black-luxury);
    filter: drop-shadow(0 0 3px var(--color-gold-pure));
    aspect-ratio: 3 / 4;
    max-height: 400px;
    margin: 0 auto;
    cursor: pointer;
}

.showcase-botanical {
    width: 100%;
    height: 100%;
    transition: transform 500ms ease-out;
}

.showcase-frame:hover .showcase-botanical {
    transform: scale(1.5);
}

.showcase-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(12, 10, 4, 0.6) 100%);
    pointer-events: none;
}

.showcase-label {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-gold-pure);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 1.2rem;
}

/* --- Prismatic Section --- */
.prismatic-section {
    position: relative;
    z-index: 2;
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.prismatic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.prism-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: rgba(12, 10, 4, 0.9);
    border: 1px solid rgba(192, 160, 64, 0.15);
    overflow: hidden;
    transition: border-color 400ms ease-out, transform 300ms ease-out;
    /* Uses var(--color-black-luxury) and var(--color-gold-pure) */
}

.prism-card:hover {
    border-color: rgba(192, 160, 64, 0.4);
    transform: translateY(-4px);
}

.prism-glow {
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 600ms ease-out;
    pointer-events: none;
}

.prism-card:hover .prism-glow {
    opacity: 1;
}

.prism-pink {
    background: radial-gradient(ellipse at center, rgba(224, 128, 160, 0.06) 0%, transparent 60%);
}

.prism-teal {
    background: radial-gradient(ellipse at center, rgba(96, 192, 176, 0.06) 0%, transparent 60%);
}

.prism-gold {
    background: radial-gradient(ellipse at center, rgba(192, 160, 64, 0.06) 0%, transparent 60%);
}

.prism-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    color: var(--color-gold-light);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.prism-text {
    font-family: 'Lora', Georgia, serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: var(--color-gold-warm);
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* Holographic prismatic accent lines on cards */
.prism-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-pink-holographic), var(--color-teal-holographic), var(--color-gold-pure), transparent);
    opacity: 0;
    transition: opacity 400ms ease-out;
}

.prism-card:hover::before {
    opacity: 0.6;
}

/* --- Footer --- */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-hex-border {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold-pure), transparent);
    margin: 0 auto 2rem;
}

.footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--color-gold-light);
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--color-gold-deep);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-wave {
    margin-top: 2rem;
}

.footer-wave svg {
    width: 100%;
    max-width: 400px;
    height: 40px;
}

.footer-content {
    position: relative;
}

/* --- Scroll Reveal Animations --- */
.hex-cell,
.showcase-item,
.prism-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.hex-cell.revealed,
.showcase-item.revealed,
.prism-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.hex-cell:nth-child(2),
.showcase-item:nth-child(2),
.prism-card:nth-child(2) {
    transition-delay: 100ms;
}

.hex-cell:nth-child(3),
.showcase-item:nth-child(3),
.prism-card:nth-child(3) {
    transition-delay: 200ms;
}

.hex-cell:nth-child(4) { transition-delay: 150ms; }
.hex-cell:nth-child(5) { transition-delay: 250ms; }
.hex-cell:nth-child(6) { transition-delay: 350ms; }
.hex-cell:nth-child(7) { transition-delay: 200ms; }
.hex-cell:nth-child(8) { transition-delay: 300ms; }
.hex-cell:nth-child(9) { transition-delay: 400ms; }

/* --- Holographic Shimmer on Hover (applied via JS) --- */
.hex-cell.holographic-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(224, 128, 160, 0.05) 0%,
        transparent 30%,
        rgba(96, 192, 176, 0.05) 50%,
        transparent 70%,
        rgba(224, 128, 160, 0.03) 100%
    );
    animation: shimmerMove 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
    /* Uses var(--color-pink-holographic) and var(--color-teal-holographic) */
}

@keyframes shimmerMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .honeycomb-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }

    .hex-cell:nth-child(4),
    .hex-cell:nth-child(5),
    .hex-cell:nth-child(6),
    .hex-cell:nth-child(7),
    .hex-cell:nth-child(8),
    .hex-cell:nth-child(9) {
        margin-top: -8%;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .showcase-grid .showcase-item:nth-child(3) {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    .prismatic-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .botanical-hero {
        height: 50%;
        max-height: 350px;
    }
}

@media (max-width: 600px) {
    .honeycomb-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    .hex-cell:nth-child(n) {
        margin-top: -12%;
    }

    .hex-cell:first-child {
        margin-top: 0;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showcase-grid .showcase-item:nth-child(3) {
        grid-column: span 1;
        max-width: 100%;
    }

    .showcase-frame {
        max-height: 300px;
    }

    .botanical-hero {
        display: none;
    }

    .hive-section,
    .showcase-section,
    .prismatic-section {
        padding: 4rem 1rem;
    }
}
