:root {
  --dark-900: #0a0a0f;
  --dark-800: #12121a;
  --dark-700: #1a1a2e;
  --dark-600: #24243a;
  --accent: #00f0ff;
  --accent-dark: #0099cc;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark-900);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--dark-900);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-900); }
::-webkit-scrollbar-thumb { background: var(--dark-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  letter-spacing: 0.05em;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

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

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent) 0%, transparent 70%);
  opacity: 0.03;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 300px;
  height: 300px;
  background: var(--accent);
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(128px);
}

.hero-glow-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(128px);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.05);
  color: var(--accent);
  font-size: 0.875rem;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero-logo {
  height: 120px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .hero-logo {
    height: 80px;
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 16px;
  height: 32px;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark-900);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  background: transparent;
}

.btn-secondary:hover {
  border-color: rgba(0, 240, 255, 0.5);
  color: var(--accent);
}

.btn-full {
  width: 100%;
}

.hero-techs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

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

.section-alt {
  background: rgba(18, 18, 26, 0.5);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-number {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 0.875rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.terminal-header {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.about-paragraph {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-paragraph-secondary {
  color: var(--text-muted);
}

/* Terminal */
.terminal {
  background: var(--dark-800);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }

.terminal-label {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminal-body p {
  color: var(--text-dim);
}

.c-cyan { color: var(--accent); }
.c-green { color: #4ade80; }
.c-dim { color: var(--text-muted); }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-card {
  padding: 20px;
  border-radius: 12px;
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
}

.skill-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
}

.skill-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.skill-name {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.skill-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--dark-600);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-purple));
  width: 0;
  transition: width 1s ease-out;
}

.skill-card.visible .skill-bar-fill {
  width: var(--level);
}

.skill-percent {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
  display: inline-block;
}

.service-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 8px;
}

.skill-card:hover .skill-name {
  color: var(--accent);
  transition: color 0.3s;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(26, 26, 46, 0.5);
  overflow: hidden;
  transition: all 0.3s;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.project-bar {
  height: 8px;
}

.gradient-1 { background: linear-gradient(90deg, var(--accent), var(--accent-dark)); }
.gradient-2 { background: linear-gradient(90deg, var(--accent-purple), #7c3aed); }
.gradient-3 { background: linear-gradient(90deg, var(--accent-pink), #db2777); }

.project-body {
  padding: 24px;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--dark-600);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Contact */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-desc {
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(0, 240, 255, 0.5);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent);
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.contact-links a:hover {
  color: var(--accent);
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.footer-right {
  display: none;
}

@media (min-width: 640px) {
  .footer-right {
    display: block;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

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

.blink {
  animation: blink 1.2s step-end infinite;
}

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    padding: 8px 0 16px;
    z-index: 49;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    border-left: 2px solid transparent;
    transition: all 0.2s;
  }

  .nav-links a:hover {
    border-left-color: var(--accent);
    background: rgba(0, 240, 255, 0.04);
    padding-left: 28px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .contact-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-techs {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
