:root {
    --bg-color: #0B0E14;
    --card-bg: #151921;
    --primary: #3B82F6;
    --accent: #8B5CF6;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

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

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

/* Background glow effect */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

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

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
}

.dot { color: var(--primary); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-secondary:hover { background: var(--glass); }

/* Hero */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content { flex: 1; }

.badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 480px;
}

.cta-group {
    display: flex;
    gap: 15px;
}

/* Code Window Visual */
.hero-visual { flex: 1; }

.code-window {
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.window-header {
    background: #252526;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.dots { display: flex; gap: 8px; margin-right: 15px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }

.filename { color: #888; font-size: 0.8rem; }

.window-body { padding: 20px; color: #d4d4d4; position: relative; }
.line { margin-bottom: 4px; display: block; }
.num { color: #555; margin-right: 15px; user-select: none; }

/* Syntax Highlighting Mock */
.keyword { color: #569CD6; }
.string { color: #CE9178; }
.comment { color: #6A9955; }

/* AI Popup */
.ai-popup {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid var(--primary);
    padding: 12px;
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.8rem;
    width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Features */
.features { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 40px 30px;
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* CTA Section */
.cta-section { padding: 80px 0; text-align: center; }

.cta-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--border);
    padding: 60px;
    border-radius: 20px;
}

.contact-info { margin-top: 30px; }

.email-link {
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    transition: opacity 0.3s;
}

.email-link:hover { opacity: 0.8; }

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: #666;
}

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

.socials a { color: #666; margin-left: 20px; font-size: 1.2rem; transition: color 0.3s; }
.socials a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content p { margin: 0 auto 30px; }
    .cta-group { justify-content: center; }
    .hero h1 { font-size: 2.5rem; }
    .code-window { display: none; } /* Hide code on small mobile for cleanliness */
}
