@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --text: #ffffff;
  --text-dim: #a0a0a0;
  --accent: #ffffff;
  --glow: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Profile */
.profile-section {
  padding: 120px 0 80px;
  text-align: center;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 60px;
  margin: 0 auto 30px;
  overflow: hidden;
  border: 2px solid var(--surface);
  transition: border-color 0.3s ease;
}

.profile-image:hover {
  border-color: var(--glow);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.location {
  font-size: 18px;
  color: var(--text-dim);
  font-weight: 400;
}

/* Skills */
.skills-section {
  padding: 60px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: -0.01em;
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  background: var(--surface);
  padding: 24px 32px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-item:hover {
  border-color: var(--glow);
  transform: translateY(-2px);
}

.skill-item h3 {
  font-size: 20px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* Projects */
.projects-section {
  padding: 60px 0;
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-item {
  background: var(--surface);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-item:hover {
  border-color: var(--glow);
  transform: translateY(-3px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.project-title {
  font-size: 24px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.project-status {
  background: var(--accent);
  color: var(--bg);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

/* Contact */
.contact-section {
  padding: 60px 0 100px;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  background: var(--surface);
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item:hover {
  border-color: var(--glow);
  transform: translateY(-2px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon img,
.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}

.contact-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info p {
  font-size: 14px;
  color: var(--text-dim);
}

/* Responsive */
@media (min-width: 640px) {
  .container {
    padding: 0 40px;
  }
  
  .profile-image {
    width: 140px;
    height: 140px;
    border-radius: 70px;
  }
  
  .name {
    font-size: 56px;
  }
  
  .skills-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .skill-item {
    flex: 1;
    text-align: center;
  }
  
  .projects-container {
    gap: 32px;
  }
  
  .contact-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .contact-item {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  
  .contact-info h3 {
    margin-bottom: 4px;
  }
}

@media (min-width: 768px) {
  .profile-section {
    padding: 140px 0 100px;
  }
  
  .name {
    font-size: 64px;
  }
  
  .location {
    font-size: 20px;
  }
  
  .section-title {
    font-size: 36px;
  }
}

/* Smooth interactions */
.skill-item,
.project-item,
.contact-item {
  position: relative;
  overflow: hidden;
}

.skill-item::before,
.project-item::before,
.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transition: left 0.5s ease;
}

.skill-item:hover::before,
.project-item:hover::before,
.contact-item:hover::before {
  left: 100%;
}

/* Custom selection */
::selection {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* Focus states */
.skill-item:focus,
.project-item:focus,
.contact-item:focus {
  outline: none;
  border-color: var(--glow);
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}