/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Apply box-sizing globally */
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #ffffff; /* Ensure a clean white background */
  color: #333333; /* Default text color */
  padding-bottom: 10vh; /* Add padding to prevent overlap with fixed nav */
  padding-top: 60px; /* Height of top navigation */
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85); /* Keep existing paragraph color or adjust */
  line-height: 1.6; /* Improve readability */
  font-size: 1rem; /* Base paragraph size */
}

/* TRANSITION */

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

/* DESKTOP NAV */

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

#desktop-nav {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}

.home-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.home-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.home-button svg {
  width: 24px;
  height: 24px;
  color: #333;
}

.nav-container {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0 1.5rem;
  border: 1px solid #e0e0e0;
  height: 60px;
  display: flex;
  align-items: center;
  min-width: 450px;
}

.nav-left {
  display: flex;
  align-items: center;
  padding-right: 1.5rem;
  position: relative;
}

.nav-left::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background-color: #e0e0e0;
}

.nav-right {
  display: flex;
  padding-left: 1.5rem;
}

/* Show bottom nav when not on profile section */
body:not(.on-profile) #desktop-nav {
  bottom: 2rem;
}

/* Hide top nav when not on profile section */
body:not(.on-profile) #top-nav {
  transform: translateY(-100%);
}

/* Show top nav when on profile section */
body.on-profile #top-nav {
  transform: translateY(0);
}

/* Hide bottom nav when on profile section */
body.on-profile #desktop-nav {
  bottom: -100px;
}

.resume-btn {
  background-color: #f5f5f5;
  color: #333;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.resume-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

#desktop-nav .logo {
  display: none; /* Hide the name */
}

#desktop-nav .nav-links {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

#desktop-nav .nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

#desktop-nav .nav-links a:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
}

/* Remove height from the general nav selector if only desktop nav is fixed */
nav {
  /* height: 15vh; */ /* Removed height from general nav */
  /* Other general nav styles can remain if applicable to hamburger nav */
}

.nav-links {
  gap: 2.5rem; /* Increased gap */
  list-style: none;
  font-size: 1.1rem; /* Slightly smaller nav links */
}

a {
  color: #333333; /* Darker default link color */
  text-decoration: none;
}

a:hover {
  color: #555555; /* Slightly lighter hover */
  text-decoration: none; /* Remove underline on hover */
  /* Optional: Add subtle underline */
  /* text-decoration: underline; */
  /* text-underline-offset: 0.5rem; */
}

.logo {
  font-size: 1.8rem; /* Slightly smaller logo */
  font-weight: 600;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none; /* Hidden by default, shown in mobile */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  z-index: 1002;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

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

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: 200px;
  padding: 1rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.menu-links.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-links a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: #333;
  transition: all 0.3s ease;
}

.menu-links a:hover {
  background-color: #f5f5f5;
}

/* Hamburger icon animation */
.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(7px, 7px);
}

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

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

/* SECTIONS */

section {
  padding: 2rem 5%;
  min-height: 100vh;
  margin: 0 auto;
  max-width: 1400px;
  width: 90%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: visible;
  transition: opacity 0.6s ease-in-out;
  will-change: opacity;
  position: relative;
  z-index: 1;
}

section.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Ensure sections are immediately visible when directly loaded */
section:target {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Prevent FOUC (Flash of Unstyled Content) */
.js-loading * {
  transition: none !important;
}

.section-container {
  display: flex;
  gap: 2rem; /* Default gap for section containers */
  align-items: center; /* Align items vertically */
}

.section__text__p1 {
  text-align: center;
  color: #555555;
  font-size: 1.3rem;
  margin-bottom: 0.5rem; /* Space below subtitle */
}

.title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 600;
}

/* PROFILE/HERO SECTION */

#profile {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  padding: 2rem 5%;
  align-items: center;
  justify-content: center;
  gap: 2rem; /* Reduced from 4rem */
  flex-wrap: nowrap;
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
}

.profile-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  width: 100%;
  max-width: 600px;
  white-space: normal;
  word-wrap: break-word;
}

.highlight {
  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 90%;
  padding: 0 0.2rem;
  display: inline-block; /* Change from inline to inline-block */
}

/* Add image container */
.profile-image {
  flex: 1;
  max-width: 450px;
  min-width: 450px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.round-profile-pic {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%; /* Adjust this value to focus more on the face */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 0;
  color: #444;
  max-width: 90%;
  line-height: 1.4;
}

.socials-container {
  display: flex;
  gap: 1.5rem;
}

/* ABOUT SECTION */

#about {
  min-height: 100vh;
  padding: 2rem 5%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  transition: opacity 0.6s ease-in-out;
  will-change: opacity, transform;
}

.about-container {
  display: flex;
  gap: 4rem;
  width: 100%;
  align-items: flex-start;
}

.about-left {
  flex: 1;
  max-width: 300px;
  position: sticky; /* Keep title visible while scrolling */
  top: 2rem;
}

.about-left .section__text__p1 {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #555;
}

.about-left .title {
  text-align: left;
  margin-bottom: 0;
  font-size: 3.5rem;
  line-height: 1.2;
}

.about-right {
  flex: 2;
  max-width: 800px;
}

.text-container {
  text-align: left;
  margin-top: 0.5rem; /* Add small top margin */
}

.text-container p {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #444;
}

.text-container p:last-child {
  margin-bottom: 0;
}

/* Update media queries for About section */
@media screen and (max-width: 992px) {
  #about {
    padding: 0 3rem;
  }

  .about-container {
    flex-direction: column;
    gap: 2rem;
  }

  .about-left {
    max-width: 100%;
    position: relative;
    top: 0;
  }

  .about-left .section__text__p1,
  .about-left .title {
  text-align: center;
  }
}

@media screen and (max-width: 768px) {
  #about {
    padding: 0 2rem;
  }
}

@media screen and (max-width: 576px) {
  #about {
    padding: 0 1.5rem;
  }
  
  .about-container {
    padding: 1.5rem 0;
  }
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 1.8rem; /* Slightly adjusted icon size */
  margin: 0 0.5rem; /* Add space around icons */
}

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

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem; /* Add space above buttons */
}

.btn {
  font-weight: 500; /* Slightly lighter weight */
  transition: all 300ms ease;
  padding: 0.8rem 1.5rem; /* Adjusted padding */
  border-radius: 2rem;
  border: 1px solid #555;
  background: none;
  color: #333;
  font-size: 0.9rem;
}

.btn:hover {
  background: #333;
  color: #fff;
  border-color: #333;
  cursor: pointer;
}

/* Remove specific btn-color-1/2 styles if btn is now unified */
/* .btn-color-1, .btn-color-2 { ... } */
/* .btn-color-1:hover, .btn-color-2:hover { ... } */


/* BENTO GRID (WORK) SECTION */

#bento-grid {
  padding: 2rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  width: 90%;
}

.bento-container {
  display: grid;
  /* Keep 2 columns, adjust row height or use auto */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
  grid-auto-rows: minmax(300px, auto); /* Automatic row height */
  gap: 2rem; /* Increased gap */
  margin-top: 3rem;
}

.bento-item {
  background-color: #ffffff; /* White background for items */
  border: 1px solid #e0e0e0; /* Lighter border */
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column; /* Stack content vertically */
  justify-content: space-between; /* Space out content */
  align-items: center;
  text-align: center;
  overflow: hidden; /* Hide overflow */
}

.bento-item:hover {
  transform: translateY(-5px); /* Subtle hover effect */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Soft shadow on hover */
}

.projects-list {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}

.project-item {
  position: relative;
  padding: 0.5rem 0;
  margin: 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
  content-visibility: auto;
  contain-intrinsic-size: 0 500px; /* Adjust based on average height */
}

.project-item:hover {
  background: linear-gradient(120deg, rgba(246, 211, 101, 0.1) 0%, rgba(253, 160, 133, 0.1) 100%);
}

.project-content {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0;
}

.project-title-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.project-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333333;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  margin-bottom: 0;
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.project-description {
  font-size: 1rem;
  color: #555555;
  line-height: 1.4;
  margin-top: 0.5rem;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.button .text {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  z-index: 1;
  transition: all 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(253, 160, 133, 0.2);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .project-title {
    font-size: 4rem;
  }
}

@media (max-width: 992px) {
  .project-title {
    font-size: 3.5rem;
  }
  
  #bento-grid {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .project-item {
    padding: 1rem 0;
    gap: 1.5rem; /* Increased gap */
  }

  .project-content {
    padding: 0.25rem 0; /* Adjusted padding for mobile */
  }

  .project-title {
    font-size: 3rem;
    margin-bottom: 0.75rem; /* Increased margin for mobile */
  }

  .button {
    width: 100%;
    margin-top: 1rem; /* Increased margin */
  }
  
  #bento-grid {
    padding: 1rem 5%;
  }

  .project-title-container {
  flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .project-title {
    font-size: 2rem;
  }

  .badges-container {
    margin-left: 0;
  }

  .discipline-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .project-item {
    padding: 1.75rem 0; /* Slightly reduced padding for very small screens */
  }
  
  .project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .project-description {
    font-size: 0.85rem;
  }
  
  #bento-grid {
    width: 92%;
    padding: 1rem 4%;
  }

  .project-title {
    font-size: 1.5rem;
  }

  .discipline-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

.project-img {
  border-radius: 0.5rem; /* Slight radius for images inside */
  width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area */
  margin-bottom: 1rem;
}

.project-btn {
  padding: 0.6rem 1.2rem; /* Smaller buttons for projects */
  font-size: 0.8rem;
}

.bento-placeholder {
  /* Style the placeholder differently */
  background-color: #f0f0f0;
  color: #888;
  justify-content: center;
  font-style: italic;
}

/* CONTACT SECTION */

#contact {
  min-height: 50vh;
  padding: 2rem 5%;
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  gap: 2rem; /* Add gap between contact items */
  border-radius: 1rem; /* Softer radius */
  border: 1px solid #ddd; /* Lighter border */
  background: #ffffff; /* White background */
  margin: 3rem auto;
  padding: 2rem 3rem; /* More padding */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.contact-info-container p {
  font-size: 1.1rem; /* Larger contact text */
}

.contact-icon {
  cursor: default;
  height: 1.5rem; /* Adjust size */
}

.email-icon {
  height: 1.8rem; /* Adjust size */
}

.contact-info-container a {
  position: relative; /* Positioning for the pseudo-element */
  text-decoration: none; /* Remove default underline */
  color: #333; /* Ensure the text color is consistent */
  transition: color 0.3s ease; /* Smooth color transition */
}

.contact-info-container a::after {
  content: ''; /* Create a pseudo-element for the underline */
  position: absolute;
  left: 0;
  bottom: -2px; /* Position it just below the text */
  width: 100%; /* Full width of the text */
  height: 2px; /* Thickness of the underline */
  background-color: #f6d365; /* Color of the underline */
  transform: scaleX(0); /* Initially hide the underline */
  transition: transform 0.3s ease; /* Smooth transition for the underline */
}

.contact-info-container a:hover {
  color: #f6d365; /* Change text color on hover */
}

.contact-info-container a:hover::after {
  transform: scaleX(1); /* Show the underline on hover */
}

/* FOOTER SECTION */

footer {
  height: auto; /* Auto height */
  padding: 3rem 1rem 12vh 1rem; /* Increase bottom padding to account for fixed nav */
  margin: 0 auto;
  max-width: 1200px;
  text-align: center;
}

footer nav .nav-links {
  justify-content: center; /* Center footer nav links */
  margin-bottom: 1rem;
  font-size: 1rem; /* Smaller footer links */
}

footer p {
  color: #666; /* Lighter footer text */
  font-size: 0.9rem;
}

/* REMOVE OLD/UNUSED STYLES */
/* Remove styles for #experience, .experience-details-container, */
/* .experience-sub-title (unless reused), .article-container, article */
/* Remove styles for #projects, .color-container */
/* Remove specific .details-container styles if not needed */
.experience-details-container,
.article-container,
article,
.details-container,
#projects .color-container {
  display: none; /* Hide instead of deleting just in case */
}

/* Ensure experience-sub-title is only used where intended (like project titles) */
.project-title {
  /* Styles moved inside .bento-item */
}

/* Remove arrow icon styles */
.hero-arrow,
.arrow {
  display: none;
}

/* Remove any arrow-related positioning from sections */
#profile,
#about,
#bento-grid {
  position: relative; /* Keep this if needed for other elements */
  /* Remove any arrow-specific padding/margins if present */
}

/* ===================== */
/* TOP NAVIGATION STYLES */
/* ===================== */
#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  border-bottom: 1px solid #f0f0f0;
  transition: transform 0.3s ease;
  transform: translateY(0);
}

body.scrolled #top-nav {
  transform: translateY(-100%); /* Hide top nav when scrolled */
}

.top-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.top-nav-links {
  display: flex;
  gap: 0.5rem; /* Reduced gap between items */
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.resume-link {
  background-color: #f5f5f5;
  color: #333;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.resume-link:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.separator {
  height: 60%;
  width: 1px;
  background-color: #e0e0e0;
  margin: 0 0.5rem; /* Reduced margin around separator */
  position: relative; /* Added for pseudo-element */
}

.separator::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background-color: #e0e0e0;
}

.top-nav-links a:not(.resume-link) {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.top-nav-links a:not(.resume-link):hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
}

/* PROFILE BUTTONS */
.profile-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem
}

/* Base CTA Button Styles */
.cta {
  position: relative;
  margin: auto;
  padding: 12px 18px;
  transition: all 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
}

.cta:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border-radius: 50px;
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
}

.cta span {
  position: relative;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.cta svg {
  position: relative;
  top: 0;
  margin-left: 10px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.cta:hover:before {
  width: 100%;
}

.cta:hover svg {
  transform: translateX(0);
}

.cta:active {
  transform: scale(0.95);
}

/* Resume CTA Specific Styles */
.resume-cta {
  padding: 12px 24px;
}

.resume-cta:before {
  background: #fda085; /* Matching the highlight end color */
  width: 100%;
  opacity: 0;
  transition: all 0.3s ease;
}

.resume-cta span {
  color: #fda085;
}

.resume-cta:hover:before {
  opacity: 1;
}

.resume-cta:hover span {
  color: white;
}

/* LinkedIn CTA Specific Styles */
.linkedin-cta:before {
  background: #f6d365; /* Matching the highlight start color */
}

.linkedin-cta span {
  color: #e6a830; /* Slightly darker than f6d365 for better contrast */
}

.linkedin-cta svg {
  stroke: #e6a830;
}

.linkedin-cta:hover span {
  color: white;
}

.linkedin-cta:hover svg {
  stroke: white;
}

/* Bottom navigation Resume button styles - unchanged */
#desktop-nav .resume-btn {
  background-color: #f5f5f5;
  color: #333;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#desktop-nav .resume-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

/* Scrolling Text Effect */
.title-container {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
  margin: 0.5rem 0 1rem 0;
  background: linear-gradient(120deg, rgba(246, 211, 101, 0.1) 0%, rgba(253, 160, 133, 0.1) 100%);
  border-radius: 10px;
}

.parallax {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0; /* Ensure no margin */
  padding: 0; /* Ensure no padding */
}

.scroll-wrapper {
  position: absolute;
  display: flex;
  width: 200%;
  height: 100%;
  will-change: transform;
  margin: 0; /* Ensure no margin */
  padding: 0; /* Ensure no padding */
}

.scroller {
  display: flex;
  white-space: nowrap;
  flex: 1;
  height: 100%;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: -0.02em;
  color: #333333;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.scroll-text {
  flex-shrink: 0;
  padding: 0 0.75rem;
  text-transform: uppercase;
  user-select: none;
  display: inline-block;
  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

@media (min-width: 768px) {
  .title-container {
    height: 120px; /* Reduced from 140px */
  }
  
  .scroller {
    font-size: 5rem;
  }
}

/* Discipline Badges */
.disciplines-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin-bottom: 1rem; /* Reduced from 2rem */
  overflow-x: auto;
  padding: 0.5rem 0.5rem; /* Reduced top/bottom padding from 1rem */
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin-top: -0.5rem; /* Adjusted to match new padding */
}

.disciplines-container::-webkit-scrollbar {
  display: none;
}

.discipline-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smoother transition */
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transform: translateY(0); /* Explicit initial state */
  position: relative; /* Ensure the badge stays above other elements */
  z-index: 1; /* Prevent hover effect from being cut off */
}

.discipline-badge:hover {
  box-shadow: 3px 3px 20px -8px #C3D900;
  transform: translateY(-2px);
}

/* Adjust badge colors for each discipline - using softer pastels */
.discipline-badge:nth-child(1) { background: #e8f7a1; }
.discipline-badge:nth-child(2) { background: #ffeeb2; }
.discipline-badge:nth-child(3) { background: #ffd1e8; }
.discipline-badge:nth-child(4) { background: #c1f9eb; }

.discipline-badge:nth-child(1):hover { box-shadow: 3px 3px 20px -8px #c3d900; }
.discipline-badge:nth-child(2):hover { box-shadow: 3px 3px 20px -8px #ffc107; }
.discipline-badge:nth-child(3):hover { box-shadow: 3px 3px 20px -8px #ff69b4; }
.discipline-badge:nth-child(4):hover { box-shadow: 3px 3px 20px -8px #40e0d0; }

/* Adjust responsive styles */
@media screen and (max-width: 768px) {
  .disciplines-container {
  gap: 0.5rem;
}

  .discipline-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* Contact Info Grid in About Section */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem; /* Reduced gap */
  margin-top: 2rem; /* Reduced top margin */
  padding: 0; /* Removed padding */
}

.info-item {
  color: #333333; /* Changed to match main text color */
}

.info-item h3 {
  font-size: 0.85rem;
  color: #555555;
  margin-bottom: 0.25rem; /* Reduced bottom margin */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-item p,
.info-item a {
  color: #333333;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #f6d365;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }
  
  .info-item {
    text-align: center;
  }
}

@media (max-width: 1200px) {
  .profile-image {
    max-width: 400px;
    min-width: 400px;
  height: 400px;
  }
  
  .round-profile-pic {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 992px) {
  .profile-image {
    max-width: 350px;
    min-width: 350px;
    height: 350px;
  }
  
  .round-profile-pic {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 768px) {
  section, #profile, #about, #contact, #bento-grid {
    padding: 4rem 2rem; /* Consistent padding */
  }

  .profile-content {
    text-align: center;
    padding: 0;
  }

  .profile-image {
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
  }

  .disciplines-container {
    padding: 0.5rem;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  section, #profile, #about, #contact, #bento-grid {
    padding: 3rem 1rem; /* Smaller padding for mobile */
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .profile-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Project Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1003;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  will-change: transform;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem 2rem 2rem;
}

.close-modal {
  position: fixed;
  right: 2rem;
  top: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 300;
  color: #333;
  cursor: pointer;
  z-index: 1003;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.close-modal:hover {
  transform: rotate(90deg);
  background: #ffffff;
}

.modal-header {
  padding: 0 2rem;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  align-self: flex-start; 
  padding-top: 0.5rem;
}

.modal-title {
  font-size: 3.5rem; /* Slightly smaller for side layout */
  font-weight: 600;
  color: #333;
  margin: 0 0 1.5rem 0; /* Adjust margins */
  line-height: 1.5;
  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
}

.modal-body {
  display: flex;
  flex-direction: row; /* Change to row for side-by-side layout */
  align-items: flex-start;
  gap: 3rem;
  position: relative;
  padding: 0;
  overflow: hidden;
  width: 100%;
  max-width: 1400px; /* Increased to accommodate side-by-side layout */
  margin: 0 auto;
}

.image-gallery {
  flex: 1;
  width: 100%;
  max-width: 700px; /* Adjusted for side-by-side layout */
  position: relative;
  margin: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 10px;
  cursor: none;
}

.image-gallery video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.image-gallery .active {
  opacity: 1;
  transform: scale(1);
}

.gallery-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1003;
}

.prev-btn,
.next-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.prev-btn:hover,
.next-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.image-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0 1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #333;
  transform: scale(1.2);
}

@media (max-width: 1200px) {
  .modal-body {
    max-width: 95%;
    gap: 2rem;
  }
  
  .modal-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .modal-body {
    flex-direction: column;
    align-items: center;
  }

  .image-gallery {
    max-width: 800px;
    width: 100%;
  }

  .modal-info {
    max-width: 800px;
    width: 100%;
    text-align: center;
  }

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

@media (max-width: 768px) {
  .modal-content {
    padding: 1rem;
  }

  .modal-title {
    font-size: 2rem;
  }
}

/* Ensure proper spacing between sections */
section + section {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  section + section {
    margin-top: 1rem;
  }
}

/* Adjust first section padding for top navigation */
section:first-of-type {
  padding-top: calc(2rem + 60px);
}

@media (max-width: 576px) {
  body {
    padding-top: 50px;
  }
  
  section:first-of-type {
    padding-top: calc(1rem + 50px);
  }
}

/* Responsive Design */
@media (max-width: 1400px) {
  section, #profile, #about, #contact, #bento-grid {
    max-width: 1200px;
    width: 92%;
  }
}

@media (max-width: 1200px) {
  section, #profile, #about, #contact, #bento-grid {
    width: 94%;
    padding: 2rem 3%;
  }

  .profile-image {
    max-width: 400px;
    min-width: 400px;
    height: 400px;
  }
  
  .round-profile-pic {
    width: 300px;
    height: 300px;
  }

  .about-container {
    gap: 3rem;
  }

  .hero-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 992px) {
  section, #profile, #about, #contact, #bento-grid {
    width: 96%;
    padding: 2rem 2%;
  }

  .profile-image {
    max-width: 350px;
    min-width: 350px;
    height: 350px;
  }
  
  .round-profile-pic {
    width: 280px;
    height: 280px;
  }

  .about-container {
    flex-direction: column;
    gap: 2rem;
  }

  .about-left {
    max-width: 100%;
  position: relative;
    top: 0;
  }

  .about-left .section__text__p1,
  .about-left .title {
  text-align: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  section, #profile, #about, #contact, #bento-grid {
    width: 94%;
    padding: 1.5rem 3%;
  }

  #profile {
    flex-direction: column-reverse;
    gap: 1.5rem;
    text-align: center;
    padding-top: 4rem; /* Account for top navigation */
  }

  .profile-image {
    max-width: 300px;
    min-width: 300px;
    height: 300px;
  }
  
  .round-profile-pic {
    width: 250px;
    height: 250px;
  }
  
  .profile-content {
    align-items: center;
  }

  .hero-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 0 auto 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 100%;
  }

  .contact-info-upper-container {
    padding: 1.5rem;
  flex-direction: column;
    align-items: center;
  }

  .disciplines-container {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  section, #profile, #about, #contact, #bento-grid {
    width: 92%;
    padding: 1rem 4%;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .profile-image {
    max-width: 250px;
    min-width: 250px;
    height: 250px;
  }
  
  .round-profile-pic {
    width: 200px;
    height: 200px;
  }

  .text-container p {
    font-size: 1rem;
}

.contact-info-upper-container {
    padding: 1rem;
  }

  .project-item {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

.social-icons {
  display: flex;
  gap: 1rem; /* Space between icons */
  margin-top: 1rem; /* Space above the icons */
}

.social-icons a {
  border-radius: 10px; /* Rounded corners */
  background-color: #f5f5f5; /* Background color for the icons */
  padding: 10px; /* Padding around the icons */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: #e0e0e0; /* Change background on hover */
}

.tech-stack {
  text-align: left; /* Match your other left-aligned content */
  margin: 1.5rem 0; /* Adjusted spacing */
  width: 100%;
}


.tech-icons-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  background: linear-gradient(120deg, rgba(246, 211, 101, 0.1) 0%, rgba(253, 160, 133, 0.1) 100%);
  border-radius: 10px;
}

.tech-icons {
  display: flex;
  gap: 2rem; /* Increased spacing between icons */
  padding: 0 1rem;
  animation: scroll 20s linear infinite; /* Ensure smooth infinite scroll */
  width: calc(200%); /* Set width to accommodate both sets of icons */
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Move left by half the width of the duplicated icons */
  }
}

.tech-icons img {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
}

.tech-icons img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

/* Gradient fade effect on edges */
.tech-icons-container::before,
.tech-icons-container::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 100px;
  z-index: 2;
}

.tech-icons-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.tech-icons-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tech-stack {
  text-align: center;
  }
  
  .tech-icons img {
    width: 35px;
    height: 35px;
  }
}

.badges-container {
  display: flex; /* Align badges in a row */
  gap: 0.5rem; /* Space between badges */
  margin-top: 0.5rem; /* Space above badges */
}

.modal-media {
  width: auto;
  height: auto;
  object-fit: cover;
  display: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-media.active {
  display: block;
}

video.modal-media {
  background: #000;
  max-height: 80vh;
}

.image-gallery {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 10px;
}

.modal-info {
  flex: 1;
  max-width: 500px;
  padding: 0;
  text-align: left; /* Align text to the left */
}

/* custom "View Site" cursor over video */
.image-gallery {
  position: relative;   /* ensure we can hide native cursor */
  cursor: none;
}

.custom-cursor {
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1);
  background: rgba(255, 255, 255, 0.1);
  border-color: #000000;
}

.image-gallery {
  position: relative;
  cursor: none;
  transition: transform 0.3s ease;
}

.image-gallery:hover {
  transform: scale(0.99);
}
