@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #0f0f1a;
    --accent-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    --neon-blue: #00f5ff;
    --neon-purple: #bf00ff;
    --neon-green: #39ff14;
    --neon-orange: #ff6600;
    --neon-pink: #ff0080;
    --neural-gradient: linear-gradient(45deg, #00f5ff, #bf00ff, #39ff14, #ff6600);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --neural-glow: 0 0 30px rgba(0, 245, 255, 0.6);
}

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(191, 0, 255, 0.08) 0%, transparent 50%);
    animation: neural-shift 20s ease-in-out infinite;
}

@keyframes neural-shift {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    50% { filter: hue-rotate(180deg) brightness(0.8); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.3);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--neural-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.back-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-blue);
    transition: left 0.3s ease;
    z-index: -1;
}

.back-btn:hover::before {
    left: 0;
}

.back-btn:hover {
    color: var(--primary-bg);
    box-shadow: 0 0 30px var(--neon-blue);
}

/* Hero Section */
.project-hero {
    padding: 12rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    background: var(--neural-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.status-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.status-item {
    background: var(--glass-bg);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(15px);
    text-align: center;
}

.status-value {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 700;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    display: block;
    text-shadow: 0 0 15px var(--neon-green);
}

.status-label {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--neon-blue);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--neural-gradient);
    border-radius: 2px;
}

/* Demo Video Section */
.demo-container {
    background: var(--glass-bg);
    border: 2px solid rgba(0, 245, 255, 0.4);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.demo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--neon-blue), transparent);
    animation: demo-glow 8s linear infinite;
    opacity: 0.1;
    z-index: -1;
}

@keyframes demo-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.video-placeholder {
    width: 100%;
    height: clamp(200px, 40vw, 350px);
    background: linear-gradient(45deg, var(--primary-bg), var(--secondary-bg));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.3rem);
    border: 2px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
}

.video-placeholder::after {
    content: 'LIVE DEMO';
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--neon-green);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid var(--neon-green);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.main-content-area {
    background: var(--glass-bg);
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
}

.sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.tech-stack-card {
    background: var(--glass-bg);
    border: 2px solid rgba(191, 0, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
}

.tech-stack-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--neon-purple);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-chip {
    background: rgba(191, 0, 255, 0.2);
    color: var(--neon-purple);
    border: 1px solid rgba(191, 0, 255, 0.4);
    padding: 0.6rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.tech-chip:hover {
    background: rgba(191, 0, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(191, 0, 255, 0.3);
}

.metrics-card {
    background: var(--glass-bg);
    border: 2px solid rgba(57, 255, 20, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.8rem;
}

.metric-box {
    text-align: center;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.metric-number {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 700;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    display: block;
    text-shadow: 0 0 10px var(--neon-green);
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 2rem;
}

.content-section h3 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--neon-green);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 1rem;
}

.content-section ul {
    color: var(--text-secondary);
    margin-left: 1rem;
    line-height: 1.7;
    list-style: none;
    padding-left: 0;
}

.content-section li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.content-section li::before {
    content: '▶';
    color: var(--neon-blue);
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 0.8rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Architecture Diagram */
.architecture-section {
    background: var(--glass-bg);
    border: 2px solid rgba(255, 102, 0, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    margin-bottom: 3rem;
    text-align: center;
}

.architecture-placeholder {
    width: 100%;
    height: clamp(200px, 40vw, 300px);
    background: linear-gradient(45deg, var(--secondary-bg), var(--accent-bg));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
    font-size: clamp(1rem, 3vw, 1.2rem);
    border: 2px solid var(--neon-orange);
    margin-top: 1rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.result-card {
    background: var(--glass-bg);
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.2);
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--neon-orange);
}

.result-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1rem, 3vw, 1.1rem);
    color: var(--neon-blue);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.result-description {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Action Buttons */
.action-section {
    text-align: center;
    padding: 3rem 0;
    border-top: 2px solid rgba(0, 245, 255, 0.2);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-green);
    transition: left 0.4s ease;
    z-index: -1;
}

.action-btn:hover::before {
    left: 0;
}

.action-btn:hover {
    color: var(--primary-bg);
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.4);
    transform: translateY(-3px);
}

.primary-btn {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.primary-btn::before {
    background: var(--neon-blue);
}

.primary-btn:hover {
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
}

/* Responsive Design */
@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 0 2rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .action-buttons {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}

@media (min-width: 1024px) {
    .section {
        margin-bottom: 5rem;
    }

    .demo-container,
    .main-content-area,
    .tech-stack-card,
    .metrics-card,
    .architecture-section {
        padding: 2rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sidebar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .project-hero {
        padding: 8rem 1rem 3rem;
    }

    .status-indicators {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .status-item {
        padding: 1rem;
        min-width: auto;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .content-section {
        margin-bottom: 1.5rem;
    }

    .tech-chips {
        justify-content: center;
    }

    .result-icon {
        font-size: 2rem;
    }

    .architecture-placeholder,
    .video-placeholder {
        height: 200px;
        font-size: 1rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .back-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 0.5rem;
    }

    .demo-container,
    .main-content-area,
    .tech-stack-card,
    .metrics-card,
    .architecture-section,
    .result-card {
        padding: 1rem;
    }

    .status-indicators {
        grid-template-columns: 1fr;
        max-width: 200px;
        margin: 0 auto 2rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--neural-gradient);
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

body {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Additional hover effects */
.demo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.2);
}

.architecture-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 102, 0, 0.2);
}

.video-placeholder:hover {
    background: linear-gradient(45deg, var(--secondary-bg), var(--accent-bg));
    border-color: var(--neon-green);
    cursor: pointer;
}

.architecture-placeholder:hover {
    border-color: var(--neon-purple);
    cursor: pointer;
}

/* Mobile touch optimizations */
@media (hover: none) {
    .tech-chip:active,
    .result-card:active,
    .action-btn:active {
        transform: scale(0.98);
    }
}

/* Video Container Styles */
.video-container {
    position: relative;
    width: 100%;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-container video {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: #000;
    transition: all 0.3s ease;
    transform: scale(1);
}

.play-overlay:hover .play-button {
    transform: scale(1.1);
    background: #fff;
}

.video-container.playing .play-overlay {
    display: none;
}