﻿:root {
    --primary: #0a0e23;
    --secondary: #141a3a;
    --accent: #ff6f00;
    --accent-light: #ff8f33;
    --accent-dark: #e65c00;
    --text: #ffffff;
    --text-secondary: #b8c2d9;
    --text-muted: #8892b0;
    --card-bg: #1e2347;
    --glass: rgba(30, 35, 71, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #ff6f00 0%, #ff3e00 100%);
    --gradient-light: linear-gradient(135deg, #ff8f33 0%, #ff6f00 100%);
    --gradient-dark: linear-gradient(135deg, #e65c00 0%, #cc5500 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(255, 111, 0, 0.8) 0%, rgba(255, 62, 0, 0.8) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--primary);
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 111, 0, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 62, 0, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 80%, rgba(230, 92, 0, 0.1) 0%, transparent 50%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.3;
}



.container {
    max-width: 1600px;
    margin: 0 auto;
  
}

/* Header Section */
.header {
    text-align: center;
    padding: 6rem 0 8rem;
    position: relative;
}

    .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 800px;
        height: 800px;
        background: radial-gradient(circle, rgba(255, 111, 0, 0.15) 0%, transparent 70%);
        z-index: -1;
        animation: pulse 8s infinite alternate;
    }



    .header h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
        font-weight: 800;
        margin-bottom: 1.5rem;
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        line-height: 1.2;
    }

    .header p {
        color: var(--text-secondary);
        font-size: clamp(1.1rem, 2.5vw, 1.4rem);
        max-width: 800px;
        margin: 0 auto 3rem;
    }

.header-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.header-stat {
    text-align: center;
    min-width: 120px;
}

.header-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    line-height: 1;
}

.header-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Demo Grid */
.demo-section {
    margin-bottom: 6rem;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text);
    position: relative;
    display: inline-block;
    margin-top:90px;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 25%;
        width: 50%;
        height: 3px;
        background: var(--gradient);
        border-radius: 3px;
    }

.demo-grid {
    display: grid;
    max-width: 1500px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.demo-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow);
    position: relative;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.demo-card.face-detection:hover {
    border-color: rgba(255, 111, 0, 0.5);
}

.demo-card.mask-detection:hover {
    border-color: rgba(255, 143, 51, 0.5);
}

.demo-card.object-detection:hover {
    border-color: rgba(230, 92, 0, 0.5);
}

.demo-card.anomaly-detection:hover {
    border-color: rgba(255, 62, 0, 0.5);
}

.video-container {
    position: relative;
    padding-top: 60%;
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

    .video-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8) 100%);
        z-index: 1;
        pointer-events: none;
    }

    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.demo-card:hover .video-container video {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.demo-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-btn i {
    color: white;
    font-size: 1.5rem;
    margin-left: 4px;
}

.demo-content {
    padding: 1.5rem;
    position: relative;
}

.demo-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .demo-title.face-detection {
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .demo-title.mask-detection {
        background: var(--gradient-light);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .demo-title.object-detection {
        background: var(--gradient-dark);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .demo-title.anomaly-detection {
        background: linear-gradient(135deg, #ff3e00 0%, #cc2e00 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.demo-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    padding: 0.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

    .demo-icon.face-detection {
        background: var(--gradient);
    }

    .demo-icon.mask-detection {
        background: var(--gradient-light);
    }

    .demo-icon.object-detection {
        background: var(--gradient-dark);
    }

    .demo-icon.anomaly-detection {
        background: linear-gradient(135deg, #ff3e00 0%, #cc2e00 100%);
    }

.demo-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 4.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .stat::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--accent);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .stat:hover::before {
        transform: translateX(0);
    }

    .stat:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
    }

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .stat-value.accuracy {
        color: var(--accent);
    }

    .stat-value.speed {
        color: var(--accent-light);
    }

    .stat-value.fps {
        color: var(--accent-dark);
    }

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Features Section */
.features-section {
    background: var(--glass);
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    margin: 6rem 0;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

    .feature:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-5px);
    }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
    }

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }



@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: translateX(-50%) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-stats {
        gap: 1.5rem;
    }

    .header-stat-value {
        font-size: 2rem;
    }

    .demo-content {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .header {
        padding: 2rem 0 4rem;
    }

    .header-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .demo-grid {
        display: grid;
        gap: 2rem;
        grid-template-columns: 1fr;
    }
}

