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

html {
  scroll-behavior: smooth;
}

/* Base */
body {
  font-family: 'Inter', sans-serif;
  background: #f4f6f9;
  color: #333;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
}

/* Header */
header {
  background: linear-gradient(135deg, #1f2937, #111827);
  color: white;
  text-align: center;
  padding: 70px 20px;
}

header h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 10px;
}

header p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  opacity: 0.9;
}

/* Navigation */
nav {
  background: #111827;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #60a5fa;
}

/* Section wrappers */
.section-wrapper {
  width: 100%;
}

.section-wrapper:nth-of-type(even) {
  background: #ffffff;
}

.section-wrapper:nth-of-type(odd) {
  background: #f9fafb;
}

/* Sections */
section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  margin-bottom: 35px;
  font-size: 2rem;
}

section h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: #60a5fa;
  margin: 12px auto 0;
}

section p {
  max-width: 700px;
  margin: 0 auto 18px;
  text-align: center;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* About */
#about {
  padding-bottom: 40px;
}

#about h3 {
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
}

/* Home hobby list */
#home {
  padding-bottom: 40px;
}

#home h3 {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 10px;
}

#hobby-benefits-list {
  max-width: 500px;
  margin: 15px auto 10px;
  padding-left: 20px;
  list-style: none;
  counter-reset: hobby-counter;
}

#hobby-benefits-list li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.95rem;
  counter-increment: hobby-counter;
  text-align: left;
}

#hobby-benefits-list li::before {
  content: counter(hobby-counter) ".";
  font-weight: 600;
  min-width: 20px;
  margin-right: 8px;
  color: #1f2937;
  flex-shrink: 0;
  text-align: right;
}

.home-hobby-input {
  max-width: 400px;
  margin: 10px auto 20px;
  justify-content: center;
}

.item-text {
  flex: 1;
}

.card-input {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.card-input input {
  flex: 1;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.85rem;
}

.card-input button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #1f2937;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.card-input button:hover {
  background: #60a5fa;
}

/* Delete button */
.delete-btn {
  cursor: pointer;
  color: #999;
  margin-left: 10px;
  transition: color 0.2s ease;
  background: none;
  border: none;
  font-size: inherit;
  padding: 0;
}

.delete-btn:hover {
  color: #e11d48;
}

/* Projects */
.projects-container {
  display: grid;
  text-align: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.project-card a {
  margin-top: 12px;
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
}

.project-card a:hover {
  text-decoration: underline;
}

/* Contact */
form {
  max-width: 680px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

form input,
form textarea {
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 6px rgba(96,165,250,0.4);
}

form button {
  padding: 12px;
  background: #1f2937;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #60a5fa;
}

.form-message {
  margin-top: 15px;
  text-align: center;
  font-weight: 500;
}

/* Footer */
footer {
  background: #111827;
  color: white;
  padding: 50px 20px;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.social-links {
  margin: 20px 0;
}

.social-links a {
  color: #60a5fa;
  margin: 0 15px;
  text-decoration: none;
}

.social-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 30px auto 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 40px 20px;
  }

  nav ul {
    gap: 15px;
  }

  section {
    padding: 50px 16px;
  }

  section h2 {
    font-size: 1.6rem;
  }

  #hobby-benefits-list {
    max-width: 100%;
  }

  .home-hobby-input {
    max-width: 100%;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  form {
    padding: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }
}