body {
  background-color: lightblue;
  text-align: center;
  margin: 0;
}
hr {
  border: 2px solid #162d40;
  width: 90%;
  margin: 20px auto;
}
h1 {
  color: rgb(26, 26, 85);
  font-size: 55px;
  margin: 0;
}
h2 {
  color: #06215a;
  font-size: 30px;
  padding-top: 30px;
}
h3 {
  padding-top: 30px;
  color: #253e75;
}
p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  width: 75%;
  margin: 0 auto;
}

#page-title {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

/* Header layout */
.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 20px 0;
}

.name-contact {
  text-align: center;
}
.name-contact h1 {
  line-height: 1.1;
  margin-bottom: 10px;
}
.name-contact p {
  width: 100%;
  margin: 0;
}

.header-links {
  display: flex;
  justify-content: center;
  column-gap: 10px;
  margin: 8px 0 12px;
  font-size: 20pt;
}

.header-links a {
  color: #324b63;
  text-decoration: none;
  font-weight: bold;
}

.header-links a:hover {
  color: #010303;
  text-decoration: wavy underline;
}

#adriana {
  width: 200px;
  height: auto;
  border-radius: 15px;
  box-shadow: 6px 4px 8px rgba(0, 0, 0, 0.342);
  margin: 0;
}
iframe {
  border: 3px solid #6492a0;
  border-radius: 15px;
  box-shadow: 6px 4px 8px rgba(0, 0, 0, 0.342);
  margin: 20px 0;
  max-width: 80%;
  height: 400px;
}

/* ----------------Navbar---------------- */
nav {
  position: sticky;
  top: 0;
  background-color: rgb(74, 104, 114);
  border-radius: 15px;
  margin: 20px;
  padding: 15px;
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
nav a {
  margin: 0 30px;
  text-decoration: none;
  color: rgb(254, 254, 254);
}
nav a:hover {
  color: #aee1f0;
  text-decoration: underline;
  text-decoration-style: wavy;
}
#home {
  font-weight: bolder;
  margin-right: auto;
  font-size: 1.7em;
}

/* ----------------Animations---------------- */
/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delay for cards */
.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }
.card:nth-child(4) { transition-delay: 0.4s; }

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: rgb(74, 104, 114);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #aee1f0;
  color: #162d40;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ----------------Sidebar---------------- */
/* Sidebar menu button */
nav svg {
  fill: rgb(214, 224, 237);
}
/* Sidebar checkbox */
#sidebar-active {
  display: none;
}
/* Sidebar sections */
.sidebar-sections {
  display: flex;
  flex-direction: row;
  align-items: center;
}
/* Sidebar toggle button */
.open-sidebar,
.close-sidebar {
  display: none;
}
/* Sidebar overlay */
#overlay {
  display: none;
}
.close-sidebar {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  z-index: 11;
}
/* Sidebar behavior for smaller screens */
@media (max-width: 1030px) {
  .sidebar-sections {
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    z-index: 10;
    width: 300px;
    height: 100%;
    background-color: rgba(5, 44, 59, 0.932);
    box-shadow: -5px 0 5px rgba(0, 0, 0, 0.5);
    transition: 0.55s ease-out;
    padding-top: 65px;
    padding-left: 15px;
  }

  /* Stack sidebar links vertically */
  .sidebar-sections a {
    display: block;
    margin: 20px 0;
    padding: 10px;
    width: 100%;
  }

  /* Show sidebar when active */
  #sidebar-active:checked ~ .sidebar-sections {
    right: 0;
  }

  /* Overlay for sidebar */
  #sidebar-active:checked ~ #overlay {
    display: block;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
    background-color: rgba(0, 0, 0, 0.5);
  }

  /* Show the sidebar toggle button */
  .open-sidebar {
    display: block;
  }
  /* Show the close button when the sidebar is active */
  .close-sidebar {
    display: block;
    color: #eee;
  }
}

/* Mobile responsiveness for header */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .header-links {
    flex-wrap: wrap;
    gap: 5px;
    font-size: 18pt;
  }

  #adriana {
    width: 150px;
  }
}

/* Table styling: education section */
table,
th,
td {
  padding: 10px;
  border: 1px solid black;
  border-radius: 5px;
  background-color: #e5edfa;
}
th {
  background-color: #6492a0;
  color: white;
  padding: 10px;
}
table {
  width: 80%;
  border: 3px solid black;
  background-color: #81a4b9;
  margin: 0 auto;
}

#certifications {
  margin: 20px auto;
  padding: 15px;
  max-width: 800px;
}

/* Skills section styling */
.skills ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
  max-width: 800px;
}

.skills li {
  display: inline-block;
  background-color: #e5edfa;
  border: 2px solid #6492a0;
  border-radius: 15px;
  padding: 8px 15px;
  margin: 3px;
  font-size: 14pt;
  color: #06215a;
  font-weight: bold;
  transition: all 0.3s ease;
}

.skills a {
  color: #06215a;
  text-decoration: none;
  font-weight: bold;
}
.skills a:hover {
  color: #06215a;
  text-decoration: wavy underline;
  font-weight: bold;
}

/* Card layout for projects */
.card {
  max-width: 75%;
  width: 700px;
  margin: 20px auto;
  padding: 20px;
  border: 2px solid #6492a0;
  border-radius: 10px;
  background-color: #e5edfa;
}
.card h3 {
  color: #06215a;
  margin: 0px;
  font-size: 1.8em;
  text-align: center;
}
.card-content {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-direction: column;
}
.card img {
  max-width: 70%;
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 6px 4px 8px rgba(0, 0, 0, 0.342);
  width: auto;
  height: auto;
  flex-shrink: 0;
}
.card a {
  color: #06215a;
  text-decoration: none;
  font-weight: bold;
}
.card-info {
  flex: 1;
  text-align: center;
}

/* Article styling */
article {
  padding-bottom: 30px;
  border-radius: 10px;
}
article p {
  text-align: left;
  margin: 15px auto;
  line-height: 1.6;
}

/* Single image layout */
.projectimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 20px;
  padding: 15px;
}
.projectimg img {
  border-radius: 10px;
  box-shadow: 6px 4px 8px rgba(0, 0, 0, 0.342);
  max-height: 500px;
  max-width: 90%;
  flex-shrink: 0;
}
.projectimg figcaption {
  font-size: small;
  color: rgb(71, 71, 71);
  margin-top: 10px;
}

/* side-by-side images layout */
.togetherimgs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.togetherimgs > div {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.togetherimgs img {
  max-height: 500px;
  width: auto;
  margin: 0;
}

/* Project link styling */
.projectlink {
  margin: 20px;
  padding: 15px;
}
.projectlink a {
  font-size: 1.3em;
  color: #06215a;
  background-color: #f9fbff;
  text-decoration: underline;
  font-weight: bold;
}

.project-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin: 70px auto 30px;
    padding: 0 20px;
}

.project-nav-btn {
    background-color: #074c61;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
}

.project-nav-btn:hover {
    background-color: #0d879c;
    transform: translateY(-2px);
}

.project-nav-btn.disabled {
    background-color: #bcbcc4;
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}


/* Footer styling */
footer {
  background-color: rgb(5, 5, 5);
  padding: 25px;
  margin-top: 120px;
  text-align: center;
  font-size: 15px;
  color: gray;
}
footer p {
  font-size: small;
  padding: 5px;
}
footer a {
  color: gray;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
}

/* Under Construction Warning */
.construction-warning {
  overflow: hidden;
  white-space: nowrap;
  background-color: #ffd700;
  padding: 10px 0;
  font-weight: bold;
  color: #000;
}

.warning-content {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

