@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --background: 230 35% 7%;
  --foreground: 0 0% 98%;
  --card: 229 39% 11%;
  --primary: 262 83% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 229 39% 15%;
  --muted: 229 39% 15%;
  --muted-foreground: 0 0% 75%;
  --border: 229 39% 15%;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: hsl(var(--foreground));
  background: linear-gradient(
    to bottom right,
    hsl(230 35% 7%),
    hsl(230 25% 10%),
    hsl(262 35% 12%)
  );
  min-height: 100vh;
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

.glass-card {
  background: hsla(var(--card) / 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    hsla(0, 0%, 100%, 0.05),
    transparent
  );
  transition: 0.5s;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: hsla(var(--primary) / 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.code-text {
  font-family: 'Fira Code', monospace;
  color: hsl(var(--muted-foreground));
  opacity: 0.75;
  padding: 1rem;
}

.gradient-text {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--primary) / 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-section {
  padding: 2rem;
  margin-bottom: 3rem;
}

.hero-content {
  padding: 1rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

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

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.description {
  color: hsl(var(--muted-foreground));
  margin: 1rem 0;
  font-size: 1rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stats-card {
  padding: 1.5rem;
}

.stats-content {
  text-align: center;
  padding: 1rem;
}

.stats-content h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stats-content p {
  color: hsl(var(--muted-foreground));
}

.skills-section {
  padding: 2rem;
  margin-bottom: 3rem;
}

.skills-content {
  padding: 1rem;
}

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

.skill-title {
  color: hsla(var(--primary) / 0.9);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: hsla(var(--secondary) / 0.5);
  color: hsl(var(--foreground));
  backdrop-filter: blur(4px);
  border: 1px solid hsla(0, 0%, 100%, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-tag:hover {
  background: hsla(var(--primary) / 0.2);
  border-color: hsla(var(--primary) / 0.3);
  transform: scale(1.05);
}

.footer {
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-top: 3rem;
}

.icon {
  display: inline-block;
  font-size: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .hero-section,
  .skills-section {
    padding: 1.5rem;
  }

  .gradient-text {
    font-size: 1.5rem;
  }

  .button-group,
  .cta-buttons {
    justify-content: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .skills-groups {
    gap: 1.5rem;
  }

  .footer {
    font-size: 0.75rem;
  }
}
html {
  height: 100%;
  scroll-behavior: smooth;
}

body, html {
  overflow-x: hidden;
  background-color: hsl(230, 35%, 7%);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
}

/* Extra responsiveness */
@media (max-width: 480px) {
  .btn {
    font-size: 0.75rem;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
  }

  .icon {
    width: 1rem;
    height: 1rem;
  }

  .gradient-text {
    font-size: 1.25rem;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
