/* Variables and Reset */
:root {
    --primary: #1BA098;
    --bg-dark: #000000;
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background gradient matching poster (black to maroon) */
.background-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at right center, rgba(110, 20, 20, 0.6) 0%, #000000 60%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Top Signature */
.top-signature {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

/* Header Text Styles */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0 60px;
    gap: 40px;
}

@media (min-width: 800px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 20px;
        align-items: center;
    }
    .header-text {
        flex: 1;
        padding-right: 40px;
    }
    .circle-showcase {
        flex: 1;
        width: 100%;
        max-width: 500px;
    }
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
}

.tagline {
    font-size: 1rem;
    margin-top: 30px;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.save-moment {
    color: var(--primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Circular Showcase UI */
.circle-showcase {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.circle-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff; /* Forms the white gap lines */
    box-shadow: 0 0 40px rgba(92, 26, 26, 0.4);
    overflow: hidden;
    border: 4px solid #fff;
    box-sizing: border-box;
}

.slice-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    transform-origin: 50% 50%;
    pointer-events: none;
}

.slice {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 50 deg triangle from center perfectly covers the segment */
    clip-path: polygon(50% 50%, 26.685% 0%, 73.315% 0%);
    -webkit-clip-path: polygon(50% 50%, 26.685% 0%, 73.315% 0%);
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
}

.slice::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.slice:hover::after {
    background: rgba(0, 0, 0, 0);
}

.slice:hover .img-wrapper img {
    transform: scale(1.08);
}

.img-wrapper {
    position: absolute;
    top: -20%; left: -20%; width: 140%; height: 140%;
    transform-origin: 50% 50%;
}

.img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slice-label {
    position: absolute;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 800;
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9), -1px -1px 4px rgba(0,0,0,0.9);
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    text-align: center;
}

/* Center Hole / Button */
.center-circle {
    position: absolute;
    top: 50%; left: 50%;
    width: 42%; height: 42%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, #1a1a1a, #000000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 3px solid #fff;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.6);
    z-index: 10;
}

.center-text-top {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    letter-spacing: 2px;
    color: var(--text-muted);
}

.center-text-bottom {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

/* Video Sections */
.video-section {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.section-title {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-bottom: 30px;
    margin-top: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 599px) {
    .video-grid > .video-wrapper:first-child {
        grid-column: span 2;
    }
    .video-grid > .video-wrapper:nth-child(even):last-child {
        grid-column: span 2;
    }
}

@media (min-width: 600px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(27, 160, 152, 0.3);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    outline: none;
}

/* Contact & Social */
.contact-section {
    padding: 40px 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(27, 160, 152, 0.4);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #1ebc5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0,0,0,0.5);
}

/* Pixel Gallery Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #050505;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modal.open {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--primary);
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--primary);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.gallery-item {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, opacity 0.3s ease;
    background: #222;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    opacity: 0.95;
}

.gallery-item:active {
    transform: scale(0.96);
}

/* Fullscreen Image Slider */
.fullscreen-slider {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fullscreen-slider.active {
    opacity: 1;
    pointer-events: auto;
}

.fullscreen-slider img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    user-select: none;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

@media (max-width: 600px) {
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: white;
}

/* Pulsing Animation */
.floating-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
}
