/* GENERAL */

@font-face {
  font-family: 'Poppins';
  src: url('./assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('./assets/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('./assets/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('./assets/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  position: relative;
  background: #ffffff;
}

.gold-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: #ffffff;
}

.gold-background::before {
  display: none;
}

.gold-background::after {
  display: none;
}

.orb--gold {
  display: none;
}

@keyframes borderGlow {
  0% {
    background-size: 100% 2.5%, 100% 2.5%, 2.5% 100%, 2.5% 100%, 100% 100%;
  }
  50% {
    background-size: 100% 3.5%, 100% 3.5%, 3.5% 100%, 3.5% 100%, 100% 100%;
  }
  100% {
    background-size: 100% 3%, 100% 3%, 3% 100%, 3% 100%, 100% 100%;
  }
}

@keyframes borderPulse {
  0% {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), inset 0 0 20px rgba(255, 215, 0, 0.1);
  }
  50% {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4), inset 0 0 40px rgba(255, 215, 0, 0.2);
  }
  100% {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), inset 0 0 20px rgba(255, 215, 0, 0.1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(-50%, -55%, 0) scale(1);
  }
  33% {
    transform: translate3d(calc(-50% + 12%), calc(-55% - 6%), 0) scale(1.1);
  }
  66% {
    transform: translate3d(calc(-50% - 8%), calc(-55% + 10%), 0) scale(0.95);
  }
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-between;
  align-items: center;
  height: 12vh;
  position: relative;
  z-index: 1;
  padding: 0 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Explicit base styles for desktop nav - visible by default */
#desktop-nav {
  display: flex;
}

.nav-links {
  gap: 1.5rem;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 400;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
  position: relative;
  z-index: 10001;
  justify-content: space-between;
  align-items: center;
  height: 12vh;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

#hamburger-nav .logo {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex: 1;
}

.hamburger-menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
  padding: 4px;
  z-index: 10002;
}

.hamburger-icon span {
  width: 100%;
  height: 3px;
  background-color: black;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  display: block;
}

.menu-links {
  position: fixed;
  top: 12vh;
  right: 0;
  background-color: white;
  width: 100%;
  max-width: 300px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 10000;
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 0 8px;
  padding: 0;
  margin: 0;
}

/* Backdrop overlay when menu is open */
body.menu-open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

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

.menu-links a {
  display: block;
  padding: 14px 20px;
  text-align: left;
  font-size: 1rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-links a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

.menu-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-links li:last-child a {
  border-bottom: none;
}

.menu-links.open {
  max-height: 80vh;
  overflow-y: auto;
  padding: 0.5rem 0;
}


.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 5rem;
  box-sizing: border-box;
  min-height: fit-content;
  position: relative;
  z-index: 1;
  display: none;
  overflow-x: hidden;
}

section.active {
  display: block;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: none;
  justify-content: center;
  gap: 3rem;
  height: 50vh;
  padding-top: 2vh;
}

#profile.active {
  display: flex;
}

/* Normal size when About page is active */
#profile.full-size {
  gap: 5rem;
  height: 80vh;
  padding-top: 4vh;
}

#profile.full-size .section__pic-container {
  height: 400px;
  width: 400px;
}

#profile.full-size .title {
  font-size: 3rem;
}

#profile.full-size .section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

#profile.full-size .section__text__p1 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.section__pic-container {
  display: flex;
  height: 250px;
  width: 250px;
  margin: auto 0;
}

#profile .section__pic-container {
  height: 200px;
  width: 200px;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  color: rgb(85,85,85);
  text-align: center;
}

#profile .section__text__p1 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

#profile .section__text__p2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#profile .title {
  font-size: 2rem;
}

#profile #socials-container {
  margin-top: 0.5rem;
}

#profile .btn-container {
  margin-bottom: 0.5rem;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  margin: 0.5rem 0;
}

.btn {
  font-weight: 500;
  transition: all 300ms ease;
  padding: 0.4rem 0.7rem;
  width: auto;
  min-width: auto;
  max-width: 100%;
  border-radius: 1rem;
  font-size: 0.7rem;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.3;
  text-align: center;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.08rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-containers .details-container {
  flex: 0 1 auto;
  height: fit-content;
  align-self: flex-start;
}

.text-container {
  max-width: 100%;
  width: 100%;
  margin: 2rem auto 0 auto;
  text-align: justify;
  padding: 0 1rem;
}

.text-container p {
  text-align: justify;
  line-height: 1.6;
}

.section__pic-container .about-me-pic {
  border-radius: 3rem;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: top;
}

.arrow {
  display: block;
  position: static;
  margin: 2rem auto 0 auto;
  width: 40px;
  height: auto;
  cursor: pointer;
}

.details-container {
  padding: 0.5rem;
  flex: 1;
  background: white;
  border-radius: 0.75rem;
  border: rgb(53, 53, 53) 0.08rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 380px;
  width: 250px;
  margin: auto 0;
}

.details-container.color-container {
  flex: 1 1 200px;
  max-width: 260px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Research section - boxes fit content like awards page */
#research .experience-details-container {
  max-width: 1200px;
  margin: 0 auto;
}

#research .about-containers {
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
}

#research .details-container.color-container {
  min-height: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 1 auto;
  max-width: 400px;
  width: auto;
  padding: 1rem 1.25rem;
  text-align: left;
}

#research .details-container.color-container h2 {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
  text-align: left;
  font-size: 1.1rem;
}

#research .details-container.color-container p {
  flex: 0;
  margin: 0;
  text-align: left;
  line-height: 1.5;
}

#research .details-container.color-container .btn-container {
  flex-shrink: 0;
  margin-top: 0.75rem;
  justify-content: center;
}

/* Spotlight Scrolling Animation */
.spotlight-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

.spotlight-scroll-wrapper {
  display: flex;
  width: fit-content;
  animation: scroll-right-to-left 40s linear infinite;
}

.spotlight-scroll-content {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
}

.spotlight-scroll-content img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.spotlight-scroll-content img:hover {
  transform: scale(1.05);
}

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

/* Pause on hover */
.spotlight-scroll-container:hover .spotlight-scroll-wrapper {
  animation-play-state: paused;
}

/* Touch-friendly scrolling on mobile */
@media (hover: none) {
  .spotlight-scroll-container:hover .spotlight-scroll-wrapper,
  .videos-scroll-container:hover .videos-scroll-wrapper,
  .images-scroll-container:hover .images-scroll-wrapper {
    animation-play-state: running;
  }
}

/* Videos Scrolling Animation */
.videos-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

.videos-scroll-wrapper {
  display: flex;
  width: fit-content;
  animation: scroll-right-to-left 35s linear infinite;
  will-change: transform;
}

.videos-scroll-content {
  display: flex;
  gap: 2rem;
  padding: 0 1rem;
  align-items: center;
}

.videos-scroll-content > div {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.videos-scroll-content video {
  width: 400px !important;
  height: 300px !important;
  min-width: 400px;
  max-width: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  display: block;
}

.videos-scroll-content video:hover {
  transform: scale(1.05);
}

.videos-scroll-container:hover .videos-scroll-wrapper {
  animation-play-state: paused;
}

/* Images Scrolling Animation */
.images-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

.images-scroll-wrapper {
  display: flex;
  width: fit-content;
  animation: scroll-right-to-left 45s linear infinite;
}

.images-scroll-content {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
}

.images-scroll-content img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.images-scroll-content img:hover {
  transform: scale(1.05);
}

.images-scroll-container:hover .images-scroll-wrapper {
  animation-play-state: paused;
}

.details-container h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
  font-size: 1rem;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

/* Description text inside cells - 0.4rem (4 units) smaller than titles (1.1rem - 0.4rem = 0.7rem) */
.details-container p,
.details-container .section__text__p1 {
  font-size: 0.7rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 0.5rem;
  justify-content: space-around;
  width: 100%;
  overflow: hidden;
}

article {
  display: flex;
  width: 100%;
  justify-content: space-around;
  gap: 0.5rem;
  flex-wrap: wrap;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 0.75rem;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  box-sizing: border-box;
}

/* Video-specific styling for web applications */
video.project-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.75rem;
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

.project-title {
  margin: 0.4rem 0.6rem;
  color: black;
  font-size: 1.1rem;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
  font-size: 0.7rem;
  padding: 0.4rem 0.6rem;
  font-weight: 500;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  position: relative;
  z-index: 1;
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

.section__text__p1 a {
  color: rgb(85,85,85) !important;
  font-weight: normal;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* VIDEO GALLERY SECTION */

#video-gallery {
  position: relative;
}

.video-carousel-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.video-display-container {
  margin: 0 20px;
  transition: all 0.3s ease;
}

.gallery-video {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* Video carousel navigation buttons */
#video-carousel-left,
#video-carousel-right {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 50%;
  min-width: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-carousel-left:hover,
#video-carousel-right:hover {
  color: #666;
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

#video-carousel-left:active,
#video-carousel-right:active {
  transform: scale(0.95);
  background-color: rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for video carousel */
@media (max-width: 768px) {
  .video-display-container {
    margin: 0 10px;
  }
  
  #video-carousel-left,
  #video-carousel-right {
    font-size: 1.5rem;
    padding: 8px;
  }
  
  .gallery-video {
    max-width: 90vw;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
    padding: 10px;
  }
  .your-class {
    width: 100%;
    /* Adjust other properties as needed */
  }
  /* Add more rules for images, nav, etc. */
}
