* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter";
}

html {
  scroll-behavior: smooth;
  background-color: rgb(30, 37, 86);
  height: 100%;
}

.boot-screen {
  position: fixed;
  background: url("../images/mac.jpeg") no-repeat center center fixed;
  background-size: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center; /* Align horizontally */
  align-items: center; /* Align vertically */
  z-index: 9999;
}

.boot-text {
  color: #e5e5e5;
  font-size: 3rem;
  display: flex;
}

.letter {
  padding: 2%;
  opacity: 0;
  animation: fadeIn 3s forwards;
}

.letter:nth-child(1) {
  animation-delay: 0s;
}
.letter:nth-child(2) {
  animation-delay: 0.2s;
}
.letter:nth-child(3) {
  animation-delay: 0.4s;
}
.letter:nth-child(4) {
  animation-delay: 0.6s;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hide {
  animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

#intro {
  text-align: center;
  padding-top: 18vh;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile {
  width: 300px;
  height: 300px;
  margin-bottom: 2rem;
}

.profile img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.intro-name {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.intro-subtitle {
  font-size: 1.2rem;
}

body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("../images/mac.jpeg") no-repeat center center;
  background-size: cover;
  background-color: rgb(30, 37, 86);
  z-index: -1;
  will-change: transform;
}

h1,
h2 {
  color: #e5e5e5; /* Off-white for headings */
  font-weight: 600;
}

p {
  color: #b8b5b5;
}

label {
  color: #b8b5b5;
}

a {
  color: #72becf;
}

.social-icons {
  font-size: 2.5rem;
  margin: 0;
  padding: 0;
  padding-bottom: 1%;
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  width: 100%;
}

.social-icons a {
  color: #f4f4f4;
  text-decoration: none;
  padding: 0.6%;
}

.social-icons i {
  transition: transform 0.3s ease;
}

.social-icons i:hover {
  color: #72becf;
  transform: scale(1.3);
}

.resume-btn {
  margin-top: 1rem;
  padding: 12px 28px;
  border-radius: 50px;
  color: #72becf;
  background: rgba(42, 52, 83, 0.3);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(42, 52, 83, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.4s ease;
}

.resume-btn:hover {
  transform: translateY(-1rem);
  background: rgba(42, 52, 83, 0.3);
  border: 1px solid rgba(42, 52, 83, 0.6);
  box-shadow: 0 0 20px rgba(114, 190, 207, 0.4);
  cursor: pointer;
}

.fade-in {
  opacity: 0;
  transform: translateY(4rem);
  transition: opacity 2s ease, transform 2s ease;
}

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

#about-me {
  margin-top: 15%;
  display: flex;
  flex-direction: column;
  padding-left: 25vw;
  padding-right: 25vw;
  margin-bottom: 20%;
}

#about-me h1 {
  font-size: 4rem;
  letter-spacing: -2px;
  text-align: center;
  margin-bottom: 2.5rem;
}

#about-me p {
  font-size: 1.7rem;
  text-align: center;
  padding-top: 2vh;
  line-height: 1.5;
}

#about-me b {
  text-decoration: underline;
}

.cursor {
  font-size: 2rem;
  margin-left: 3px;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.prompt {
  color: #72becf;
}

.terminal {
  background: rgba(42, 52, 83, 0.5);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  border-radius: 1.4rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
  border: 0.3rem solid rgb(54, 52, 65);
  padding: 2rem;
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.terminal-header {
  background-color: rgb(54, 52, 65);
  display: flex;
  padding: 0.5rem 1rem;
  border-top-left-radius: 1.1rem;
  border-top-right-radius: 1.1rem;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.close-btn,
.min-btn,
.max-btn {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.close-btn {
  background-color: #ff5f56;
}

.min-btn {
  background-color: #ffbd2e;
}

.max-btn {
  background-color: #27c93f;
}

.terminal-title {
  font-size: 1rem;
  margin-left: auto;
  margin-right: auto;
  color: #ccc;
  text-align: center;
}

.command {
  color: #fff;
}

#my-skills {
  margin-top: 15%;
  text-align: center;
  padding-left: 0vw;
  padding-right: 0vw;
  margin-bottom: 10%;
  max-width: 900px;
  margin: 0 auto;
}

.skills-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-category {
  margin: 1.5rem;
  margin-top: 2rem;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.skills-card {
  background: rgba(42, 52, 83, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1.4rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(42, 52, 83, 0.6);
  padding: 1rem;
  transition: transform 0.4s ease;
}

.skills-card img {
  width: 8rem;
  height: 8rem;
  margin: 1rem;
  object-fit: contain; /* Ensure image is resized to fit */
}

#my-skills h1 {
  font-size: 4rem;
  text-align: center;
}

.skills-card:hover {
  transform: translateY(-1rem);
  background: rgba(42, 52, 83, 0.5);
  border: 1px solid rgba(42, 52, 83, 0.6);
  box-shadow: 0 0 20px rgba(114, 190, 207, 0.4);
}

#contact-me {
  margin-top: 18%;
}

#contact-me h2 {
  text-align: center;
  font-size: 4rem;
  margin-bottom: 1.3rem;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 20%;
}

.contact-container p {
  font-size: 1.7rem;
  margin: 0 1rem;
  padding-bottom: 15px;
  border-bottom: 2px solid #b8b5b5;
}

.contact-container h3 {
  color: #fff;
  margin-bottom: 0.3rem;
}

.contact-media {
  margin-top: 1.2rem;
}

.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: rgba(29, 30, 39, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 1000;
  animation: fadeIn 2s forwards;
  animation-delay: 2s;
  opacity: 0;
}

.sticky-nav a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: #a8b2d1;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
}

.sticky-nav a:hover {
  color: #72becf;
  transform: translateY(0);
}

.sticky-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: #72becf;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.sticky-nav a:hover::after {
  width: 100%;
}

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

#homelab {
  margin-top: 20%;
  margin-bottom: 20%;
}
#homelab h2 {
  text-align: center;
  font-size: 4rem;
  margin-bottom: 2rem;
}

.wiki-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  max-width: 900px;
  height: 72vh;
  margin: 0 auto;
  background: rgba(42, 52, 83, 0.5);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.4rem;
  box-shadow: 0px 20px 50px rgb(0, 0, 0, 0.7);
  overflow: hidden;
}

.wiki-sidebar {
  background: rgb(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.wiki-sidebar h3 {
  font-size: 0.85rem;
  color: #72becf;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.wiki-sidebar ul {
  list-style: none;
}

.wiki-sidebar li {
  margin-bottom: 0.7rem;
}

.wiki-sidebar a {
  color: #a8b2d1;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  transition: all 0.2s ease;
}

.wiki-sidebar a:hover {
  color: #fff;
  transform: translateX(5px);
  text-shadow: 0 0 8px rgba(114, 190, 207, 0.2);
}

.wiki-content {
  padding: 2.5rem;
  overflow-y: auto;
  text-align: left;
}

.wiki-content b {
  color: white;
}

.wiki-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #27c93f;
  margin-bottom: 2rem;
  font-family: monospace;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 6px #27c93f;
}

.wiki-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

.wiki-content p {
  color: #c0c5d0;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.wiki-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.wiki-image-wrapper {
  text-align: center;
  margin: 2rem 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wiki-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.wiki-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.wiki-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 1rem;
  color: #c0c5d0;
}

.wiki-list li::before {
  content: "•";
  color: #72becf;
  font-weight: bold;
  font-size: 1.2rem;
}

.service-item {
  margin-bottom: 2rem;
}

.service-item h4 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
  border-left: 3px solid #72becf;
  padding-left: 10px;
}

.wiki-divider-subtle {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 2rem 0;
}

/* Mobile */
@media (max-width: 768px) {
  .boot-screen {
    background-attachment: scroll !important;
  }

  .intro-name {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }

  .intro-subtitle {
    font-size: 1.1rem;
    margin: 0 1rem;
  }

  #about-me p {
    font-size: 1.2rem;
    padding-top: 2vh;
  }

  .cursor {
    font-size: 1.4rem;
    margin-left: 3px;
  }

  .wiki-container {
    grid-template-columns: 1fr;
    height: auto;
    margin: 0 1.1rem;
  }

  .wiki-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
  }

  .profile {
    width: 240px;
    height: 240px;
  }

  .profile img {
    width: 240px;
    height: 240px;
  }

  .sticky-nav {
    gap: 0;
    justify-content: space-evenly;
  }
  #about-me h1,
  #my-skills h1,
  #homelab h2,
  #contact-me h2 {
    font-size: 2.7rem;
  }

  .skills-card img {
    width: 7rem;
    height: 7rem;
    margin: 0.8rem;
  }
}

@media (max-width: 1300px) {
  #about-me {
    padding-left: 30px;
    padding-right: 30px;
  }
}
