:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 30, 0.4);
    --primary-color: #00f2ff;
    --secondary-color: #0066ff;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --neon-glow: 0 0 15px rgba(0, 242, 255, 0.4);
    --border-glow: 0 0 10px rgba(0, 102, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: #fff;
}

.neon-text {
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: #ff4757;
    color: #fff;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.scanner-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.scanner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--secondary-color);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.face-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    background: rgba(0, 102, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { top: 0; }
    50% { top: 100%; }
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
}

.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.data-node {
    position: absolute;
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 242, 255, 0.3);
    padding: 8px 12px;
    font-size: 0.7rem;
    font-family: 'Orbitron';
    color: var(--primary-color);
}

.node-1 { top: 20px; right: -40px; }
.node-2 { bottom: 40px; left: -40px; }

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    text-align: left;
}

.feature-card:hover {
    border-color: rgba(0, 242, 255, 0.3);
    transform: translateY(-10px);
    background: rgba(20, 20, 35, 0.6);
}

.feature-card i {
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    position: relative;
}

.step {
    text-align: center;
}

.step-num {
    font-family: 'Orbitron';
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 242, 255, 0.1);
    margin-bottom: -1rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Tech Stack */
.tech-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tech-box {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-family: 'Orbitron';
    font-weight: 600;
    transition: var(--transition);
}

.tech-box:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 242, 255, 0.05);
}

/* Demo Section */
.demo-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.camera-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 2px solid #1a1a1a;
}

.demo-camera {
    width: 100%;
    height: 100%;
    position: relative;
}

.demo-camera img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-overlay {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.demo-status-box {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
    align-self: flex-start;
}

.status-label {
    font-size: 0.7rem;
    color: #888;
}

.status-value {
    font-family: 'Orbitron';
    font-size: 0.8rem;
    font-weight: 700;
}

.status-value.authorized { color: #00ff88; }
.status-value.unauthorized { color: #ff4757; }

.demo-face-box {
    position: absolute;
    top: 20%;
    left: 40%;
    width: 150px;
    height: 150px;
    border: 2px solid #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.demo-timestamp {
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    color: #fff;
    font-family: monospace;
    font-size: 0.8rem;
    align-self: flex-end;
}

.demo-controls {
    display: flex;
    flex-direction: column;
}

.control-btns {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.control-btns .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.85rem;
}

.log-panel {
    flex: 1;
    background: #000;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.8rem;
}

.log-title {
    color: #555;
    margin-bottom: 10px;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
}

.logs {
    height: 150px;
    overflow-y: auto;
}

.log-entry {
    margin-bottom: 5px;
    color: #00ff88;
}

/* About & Contact */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-stats {
    display: flex;
    gap: 20px;
}

.stat-card {
    flex: 1;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.stat-num {
    font-family: 'Orbitron';
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron';
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    color: #555;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .demo-wrapper, .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}
