body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0a192f;
  color: #ccd6f6;
  overflow-x: hidden;
}

.intro {
  text-align: left;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.fade-in-up, .fade-in-down {
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.fade-out-up {
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0 !important;
  transform: translateY(-100vh) !important;
}

.fade-out-down {
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0 !important;
  transform: translateY(100vh) !important;
}

.pre-fade-in-up {
  opacity: 0 !important;
  transform: translateY(100vh) !important;
}
.pre-fade-in-down {
  opacity: 0 !important;
  transform: translateY(-100vh) !important;
}


.greeting {
  color: #64ffda;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.name {
  font-size: 3rem;
  color: #ffffff;
  margin: 0;
}

.tagline {
  font-size: 2.2rem;
  color: #8892b0;
  margin-top: 0.5rem;
}

.description {
  margin-top: 1rem;
  font-size: 1rem;
  color: #a8b2d1;
  max-width: 450px;
}

.cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #64ffda;
  color: #64ffda;
  text-decoration: none;
  border-radius: 4px;
  z-index: 999;
}


.button:hover {
  background-color: #64ffda;
  color: #0a192f;
}

.content-container {
  position: absolute;
  top: 0;
  left: 270px; /* Sidebar width */
  width: calc(100vw - 270px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  background: transparent;
}


.content-container:empty {
  pointer-events: none;
}
.content-container:not(:empty) {
  pointer-events: auto;
}

.portfolio-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  box-sizing: border-box;
  padding-top: 0;
}

.left-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 200px;
  background-color: #1e2a47;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 0 16px 0 rgba(10,25,47,0.15);
  z-index: 100;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1), opacity 0.4s;
  pointer-events: none;
}

.left-panel.sidebar-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.side-name {
  color: #ffffff;
  font-size: 1.5rem;
  text-align: center;
  margin: 0;
}

.social-icons {
  margin-top: 1rem;
}

.home-btn {
  display: inline-block;
  margin-bottom: 2rem;
  border: 1px solid #64ffda;
  color: #64ffda;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  background-color: transparent;
  text-align: center;
}

.home-btn:hover {
  background-color: #64ffda;
  color: #0a192f;
}


.social-icons a {
  color: #fff;
  margin: 0 1rem;
  font-size: 1.5rem;
}

.social-icons a:hover {
  color: #007acc;
}

.bookmark-nav {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bookmark-nav a {
  color: #64ffda;
  text-decoration: none;
  font-size: 1rem;
  scroll-behavior: smooth;
}

.bookmark-nav a:hover {
  color: #ffffff;
}

h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.navwrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  align-items: stretch;
}

.navbutton {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: #112240;
  color: #64ffda;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 8px 0 rgba(100,255,218,0.07);
  transition: 
    background 0.2s, 
    color 0.2s, 
    transform 0.15s,
    border-left 0.2s;
  cursor: pointer;
  outline: none;
  border-left: 4px solid transparent;
}

.navbutton:hover, .navbutton:focus {
  background: #1a2d4a;
  color: #a8ffea;
  transform: translateY(-2px) scale(1.03);
}

.navbutton i {
  font-size: 1.2rem;
  color: #64ffda;
  transition: color 0.2s;
}

.navbutton:hover i, .navbutton:focus i {
  color: #a8ffea;
}

.navbutton.active {
  background: #1a2d4a;
  color: #64ffda;
  font-weight: 700;
  border-left: 4px solid #64ffda;
  box-shadow: 0 4px 16px 0 rgba(100,255,218,0.08);
}

.navbutton.active i {
  color: #64ffda;
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
    padding: 0 1rem;
  }

  .intro {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .name {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.5rem;
  }

  .description {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .content-container {
    left: 0;
    width: 100vw;
    padding: 1rem;
  }

  .portfolio-container {
    padding: 1rem 0;
  }

  .profile-pic {
    width: 80px;
    height: 80px;
  }

  .side-name {
    font-size: 1.2rem;
  }

  .bookmark-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .bookmark-nav a {
    font-size: 0.9rem;
  }

  .navbutton {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 1250px) {
  .left-panel {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem;
    z-index: 1;
  }

  .content-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 0;
    margin-top: 0;
    min-height: auto;
  }

  .portfolio-content {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
  }

  .portfolio-container {
    padding: 0;
    margin: 0;
  }

  body, html {
    margin-top: 0;
    padding-top: 0;
  }
}

.playground-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  box-sizing: border-box;
  padding-top: 0;
}