/* 
 * Opera Asvattha - Ultra-Premium Announcement
 * Refined Dark Luxury Aesthetic
 */

:root {
    --opera-gold: #c5a47e;
    --opera-deep-blue: #0a0d27;
    --opera-accent-gradient: linear-gradient(135deg, #c5a47e 0%, #a88960 100%);
    --opera-glass-bg: rgba(10, 13, 39, 0.9);
    --opera-border: rgba(197, 164, 126, 0.3);
    --opera-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* Overlay with deep blur */
.opera-asvattha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.opera-asvattha-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Premium Container */
.opera-asvattha-popup {
    background: var(--opera-glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    width: 90%;
    max-width: 480px;
    padding: 0;
    border-radius: 24px;
    position: relative;
    box-shadow: var(--opera-shadow);
    border: 1px solid var(--opera-border);
    text-align: center;
    transform: scale(0.9) translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    color: #fff;
}

.opera-asvattha-overlay.active .opera-asvattha-popup {
    transform: scale(1) translateY(0);
}

/* Animated Gradient Border Glow */
.opera-asvattha-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(197, 164, 126, 0.6) 0%, rgba(10, 13, 39, 0.1) 50%, rgba(197, 164, 126, 0.6) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Close Button */
.opera-close-trigger {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 20;
}

.opera-close-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Project Image Block */
.opera-popup-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.opera-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.opera-asvattha-popup:hover .opera-popup-image img {
    transform: scale(1.08);
}

.opera-img-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(10, 13, 39, 0.8);
    color: var(--opera-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(197, 164, 126, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-transform: uppercase;
}

/* Content wrapper */
.opera-content-wrapper {
    padding: 36px 40px 40px;
}

/* Badge */
.opera-badge-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(197, 164, 126, 0.15);
    color: var(--opera-gold);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(197, 164, 126, 0.3);
}

/* Typography */
.opera-asvattha-popup h2 {
    font-size: 38px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.opera-subtext {
    font-size: 16px;
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.5;
}

.opera-impact-line {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 36px;
    font-style: italic;
    font-weight: 400;
}

/* Premium Button */
.opera-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 32px;
    background: var(--opera-accent-gradient);
    color: #0a0d27;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 10px 20px -5px rgba(197, 164, 126, 0.3);
}

.opera-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(197, 164, 126, 0.5);
    opacity: 0.95;
}

/* Shimmer Effect */
.opera-cta-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: none;
    animation: shimmer-sweep 3s infinite;
}

@keyframes shimmer-sweep {
    0% { left: -60%; }
    20%, 100% { left: 120%; }
}

/* Footer Note */
.opera-footer-note {
    display: block;
    margin-top: 24px;
    font-size: 11px;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Staggered Content Animations */
.opera-asvattha-overlay.active .opera-badge-pill { animation: fadeInUp 0.6s ease forwards 0.2s; opacity: 0; }
.opera-asvattha-overlay.active h2 { animation: fadeInUp 0.6s ease forwards 0.3s; opacity: 0; }
.opera-asvattha-overlay.active .opera-subtext { animation: fadeInUp 0.6s ease forwards 0.4s; opacity: 0; }
.opera-asvattha-overlay.active .opera-impact-line { animation: fadeInUp 0.6s ease forwards 0.5s; opacity: 0; }
.opera-asvattha-overlay.active .opera-cta-btn { animation: fadeInUp 0.6s ease forwards 0.6s; opacity: 0; }
.opera-asvattha-overlay.active .opera-footer-note { animation: fadeInUp 0.6s ease forwards 0.7s; opacity: 0; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(10px); }
}

/* Responsive Scaling */
@media (max-width: 480px) {
    .opera-asvattha-popup {
        margin: 0 15px;
    }
    .opera-popup-image {
        height: 180px;
    }
    .opera-content-wrapper {
        padding: 30px 24px 32px;
    }
    .opera-asvattha-popup h2 {
        font-size: 30px;
    }
}

