/* ==========================================
   FULL-SCREEN POPUP WITH FLOATING BOOTH IMAGES
   ========================================== */

/* ----- OVERLAY (full viewport) ----- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ----- BACKGROUND (Yasho Bhumi) ----- */
.popup-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: kenBurnsZoom 20s infinite alternate ease-in-out;
}
@keyframes kenBurnsZoom {
    0%   { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.15) rotate(1deg); }
}

/* ----- FLOATING BOOTH IMAGES (foreground) ----- */
.floating-booths {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}
.booth-float {
    position: absolute;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    opacity: 0.85;
    animation: floatBooth 12s infinite alternate ease-in-out;
    will-change: transform;
}
/* Individual sizes & animation timing – responsive sizes later */
.booth-float:nth-child(1) {
    width: 350px;
    height: 350px;
    top: 5%;
    left: 3%;
    animation-duration: 14s;
    animation-delay: 0s;
}
.booth-float:nth-child(2) {
    width: 350px;
    height: 350px;
    bottom: 8%;
    right: 2%;
    animation-duration: 16s;
    animation-delay: 2s;
}
.booth-float:nth-child(3) {
    width: 350px;
    height: 350px;
    top: 45%;
    left: 60%;
    animation-duration: 18s;
    animation-delay: 4s;
}

/* ----- ENHANCED FLOATING ANIMATION (drift + rotation + pulse) ----- */
@keyframes floatBooth {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(60px, -40px) rotate(4deg) scale(1.08);
    }
    50% {
        transform: translate(-30px, 60px) rotate(-3deg) scale(0.92);
    }
    75% {
        transform: translate(80px, 20px) rotate(5deg) scale(1.05);
    }
    100% {
        transform: translate(-40px, -50px) rotate(-4deg) scale(0.95);
    }
}

/* ----- TRANSLUCENT OVERLAY (more transparent to show background) ----- */
.popup-overlay-translucent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); /* lighter */
    backdrop-filter: blur(2px); /* subtle blur */
    -webkit-backdrop-filter: blur(2px);
    z-index: 2;
}

/* ----- POPUP CARD (more transparent glass) ----- */
.popup-container {
    position: relative;
    z-index: 4;
    max-width: 560px;
    width: 90%;
    padding: 35px 30px;
    background: rgba(255, 255, 255, 0.55); /* more transparent */
    backdrop-filter: blur(16px); /* stronger blur to keep readability */
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: slideUpFade 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards,
               floatCard 6s ease-in-out infinite 0.7s;
}
/* ----- NEW: Glowing border pulse animation ----- */
.popup-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(249, 116, 22, 0.164), rgba(234,88,12,0.2), rgba(22, 56, 249, 0.6));
    z-index: -1;
    animation: borderGlow 4s ease-in-out infinite;
}
@keyframes borderGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(60px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ----- CLOSE BUTTON with glow ----- */
.popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 32px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    z-index: 5;
    transition: transform 0.3s, text-shadow 0.3s;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.popup-close:hover {
    transform: rotate(90deg) scale(1.2);
    text-shadow: 0 0 30px rgba(255,255,255,0.9);
}

/* ----- CONTENT STYLES (unchanged) ----- */
.popup-content {
    text-align: center;
}
.popup-header .badge {
    display: inline-block;
    background: linear-gradient(135deg, #f9741618, #0c10ea);
    color: #fff;
    padding: 4px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.popup-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}
.popup-header .subtitle {
    font-size: 18px;
    color: #4b5563;
    margin: 0 0 18px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.brand-name {
    font-size: 26px;
    font-weight: 800;
    color: #1625f9;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}
.brand-tagline {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    background: rgba(249, 115, 22, 0.1);
    padding: 2px 12px;
    border-radius: 20px;
}

.popup-body .venue,
.popup-body .date-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    color: #374151;
    margin-bottom: 10px;
}
.popup-body .venue i,
.popup-body .date-time i {
    color: #1640f9;
    width: 24px;
    font-size: 20px;
}
.popup-body .description {
    margin: 16px 0 10px;
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- BUTTONS with pulse animation ----- */
.popup-footer {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    justify-content: center;
    flex-wrap: wrap;
}
.popup-footer .btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 140px;
}
.btn-primary {
    background: linear-gradient(135deg, #16cbf9, #0c22ea);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    animation: pulseBtn 2s infinite;
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.6);
    animation-play-state: paused;
}
@keyframes pulseBtn {
    0% { box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35); }
    50% { box-shadow: 0 4px 30px rgba(249, 115, 22, 0.7); }
    100% { box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35); }
}
.btn-outline {
    background: rgba(255,255,255,0.25);
    color: #1f2937;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    border-color: #280ad1;
    color: #1671f9;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ----- DECORATIVE SHAPES (more) ----- */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.15);
    animation: floatShape 8s infinite ease-in-out;
}
.shape-1 {
    width: 80px;
    height: 80px;
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}
.shape-2 {
    width: 60px;
    height: 60px;
    bottom: -10px;
    left: -15px;
    animation-delay: 2s;
}
.shape-3 {
    width: 40px;
    height: 40px;
    top: 50%;
    left: -10px;
    animation-delay: 4s;
}
/* New additional shapes for more flair */
.shape-4 {
    width: 30px;
    height: 30px;
    top: 20%;
    right: 10%;
    animation-delay: 1s;
    background: rgba(249, 115, 22, 0.2);
}
.shape-5 {
    width: 50px;
    height: 50px;
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
    background: rgba(249, 115, 22, 0.1);
}
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.3); }
}

/* ==========================================
   RESPONSIVE BOOTH SIZES
   ========================================== */

/* Tablet (768px – 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .booth-float:nth-child(1),
    .booth-float:nth-child(2),
    .booth-float:nth-child(3) {
        width: 250px;
        height: 250px;
    }
}

/* Mobile (small tablets & large phones, 480px – 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .booth-float:nth-child(1),
    .booth-float:nth-child(2),
    .booth-float:nth-child(3) {
        width: 160px;
        height: 160px;
    }
}

/* Small mobile (below 480px) – hide them for cleaner view */
@media (max-width: 479px) {
    .floating-booths {
        display: none;
    }
}

/* ==========================================
   ADDITIONAL RESPONSIVE CARD ADJUSTMENTS
   ========================================== */
@media (max-width: 640px) {
    .popup-container {
        padding: 25px 15px;
        max-width: 95%;
        border-radius: 16px;
        background: rgba(255,255,255,0.65);
    }
    .popup-header h2 {
        font-size: 26px;
    }
    .popup-header .subtitle {
        font-size: 16px;
    }
    .popup-body .venue,
    .popup-body .date-time {
        font-size: 16px;
        flex-wrap: wrap;
    }
    .brand-name {
        font-size: 22px;
    }
    .popup-footer .btn {
        min-width: 120px;
        padding: 10px 20px;
        flex: 1;
    }
    .popup-close {
        font-size: 28px;
        top: 12px;
        right: 14px;
    }
    .floating-shapes { display: none; }
}