/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background: #1e1e2e; /* Catppuccin base */
  color: #cdd6f4; /* Text */
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: #89b4fa; /* Catppuccin blue */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1;
}

/* Header */
header {
  text-align: center;
  padding: 2rem 0;
}
header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
  color: #f5e0dc; /* Catppuccin rosewater */
}
header p {
  font-size: 1.2rem;
  color: #cdd6f4;
}

/* Sections */
section {
  margin-bottom: 3rem;
}
section h2 {
  border-bottom: 3px solid #89b4fa; /* Catppuccin blue */
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #89b4fa;
}

/* Skills */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.skill {
  background: #f2cdcd; /* Catppuccin flamingo */
  color: #1e1e2e; /* base */
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(242, 205, 205, 0.4);
}

/* Projects */
.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project {
  background: #313244; /* Catppuccin mantle */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  padding: 1rem;
  transition: transform 0.2s ease;
}
.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(137, 180, 250, 0.5); /* Catppuccin blue glow */
}
.project h3 {
  margin-bottom: 0.5rem;
  color: #89b4fa;
}
.project p {
  font-size: 0.95rem;
  color: #cdd6f4;
  margin-bottom: 0.8rem;
}
.project a {
  font-weight: 600;
  color: #89b4fa;
}

/* Contact */
form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input, textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #585b70; /* Catppuccin surface2 */
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
  background: #1e1e2e; /* base */
  color: #cdd6f4;
  transition: border-color 0.3s ease;
}
input::placeholder, textarea::placeholder {
  color: #585b70;
}
input:focus, textarea:focus {
  border-color: #89b4fa;
  outline: none;
  background: #313244; /* mantle */
}
button {
  background: #89b4fa;
  color: #1e1e2e;
  border: none;
  padding: 0.75rem;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}
button:hover {
  background: #6c8ed9; /* darker blue */
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  background: #89b4fa;
  color: #1e1e2e;
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  section h2 {
    font-size: 1.5rem;
  }
}

