/* ================================
   RESET & BASE
   ================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background-color: #FBF9F1;
}

main{
    margin-top: 80px; /* To prevent content from being hidden behind the fixed header */
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color:#035e6b}
h3 { font-size: 1.5rem;}

p {
  margin-bottom: 1rem;
}

a {
  color: #035e6b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: separate;
  margin-bottom: 1rem;
  margin-bottom: 1rem;
  color: #035e6b;
  font-family: monospace, sans-serif;
  border: 1px solid;
}
table th, table td {
  border: 1px solid #035e6b;
  padding: 16px;
  text-align: left;
}

section h3, section h2 {
  text-align: center;
}

/* ================================
   LAYOUT
   ================================ */

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

.banner{
  background-color: #92C7CF;
  background-size: cover;
  color: #FBF9F1;
  text-align: center;
  position: relative;
}

.banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.project-card {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 16px;
  background-color: #f9f9f9;
  min-width: 172px;
  max-width: 400px;
  flex-shrink: 0
}

.project-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 8px;
}

.carousel {
  margin-top: 16px;
  display: flex;
  overflow-x: hidden;
  gap: 16px;
  padding-bottom: 16px;

}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  transition: transform 0.3s ease;
  scroll-behavior: smooth
}

.skill-category {
  border: 1px solid #dddddd;
  border-radius: 16px;
  padding: 32px;
  background-color: #92C7CF;
  color: #FBF9F1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px;
  align-items: flex-start;
  justify-content: left;

}
.skill-category h3 {
  color: #FBF9F1;
  width: 100%; /* forces the heading onto its own line above the icons */
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 36px;
  width: 90px;
  gap: 4px;
}

.skill-item p {
  font-size: 18px;
  text-align: center;
  margin: 0;
}
.skill-item li {
  font-size: 18px;
  text-align: center;
  margin: 0;
}
.skills-list {
  width: 100%;
  list-style: disc;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  font-size: 1rem;
  color: #FBF9F1;
}

.skills-list li {
  text-align: left;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  margin-top: 16px;
  color: #035e6b;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 24px;
  color: #FBF9F1;
  text-align: center;
  transition: font-size 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
}





/* ================================
   HEADER & NAV
   ================================ */

header {
  background-color: #92C7CF;
  border-bottom: 1px solid #dddddd;
  color: #FBF9F1;
  padding: 16px 0;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;

}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 0 20px;
  position: relative;
}

nav ul li a {
  color: #FBF9F1;
  font-weight: bold;
}

nav ul li a:hover {
  color: #035e6b;
}


/* ================================
   MAIN CONTENT
   ================================ */

main {
  padding: 40px 20px;
}

section {
  scroll-margin-top: 100px;
  margin-bottom: 60px;
}


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

footer {
  background-color: #AAD7D9;
  border-top: 1px solid #dddddd;
  text-align: center;
  padding: 20px;
  font-size: 0.875rem;
  color: #777777;
}


/* ================================
   RESPONSIVE - MOBILE
   ================================ */

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  nav ul {
    flex-direction: column;
    gap: 12px;
  }
}