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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

nav {
    background: rgba(15, 20, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #2563eb;
}

.leftsec {
    display: flex;
    align-items: center;
    gap: 12px;
}

.earimg {
    width: 45px;
    height: 45px;
    filter: brightness(0) invert(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo a {
    text-decoration: none;
    color: #60a5fa;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    transition: all 0.3s;
}

.logo a:hover {
    color: #93c5fd;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.8);
}

.about a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.about a:hover {
    color: #60a5fa;
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

h1 {
    color: #60a5fa;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
    animation: fadeInDown 0.8s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    text-align: center;
    color: #9ca3af;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s;
}

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

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

button {
    padding: 15px 35px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

button.active {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

#video-container {
    background: rgba(15, 20, 40, 0.8);
    border: 2px solid #2563eb;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#video {
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    display: block;
}
.detection-info {
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(37, 99, 235, 0.3);
}

#person-count, #object-label {
    font-size: 1.1rem;
    color: #60a5fa;
    text-align: center;
    font-weight: 600;
    padding: 0.5rem;
    margin: 0.5rem 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
}

#transcript {
    background: rgba(15, 20, 40, 0.8);
    border: 2px solid #2563eb;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s;
}

#voice-text {
    color: #93c5fd;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
}

.features-section {
    margin-top: 4rem;
    animation: fadeIn 1.2s;
}

.features-title {
    text-align: center;
    color: #60a5fa;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: rgba(15, 20, 40, 0.8);
    border: 2px solid #1e40af;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #2563eb;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card h3 {
    color: #60a5fa;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.feature-card p {
    color: #9ca3af;
    line-height: 1.6;
    text-align: center;
}

#about {
    background: rgba(15, 20, 40, 0.9);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 2rem;
    border: 2px solid #2563eb;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s;
}

#about h2 {
    color: #60a5fa;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}

.about-image {
    display: grid;
    gap: 1rem;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.about-image img:hover {
    transform: scale(1.05);
}

.mission-section {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border-left: 4px solid #2563eb;
}

.mission-section h3 {
    color: #60a5fa;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    nav {
        padding: 1rem;
    }

    .logo a {
        font-size: 20px;
    }

    button {
        width: 100%;
    }
}