/* gabs.cafe - Hexagonal Honeycomb Design */
/* Fonts: Baloo 2 (display), Nunito (body), Caveat (accent) */

:root {
    --obsidian-void: #0a0a0f;
    --smoke-glass: #1a1a24;
    --ice-breath: #2a2a3a;
    --amber-flame: #d4a574;
    --frost-blue: #7eb8c9;
    --warm-mist: #c8bfb6;
    --shadow-veil: #5a5565;
    --rose-quartz: #c4727e;
    --crystal-white: #e8e4df;
    --hex-width: 280px;
    --hex-height: calc(var(--hex-width) * 1.1547);
    --hex-gap: 8px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(ellipse at center, var(--smoke-glass), var(--obsidian-void) 70%);
    color: var(--warm-mist);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.65;
    letter-spacing: 0.01em;
    min-height: 100vh;
    overflow-x: hidden;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ========== HEXAGONAL CELLS ========== */

.hex {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.hex-inner {
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 36, 0.7);
    backdrop-filter: blur(8px) saturate(0.8);
    -webkit-backdrop-filter: blur(8px) saturate(0.8);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
    position: relative;
}

.hex-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(232, 228, 223, 0.03);
    pointer-events: none;
    filter: url(#frost-noise);
    opacity: 0.4;
}

.hex-inner::after {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(232, 228, 223, 0.06);
    pointer-events: none;
}

.hex:hover .hex-inner {
    background: rgba(26, 26, 36, 0.85);
    backdrop-filter: blur(4px) saturate(0.9);
    -webkit-backdrop-filter: blur(4px) saturate(0.9);
}

.hex-frosted {
    backdrop-filter: blur(12px) saturate(0.7);
    -webkit-backdrop-filter: blur(12px) saturate(0.7);
    background: rgba(26, 26, 36, 0.5);
}

.hex:hover .hex-frosted {
    backdrop-filter: blur(4px) saturate(0.8);
    -webkit-backdrop-filter: blur(4px) saturate(0.8);
    background: rgba(26, 26, 36, 0.75);
}

.hex-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 20%;
}

/* ========== HERO SECTION ========== */

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
}

.hero-cluster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.hex-hero {
    width: min(40vw, 360px);
    height: calc(min(40vw, 360px) * 1.1547);
}

.hex-hero.hex-title {
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hex-hero.hex-coffee,
.hex-hero.hex-mystery {
    margin-top: calc(min(40vw, 360px) * -0.18);
    position: relative;
    z-index: 1;
}

.hex-hero.hex-coffee {
    margin-right: calc(min(40vw, 360px) * -0.02);
}

.hex-hero.hex-mystery {
    margin-left: calc(min(40vw, 360px) * -0.02);
}

.domain-name {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(36px, 6vw, 96px);
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--amber-flame);
    text-transform: lowercase;
}

.hex-label {
    display: block;
    margin-top: 8px;
}

.accent-label {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(14px, 2vw, 16px);
    color: var(--amber-flame);
    letter-spacing: 0.02em;
}

.coffee-cup-svg {
    width: 65%;
    height: auto;
}

.botanical-leaf {
    width: 70%;
    height: auto;
    opacity: 0.7;
    transition: opacity 3s ease;
}

.hex-mystery.revealed .botanical-leaf {
    opacity: 1;
}

/* ========== STEAM ANIMATION ========== */

.steam {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    opacity: 0.6;
    animation: steamRise 6s ease-in-out infinite;
}

.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 2s; }
.steam-3 { animation-delay: 4s; }

@keyframes steamRise {
    0% {
        stroke-dashoffset: 200;
        opacity: 0;
        transform: translateY(0);
    }
    10% {
        opacity: 0.6;
    }
    60% {
        stroke-dashoffset: 0;
        opacity: 0.4;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
        transform: translateY(-15px);
    }
}

/* ========== NAVIGATION ========== */

.hex-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hex-nav-item {
    width: 110px;
    height: calc(110px * 1.1547);
    text-decoration: none;
    display: block;
}

.nav-label {
    font-family: 'Caveat', cursive;
    font-size: 16px;
    color: var(--frost-blue);
    transition: color 0.3s ease;
    letter-spacing: 0.03em;
}

.hex-nav-item:hover .nav-label {
    color: var(--amber-flame);
}

/* ========== HONEYCOMB ROWS ========== */

.honeycomb-row {
    padding: 40px 0;
}

.row-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10%;
}

.hex-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.hex-row.row-odd {
    transform: translateX(calc(var(--hex-width) * 0.25));
    margin-top: calc(var(--hex-width) * -0.12);
}

.hex-sm {
    width: var(--hex-width);
    height: calc(var(--hex-width) * 1.1547);
    flex-shrink: 0;
}

/* ========== TYPOGRAPHY ========== */

.section-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 52px);
    color: var(--amber-flame);
    text-transform: lowercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.hex-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 1.5vw, 16px);
    color: var(--warm-mist);
    line-height: 1.6;
    text-transform: lowercase;
}

.hex-accent .accent-label {
    font-size: clamp(16px, 2.5vw, 22px);
}

/* ========== DECORATIVE HEXES ========== */

.hex-decorative .hex-inner {
    background: rgba(26, 26, 36, 0.4);
}

.hex-bg-pattern,
.leaf-small,
.leaf-cluster,
.steam-ambient {
    width: 70%;
    height: auto;
    opacity: 0.6;
}

/* ========== GLOW HEX (contact) ========== */

.hex-glow .hex-inner {
    background: rgba(42, 42, 58, 0.8);
    box-shadow: inset 0 0 60px rgba(126, 184, 201, 0.08);
}

.hex-glow .hex-inner::after {
    border-color: rgba(126, 184, 201, 0.15);
}

.contact-email {
    font-family: 'Caveat', cursive;
    font-size: clamp(18px, 3vw, 28px);
    color: var(--frost-blue);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

/* ========== FROST REVEAL ANIMATION (mystery panel) ========== */

.hex-mystery .hex-frosted {
    backdrop-filter: blur(20px) saturate(0.6);
    -webkit-backdrop-filter: blur(20px) saturate(0.6);
    animation: frostReveal 3s ease-out 0.5s forwards;
}

@keyframes frostReveal {
    to {
        backdrop-filter: blur(8px) saturate(0.8);
        -webkit-backdrop-filter: blur(8px) saturate(0.8);
    }
}

/* ========== SECTION ENTRANCE ANIMATIONS ========== */

.honeycomb-row .hex-sm {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.honeycomb-row .hex-sm.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ========== MOBILE ========== */

@media (max-width: 768px) {
    :root {
        --hex-width: min(85vw, 320px);
    }

    .hero-cluster {
        flex-direction: column;
        align-items: center;
    }

    .hex-hero {
        width: min(75vw, 300px);
        height: calc(min(75vw, 300px) * 1.1547);
    }

    .hex-hero.hex-coffee,
    .hex-hero.hex-mystery {
        margin-top: -20px;
    }

    .hex-hero.hex-coffee {
        margin-right: 0;
    }

    .hex-hero.hex-mystery {
        margin-left: 0;
    }

    .hex-row {
        flex-direction: column;
        align-items: center;
    }

    .hex-row.row-odd {
        transform: none;
        margin-top: -15px;
    }

    .hex-sm {
        width: var(--hex-width);
        height: calc(var(--hex-width) * 1.1547);
    }

    .row-container {
        padding: 0 5%;
    }

    .hex-nav {
        gap: 2px;
    }

    .hex-nav-item {
        width: 80px;
        height: calc(80px * 1.1547);
    }
}

@media (max-width: 480px) {
    :root {
        --hex-width: 90vw;
    }

    .hex-hero {
        width: 80vw;
        height: calc(80vw * 1.1547);
    }
}

/* ========== TABLET ADJUSTMENTS ========== */

@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --hex-width: 220px;
    }

    .hex-hero {
        width: 280px;
        height: calc(280px * 1.1547);
    }
}
