/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0e1a;
  --bg-card: #141925;
  --bg-card-hover: #1a1f2e;
  --fg: #e8eaf6;
  --fg-muted: #9ca3af;
  --accent-primary: #8b5cf6;
  --accent-secondary: #14b8a6;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #14b8a6 100%);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--fg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent-primary);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--accent-primary);
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.grad-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--fg-muted);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 20px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

/* About Section */
.section-about {
  background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
}

.about-content {
  max-width: 700px;
}

.about-content p {
  margin-bottom: 16px;
  color: var(--fg-muted);
}

.about-content strong {
  color: var(--fg);
  font-weight: 600;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s;
  cursor: pointer;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.project-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 700;
}

.project-card p {
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-saas { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.tag-tool { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.tag-r-d { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.tag-active { background: rgba(20, 184, 166, 0.2); color: #14b8a6; }
.tag-mvp { background: rgba(251, 146, 60, 0.2); color: #fb923c; }
.tag-experiment { background: rgba(236, 72, 153, 0.2); color: #ec4899; }

.project-tech {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}

/* Tech Stack */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}

.tech-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.tech-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.tech-name {
  font-weight: 600;
  font-size: 14px;
}

/* Contact */
.section-contact {
  background: linear-gradient(180deg, transparent 0%, rgba(20, 184, 166, 0.05) 100%);
}

.contact-inner {
  text-align: center;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.3s;
  display: block;
}

.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.contact-label {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-weight: 600;
  color: var(--accent-primary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-card);
}

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

.footer-left p {
  color: var(--fg-muted);
  margin-top: 8px;
  font-size: 14px;
}

.footer-right p {
  color: var(--fg-muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 42px;
  }

  .section-title {
    font-size: 32px;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .nav {
    gap: 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .projects-grid,
  .tech-grid,
  .contact-options {
    grid-template-columns: 1fr;
  }
}
