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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  background: #f4f7fb;
  color: #1B2838;
  overflow-x: hidden;
}

/* ---------------- CONTAINER ---------------- */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

/* ---------------- HEADER / NAV ---------------- */
header {
  background: #2C3E50;
}

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

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

nav a:hover {
  color: #6B9AC4;
}

/* ---------------- MAIN TITLE ---------------- */
main h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 40px;
  font-variant: small-caps;
  letter-spacing: 2px;
}

/* ---------------- SECTION HEADINGS ---------------- */
h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  border-bottom: 3px solid #6B9AC4;
  display: inline-block;
  padding-bottom: 6px;
}

/* ---------------- BIO SECTION ---------------- */
.bio {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.bio img {
  width: 180px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------------- DETAILS GRID ---------------- */
dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 20px;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

dt {
  font-weight: 600;
}

dd {
  margin: 0;
}

/* ---------------- RELATED LINKS ---------------- */
.related-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin-top: 20px;
}

.related-links a {
  padding: 10px 18px;
  background: #2C3E50;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: 0.3s ease;
}

.related-links a:hover {
  background: #6B9AC4;
}

/* ---------------- SKILLS ---------------- */
#skills ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

#skills li {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  font-weight: 500;
}

/* ---------------- EXPERIENCE & EDUCATION ---------------- */
.job,
.certificate {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.job:hover,
.certificate:hover {
  transform: translateY(-4px);
}

.job span,
.certificate span {
  display: block;
  font-size: 0.9rem;
  color: #6c7a89;
  margin-bottom: 5px;
}

.job p {
  margin-top: 10px;
}

/* ---------------- CAROUSEL ---------------- */
.art-carousel {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  list-style: none;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  border-radius: 12px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* ---------------- FOOTER ---------------- */
footer {
  text-align: center;
  padding: 30px 20px;
  background: #2C3E50;
  color: white;
  margin-top: 40px;
}

footer a {
  color: #6B9AC4;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .bio {
    flex-direction: column;
    text-align: center;
  }

  dl {
    grid-template-columns: 1fr;
  }
}