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

/* Body and font */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9fafb;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container for main content */
main {
  flex: 1;
  max-width: 900px;
  margin: 2rem auto 3rem auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: #005f73;
  color: #e0fbfc;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.4rem;
  letter-spacing: 1.5px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

nav a {
  color: #caf0f8;
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a:focus {
  background-color: #94d2bd;
  color: #003533;
}

/* Section headings */
section h2 {
  font-size: 1.9rem;
  color: #0a9396;
  margin-bottom: 1rem;
  border-bottom: 2px solid #94d2bd;
  padding-bottom: 0.3rem;
}

/* Lists */
ul, ol {
  margin-left: 1.2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.6rem;
}

/* Paragraph */
p {
  margin-bottom: 1.2rem;
}

/* Skill icons container */
.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.7rem 0 1.5rem 0;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  font-size: 0.9rem;
  color: #555;
}

.skill-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.3rem;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.1));
}

/* Project list bold titles */
#projects li b {
  color: #005f73;
}

/* Contact links */
#contact a {
  color: #0077b6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

#contact a:hover,
#contact a:focus {
  color: #023e8a;
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #005f73;
  color: #e0fbfc;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  box-shadow: 0 -2px 5px rgb(0 0 0 / 0.1);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }

  nav {
    gap: 0.8rem;
  }

  .skill-item {
    width: 60px;
    font-size: 0.8rem;
  }

  .skill-item img {
    width: 40px;
    height: 40px;
  }
}
