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

html {
  scroll-behavior: smooth;
}

/* background animation start */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #e0e0e0, #e0e0e0);
  font-family: sans-serif;
  transition: background 0.3s ease-out;
  overflow-x: auto;
}
/* background animation end */




/* navbar start*/
#navbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  padding: 15px 150px; 
  color: white;
  flex-wrap: nowrap;
  
}

#nav_name {
  font-size: 34px;
  font-weight: 600;
  font-style: italic;
  font-family: 'Dancing Script', cursive;
  letter-spacing: 1.2px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  color: white;
  
}

@media (max-width: 768px) {
  #nav_name {
    font-size: 24px;
    
  }
}

@media (max-width: 768px) {
  #navbar {
    padding: 15px 20px; /* reduce padding for small screens */
  }
}


#nav_button{
  display: flex;
  justify-content: flex-start;
  /* flex-wrap: wrap; */
  gap: 20px;
  padding-right: 150px;
}

@media (max-width: 900px) {
  #nav_button {
    display: none; /* hide initially */
    flex-direction: column;
    padding: 10px 20px;
    width: 100%;
    background-color: #333;
    z-index: 999;
  }

  #nav_button.show {
    display: flex; /* show when toggled */
  }
}

#nav_button button {
  text-decoration: none;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#nav_button button:hover {
  background-color: #d4c8c8;
  color: #333;
}

/* Hamburger menu */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;

}

#hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.4s;
}

#hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

#hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Menu */
@media (max-width: 900px) {
  #hamburger {
      display: flex;
  }

#nav_button {
    display: none;  /* Hide menu by default */
    position: absolute;
    top: 60px;  /* Adjust to your navbar height */
    right: 0;
    background-color: #9e9898;
    padding: 10px;
    border-radius: 5px;
    flex-direction: column;
    gap: 10px;
    width: 150px; /* Small width for the menu */
}

  #nav_button.show {
      display: flex;
  }

  #nav_button button {
      width: 100%;
      background-color: #555;
      color: white;
      border: none;
      padding: 10px;
      font-size: 16px;
      cursor: pointer;
      transition: background-color 0.3s ease;
  }

  @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to   { opacity: 1; transform: translateY(0); }
  }
}
/* navbar end*/


/* home section start */
#home{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px;

}

#my_picture{
  padding-top: 100px;
  margin-right: 100px;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateX(-100px);
  animation: slideInFromLeft 1s ease-out forwards;
}

#profile_photo{
  width: auto;
  height: 450px;
  border-radius: 50%;  
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  
}

#profile_photo:hover {
  transform: scale(1.1);  
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);  
}

@keyframes slideInFromLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  #my_picture {
      display: flex;
      justify-content: center;
      width: 100%;
      margin: 20px 0; /* optional spacing */
  }

  #profile_photo {
    width: 100%;
    height: auto;
    max-width: 300px;
  }
  
}



#my_info{
  max-width: 400px;
}

#hello{
  margin:5px 0;
  font-size: 25px;
  color: #555;
  font-weight: bold;
  /* padding-bottom: 10px; */
  
  
}

#my_info h1 {
  font-size: 53px;
  
  
}
#se{
  font-weight: bold;
  margin:5px 0;
  font-size: 14px;
  color: #000000;
  
  
}
#psy{
  font-weight: bold;
  margin:5px 0;
  font-size: 14px;
  color: #000000;
  margin-bottom: 10;
  
}
#i{
  /* font-weight: bold; */
  color: #555;
  padding-top: 25px;
  padding-bottom: 10px;
  font-size: 20px;
  
  
}

.social_buttons {
  margin-top: 15px;
  text-align: center; 
}

.social_buttons .icon {
  display: inline-block;
  margin: 0 10px;
  font-size: 36px;
  color: #333;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social_buttons .icon:hover {
  transform: scale(1.2);
}


.icon.linkedin:hover {
  color: #0077B5;
}
.icon.github:hover {
  color: #171515;
}
.icon.facebook:hover {
  color: #1877F2;
}
.icon.whatsapp:hover {
  color: #25D366;
}


#profile_button {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

#profile_button .btn {
padding: 10px 20px;
background-color: #333;
color: white;
font-size: 13px;
font-weight: bold;
text-decoration: none;
border-radius: 10px;
transition: transform 0.3s ease, background-color 0.3s ease;
white-space: nowrap;
}

#profile_button .btn:hover {
  transform: scale(1.05);
background-color: #555;
}

@media (max-width: 768px) {
  #profile_button {
    flex-direction: column;
    align-items: center;
  }

  #profile_button .btn {
    width: auto; 
  }
}


@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);  
  }
  to {
      opacity: 1;
      transform: translateY(0);  
  }
}


@media (max-width: 768px) {
  #profile_button {
      flex-direction: column;  
      gap: 15px;
  }

  .social_buttons {
      margin-top: 20px;  
  }
}

/* home section end */



/* about section start */
#about{
  display: flex;
  flex-direction: column;
  align-items: center;

}

#aboutme{
  font-size: 37px;
  margin: 0;
}

@media (max-width: 768px) {
  #aboutme {
    font-size: 22px;
  }
}

#me_des {
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
  padding-top: 100px;
}

#second_photo{
  
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  
}

#normal_photo{  
  
  width: 320px; 
  height: 400px; 
  border-radius: 25px; 
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  object-fit: cover; 
  opacity: 0; 
  transform: translateX(-100%); 
}

#normal_photo.loaded {
  opacity: 1;
  transform: translateX(0); 
  transition: transform 1s ease-out, opacity 1s ease-out;
}

#normal_photo:hover {
  transform: scale(1.05) rotate(2deg); 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease-in-out; 
}

@media (max-width: 768px) {
  #second_photo {
      
      display: flex;
      justify-content: center;
      width: 100%;
      margin: 20px 0; 
  }

  #normal_photo {
    width: 250px;
    height: 300px;
  }
}

#description{
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
  font-size: 18px;
  line-height: 1.8;
  text-align: justify;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#description p {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  #description {
    font-size: 16px;
    padding: 0 15px;
  }
}
/* about section end */



/* skills section start */

#skills {
  text-align: center;
  padding: 50px 20px;
  font-family: Arial, sans-serif;
}

.tech-heading {
  color: #333;
  font-size: 30px;
}

.line-top {
  display: block;
  color: #000;
  font-weight: bold;
  font-size: 30px;
}

.line-bottom {
  display: block;
  color: #666;
  font-weight: 600;
  font-size: 30px;
}

.tags {
  margin: 15px 0;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  margin: 5px;
  border-radius: 20px;
  background-color: #f0f0f0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: #ddd;
}

.tag.active {
  background-color: #000;
  color: #fff;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 30px auto;
}

.skill {
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: inline-block;
  opacity: 1;
  perspective: 1000px; 
}

.skill.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.skill:hover {
  transform: scale(1.2);
}

.skill img {
  width: 64px;
  height: 64px;
}

.skill p {
  margin: 5px 0 0;
  font-size: 14px;
}

.skill::after {
  content: attr(data-level);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.skill:hover::after {
  opacity: 1;
}


.flip-card {
  width: 100%;
  height: 160px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.skill:hover .flip-card {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-front {
  background-color: #fff;
}

.card-front img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.card-front p {
  font-size: 14px;
  font-weight: bold;
}

.card-back {
  background-color: #000;
  color: #fff;
  transform: rotateY(180deg);
  font-size: 13px;
  text-align: center;
}

.num {
  font-size: 40px;
  font-weight: bold;
  color: #000;
}

.tex {
  font-size: 50px; 
  color: #555;
  margin-top: 5px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
}

.stats div {
  text-align: center;
}

.stats div p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.github-btn {
  padding: 10px 20px;
  background-color: #333;
  color: white;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

.github-btn:hover {
  transform: scale(1.05);
  background-color: #555;
}


/* skills section end */



/* projects section start */
#pr{
  font-size: 37px;
  margin: 0;
}

@media (max-width: 768px) {
  #pr {
    font-size: 22px;
  }
}
.project-section {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 12px;
  /* width: 80%; */
  /* margin: 50px auto; */
  text-align: center;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* subtle container shadow */
}

.carousel {
  display: flex;
  transition: transform 1s ease;
  /* background-color: #fefefe; */
   /* Light off-white card background */
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  background-color: #fefefe;
}

.carousel-item img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.carousel-item:hover img {
  /* background-color:  #fcfcfc; */
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.carousel-item-description {
  background-color: #fefefe; /* Same clean card background */
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  color: #333; /* ensure readable text */
}

.carousel-item-description h3 {
  margin: 10px 0;
}

.project-github-btn {
  padding: 10px 20px;
  background-color: #333;
  color: white;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

.project-github-btn:hover {
  transform: scale(1.05);
  background-color: #555;
}


/* Carousel navigation buttons */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-prev:hover, .carousel-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive Styling */
@media (max-width: 768px) {
  .carousel-item-description h3 {
    font-size: 1.2rem;
  }
  .carousel-item-description p {
    font-size: 0.9rem;
  }
}

/* Larger nav buttons on small screens */
@media (max-width: 480px) {
  .carousel-prev, .carousel-next {
    padding: 14px 18px;
    font-size: 28px;
  }
}




  /* project section end */











/* achievements section start */
#achievement{
  text-align: center;
}
#achi{
  font-size: 37px;
  margin: 0;
}

@media (max-width: 768px) {
  #achi {
    font-size: 22px;
  }
}

#achievement-carousel-container {
  position: relative;
  width: 90%; 
  max-width: 900px;
  margin: 50px auto;
  overflow: auto;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.achievement-carousel {
  display: flex;
  transition: transform 0.6s ease-in-out;
  /* height: 100%; */
  flex-direction: column;
}

.achievement-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 30px 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
  text-align: center;
  animation: fadeZoom 0.6s ease-in-out;
  height: 700px;
  max-height: none;
  overflow-y: auto;
}

.achievement-slide.active {
  display: flex;
}

.achievement-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.achievement-image:hover {
  transform: scale(1.02) rotate(1deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.achievement-description {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  padding: 0 10px;
}

.achievement-title {
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 1.5rem;
  color: #2c3e50;
  margin: 0.5rem 0 0.3rem 0;
}

.achievement-description {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: #34495e;
  line-height: 1.4;
  margin: 0;
}

.achievement-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px 16px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.achievement-prev {
  left: 10px;
}

.achievement-next {
  right: 10px;
}

.achievement-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

@keyframes fadeZoom {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .achievement-description {
    font-size: 1rem;
  }

  #achievement-carousel-container {
    height: auto;
  }

  .achievement-slide {
    height: 600px;
    padding: 20px 10px;
  }


  .achievement-image {
    max-height: none;
    height: auto;
  }
}

/* achievements section end */


/* milestones section start */
#milestones {
  background-color: transparent;
  padding: 80px 0;
  text-align: center;
}

#mil{
  font-size: 37px;
  margin: 0;
}

@media (max-width: 768px) {
  #mil {
    font-size: 22px;
  }
}
.milestone-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  overflow-y: auto;
  max-height: 90vh;
  padding: 0 20px;
  scroll-behavior: smooth;
}

.milestone {
  width: 90%;
  max-width: 500px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.milestone.visible {
  opacity: 1;
  transform: translateY(0);
}

.milestone img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 12px;
}

.milestone-info {
  margin-top: 20px;
}

.milestone h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.milestone p {
  font-size: 16px;
}

.milestone-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px; /* Add space on both sides */
}

/* ----------- Responsive Design ----------- */
@media (max-width: 768px) {
  #milestones {
    padding: 60px 0;
  }

  .milestone-container {
    padding: 0 15px;
    gap: 40px;
    max-height: 85vh;
  }

  .milestone {
    width: 100%;
    padding: 16px;
  }

  .milestone img {
    height: 200px;
  }

  .milestone h3 {
    font-size: 20px;
  }

  .milestone p {
    font-size: 15px;
  }

  .milestone-wrapper {
    padding: 0 20px;
  }
}

@media (min-width: 1200px) {
  .milestone-wrapper {
    padding: 0 100px;
  }
}









/* milestones section end */





/* Contact Section start */
.contact-section {
  /* background: e0e0e0(0, 0, 0, 0.05);  */
  padding: 80px 20px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  max-width: 100%;
}

.contact-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.contact-title {
  font-size: 37px;
  margin: 0;
}

#con{
  font-size: 37px;
  margin: 0;
}

@media (max-width: 768px) {
  #con {
    font-size: 25px;
  }
}

.section-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
  animation: fadeIn 1.5s ease-out;
}


.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.social-icon {
  font-size: 30px;
  color: #555;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: #4A90E2;
  transform: scale(1.2);
}

.social-icon.whatsapp:hover {
  color: #25D366;
}

.social-icon.linkedin:hover {
  color: #0077B5;
}

.social-icon.instagram:hover {
  color: #E4405F;
}

.social-icon.email:hover {
  color: #D44638;
}

.social-icon.facebook:hover {
  color: #1877F2;
}


@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Contact Section end */



/* Scroll to top button start */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #37474f, #263238); /* elegant dark blue-gray */
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-top-btn:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
/* Scroll to top button end */



/* Footer section start */
.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 50px 20px;
  font-family: 'Arial', sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  margin: 20px;
}

.footer-section h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p {
  font-size: 1em;
  line-height: 1.6;
}

.footer-section a {
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: #3498db;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 1.2em;
  color: #7f8c8d;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    text-align: center;
  }
}
/* Footer section end */



/* section title */

  .all {
    font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 0;
  text-align: center;
  color: #666; /* Light ash color */
  margin-bottom: 1rem;
  }
  
  @media (max-width: 768px) {
    .all {
      font-size: 1rem;
    }
  }
  
