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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #f9fafb;
  color: #111827;
  line-height: 1.6;
}

/* ================= CONTAINER ================= */

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

/* ================= HEADER ================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

.logo {
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

nav a {
  margin-right: 1.5rem;
  text-decoration: none;
  color: #111827;
  font-weight: 500;
  transition: 0.2s;
}

nav a:hover {
  color: #2563eb;
}

nav button {
  margin-left: 0.5rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 4px;
}

/* ================= HERO ================= */

.hero {
  padding: 5rem 0 4rem 0;
  max-width: 750px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 1.4rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.hero p {
  color: #6b7280;
  font-size: 1.05rem;
}

.buttons {
  margin-top: 2rem;
}

.btn {
  background: #111827;
  color: white;
  padding: 0.8rem 1.4rem;
  text-decoration: none;
  margin-right: 1rem;
  border-radius: 6px;
  transition: 0.3s;
}

.btn:hover {
  background: #1f2937;
}

.btn-outline {
  border: 1px solid #111827;
  padding: 0.8rem 1.4rem;
  text-decoration: none;
  color: #111827;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #111827;
  color: white;
}

/* ================= SECTIONS ================= */

.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 2rem;
}

/* ================= PROJECTS ================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  flex: 1;
}

.card-content h3 {
  margin-bottom: 0.5rem;
}

.card-content p {
  color: #6b7280;
}

.card-links {
  margin-top: 1.2rem;
}

.card-links a {
  display: inline-block;
  margin-right: 0.8rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* ================= EXPERIENCE ================= */

.card {
  background: white;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* ================= SKILLS ================= */

.skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skills-list li {
  background: white;
  padding: 0.8rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

/* ================= CONTACT ================= */

.contact-links a {
  display: inline-block;
  margin-right: 1.5rem;
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
}

.contact-links a:hover {
  text-decoration: underline;
}

/* ================= FOOTER ================= */

.footer {
  text-align: center;
  padding: 3rem 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .container {
    padding: 1.5rem;
  }
}