@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

body {
  font-family: "Nunito", "Open Sans", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 1440 480" preserveAspectRatio="none" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 320 Q360 160 720 320 T1440 320 V480 H0 V320Z" fill="%23228b22" fill-opacity="0.25"/></svg>')
      repeat-x 0 100% / 1440px 50vh,
    url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 1440 480" preserveAspectRatio="none" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 400 Q360 240 720 400 T1440 400 V480 H0 V400Z" fill="%238b4513" fill-opacity="0.25"/></svg>')
      repeat-x 0 100% / 1440px 50vh,
    url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 1440 480" preserveAspectRatio="none" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 240 Q360 480 720 240 T1440 240 V480 H0 V240Z" fill="%23b67a4f" fill-opacity="0.25"/></svg>')
      repeat-x 0 100% / 1440px 50vh;

  background-size: 1440px 50vh;
  background-position: 0 100%;
  animation: waveMove 24s linear infinite;
  background-attachment: fixed;
  will-change: background-position;
}

@keyframes waveMove {
  0% {
    background-position-x: 0, 0, 0;
  }
  100% {
    background-position-x: -1440px, -720px, -360px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", "Open Sans", Arial, sans-serif;
  color: #201e1e;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 8px #f5f5dc88;
  opacity: 0;
  transform: translateY(-30px);
  animation: fadeInDown 1s ease-out 0.2s forwards;
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  color: #201e1e;
  text-decoration: none;

  font-family: "Nunito", "Open Sans", Arial, sans-serif;
  font-weight: 550;
  font-size: 1.1em;
  z-index: 1;
  background: linear-gradient(90deg, #8b45134d 0%, #b67a4f 50%, #965527 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: color 0.2s, text-shadow 0.2s,
    background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s;
  outline: none;
}

.intro-animate a {
  position: relative;
  color: #228b22;
  transition: color 0.2s;
}
.intro-animate a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #b67a4f;
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.intro-animate a:hover::after {
  transform: scaleX(1);
}
.bgBrownBlur {
  margin: 3em;
  padding: 1.5em;
  align-items: center;
  font-size: 1.2em;
  background: #8b45134d;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 69, 19, 0.2);
  border-radius: 8px;
  box-shadow: 0px 8px 24px rgba(139, 69, 19, 0.95),
    0px 0px 8px rgba(139, 69, 19, 0.2) inset;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-animate {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-animate li {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease forwards;
}
.intro-animate li:nth-child(1) {
  animation-delay: 0.3s;
}
.intro-animate li:nth-child(2) {
  animation-delay: 0.5s;
}
.intro-animate li:nth-child(3) {
  animation-delay: 0.7s;
}
.intro-animate li:nth-child(4) {
  animation-delay: 0.9s;
}

.intro-animate a {
  position: relative;
  color: #228b22;
  transition: color 0.2s;
}
.intro-animate a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #b67a4f;
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.intro-animate a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 600px) {
  .bgBrownBlur {
    margin: 1em;
    padding: 1em;
    font-size: 1em;
  }

  .profileSection {
    padding: 0.5em;
    max-width: 98vw;
  }
  .profileImage {
    width: 100px;
    height: 100px;
  }
  h1 {
    font-size: 1.5em;
  }
}

/* Page transition animation */
.page-fade {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-fade.page-fade-in {
  opacity: 1;
}

/* sidebar styles */
.menu-animate a:hover {
  color: #f5f5dc88;
  border-radius: 0 5px 5px 0;
  text-shadow: 0 2px 8px #b67a4f88;
  background-size: 100% 100%;
  transform: translateY(-2px);
  transition: box-shadow 0.25s cubic-bezier(0.4, 2, 0.6, 1),
    transform 0.18s cubic-bezier(0.4, 2, 0.6, 1), background 0.2s;
}
.sidebar-menu {
  width: 220px;
  background: #8b45134d;
  border-right: 1px solid rgba(139, 69, 19, 0.2);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 24px rgba(139, 69, 19, 0.2);
  backdrop-filter: blur(10px);
  position: fixed;
  left: -220px;
  top: 0;
  height: 100%;
  transition: left 0.3s;
  padding-top: 60px;
  z-index: 1000;
}
.sidebar-style {
  color: #201e1e;
  font-weight: 550;
  font-size: 1.1em;
  padding-top: 30px;
}
.sidebar-menu ul {
  list-style: none;
  padding: 0;
}
.sidebar-menu li {
  margin: 20px 0;
}
.sidebar-menu a {
  text-decoration: none;
  padding: 10px 30px;
  display: block;
}
#sidebar.active .sidebar-menu,
.sidebar-menu.active {
  left: 0;
}
#openSidebar {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
}

#sidebar {
  transition: left 0.3s;
  position: fixed;
  left: -220px;
  top: 0;
  height: 100%;
  width: 220px;
  z-index: 1000;
}
#sidebar.active {
  left: 0;
}

#openSidebar,
.sidebar-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  width: 56px;
  height: 56px;
  background-image: linear-gradient(
      135deg,
      rgba(34, 139, 34, 0.18) 0%,
      rgba(139, 69, 19, 0.12) 100%
    ),
    url("../images/logo/icon.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(34, 139, 34, 0.18),
    0 2px 8px rgba(139, 69, 19, 0.18);
  cursor: pointer;
  transition: box-shadow 0.25s cubic-bezier(0.4, 2, 0.6, 1),
    transform 0.18s cubic-bezier(0.4, 2, 0.6, 1), background 0.2s;
  font-size: 2rem;
  outline: none;
  color: transparent;
  background-color: transparent;
}

#openSidebar .icon {
  display: none;
}

@media (max-width: 600px) {
  #openSidebar {
    width: 44px;
    height: 44px;
    top: 12px;
    left: 12px;
  }
}
#openSidebar:hover,
#openSidebar:focus {
  box-shadow: 0 0 0 4px #8b451333, 0 8px 32px #8b451355,
    0 2px 800px rgba(34, 139, 34, 0.22);
  transform: scale(1.08) rotate(-3deg);
  outline: none;
}

#openSidebar .icon {
  font-size: 2rem;
  line-height: 1;
  display: flex;
}

@media (max-width: 600px) {
  #openSidebar {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    top: 12px;
    left: 12px;
  }
}
.sidebar-menu #closeSidebar {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #8b4513;
  font-size: 2rem;
  cursor: pointer;
}

/* index.html styles */
/* image styles profile image */

.profileImage {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.2);
  margin-bottom: 1em;
  border: 4px solid #b67a4f;
  box-shadow: 0 4px 16px rgba(34, 139, 34, 0.18),
    0 2px 8px rgba(139, 69, 19, 0.18);
  cursor: pointer;
  transition: box-shadow 0.25s cubic-bezier(0.4, 2, 0.6, 1),
    transform 0.18s cubic-bezier(0.4, 2, 0.6, 1), background 0.2s;
}
.profileImage:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px 4px #228b22aa;
  border-color: #b67a4f;
}

.profileSection {
  text-align: center;
  max-width: 600px;
  padding: 1.5em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
  margin: 0 auto;
}

.profileSection,
p {
  font-family: "Nunito", "Open Sans", Arial, sans-serif;
  font-size: 1.2em;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 600px;
  padding: 1em;
  color: black; /* earthy brown text */
}

/* contact.html styles */
.contactLogo {
  width: 2em;
  height: 2em;
  max-width: 40px;
  max-height: 40px;
  vertical-align: middle;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.5em;
  box-shadow: 0 2px 8px rgba(34, 139, 34, 0.08);
  transition: transform 0.2s;
  border: 2px solid #228b22;
}
.contactLogo:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(34, 139, 34, 0.15);
}

/* about.html styles */
.eduList {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.schoolLogo {
  width: 2em;
  height: 2em;
  max-width: 40px;
  max-height: 40px;
  vertical-align: middle;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.5em;
  box-shadow: 0 2px 8px rgba(34, 139, 34, 0.08);
  transition: transform 0.2s;
  display: inline-block;
}

.skillsAndEduc {
  display: flex;
  gap: 3em;
  column-gap: 4em;
  row-gap: 0;
  color: black;
}

.eduSkillColumn {
  display: flex;
  flex-direction: column;
}

.eduSkillColumn:first-child {
  flex: 1 1 0;
  min-width: 250px;
  max-width: 400px;
}

.eduSkillColumn:last-child {
  flex: 0 0 20%;
  min-width: 180px;
  max-width: 220px;
}

@media (max-width: 900px) {
  .skillsAndEduc {
    flex-direction: column;
    gap: 1em;
    align-items: center;
  }
  .eduSkillColumn,
  .eduSkillColumn:last-child {
    max-width: 98vw;
    width: 100%;
    flex: 1 1 100%;
  }
}

/* Contant.html styles */
.contactList {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.contactList li {
  align-items: center;
  padding: 0.5em;
}
.contactList p {
  margin: 0;
  font-size: 1.2em;
  line-height: 1.4;
  text-align: center;
}

/* cetificates.html styles */
#card-list-container {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  max-width: 800px;
  gap: 1.5em;
  width: 100%;
  transition: gap 0.2s;
  margin: 2em auto;
  padding: 0 1em;
  will-change: transform;
  transform-origin: center;
  transform: translateY(0);
  animation: fadeInUp 1s ease-out 0.5s forwards;
  opacity: 0;
  overflow: visible;
}

.card {
  background: #f5f5dc88;
  border-radius: 8px;
  box-shadow: 0 2px 8px #b67a4f22;
  padding: 0.8em 0.6em;
  border: 1px solid #b67a4f22;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
  width: fit-content;
  min-height: 200px;
  max-width: 220px;
  transition: box-shadow 0.2s, transform 0.2s;
  will-change: transform;
  transform-origin: center;
  position: relative;
}

.card-img {
  width: 100%;
  max-width: 120px;
  max-height: 100px;
  transition: transform 0.2s;
  border-radius: 6px;
  margin-bottom: 0.3em;
  box-shadow: 0 1px 4px #b67a4f22;
  object-fit: cover;
  transition: transform 0.2s;
  will-change: transform;
  transform-origin: center;
  cursor: pointer;
  background: linear-gradient(90deg, #8b45134d 0%, #b67a4f 50%, #965527 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 2px 8px #b67a4f44, 0 2px 8px #228b2244;
}

.card strong {
  font-size: 1em;
  text-align: center;
  color: #201e1e;
  text-shadow: 0 1px 4px #b67a4f88;
  margin: 0.2em 0;
  padding: 0.2em 0.4em;
  background: linear-gradient(90deg, #8b45134d 0%, #b67a4f 50%, #965527 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: color 0.2s, text-shadow 0.2s,
    background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s;
  outline: none;
  text-decoration: none;
  font-weight: 600;
}

.card p {
  opacity: 0;
  max-height: 0;
  font-size: 0.95em;
  transition: opacity 0.2s, max-height 0.2s;
  overflow: hidden;
  margin: 0;
  text-align: center;
  padding: 0 0.2em;
  color: #201e1e;
  font-weight: 400;
  text-shadow: 0 1px 4px #b67a4f88;
  background: linear-gradient(90deg, #8b45134d 0%, #b67a4f 50%, #965527 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: color 0.2s, text-shadow 0.2s,
    background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s;
  outline: none;
  cursor: pointer;
  font-weight: 400;
  text-decoration: none;
}

.card:hover,
.card:focus-within {
  transform: scale(1.5);
  box-shadow: 0 4px 16px #b67a4f44, 0 2px 8px #228b2244;
  background-color: rgb(245, 245, 220);
  background-size: 100% 100%;
  z-index: 2;
}

.card:hover p,
.card:focus-within p {
  opacity: 1;
  max-height: 100px;
  margin-top: 0.3em;
}

.card:hover .card-img:hover,
.card:focus-within .card-img:hover {
  transform: scale(2.25);
  transition: transform 0.2s;
  z-index: 3;
  max-height: fit-content;
}

@media (max-width: 900px) {
  .card-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    max-width: 800px;
    gap: 1.5em;
  }
  .card {
    max-width: 98vw;
    width: 100%;
    min-height: 200px;
    flex: 1 1 220px;
    margin: 0 auto;
    padding: 0.8em 0.6em;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    transition: box-shadow 0.2s, transform 0.2s;
    will-change: transform;
    transform-origin: center;
    position: relative;
  }
  .card-img {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 0.3em;
    box-shadow: 0 1px 4px #b67a4f22;
    object-fit: cover;
    transition: transform 0.2s;
    will-change: transform;
    transform-origin: center;
    cursor: pointer;
  }
}
@media (max-width: 600px) {
  .card-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    gap: 1.5em;
    padding: 0 1em;
  }
  .card {
    max-width: 100%;
    min-height: 200px;
    flex: 1 1 220px;
    padding: 0.8em 0.6em;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    transition: box-shadow 0.2s, transform 0.2s;
    will-change: transform;
    transform-origin: center;
    position: relative;
  }
}
