:root {
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --text-dim: #a0a0a0;
  --accent: #00d9ff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.navbar {
  background-color: transparent;
  padding: 2rem 0;
  transition: all 0.3s ease;
}

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

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--text);
}

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

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 600;
  color: var(--text);
  min-height: 100px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.typing-text {
  color: var(--accent);
}

.typing-text::after {
  content: "_";
  animation: blink 1s infinite;
}

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

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-dim);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
}

.section-padding {
  padding: 120px 0;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #444;
}

.work-item {
  background: var(--bg);
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  align-items: center;
  gap: 2rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s ease;
  position: relative;
}

.work-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: rgba(0, 217, 255, 0.15);
  transition: width 0.4s ease;
}

.work-item:hover::before {
  width: 100%;
}

.work-item:hover {
  padding-left: 2rem;
}

.work-number {
  font-size: 1.5rem;
  color: var(--text-dim);
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.work-content {
  position: relative;
  z-index: 1;
}

.work-content h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.work-item:hover .work-content h3 {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.work-content p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.work-tags {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.work-arrow {
  color: var(--text-dim);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.work-item:hover .work-arrow {
  color: var(--accent);
  transform: translateX(10px);
}

.contact-content {
  text-align: center;
  padding: 4rem 0;
}

.contact-content h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-link {
  font-size: 1.5rem;
  color: var(--text-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--accent);
  transform: translateX(10px);
}

.contact-link i {
  transition: transform 0.3s ease;
}

.contact-link:hover i {
  transform: translate(5px, -5px);
}

.footer {
  border-top: 1px solid #333;
  padding: 3rem 0;
  text-align: center;
}

.footer p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .navbar .container {
    padding: 0 1rem;
  }

  .section-padding {
    padding: 80px 0;
  }

  .hero-section {
    padding-top: 120px;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .work-item {
    grid-template-columns: 60px 1fr 40px;
    gap: 1rem;
    padding: 2rem 0;
  }

  .work-number {
    font-size: 1rem;
  }

  .work-content h3 {
    font-size: 1.5rem;
  }

  .contact-content h2 {
    font-size: 2.5rem;
  }

  .contact-link {
    font-size: 1.2rem;
  }
}

section {
  scroll-margin-top: 100px;
}
