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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.malayalam {
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.ready {
    color: #4ecdc4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #b8b8b8;
    font-weight: 300;
}

/* Main Content */
.content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Left Column */
.left-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mosquito-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mosquito-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff6b6b;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease;
    filter: brightness(1.2) contrast(1.1);
}

.mosquito-img:hover {
    transform: scale(1.05) rotate(5deg);
}

.speech-bubble {
    background: #ffffff;
    color: #333;
    padding: 20px 25px;
    border-radius: 20px;
    position: relative;
    max-width: 350px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}



.speech-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #ffffff;
}

.speech-bubble p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Right Column */
.right-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.detection-system {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.detector-display {
    margin-bottom: 30px;
}

.reaction-time {
    font-size: 2rem;
    font-weight: bold;
    color: #ffcc00;
    text-align: center;
    margin-top: 15px;
    text-shadow: 2px 2px 5px black;
}


.radar-circle {
    width: 150px;
    height: 150px;
    border: 3px solid #4ecdc4;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.radar-sweep {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: conic-gradient(transparent, transparent, #4ecdc4);
    opacity: 0;
    animation: radar-sweep 2s linear infinite;
}

.radar-dot {
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #ff6b6b;
}

.status-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.detect-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detect-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.5);
}

.detect-btn:active {
    transform: translateY(0);
}

.detect-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result-area {
    margin-top: 30px;
}

.smash-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 2rem;
    font-weight: 800;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse-red 2s infinite;
}

.smash-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 35px rgba(255, 107, 107, 0.6);
}

.escape-text {
    color: #ffd93d;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

.escape-subtitle {
    font-size: 1rem;
    color: #b8b8b8;
    margin-top: 10px;
    font-weight: 400;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer p {
    margin: 5px 0;
    color: #b8b8b8;
}

.tech-credit {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes radar-sweep {
    0% { transform: rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: rotate(360deg); opacity: 0; }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 8px 35px rgba(255, 107, 107, 0.8); }
}

@keyframes detecting {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.detecting {
    animation: detecting 0.8s ease-in-out infinite;
}

.radar-active .radar-sweep {
    opacity: 1 !important;
    animation-duration: 0.5s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .mosquito-img {
        width: 150px;
        height: 150px;
    }
    
    .speech-bubble {
        max-width: 300px;
        padding: 15px 20px;
    }
    
    .detection-system {
        padding: 30px 20px;
    }
    
    .radar-circle {
        width: 120px;
        height: 120px;
    }
    
    .detect-btn {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    
    .smash-btn {
        padding: 15px 30px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .mosquito-img {
        width: 120px;
        height: 120px;
    }
    
    .speech-bubble {
        max-width: 250px;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .detection-system {
        padding: 20px 15px;
    }
}