/* Design System Variables */
:root {
  --background: hsl(0, 0%, 98%);
  --foreground: hsl(220, 15%, 5%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 15%, 5%);
  --primary: hsl(220, 15%, 5%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(220, 10%, 95%);
  --secondary-foreground: hsl(220, 15%, 5%);
  --muted: hsl(220, 10%, 92%);
  --muted-foreground: hsl(220, 8%, 50%);
  --accent: hsl(210, 100%, 50%);
  --accent-foreground: hsl(0, 0%, 98%);
  --border: hsl(220, 15%, 88%);
  
  /* Custom tokens */
  --gradient-primary: linear-gradient(135deg, hsl(210, 100%, 50%), hsl(220, 100%, 60%));
  --gradient-subtle: linear-gradient(180deg, hsl(0, 0%, 100%), hsl(220, 10%, 98%));
  --shadow-soft: 0 4px 20px -4px hsl(220, 15%, 5%, 0.1);
  --shadow-medium: 0 8px 30px -8px hsl(220, 15%, 5%, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius: 0.5rem;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

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

/* Typography */
.text-hero {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
}

.text-display {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.text-headline {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.text-body-large {
  font-size: 1.125rem;
  line-height: 1.7;
}

.text-body {
  font-size: 1rem;
  line-height: 1.7;
}

.text-small {
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .text-hero {
    font-size: 4.5rem;
  }
  
  .text-display {
    font-size: 3rem;
  }
  
  .text-headline {
    font-size: 1.5rem;
  }
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: hsl(220, 15%, 15%);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--secondary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

.icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.tag, .tag-small {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-small {
  padding: 0.1875rem 0.5rem;
  font-size: 0.6875rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsl(0, 0%, 98%, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 900;
}

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

.nav-link {
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background: var(--gradient-subtle);
  background-image: url('src/assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.hero-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

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

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-description strong {
  color: var(--foreground);
}

.hero-description em {
  color: var(--accent);
  font-style: normal;
}

.code-preview {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.code-header {
  background-color: var(--muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

.code-dots span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--muted-foreground);
}

.code-dots span:nth-child(1) { background-color: #ff5f56; }
.code-dots span:nth-child(2) { background-color: #ffbd2e; }
.code-dots span:nth-child(3) { background-color: #27ca3f; }

.code-content {
  padding: 1rem;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.code-line {
  margin-bottom: 0.5rem;
}

.code-keyword { color: #d73a49; }
.code-variable { color: #6f42c1; }
.code-operator { color: #d73a49; }
.code-string { color: #032f62; }
.code-comment { color: #6a737d; }

@media (min-width: 768px) {
  .hero {
    padding: 10rem 0 8rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
}

/* Section Styles */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

/* Featured Project */
.featured-project {
  background: var(--gradient-subtle);
}

.project-card {
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  border: none;
}

.project-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.project-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-actions {
  display: flex;
  gap: 1rem;
}

.project-preview {
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-placeholder {
  text-align: center;
  color: var(--muted-foreground);
}

.preview-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .project-title {
    font-size: 1.5rem;
  }
}

/* About Section */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-content p {
  margin-bottom: 1rem;
}

.about-content strong {
  color: var(--accent);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Skills Section */
.skills {
  background: var(--gradient-subtle);
}

.skills-grid {
  display: grid;
  gap: 2rem;
}

.skill-category {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.category-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.375rem 0.75rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Projects Section */
.projects-categories {
  display: grid;
  gap: 3rem;
}

.category {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card-small {
  padding: 1.5rem;
  background-color: var(--muted);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.project-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.project-tags-small {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.link {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--gradient-subtle);
}

.footer-content {
  max-width: 64rem;
  margin: 0 auto;
}

.footer-cta {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.heart-icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Utilities */
.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-subtle {
  background: var(--gradient-subtle);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-medium {
  box-shadow: var(--shadow-medium);
}

.transition-smooth {
  transition: var(--transition-smooth);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}