/* Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: #292f36;
  color: #ffffff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 2rem;
  box-sizing: border-box;
}

/* Navbar */
.navbar {
  align-items: center;
  border-bottom: 2px solid #43454d;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

.nav-list li a:visited,
.nav-list li a:active {
  color: inherit;
  text-decoration: none;
}

.nav-list li a:hover {
  color: #12f7d6;
}

.nav-list li a.active {
  color: #12f7d6;
}

/* Logo */
.logo {
  color: #12f7d6;
  font-size: 1.5rem;
  font-weight: bold;
  padding-left: 3rem;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: #0df1c6;
}

.logo.active {
  text-shadow: 0 0 10px #12f7d6, 0 0 20px #12f7d6;
}

.logo-symbol {
  color: #12f7d6;
  font-size: xx-small;
}

.burger {
  display: none;
}

.second {
  text-align: right;
  padding-right: 8rem;
}

/* Social Sidebar */
.social-sidebar {
  align-items: center;
  background-color: #1a1e23;
  border: 1px solid #ffffff50;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  left: 1rem;
  padding: 1rem;
  position: fixed;
  top: 30%;
  transform: translateY(-50%);
  z-index: 1000;
}

.social-sidebar a {
  color: #ffffff;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-sidebar a:hover {
  color: #12f7d6;
}

/* Header */
header {
  color: #98faec;
  font-size: x-large;
  margin-bottom: 8rem;
  text-align: center;
}

/* Main Content */
#main-content {
  display: flex;
  gap: 1rem;
  margin: 0 auto;
  width: 90%;
}

/* Ribbon / Profile Card */
.ribbon {
  align-items: center;
  background-color: #1a1e23;
  border: 2px solid #ffffff;
  border-radius: 72px 4px;
  box-shadow: 0 0 12px #00000040;
  color: #d1d5db;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-evenly;
  max-width: 280px;
  padding: 2rem 1.5rem;
}

.profile-pic-container {
  border: 3px solid #98faec;
  border-radius: 50%;
  box-shadow: 0 0 8px #98faec50;
  height: 120px;
  overflow: hidden;
  width: 120px;
}

.profile-pic {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ribbon-name h2 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0;
  text-align: center;
}

.ribbon-name p,
.ribbon-role,
.ribbon-org {
  color: #98faec;
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}

.ribbon-role,
.ribbon-org {
  color: #cbd5e1;
}

.resume-button {
  background-color: #98faec;
  border: none;
  border-radius: 24px;
  color: #1a1e23;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.resume-button:hover {
  background-color: #76e6d1;
}

/* Intro Section */
.intro-container {
  flex: 2;
}

#intro,
#blurb {
  padding: 0 1.5rem;
}

#name {
  color: #12f7d6;
}

#blurb {
  font-size: small;
}

#talk {
  color: #12f7d6;
  font-size: 2em;
}

/* Project Stats */
#project-highlights {
  align-items: center;
  background-color: #1a1e23;
  border-radius: 150px;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  height: 400px;
  justify-content: center;
  margin: 0 auto;
  max-width: 400px;
  flex: 1;
}

.project-stats {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.stat-num {
  color: #98faec;
  font-size: 2rem;
  font-weight: bold;
  min-width: 3rem;
  text-align: right;
}

.stat-label {
  color: #43454d;
  font-size: 1rem;
}

/* Contact Page */
#contact {
  background-color: #1a1e23;
  border-radius: 24px;
  box-shadow: 0 0 16px #00000060;
  color: #ffffff;
  margin: 3rem auto 0;
  max-width: 600px;
  padding: 2rem;
}

#contact h2 {
  color: #98faec;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form {
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  background-color: #2a2f36;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  box-sizing: border-box;
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
  max-width: 500px;
  padding: 0.75rem 1rem;
  width: 100%;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background-color: #98faec;
  border: none;
  border-radius: 12px;
  color: #1a1e23;
  cursor: pointer;
  font-weight: bold;
  max-width: 500px;
  padding: 0.75rem 1.5rem;
  transition: background-color 0.3s ease;
  width: 25%;
}

.contact-form button:hover {
  background-color: #7be0d0;
}

#formResponse {
  font-size: 0.95rem;
  margin-top: 1rem;
  text-align: center;
}

/* Projects Page */
#project-section {
  color: #98faec;
  padding: 4rem 1rem;
  text-align: center;
}

.filter-buttons {
  margin-bottom: 2rem;
}

.filter-buttons button {
  background-color: #1a1e23;
  border: 1px solid #98faec;
  border-radius: 8px;
  color: #98faec;
  cursor: pointer;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
}

.carousel {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.arrow {
  background: none;
  border: none;
  color: #98faec;
  cursor: pointer;
  font-size: 2rem;
}

.carousel-item {
  background-color: #1a1e23;
  border-radius: 12px;
  box-shadow: 0 0 10px #00000040;
  padding: 1rem;
  width: 60%;
}

/* About Me Page */
#about-section {
  align-items: stretch;
  display: flex;
  gap: 2rem;
  height: 600px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  padding: 4rem 2rem;
}

.about-left {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}

.about-photo {
  border: 3px solid #98faec;
  border-radius: 12px;
  box-shadow: 0 0 16px #12f7d660;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.about-right {
  background-color: #1a1e23;
  border-radius: 12px;
  box-shadow: 0 0 16px #00000060;
  color: #ffffff;
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  max-height: 600px;
  overflow: hidden;
  padding: 2rem;
}

.about-right h2 {
  color: #98faec;
  flex-shrink: 0;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.about-text {
  flex-grow: 1;
  line-height: 1.6;
  margin-bottom: 1rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-color: #98faec #1a1e23;
  scrollbar-width: thin;
}

.about-text::-webkit-scrollbar {
  width: 6px;
}

.about-text::-webkit-scrollbar-track {
  background: #1a1e23;
}

.about-text::-webkit-scrollbar-thumb {
  background-color: #98faec;
  border-radius: 4px;
}

.resume-button-container {
  flex-shrink: 0;
  text-align: center;
}

/* Project Link */
.project-link {
  align-items: center;
  background-color: #1a1e23;
  border: 1px solid #12f7d650;
  border-radius: 8px;
  color: #12f7d6;
  display: inline-flex;
  font-weight: bold;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.project-link i {
  font-size: 1.1rem;
}

.project-link:hover {
  background-color: #12f7d620;
  box-shadow: 0 2px 8px #12f7d660;
  color: #76e6d1;
  transform: translateY(-2px);
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .navbar {
    align-items: flex-start;
  }

/* Desktop styles (default) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #76e6d1;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; 
    right: 0;
    background-color: #222; 
    width: 100%;
    padding: 1rem;
    text-align: right;
  }

  .nav-list.show {
    display: flex;
  }

  .burger {
    display: block;
  }
}

  #main-content {
    flex-direction: column;
    align-items: center;
  }

  .ribbon {
    max-width: 90%;
    margin-bottom: 2rem;
  }

  .intro-container {
    padding: 0 1rem;
    text-align: center;
  }

  #project-highlights {
    max-width: 90%;
    height: auto;
    padding: 2rem 1rem;
  }

  /* .carousel {
    flex-direction: column;
  } */

  .carousel-item {
    width: 90%;
  }

  #about-section {
    flex-direction: column;
    height: auto;
    padding: 2rem 1rem;
  }

  .about-left,
  .about-right {
    max-width: 100%;
    flex: unset;
    height: auto;
  }
    .social-sidebar {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin: 8rem auto 0;
    width: 100%;
    border-radius: 12px;
  }

  .social-sidebar a {
    margin: 0 1rem;
    font-size: 1.5rem;
  }
}

/* Phone (480px and below) */
@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem;
  }

  .logo {
    font-size: 1.2rem;
    padding-left: 1rem;
  }

  .nav-list {
    gap: 0.5rem;
  }

  header h1 {
    font-size: 1.2rem;
  }

  header {
    margin-top: 8rem;
  }

  .profile-pic-container {
    width: 100px;
    height: 100px;
  }

  .resume-button {
    width: 100%;
    text-align: center;
  }

  #talk {
    font-size: 1.5em;
  }

  .logo-symbol {
    display: none;
}

  .project-stats {
    flex-direction: column;
  }

  .stat-label {
    text-align: center;
  }

  .carousel-item {
    width: 100%;
    padding: 1rem 0.5rem;
  }

  .filter-buttons button {
    margin: 0.25rem 0;
    width: 100%;
  }

  .contact-form button {
    width: 100%;
  }


}

.video-wrapper {
  position: relative;
  width: 100%;
  max-height: 200px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 10px #00000040;
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper img.video-thumb {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.video-wrapper .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #12f7d6;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0.25em 0.5em;
  border-radius: 50%;
  pointer-events: none;
}


