/* ============================================
   GGOGGL.com — Styles
   Botanical-Graffiti Fusion / Jewel Tones / Ma-Negative-Space
   ============================================ */

/* --- CSS Custom Properties (Palette) --- */
:root {
    --bg-deep: #0d0f1a;
    --bg-surface: #1a2744;
    --accent-amethyst: #8b2fc9;
    --accent-emerald: #0f7b5f;
    --accent-ruby: #c4314b;
    --accent-topaz: #d4a843;
    --text-primary: #eae6df;
    --text-muted: #8a8b92;
    --line-graphite: #2e3147;

    --font-headline: 'Playfair Display', Georgia, serif;
    --font-subhead: 'DM Serif Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

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

html {
    background-color: var(--bg-deep);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Fixed Monogram (Top-Left) --- */
.monogram {
    position: fixed;
    top: 32px;
    left: 32px;
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.monogram:hover {
    transform: scale(1.1);
}

.monogram:hover svg polygon {
    stroke: var(--accent-topaz);
    transition: stroke 0.3s ease;
}

/* --- Vertical Section Label (Right Edge) --- */
.section-label {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    z-index: 100;
    transition: opacity 0.4s ease, color 0.4s ease;
    text-transform: uppercase;
}

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

.particle {
    position: absolute;
    opacity: 0.12;
    animation: particleDrift linear infinite;
}

.particle--circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-amethyst);
}

.particle--diamond {
    width: 14px;
    height: 14px;
    background: var(--accent-emerald);
    transform: rotate(45deg);
    animation-name: particleDriftAlt;
}

.particle--hexagon {
    width: 16px;
    height: 16px;
    background: var(--accent-ruby);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

@keyframes particleDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(60px, -80px) rotate(90deg); }
    50% { transform: translate(-40px, -160px) rotate(180deg); }
    75% { transform: translate(80px, -60px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes particleDriftAlt {
    0% { transform: translate(0, 0) rotate(45deg); }
    25% { transform: translate(-70px, 50px) rotate(135deg); }
    50% { transform: translate(30px, 120px) rotate(225deg); }
    75% { transform: translate(-50px, -30px) rotate(315deg); }
    100% { transform: translate(0, 0) rotate(405deg); }
}

/* --- Cursor Proximity Glow --- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 47, 201, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-glow.active {
    opacity: 1;
}

/* --- Sections (General) --- */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 16vw;
}

/* --- Content Islands --- */
.content-island {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 39, 68, 0.6) 0%, rgba(26, 39, 68, 0.2) 100%);
    border: 1px solid var(--line-graphite);
    padding: 48px 56px;
    max-width: 560px;
    /* Spray-fade edge effect on right */
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.content-island--left {
    margin-right: auto;
    margin-left: 0;
}

/* --- Triangle Accent --- */
.triangle-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 24px 24px 0;
    border-color: transparent var(--accent-amethyst) transparent transparent;
}

/* --- Drip Effect (Left border) --- */
.content-island::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-amethyst), var(--accent-emerald) 60%, transparent);
}

/* --- Typography --- */
.hero__title {
    font-family: var(--font-headline);
    font-weight: 900;
    font-size: clamp(64px, 10vw, 120px);
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 32px;
    display: inline-flex;
}

.hero__letter {
    display: inline-block;
    opacity: 0;
    transform: rotate(var(--rotate, 0deg));
    animation: letterReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--delay) * 0.1s + 1s);
}

@keyframes letterReveal {
    from {
        opacity: 0;
        transform: rotate(var(--rotate, 0deg)) translateY(20px);
    }
    to {
        opacity: 1;
        transform: rotate(var(--rotate, 0deg)) translateY(0);
    }
}

.hero__tagline {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 300;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 2s;
    max-width: 480px;
}

.section-title {
    font-family: var(--font-subhead);
    font-size: clamp(28px, 3.5vw, 36px);
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-topaz);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-island:hover .section-title::after,
.showcase__block:hover .section-title::after {
    width: 100%;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.body-text {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.annotation {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 24px;
    letter-spacing: 0.05em;
}

/* --- HERO SECTION --- */
.section--hero {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 14vw;
    padding-right: 14vw;
    position: relative;
    overflow: hidden;
}

.hero__botanical {
    position: absolute;
    right: 10vw;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(250px, 30vw, 500px);
    height: auto;
    opacity: 0.6;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
}

/* --- SVG Botanical Drawing Animation --- */
.svg-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.svg-draw.drawn {
    stroke-dashoffset: 0;
}

.svg-draw-circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.svg-draw-circle.drawn {
    stroke-dashoffset: 0;
}

/* --- ABOUT SECTION --- */
.section--about {
    position: relative;
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 14vw;
}

.about__content {
    position: relative;
    z-index: 2;
}

.about__hex-bg {
    position: absolute;
    right: 8vw;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    opacity: 0.3;
    pointer-events: none;
}

.hex-grid {
    width: 100%;
    height: 100%;
}

/* --- SHOWCASE SECTION --- */
.section--showcase {
    flex-direction: column;
    align-items: stretch;
    gap: 200px;
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: auto;
}

.showcase__block {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 70vw;
    position: relative;
    background: linear-gradient(135deg, rgba(26, 39, 68, 0.4) 0%, rgba(26, 39, 68, 0.1) 100%);
    border: 1px solid var(--line-graphite);
    padding: 48px 56px;
    mask-image: none;
    -webkit-mask-image: none;
}

.showcase__block::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-amethyst), var(--accent-emerald) 60%, transparent);
}

.showcase__block--left {
    align-self: flex-start;
    margin-left: 0;
    /* Spray-fade right edge */
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.showcase__block--right {
    align-self: flex-end;
    margin-right: 0;
    flex-direction: row-reverse;
    /* Spray-fade left edge */
    mask-image: linear-gradient(to left, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 90%, transparent 100%);
}

.showcase__block--right::before {
    left: auto;
    right: -1px;
    background: linear-gradient(to bottom, var(--accent-ruby), var(--accent-topaz) 60%, transparent);
}

.showcase__text {
    flex: 1;
    min-width: 0;
}

.showcase__motif {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase__motif svg {
    width: 100%;
    max-height: 350px;
}

/* --- TAG ZONES --- */
.tag-zone {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.tag-zone__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: tagScroll 20s linear infinite;
}

.tag-shape {
    display: inline-block;
    opacity: 0.25;
}

.tag-shape--diamond {
    width: 8px;
    height: 8px;
    background: var(--accent-amethyst);
    transform: rotate(45deg);
}

.tag-shape--circle {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid var(--accent-emerald);
}

.tag-shape--hexagon {
    width: 10px;
    height: 10px;
    background: var(--accent-ruby);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

/* --- CLOSING SECTION --- */
.section--closing {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.closing__glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 123, 95, 0.15) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.closing__text {
    font-family: var(--font-headline);
    font-size: clamp(36px, 5vw, 64px);
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

/* --- Overlapping Translucent Circles --- */
.geo-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    opacity: 0.06;
}

.geo-circle--1 {
    width: 300px;
    height: 300px;
    background: var(--accent-amethyst);
    top: 15%;
    left: 65%;
    animation: circleFloat1 35s ease-in-out infinite;
}

.geo-circle--2 {
    width: 220px;
    height: 220px;
    background: var(--accent-emerald);
    top: 55%;
    left: 15%;
    animation: circleFloat2 42s ease-in-out infinite;
}

.geo-circle--3 {
    width: 260px;
    height: 260px;
    background: var(--accent-ruby);
    top: 70%;
    left: 55%;
    animation: circleFloat3 38s ease-in-out infinite;
}

@keyframes circleFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-80px, 50px); }
    66% { transform: translate(40px, -30px); }
}

@keyframes circleFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(60px, -40px); }
    66% { transform: translate(-30px, 60px); }
}

@keyframes circleFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-50px, -60px); }
    66% { transform: translate(70px, 30px); }
}

/* --- Section Entrance Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.reveal-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(6) { transition-delay: 0.75s; opacity: 1; transform: translateY(0); }

/* --- Link / Interactive Styles --- */
a {
    color: var(--accent-topaz);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-topaz);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover::after {
    width: 100%;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .hero__letter {
        opacity: 1;
        animation: none;
    }
    .hero__tagline {
        opacity: 1;
        animation: none;
    }
    .svg-draw {
        stroke-dashoffset: 0;
    }
    .svg-draw-circle {
        stroke-dashoffset: 0;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .reveal-children > * {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .section {
        padding: 80px 8vw;
    }

    .section--hero {
        padding-left: 8vw;
        padding-right: 8vw;
    }

    .section--about {
        padding-left: 8vw;
    }

    .hero__botanical {
        opacity: 0.3;
        right: 5vw;
    }

    .showcase__block {
        flex-direction: column !important;
        max-width: 90vw;
        gap: 32px;
        padding: 32px;
    }

    .showcase__block--left,
    .showcase__block--right {
        align-self: center;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .content-island {
        padding: 32px;
        max-width: 100%;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .showcase__motif {
        flex: 0 0 auto;
        width: 150px;
    }

    .section-label {
        display: none;
    }

    .section--showcase {
        gap: 100px;
    }
}

@media (max-width: 600px) {
    .hero__title {
        font-size: 48px;
    }

    .section-title {
        font-size: 24px;
    }

    .body-text {
        font-size: 16px;
    }

    .closing__text {
        font-size: 28px;
    }

    .monogram {
        top: 16px;
        left: 16px;
    }
}
