/* India Map Popup with Neon Tricolor Effects */
.india-map-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in;
}

.india-map-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    overflow: visible;
}

.india-map {
    width: 100%;
    height: 100%;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    animation: mapPulse 3s infinite alternate;
}

/* SVG Map Path Styles */
.map-path {
    fill: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: drawMap 3s forwards, mapGlow 4s infinite alternate 3s;
}

/* Tricolor Neon Effects */
.saffron-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 33.33%;
    background: linear-gradient(to bottom, rgba(255, 153, 51, 0.5), transparent);
    filter: blur(20px);
    animation: saffreonNeon 3s infinite alternate;
    z-index: -1;
}

.white-glow {
    position: absolute;
    top: 33.33%;
    left: 0;
    width: 100%;
    height: 33.33%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    filter: blur(20px);
    animation: whiteNeon 3s infinite alternate 0.5s;
    z-index: -1;
}

.green-glow {
    position: absolute;
    top: 66.66%;
    left: 0;
    width: 100%;
    height: 33.33%;
    background: linear-gradient(to bottom, rgba(19, 136, 8, 0.5), transparent);
    filter: blur(20px);
    animation: greenNeon 3s infinite alternate 1s;
    z-index: -1;
}

/* Ashoka Chakra */
.chakra {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid #0066CC;
    border-radius: 50%;
    box-shadow: 0 0 15px #0066CC, 0 0 30px #0066CC;
    animation: chakraSpin 10s linear infinite;
}

.spoke {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 40px;
    background: #0066CC;
    transform-origin: 50% 0;
    box-shadow: 0 0 5px #0066CC, 0 0 10px #0066CC;
}

/* Close Button */
.india-map-close {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    color: white;
    font-size: 24px;
}

.india-map-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Welcome Text */
.welcome-text {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(-20px);
    animation: textFadeIn 1s forwards 2s;
}

/* Hidden Class */
.india-map-popup.hidden {
    display: none;
}

/* Fade Out Animation */
.india-map-popup.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes drawMap {
    to { stroke-dashoffset: 0; }
}

@keyframes mapGlow {
    0% { stroke: #FF9933; box-shadow: 0 0 5px #FF9933; }
    33% { stroke: #FFFFFF; box-shadow: 0 0 5px #FFFFFF; }
    66% { stroke: #138808; box-shadow: 0 0 5px #138808; }
    100% { stroke: #FF9933; box-shadow: 0 0 5px #FF9933; }
}

@keyframes mapPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes saffreonNeon {
    0% { opacity: 0.7; box-shadow: 0 0 20px #FF9933; }
    100% { opacity: 1; box-shadow: 0 0 40px #FF9933, 0 0 60px #FF9933; }
}

@keyframes whiteNeon {
    0% { opacity: 0.7; box-shadow: 0 0 20px #FFFFFF; }
    100% { opacity: 1; box-shadow: 0 0 40px #FFFFFF, 0 0 60px #FFFFFF; }
}

@keyframes greenNeon {
    0% { opacity: 0.7; box-shadow: 0 0 20px #138808; }
    100% { opacity: 1; box-shadow: 0 0 40px #138808, 0 0 60px #138808; }
}

@keyframes chakraSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes textFadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}