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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    background: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1a1a1a;
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #888;
    font-size: 14px;
    transition: color 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0a0a0a 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, #1a1a1a 1px, transparent 1px),
        linear-gradient(180deg, #1a1a1a 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: #888;
    margin-bottom: 32px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.terminal {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px 20px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 14px;
    margin-bottom: 32px;
    position: relative;
}

.terminal::before {
    content: '$ ';
    color: #00ff88;
}

.terminal-text {
    color: #fff;
    display: inline;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: #00ff88;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.cta-button:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

/* Services */
.services {
    padding: 120px 0;
    border-top: 1px solid #1a1a1a;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 64px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.service {
    padding: 32px 0;
    border-bottom: 1px solid #1a1a1a;
}

.service h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.service p {
    color: #888;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Projects */
.projects {
    padding: 120px 0;
    border-top: 1px solid #1a1a1a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.project {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.project:hover {
    border-color: #333;
    transform: translateY(-2px);
}

.project-header {
    padding: 20px;
    border-bottom: 1px solid #222;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 12px;
    color: #666;
}

.project-content {
    padding: 24px;
}

.project h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.project p {
    color: #888;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.project-metric {
    color: #00ff88;
    font-weight: 600;
}

/* Contact */
.contact {
    padding: 120px 0;
    border-top: 1px solid #1a1a1a;
}

.contact-form {
    max-width: 500px;
    margin: 48px auto 0;
    text-align: center;
}

.email-button {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.email-button:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

/* Footer */
footer {
    padding: 48px 0;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

footer p {
    color: #666;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 80px 0;
    }

    .services,
    .projects,
    .contact {
        padding: 80px 0;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Subtle scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
} 