/* General */

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

:root {
  --swiper-navigation-color: rgb(163, 163, 163);
  --swiper-pagination-color: rgb(53, 53, 53);
}

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

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* Transition */

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

/* Desktop Nav */

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

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
  align-items: center; /* Align items vertically in the center */
}

.nav-links li {
  display: flex;
  align-items: center; /* Align list items vertically in the center */
}

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

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* Language Toggle */

.language-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.5rem;
  color: black;
  cursor: pointer;
  padding: 0;
  border-radius: 0.5rem;
  transition: all 300ms ease;
  position: relative;
  display: inline-flex;
  align-items: center; /* Align language toggle text and icon vertically */
}

.language-toggle:hover {
  color: grey;
  background-color: rgba(0, 0, 0, 0.05);
}

.language-toggle .lang-separator {
  margin: 0 0.25rem;
  color: rgb(163, 163, 163);
}

.language-toggle .inactive {
  color: rgb(163, 163, 163);
  transition: all 300ms ease;
}

.language-toggle:hover .inactive {
  color: rgb(120, 120, 120);
}

/* Mobile language toggle */
.language-toggle.mobile {
  font-size: 2.5rem;
  line-height: 2.5rem; /* Match line height with font size */
  padding: 1rem 2rem;
  border-radius: 1rem;
  display: block;
  text-align: center;
  width: auto;
  margin: 0;
}

/* Override mobile toggle font-size inside hamburger menu */
#hamburger-nav .language-toggle.mobile {
  font-size: 2.5rem; /* matches mobile nav link size */
}

@media screen and (max-width: 600px) {
  #hamburger-nav .language-toggle.mobile {
    font-size: 2rem; /* slightly smaller for smaller screen */
  }
}

/* Ensure menu links and toggle share same font settings */
.menu-links a,
.language-toggle.mobile {
  font-family: inherit;
  font-weight: 400;
}

/* Hamburger Menu */

#hamburger-nav {
  display: none;
  position: relative;
  z-index: 1001;
}

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

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

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

.menu-links {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 1000;
}

.menu-links a {
  display: block;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 2.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  border-radius: 1rem;
}

.menu-links a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  background-color: rgb(240, 240, 240);
}

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

.menu-links.open {
  opacity: 1;
  visibility: visible;
}

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

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

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

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
opacity: 1;
transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

/* Sections */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* Profile Section */

#profile {
  display: flex;
  justify-content: center;
  align-items: center; /* Align items to the center */
  gap: 1rem; /* Reduce the gap */
  height: 80vh;
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50% / 50%; /* Create an oval shape */
}

.section__text {
  align-self: center;
  text-align: center;
  margin: 12rem;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

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

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

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

/* Icons */

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

.icon.arrow {
  cursor: pointer;
  height: 2rem;
  position: absolute; /* Position it absolutely */
  right: 0; /* Align it to the right */
  bottom: 1.8rem; /* Adjust vertical position */
}

/* Buttons */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem 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;
}

/* Comprehensive fix for visited button state and blue hyperlink prevention */
.btn:visited,
.btn:link,
.btn:active,
.btn:focus,
.btn-color-1:visited,
.btn-color-1:link,
.btn-color-1:active,
.btn-color-1:focus,
.btn-color-2:visited,
.btn-color-2:link,
.btn-color-2:active,
.btn-color-2:focus {
  color: inherit !important;
  text-decoration: none !important;
}

.btn-color-1,
.btn-color-1:visited,
.btn-color-1:link,
.btn-color-1:active,
.btn-color-1:focus {
  background: rgb(53, 53, 53) !important;
  color: white !important;
  border: rgb(53, 53, 53) 0.1rem solid !important;
}

.btn-color-2,
.btn-color-2:visited,
.btn-color-2:link,
.btn-color-2:active,
.btn-color-2:focus {
  background: none !important;
  color: black !important;
  border: rgb(53, 53, 53) 0.1rem solid !important;
}

.btn-container {
  gap: 1rem;
}

/* Prevent any blue link styling on buttons regardless of implementation */
button.btn,
button.btn-color-1,
button.btn-color-2,
input[type="button"].btn,
input[type="submit"].btn {
  color: inherit !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

button.btn-color-1,
input[type="button"].btn-color-1,
input[type="submit"].btn-color-1 {
  background: rgb(53, 53, 53) !important;
  color: white !important;
}

button.btn-color-2,
input[type="button"].btn-color-2,
input[type="submit"].btn-color-2 {
  background: none !important;
  color: black !important;
}

/* About Section */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

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

.about-containers,
.about-details-container {
  display: flex;
  margin: 0.5rem auto;
}

.about-text-container{
  text-align: justify;
  margin: 1rem auto 0 auto;
  padding: 1.5rem;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  width: 55%;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

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

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto;
}

/* Experience Section */

#experience {
  position: relative;
}

/* Arrange experience containers so the third (backend) wraps and centers */
#experience .about-containers {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 2rem;
}

#experience .about-containers .details-container {
  flex: 0 1 45%;
  max-width: 45%;
}

#experience .about-containers .details-container:nth-child(3) {
  flex: 0 1 45%;
  max-width: 45%;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.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: 2.5rem;
  justify-content: space-around;
}

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

article .icon {
  cursor: default;
}

/* Projects Section */

#projects {
  position: relative;
}

.details-container .text-container {
  margin: 1rem;
}

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

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
    object-fit: cover;
    object-position: center;
}

/* Fixed size for project image containers */
#projects .article-container {
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-title {
    margin: 1rem;
    color: black;
}

.project-btn {
    color: black;
    border-color: rgb(163, 163, 163);
}

/* Contact Section */

#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: rgb(250, 250, 250);
  margin: 1rem 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;
  height: 2rem;
}

.email-icon{
  height: 2.5rem;
}

/* Footer Section */

footer{
  height: 26vh;
  margin: 0 1rem; 
}

footer p {
  text-align: center;
}


/* Carousel */

/* Ensure the container has relative positioning */
.swiper-container {
  position: relative;
  margin: 2rem 1rem;
  overflow: visible;
  padding: 0 20px; /* Reduced padding to accommodate buttons beside container */
}

/* Style for the visible slides */
.swiper-slide {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 350px !important; /* Fixed width for consistent sizing */
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform-origin: center;
}

.swiper-slide .details-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  transition: all 0.4s ease;
}

/* Enhanced active slide styling */
.swiper-slide-active-custom .details-container {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

/* Navigation buttons - positioned beside the focused project container */
.swiper-button-prev,
.swiper-button-next {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 15 !important;
  width: 50px !important;
  height: 50px !important;
  margin-top: 0 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(163, 163, 163, 0.3) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.swiper-button-prev {
  left: calc(50% - 200px) !important; /* Position beside left edge of focused container */
}

.swiper-button-next {
  right: calc(50% - 200px) !important; /* Position beside right edge of focused container */
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 18px !important;
  font-weight: bold !important;
  color: rgb(53, 53, 53) !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.swiper-pagination {
  position: relative !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

/* Language Toggle Responsive Styles */
@media screen and (max-width: 1200px) {
  .language-toggle {
    display: none; /* Hide desktop language toggle on mobile */
  }
  
  .language-toggle.mobile {
    display: block; /* Show mobile language toggle */
  }
}

@media screen and (min-width: 1201px) {
  .language-toggle.mobile {
    display: none; /* Hide mobile language toggle on desktop */
  }
}

/* Main container to prevent horizontal overflow */
.main-container {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}



