/* =========================================
   scriptswirl.com - Mid-Century Hexagonal Kaleidoscope
   Fonts: Inter" (Google Fonts), Lato" (Google Fonts)
   Style: mid-century headings. kaleidoscope
   ========================================= */

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

:root {
    --warm-cream: #F5ECD7;
    --deep-teal: #0A4A4A;
    --rich-coral: #D45A3A;
    --dark-charcoal: #2A2A2A;
    --warm-gray: #6A5A4A;
    --frosted-white: rgba(255, 255, 255, 0.1);
    --frosted-white-strong: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --hex-size: 260px;
    --hex-gap: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: #6A5A4A;
    background-color: #F5ECD7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Kaleidoscope Background --- */
.kaleidoscope-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Circles */
.geo-circle {
    border-radius: 50%;
    border: 2px solid;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -80px;
    border-color: rgba(10, 74, 74, 0.12);
    animation: rotateShape 40s linear infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -60px;
    border-color: rgba(212, 90, 58, 0.10);
    animation: rotateShape 30s linear infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 5%;
    border-color: rgba(10, 74, 74, 0.08);
    animation: rotateShape 25s linear infinite;
}

/* Triangles */
.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid;
}

.geo-triangle-1 {
    top: 15%;
    left: 8%;
    border-bottom-color: rgba(212, 90, 58, 0.07);
    animation: rotateShape 35s linear infinite;
}

.geo-triangle-2 {
    bottom: 20%;
    right: 12%;
    border-bottom-color: rgba(10, 74, 74, 0.06);
    animation: rotateShape 28s linear infinite reverse;
}

.geo-triangle-3 {
    top: 60%;
    left: 25%;
    border-left-width: 40px;
    border-right-width: 40px;
    border-bottom-width: 69px;
    border-bottom-color: rgba(212, 90, 58, 0.05);
    animation: rotateShape 45s linear infinite;
}

/* Hexagons */
.geo-hexagon {
    width: 120px;
    height: 120px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.geo-hexagon-1 {
    top: 25%;
    right: 18%;
    background: rgba(10, 74, 74, 0.05);
    animation: rotateShape 50s linear infinite;
}

.geo-hexagon-2 {
    bottom: 30%;
    left: 15%;
    background: rgba(212, 90, 58, 0.04);
    animation: rotateShape 38s linear infinite reverse;
}

@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Header --- */
.site-header {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px 30px;
}

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

.site-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #2A2A2A;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.title-accent {
    color: #D45A3A;
}

.site-tagline {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #6A5A4A;
    margin-top: 12px;
    font-weight: 400;
}

/* --- Honeycomb Grid --- */
.honeycomb-container {
    position: relative;
    z-index: 1;
    padding: 20px 20px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.honeycomb-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hex-row {
    display: flex;
    justify-content: center;
    gap: var(--hex-gap);
    margin-bottom: calc(var(--hex-gap) - 30px);
}

.hex-row-2,
.hex-row-4 {
    transform: translateY(-35px);
    margin-bottom: calc(var(--hex-gap) - 65px);
}

.hex-row-3 {
    transform: translateY(-70px);
    margin-bottom: calc(var(--hex-gap) - 65px);
}

.hex-row-4 {
    transform: translateY(-105px);
}

/* --- Hex Cell --- */
.hex-cell {
    width: var(--hex-size);
    height: calc(var(--hex-size) * 1.1547);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    perspective: 800px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hex-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.hex-cell-teal .hex-inner {
    background: linear-gradient(
        135deg,
        rgba(10, 74, 74, 0.12) 0%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(10, 74, 74, 0.08) 100%
    );
    border: 1px solid rgba(10, 74, 74, 0.15);
}

.hex-cell-coral .hex-inner {
    background: linear-gradient(
        135deg,
        rgba(212, 90, 58, 0.10) 0%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(212, 90, 58, 0.07) 100%
    );
    border: 1px solid rgba(212, 90, 58, 0.12);
}

.hex-cell-feature .hex-inner {
    background: linear-gradient(
        135deg,
        rgba(10, 74, 74, 0.15) 0%,
        rgba(255, 255, 255, 0.12) 30%,
        rgba(212, 90, 58, 0.10) 70%,
        rgba(10, 74, 74, 0.12) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Hex Content --- */
.hex-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 85%;
}

.hex-icon {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hex-icon-large {
    margin-bottom: 14px;
}

.hex-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2A2A2A;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.hex-title-feature {
    font-size: 1.5rem;
    color: #0A4A4A;
}

.hex-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: #6A5A4A;
    line-height: 1.5;
}

/* --- Hex Hover / Tilt --- */
.hex-cell:hover .hex-inner {
    transform: scale(1.03);
}

.hex-cell-teal:hover .hex-inner {
    background: linear-gradient(
        135deg,
        rgba(10, 74, 74, 0.18) 0%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(10, 74, 74, 0.12) 100%
    );
}

.hex-cell-coral:hover .hex-inner {
    background: linear-gradient(
        135deg,
        rgba(212, 90, 58, 0.16) 0%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(212, 90, 58, 0.10) 100%
    );
}

.hex-cell-feature:hover .hex-inner {
    background: linear-gradient(
        135deg,
        rgba(10, 74, 74, 0.22) 0%,
        rgba(255, 255, 255, 0.16) 30%,
        rgba(212, 90, 58, 0.14) 70%,
        rgba(10, 74, 74, 0.18) 100%
    );
}

/* --- Footer --- */
.site-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px 50px;
    margin-top: -40px;
}

.footer-hex-decoration {
    margin-bottom: 16px;
    opacity: 0.7;
}

.footer-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: #6A5A4A;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    :root {
        --hex-size: 200px;
    }

    .site-header {
        padding: 40px 16px 20px;
    }

    .hex-content {
        padding: 20px 14px;
    }

    .hex-title {
        font-size: 1.1rem;
    }

    .hex-text {
        font-size: 0.78rem;
    }
}

@media (max-width: 680px) {
    :root {
        --hex-size: 160px;
    }

    .hex-row {
        gap: 4px;
    }

    .hex-content {
        padding: 16px 10px;
    }

    .hex-title {
        font-size: 0.95rem;
    }

    .hex-text {
        font-size: 0.72rem;
        line-height: 1.4;
    }

    .hex-icon svg {
        width: 32px;
        height: 32px;
    }

    .hex-icon-large svg {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 520px) {
    :root {
        --hex-size: 130px;
    }

    .hex-row {
        flex-wrap: wrap;
        gap: 4px;
    }

    .hex-row-2,
    .hex-row-4 {
        transform: translateY(-20px);
        margin-bottom: calc(var(--hex-gap) - 40px);
    }

    .hex-row-3 {
        transform: translateY(-40px);
        margin-bottom: calc(var(--hex-gap) - 40px);
    }

    .hex-row-4 {
        transform: translateY(-60px);
    }

    .hex-text {
        display: none;
    }

    .hex-content {
        padding: 12px 8px;
    }

    .hex-title {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .site-header {
        padding: 30px 12px 16px;
    }
}
