/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #000;
  background-color: #fff;
  line-height: 1.6;
}

a {
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  opacity: 0.6;
}

/* Container helpers */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}
.narrow {
  max-width: 700px;
}

/* Navigation */
nav.hide {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .logo {
  font-weight: 700;
  letter-spacing: 1px;
}

/* Default links */
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin-left: 30px;
}
nav ul li a {
  font-weight: 500;
  position: relative;
  text-decoration: none;
  color: #000;
}
nav ul li a::after {
  content: "";
  display: block;
  height: 2px;
  background: #000;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
nav ul li a:hover::after {
  transform: scaleX(1);
}

/* Burger styles */
.burger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  cursor: pointer;
}
.burger span {
  width: 25px;
  height: 3px;
  background: #000;
  margin: 4px 0;
  transition: 0.3s;
}

/* Responsive: mobile ≤1022px */
@media (max-width: 1022px) {
  .burger {
    display: flex; /* show burger */
  }

  nav ul {
    position: absolute;
    top: 70px; /* below nav */
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: none; /* hide by default */
  }

  nav ul li {
    margin: 15px 0;
  }

  nav ul.show {
    display: flex; /* show on toggle */
  }
}

/* Sections */
section {
  padding: 80px 20px;
  text-align: center;
}
section h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}


/* Short description */
.hero {
  padding: 120px 20px 80px;
  background: #fff;
}

.hero-content {
  display: flex;
  flex-direction: column; 
  align-items: center;
  text-align: center;
  gap: 30px;
}

.hero-image img {
  width: 180px; 
  height: 180px;
  border-radius: 50%; 
  object-fit: cover;
  background-color: #fff;
  border: 4px solid #000; 
  transition: transform 0.3s ease; 
}

.hero-image img:hover {
  transform: scale(1.05); 
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.hero-text h2 span {
  border-bottom: 4px solid #000;
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Button styling */
.btn {
  display: inline-block;
  border: 2px solid #000;
  padding: 10px 25px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover {
  background: #000;
  color: #fff;
}
.contact-btn-wrapper {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 40px;
}


@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }
  .hero-image {
    flex: 0 0 200px;
  }
  .hero-text {
    max-width: 500px;
    margin-left: 40px;
  }
}



/* About me */
.about-heading {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
}
.about-heading::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #000;
  margin-top: 8px;
}

.language-title {
  font-weight: 500;
  margin-top: 25px;
  margin-bottom: 10px;
  text-align: center;
}

.language-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px; 
  margin-top: 15px;
}

.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px;               
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.icon-wrapper img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.icon-wrapper span {
  font-size: 0.8rem;
  color: #333;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}


.icon-wrapper:hover {
  background: #000; 
  transform: scale(1.05); 
}

.icon-wrapper:hover span {
  color: #fff; 
}

/* Carousel styling */
.carousel {
  position: relative;
  max-width: auto;
  margin: 20px auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-track img {
  width: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  border-radius: 8px;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 4px;
  z-index: 2;
  transition: background 0.3s ease;
}

.carousel button:hover {
  background: rgba(0,0,0,0.8);
}

.carousel .prev {
  left: 10px;
}
.carousel .next {
  right: 10px;
}

.hobbies-container {
  display: flex;
  flex-direction: row;
  align-items: center; /* ✅ vertically center text and carousel */
  justify-content: space-between;
  gap: 50px;
}

.hobby-text {
  flex: 1; /* left side */
  font-size: 1rem;
  color: #333;
  text-align: justify;
  line-height: 1.7;
  margin-top: 0; /* ✅ remove extra offset */
}

.hobbies-container .carousel {
  flex: 1.6; /* give more space relative to text */
  max-width: 1000px; /* bump max width */
  align-self: flex-start;
}


@media (max-width: 768px) {
  .hobbies-container {
    flex-direction: column;
    text-align: center;
  }

  .hobby-text {
    text-align: justify;
  }

  .hobbies-container .carousel {
    max-width: 100%;
  }
}







/* Projects Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid #000;
  transition: transform 0.3s ease;
}

.card img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.card h4 {
  padding: 15px;
  font-weight: 500;
}

.card:hover {
  transform: translateY(-5px);
}

/* Fade-in / Slide-up animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

.view-all a {
  display: inline-block;
  border: 2px solid #000;
  padding: 10px 25px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.view-all a:hover {
  background: #000;
  color: #fff;
}



/* Contact section */
#contact {
  padding: 60px 0;
  text-align: center;
}

.contact-heading {
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.contact-heading::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #000;
  margin: 8px auto 0;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 20px;
}

.contact-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.contact-item a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #555;
}


/* Q & A Section */
#qna {
  padding: 60px 0;
}

.qna-heading {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.qna-heading::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #000;
  margin: 8px auto 0;
}

.qna-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

.qna-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 15px;
  cursor: pointer;
  color: #000;
  transition: background 0.3s ease;
}

.qna-question:hover {
  background: #f7f7f7;
}

/* --- animated Q&A answers --- */
.qna-answer {
  /* remove display:none; add animation props */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 15px;
  font-size: 0.95rem;
  color: #333;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.qna-item.active .qna-answer {
  max-height: 500px; /* adjust to something big enough */
  opacity: 1;
  padding: 0 15px 15px; /* restore bottom padding when open */
}

/* optional plus/minus indicator */
.qna-question::after {
  content: '\002B'; /* + sign */
  float: right;
  color: #000;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.qna-item.active .qna-question::after {
  content: '\2212'; /* − sign (minus) */
  color: #000;
  transform: rotate(180deg);
}






/* Contact */
.contact-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-socials a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.contact-socials a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contact-socials a:hover {
  color: #555;
}

.contact-item {
  display: flex;
  align-items: flex-start; /* top align */
  gap: 8px;
}

.copy-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent url('Icons/copyBlack.png') center/16px no-repeat;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s, background-image 0.2s;
}

.copy-btn:hover {
  background-color: black;
  background-image: url('Icons/copyWhite.png');
}
 
#toast {
  visibility: hidden;
  min-width: 160px;
  margin-left: -80px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 8px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.4s, visibility 0.4s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
}

.email-block {
  display: flex;
  flex-direction: column; /* stack email-row and download link */
}

.email-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-link {
  position: relative;
  display: inline-block;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  margin-top: 4px; /* little space under email */
}

/* invisible line initially */
.download-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: #000;
  transition: width 0.3s ease;
}

/* animate in on hover */
.download-link:hover::after {
  width: 100%;
}


/* Footer */
footer {
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}
