/* Realistic honeycomb pattern with equal-sided hexagons */
.honeycomb-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    background: transparent;
    position: relative;
    overflow: visible;
}

.honeycomb-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0;
    box-sizing: border-box;
}

/* Base hexagon variables - equal sides, bigger size */
:root {
    --hex-size: 250px; /* Equal sides - regular hexagon */
    --hex-width: 250px;
    --hex-height: 216.5px; /* height = width * √3 / 2 for regular hexagon */
}

.hexagon {
    position: relative;
    width: var(--hex-size);
    height: var(--hex-size);
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: inline-block;
    z-index: 1;
    overflow: visible;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex-shrink: 0;
}

.hexagon:hover {
    transform: scale(1.08) !important;
    z-index: 10;
    filter: brightness(1.1);
}

/* Image inside hexagon */
.hexagon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: filter 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transform: rotate(0deg);
}

.hexagon:hover img {
    filter: brightness(1.1) contrast(1.05);
}

/* Golden glow effect - warm light border */
.hexagon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 165, 0, 0.7), rgba(255, 140, 0, 0.8));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
    opacity: 0.85;
    filter: blur(4px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5),
                0 0 30px rgba(255, 165, 0, 0.4),
                0 0 45px rgba(255, 140, 0, 0.3);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.hexagon:hover::before {
    opacity: 1;
    filter: blur(6px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.7),
                0 0 50px rgba(255, 165, 0, 0.6),
                0 0 75px rgba(255, 140, 0, 0.5);
}

/* Row layout - 2-1-2 honeycomb pattern */
.hex-row {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    position: relative;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: calc(var(--hex-size) * -0.25);
    box-sizing: border-box;
}

.hex-row-1 {
    margin-top: 0;
    margin-bottom: calc(var(--hex-size) * -0.25);
}

.hex-row-2 {
    /* Offset to center the single hexagon between the two above */
    margin-bottom: calc(var(--hex-size) * -0.25);
}

.hex-row-3 {
    margin-top: 0;
}

/* Large screens - bigger hexagons */
@media (min-width: 1400px) {
    :root {
        --hex-size: 300px;
    }
}

/* Medium screens */
@media (max-width: 1399px) and (min-width: 1200px) {
    :root {
        --hex-size: 280px;
    }
}

/* Tablet screens */
@media (max-width: 1199px) and (min-width: 969px) {
    :root {
        --hex-size: 220px;
    }
}

@media (max-width: 968px) {
    :root {
        --hex-size: 180px;
    }
    
    .honeycomb-container {
        min-height: auto;
        padding: 1rem 0;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    :root {
        --hex-size: 140px;
    }
    
    .honeycomb-container {
        min-height: auto;
        padding: 0.5rem 0;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    :root {
        --hex-size: 120px;
    }
}
