/* Dark Mode Base - Deep Charcoal, Muted Indigo, Soft Whites */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --accent: #4a90e2;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.moonlight {
    --bg-primary: #1e1e2e;
    --bg-secondary: #2a2a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Arial', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }

header { position: fixed; top: 0; width: 100%; background: rgba(10,10,10,0.95); backdrop-filter: blur(10px); z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
.nav-links a:hover { color: var(--accent); }
.hamburger { display: none; flex-direction: column; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: var(--text-primary); margin: 3px 0; transition: var(--transition); }
.theme-toggle { cursor: pointer; font-size: 1.2rem; transition: var(--transition); }
.theme-toggle:hover { transform: scale(1.1); }

.progress-bar { height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 0.3s; }

.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 50%, #16213e 100%); overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, #0a0a0a, #1a1a2e, #0a0a0a); animation: gradientShift 20s ease infinite; }
@keyframes gradientShift { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.particle { position: absolute; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; animation: floatUp 6s linear infinite; }
@keyframes floatUp { 0% { transform: translateY(100vh) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-100px) rotate(360deg); opacity: 0; } }
.hero-content { text-align: center; z-index: 2; max-width: 800px; padding: 0 2rem; animation: fadeInUp 1s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.typing-tagline { font-size: 3rem; margin-bottom: 1rem; border-right: 3px solid var(--accent); white-space: nowrap; overflow: hidden; animation: typing 3s steps(40) forwards, blink 1s infinite; }
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { 0%, 50% { border-color: transparent; } 51%, 100% { border-color: var(--accent); } }
.cta-button { background: var(--accent); color: white; padding: 1rem 2rem; border: none; border-radius: 50px; font-size: 1.1rem; cursor: pointer; transition: var(--transition); }
.cta-button:hover { transform: scale(1.05); box-shadow: var(--shadow); }

.features, .projects-teaser, .testimonials { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
h2 { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }
.features-grid, .flip-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: var(--bg-secondary); padding: 2rem; border-radius: 10px; text-align: center; transition: var(--transition); box-shadow: var(--shadow); }
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(74,144,226,0.2); }
.icon { width: 60px; height: 60px; margin: 0 auto 1rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.neural { animation: pulse 2s infinite; } /* Specific */
.tools { animation: rotate 3s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.demo-input { width: 100%; padding: 0.5rem; margin-bottom: 1rem; background: var(--bg-secondary); border: 1px solid var(--accent); color: var(--text-primary); border-radius: 5px; }
.demo-btn { background: var(--accent); color: white; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; }
.demo-response { margin-top: 1rem; padding: 1rem; background: rgba(74,144,226,0.1); border-radius: 5px; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.flip-card { perspective: 1000px; }
.flip-card-inner { position: relative; width: 100%; height: 200px; text-align: center; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; background: var(--bg-secondary); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; justify-content: center; }
.flip-card-back { transform: rotateY(180deg); }

.testimonials .carousel { position: relative; max-width: 600px; margin: 0 auto; overflow: hidden; border-radius: 10px; }
.carousel-inner { display: flex; transition: transform 0.5s ease; }
.testimonial { min-width: 100%; padding: 2rem; background: var(--bg-secondary); text-align: center; }
.avatar { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 1rem; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-secondary); cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--accent); }

footer { background: var(--bg-secondary); padding: 2rem; text-align: center; }
.subscribe-btn { background: var(--accent); color: white; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; margin: 1rem; }
.social-links { margin-top: 1rem; }
.social-links a { color: var(--accent); text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .typing-tagline { font-size: 2rem; }
    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    }
}

/* Scroll-triggered reveals */
[data-aos] { opacity: 0; transform: translateY(30px); transition: var(--transition); }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }