/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

/* Sections */
section {
  padding: 60px 10% 40px;
  border-bottom: 1px solid #333;
}
ul {
  list-style-type: square;
  padding-left: 20px;
}
a {
  color: #00ffc3;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Scroll-to-top button */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 40px;
  z-index: 999;
  font-size: 24px;
  background-color: #00ffc3;
  color: black;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
}

/* Floating nav bar */
.nav-reveal-zone {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 100px;
  z-index: 1000;
}
.floating-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  padding: 20px 40px;
  background: rgba(20, 20, 30, 0.85);
  border-radius: 60px;
  backdrop-filter: blur(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
}
/* .floating-nav.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(100%);
  pointer-events: none;
}
.nav-reveal-zone:hover .floating-nav {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
  pointer-events: auto !important;
} */
.nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-list li a {
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
  position: relative;
  padding-bottom: 5px;
}
.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00ffc3;
  transform: translateX(-50%);
  transition: 0.3s ease;
}
.nav-list li a:hover::after {
  width: 60%;
}
.nav-list .logo img {
  height: 32px;
  width: auto;
}

/* About section layout */
.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.about-img img {
  width: 320px;
  height: auto;
  border-radius: 12px;
  border: 3px solid #00ffc3;
  object-fit: cover;
}
.about-text {
  flex: 1;
  max-width: 600px;
}
.about-text p {
  margin-bottom: 20px;
  text-align: justify;
}
.about-name {
  font-size: 24px;
  color: #fff;
  font-weight: 500;
  margin-top: 10px;
  margin-bottom: 10px;
}


/* Sticky Headings */
.sticky-header {
  position: static; /* disables sticking */
  background: none;
  z-index: auto;
  padding: 20px 0;
  text-align: center;
}

.sticky-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #00ffc3;
  margin-bottom: 10px;
}



/* Fade-in animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}
.fade-in-visible {
  opacity: 1 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
  }
  .nav-list {
    gap: 20px;
  }
  .floating-nav {
    padding: 15px 25px;
  }
  .nav-list li a {
    font-size: 14px;
  }
  .home-title {
  font-size: 28px;
  }
  .home-quote {
  font-size: 14px;
  }

}

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0, 255, 195, 0.3);
}

/* === Lightbox === */
#lightbox {
display: none;
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}
#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 195, 0.2);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 36px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}


#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 195, 0.2);
}

#lightbox-caption {
  color: #ccc;
  font-size: 16px;
  text-align: center;
  margin-top: 12px;
  max-width: 80%;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 36px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  font-size: 48px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  transform: translateY(-50%);
}
.lightbox-nav.left {
  left: 30px;
}
.lightbox-nav.right {
  right: 30px;
}

.project-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 60px;
}

.project-entry img {
  width: 500px;
  border-radius: 10px;
  border: 0px solid #00ffc3;
}

.project-text {
  flex: 1;
  min-width: 250px;
}

.project-text h3 {
  color: #00ffc3;
  font-size: 22px;
  margin-bottom: 10px;
}

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

.toggle-container {
  text-align: center;
  margin-top: 30px;
}

.toggle-btn {
  background-color: rgba(0, 255, 195, 0.10); /* soft neon fill */
  color: #00ffc3;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border: none;         /* no outline */
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.toggle-btn:hover {
  background-color: rgba(0, 255, 195, 0.25);
  transform: scale(1.03);
}

.arrow {
  font-size: 22px;
  transition: transform 0.3s ease;
  transform: rotate(90deg); /* down */
}

.arrow.rotate {
  transform: rotate(-90deg); /* up */
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #000;
  color: #fff;
  scroll-behavior: smooth;
  line-height: 1.6;
  overflow-x: hidden;
}

.home-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Particle container */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
  pointer-events: auto;
}

/* Overlay content */
.home-overlay {
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.65);
  padding: 60px 40px;
  border-radius: 12px;
  max-width: 800px;
  text-align: center;

  /* Add this line */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.home-title {
  font-size: 48px;
  font-weight: 800;
  color: #00ffc3;
  letter-spacing: 3px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.home-quote {
  font-size: 22px;
  font-style: italic;
  color: #fff;
  line-height: 1.8;

  /* Add this if needed */
  max-width: 100%;
  overflow: visible;
}


.home-fadeout {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
  z-index: 2;
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-item h3 {
  font-size: 20px;
  color: #00ffc3;
  margin: 12px 0 6px;
  font-weight: 700;
}

.project-item p {
  font-size: 18px;
  color: #ccc;
  line-height: 1.5;
}

.project-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.project-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  transition: background-color 0.3s ease;
}

.project-box:hover {
  background-color: rgba(255, 255, 255, 0.1);
}


.project-box img {
  width: 500px;
  border-radius: 10px;
  cursor: pointer;
  object-fit: cover;
  margin-right: 30px;
}

.project-content {
  max-width: 700px;
}



.project-content h3 {
  font-size: 24px;
  color: #00ffc3;
  margin-bottom: 10px;
  font-weight: 700;
}

.project-content p {
  font-size: 18px;
  color: #ccc;
  line-height: 1.5;
}

#lightbox-project {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#lightbox-project img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 195, 0.2);
}

#lightbox-caption-project {
  color: #ccc;
  font-size: 16px;
  text-align: center;
  margin-top: 12px;
  max-width: 80%;
}

#lightbox-project .lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 36px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

#experience h3 {
  color: #00ffc3;
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 600;
}

#publications h3 {
  color: #00ffc3;
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 600;
}

#experience ul li {
  margin-bottom: 12px;
  line-height: 1.6;
}

#publications ul li {
  margin-bottom: 12px;
  line-height: 1.6;
}


@media (max-width: 768px) {
  /* For About Section */
  .about-container {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .about-img,
  .about-text {
    width: 100%;
    max-width: 100%;
  }

  /* For Project Section */
  .project-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .project-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
    max-width: 500px;
  }

  .project-box img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
  }

  .project-content {
    padding: 0 15px;
    text-align: center;
  }
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.contact-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #00ffc3;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #fff;
}

.contact-item img {
  width: 28px;
  height: 28px;
  filter: invert(100%);
  transition: transform 0.3s ease;
}

.contact-item a:hover img {
  transform: scale(1.1);
}
