/* gallery-style.css - Styles specifically for the gallery page */

/* Gallery Showcase using Hexagonal/Rotated Effects */
.showcase-gallery {
    padding: 150px 0 100px;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hexagon-gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.hexagon-gallery {
    width: 350px;
    height: 500px;
    position: relative;
    margin: 30px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hexagon-gallery:hover {
    transform: scale(1.08);
    z-index: 20;
}

.hexagon-gallery-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform: rotate(15deg); /* Distinctive tilt effect */
    border-radius: 40px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Heavy Liquid Glassmorphism inside the container */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.hexagon-gallery:hover .hexagon-gallery-inner {
    transform: rotate(0deg);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
}

.hexagon-gallery:nth-child(odd) .hexagon-gallery-inner {
    border: 1px solid var(--primary-color, rgba(224, 163, 255, 0.4));
}

.hexagon-gallery:nth-child(even) .hexagon-gallery-inner {
    border: 1px solid var(--secondary-color, rgba(255, 105, 180, 0.4));
}

/* iframe wrapper inside the rotated container */
.hexagon-gallery-inner .iframe-wrapper {
    width: 100%;
    height: 100%;
    transform: rotate(-15deg) scale(1.15); /* Compensate rotation so content stays upright */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
    pointer-events: none; /* Disable interaction until container is fully un-rotated */
    opacity: 0.8;
}

.hexagon-gallery:hover .hexagon-gallery-inner .iframe-wrapper {
    transform: rotate(0deg) scale(1);
    pointer-events: auto; /* Enable video click/play */
    opacity: 1;
    border-radius: 10px;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* Specific size adjustment for YouTube */
.hexagon-gallery-inner .iframe-wrapper.youtube {
    height: 250px;
}

/* Background blob overrides specific for gallery */
.gallery-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.liquid-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    animation: liquidMorph 15s ease-in-out infinite alternate;
}

.liquid-blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color, #e0a3ff), var(--secondary-color, #ff69b4));
    top: 20%;
    left: 0%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.liquid-blob-2 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--tertiary-color, #9370db), var(--primary-color, #e0a3ff));
    bottom: 10%;
    right: 0%;
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    animation-direction: alternate-reverse;
    animation-duration: 20s;
}

@keyframes liquidMorph {
    0% { transform: translateY(0) scale(1) rotate(0deg); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { transform: translateY(-50px) scale(1.1) rotate(180deg); border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
    100% { transform: translateY(0) scale(1) rotate(360deg); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* Subscribe Button */
.subscribe-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-decoration: none;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--primary-color, #e0a3ff), var(--secondary-color, #ff69b4));
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.subscribe-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px var(--primary-color, rgba(224, 163, 255, 0.4)), inset 0 0 20px rgba(255, 255, 255, 0.5);
    color: #ffffff;
}
