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

body {
  font-family: 'Manrope', sans-serif;
  /* background: linear-gradient(to right, #1e202e, #60519b); */
  /* background-color: rgba(0, 0, 0, 0.3); */
    background: linear-gradient(to right, #1e202e, #3d325f); 
  color: white;
  scroll-behavior: smooth;
  min-height: 100vh;
}
.highlight {
  /* color: hsl(0, 0%, 100%); */
  color: rgb(136, 127, 214);
  font-weight: 600;
   /* text-shadow: 0 0 5px rgba(196, 20, 240, 0.3);  */
}


/* Navbar */
header {
  padding: 15px 20px;
  /* background-color: rgba(0, 0, 0, 0.3); */
    background: linear-gradient(to right, #1e202e, #3d325f); 
}

.navbar {
 display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
   font-size: 32px;
  font-weight: bold;
  margin-left: 30px;

}

.nav-links {
    display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
   color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.5rem; /* Reduced font size */
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #e1bfb0;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: row; /* Keep horizontal layout */
    padding: 15px 5%;
  }
  
  .nav-links {
    gap: 15px; /* Smaller gap on mobile */
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    padding-bottom: 5px; /* Space for scrollbar */
  }
  
  .nav-links::-webkit-scrollbar {
    height: 3px;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.2rem;
    margin-left: 0;
  }
  
  .nav-links {
    gap: 10px;
  }
}

 .hero {
  display: flex;
   margin-bottom: 0;
  align-items: center;
  justify-content: center;
   padding-bottom: 20px; /* Reduced from 40px 20px */
  gap: 60px; /* Reduced from 80px */
  flex-wrap: wrap;
  min-height: 65vh; /* Reduced from 100vh */
  /* background-color: rgba(0, 0, 0, 0.3); */

}


.hero-img img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  animation: fadeSlideIn 0.8s ease forwards 2s, float 4s ease-in-out infinite;
}

.hero-content {
 
  max-width: 600px;
  min-height: 30vh;
}

.typewriter-text {
  font-size: 40px;
  margin-bottom: 20px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #e1bfb0;
  animation: typing 1.5s steps(40, end), blink 0.5s step-end infinite;
}

.typewriter-subtext {
  font-size: 20px;
  margin-top: 10px;
  color: #e1bfb0;
  animation: fadeIn 2s ease-in;
}

/* button */
.resume-button {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 4s; /* Adjust timing to match typewriter */
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #7b4397, #dc2430); /* same as navbar gradient */
  border: none;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

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

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .hero-img img {
    width: 200px;
    height: 200px;
  }

  .hero-content {
    max-width: 100%;
  }

  .typewriter-text {
    font-size: 28px;
  }

  .typewriter-subtext {
    font-size: 16px;
  }

  .resume-button {
    font-size: 0.9rem;
    padding: 8px 20px;
  }

  .socials {
    left: 10px;
  }

  .email {
    right: 10px;
  }

  .email a {
    font-size: 12px;
  }
}






/* Initial animation states */
.logo, 
.nav-links li, 
.hero-img img, 
.typewriter-text, 
.typewriter-subtext {
  opacity: 0;
  transform: translateY(-20px);
}

/* Logo Animation */
.logo {
  animation: fadeSlideIn 0.6s ease forwards;
  animation-delay: 0.2s;
}

/* Nav Links Staggered Animation */
.nav-links li:nth-child(1) {
  animation: fadeSlideIn 0.6s ease forwards;
  animation-delay: 0.8s;
}
.nav-links li:nth-child(2) {
  animation: fadeSlideIn 0.6s ease forwards;
  animation-delay: 1s;
}
.nav-links li:nth-child(3) {
  animation: fadeSlideIn 0.6s ease forwards;
  animation-delay: 1.2s;
}
.nav-links li:nth-child(4) {
  animation: fadeSlideIn 0.6s ease forwards;
  animation-delay: 1.4s;
}


/* Name Animation */
.typewriter-text {
  animation: fadeSlideIn 0.8s ease forwards, typing 4s steps(40, end);
  animation-delay: 2.8s, 2.8s; /* Run fade first, then typing */
}

/* Roles Animation */
.typewriter-subtext {
  animation: fadeSlideIn 0.8s ease forwards;
  animation-delay: 3.5s;
}

/* Common Animation */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Animations */
 @keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
} 

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent; }
}

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












/* Social Icons - Left Side */
.socials {
  position: fixed;
  bottom: 0;
  left: 40px;
  z-index: 10;
}

.socials ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 0;
}

.socials a {
  color: #fafafa;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.socials a:hover {
  color: #fafafa;
  transform: translateY(-3px);
}

/* Email - Right Side */
.email {
  position: fixed;
  bottom: 0px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.email a {
   writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-decoration: none;
  font-size: 14px;
  color: #fafafa;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  margin-bottom: 10px;
}


.email a:hover {
  color: #ffffff;
}
/* Add vertical line under social icons */
.socials::after {
  content: "";
  display: block;
  width: 1px;
  height: 100px;
  background-color: #fafafa;
  margin: 20px auto 0;
}

/* Add vertical line above email */
.email::after {
  content: "";
  display: block;
  width: 1px;
  height: 100px;
  background-color:#fafafa;
   margin: 20px auto 0;
}


/* Footer */
footer {
  text-align: center;
  padding: 20px; 
  margin-top: 40px;
}

@media (max-width: 768px) {
  footer {
    padding: 10px;
    font-size: 14px;
  }

  .socials,
  .email {
    display: none; /* Optional: hide on mobile for cleaner UI */
  }
}




/* about section */

.about-section {
      padding: 30px 20px 50px 20px;
        margin-top: -20px;
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 20px;
      align-items: start;
      min-height: 100vh;
      position: relative; /* Added for proper positioning */
    }
     /* .about-sticky-container {
      position: relative;
      top: 120px; 
      height: fit-content;
      align-self: start;
    }  */
     .about-section h2 {
      font-size: 40px;
      position: relative;
      color: #e1bfb0;
      top: 150px; /* Adjusted to account for navbar */
      text-align: right;
      padding-right: 30px;
      border-right: 2px solid rgba(255, 255, 255, 0.2);
      height: fit-content;
      opacity: 0;
      transform: translateX(-20px);
      transition: all 0.6s ease 0.3s; /* Added delay */
    }

    .about-content {
      position: relative;
      top: 120px;
        height: fit-content;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

       .about-card {
       background-color: rgba(255, 255, 255, 0.05);
  padding: 40px; /* Increased from 30px */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  min-height: 230px; /* Added minimum height */
  font-size: 1.1rem; /* Slightly larger font */
  line-height: 1.7; /* Better readability */
  display: flex;
  align-items: center; /* Vertically center content */
       }

    /* Animation triggers when scrolled to */
     .about-section.in-view h2 {
      opacity: 1;
      transform: translateX(0);
      transition-delay: 0.3s;
    }

    .about-section.in-view .about-card:nth-child(1) {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.8s;
    }

    .about-section.in-view .about-card:nth-child(2) {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 1s;
    }

   @media (max-width: 768px) {
  .about-section {
    display: block;
    padding: 30px 15px;
    min-height: auto;
  }

  .about-section h2 {
    font-size: 28px;
    text-align: center;
    border: none;
    padding: 0;
    margin-bottom: 25px; /* Reduced from 40px to a more balanced spacing */
    position: static;
    top: auto;
    transform: none;
    opacity: 1;
  }

  .about-content {
    position: static;
    top: auto;
    gap: 16px;
  }

  .about-card {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
  }
}


    /* PROJECTS */
  /* PROJECTS SECTION */
.projects-section {
   opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-heading {
  font-size: 2.5rem;
  margin-bottom: 60px;
  text-align: center;
  color: #e1bfb0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.project-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 80px;
  position: relative;
  min-height: 400px;
   opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.projects-section.in-view .project-container {
  opacity: 1;
  transform: translateY(0);
}

.project-image {
  flex: 1.2;
  min-width: 60%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(169, 158, 212, 0.6); /* Purple overlay color */
  mix-blend-mode: multiply;
  z-index: 2;
  transition: opacity 0.5s ease;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
   transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(20%) contrast(1.1);

}

.project-image:hover img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1);
}

.project-image:hover::before {
  opacity: 0;
}

.project-title-container {
  position: absolute;
  right: 0;
  top: 20px;
  width: 40%;
  padding-left: 30px;
  z-index: 3;
  margin-bottom: -40px;
}

.project-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color:  #d9a6f3;
  text-align: right;
  position: relative;
  padding-bottom: 10px;
}

.project-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px; /* Adjust length as needed */
  height: 2px;
  background: linear-gradient(90deg, #d9a6f3, transparent);
}

.project-content {
  flex: 0.8;
  width: 45%;
  background: rgba(30, 32, 46, 0.95);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  margin-left: -150px;
  margin-top: 80px;
  border: 1px solid rgba(136, 127, 214, 0.2);
}

/* Staggered animations */
.projects-section.in-view .project-container:nth-child(2) { /* First project */
  transition-delay: 0.2s;
}

.projects-section.in-view .project-container:nth-child(3) { /* Second project */
  transition-delay: 0.4s;
}

.projects-section.in-view .project-container:nth-child(4) { /* Third project */
  transition-delay: 0.6s;
}


.project-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform {
  background: rgba(136, 127, 214, 0.1);
  color: rgb(136, 127, 214);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(136, 127, 214, 0.3);
}

/* Alternate layout for even projects */
.project-container.reverse {
  flex-direction: row-reverse;
}

.project-container.reverse .project-title-container {
  left: 0;
  right: auto;
  padding-left: 0;
  padding-right: 30px;
}

.project-container.reverse .project-title {
  text-align: left;
}

.project-container.reverse .project-content {
  margin-left: 0;
  margin-right: -150px;
}

.project-container.reverse .project-title::after {
  right: auto;
  left: 0;
  background: linear-gradient(90deg, transparent, #d9a6f3);
}


.project-container:hover .project-image img {
  transform: scale(1.05);
}

/* Animations */
.projects-section.in-view .section-heading,
.projects-section.in-view .project-container {
  opacity: 1;
  transform: translateY(0);
}

.projects-section.in-view .section-heading {
  transition-delay: 0.2s;
}

.projects-section.in-view .project-container:nth-child(2) {
  transition-delay: 0.4s;
}

.projects-section.in-view .project-container:nth-child(3) {
  transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
  .project-container,
  .project-container.reverse {
    flex-direction: column;
  }
  
  .project-title-container {
    position: static;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    order: -1; /* This moves the title before the image */
  }
  
  .project-title {
    text-align: center;
  }
  
  .project-content {
    margin: 0 !important;
    width: 100%;
    order: 2; /* This ensures content stays after image */
  }
  
  .project-image {
    height: 300px;
    order: 1; /* This puts image after title but before content */
  }
  
  .project-title::after {
    right: 0;
    left: 0;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, #d9a6f3, transparent);
  }
}
/* Experience & Education Section */
.experience-education-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.experience-education-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.experience-education-section .section-heading {
  font-size: 2.5rem;
  text-align: center;
  color: #e1bfb0;
  margin-bottom: 50px;
   opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.experience-education-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.experience-education-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  font-size: 1.05rem;
  line-height: 1.7;
}

.experience-education-section.in-view .experience-education-card:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.experience-education-section.in-view .experience-education-card:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.experience-education-card h3 {
  font-size: 1.8rem;
  color: #d9a6f3;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .experience-education-container {
    grid-template-columns: 1fr;
  }
}


/* skills */
/* Skills Section Styling */

.education-title{
      text-align: center;
      font-size: 2.5rem;
      margin-top: 60px;
      background: #e1bfb0 ;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      opacity: 0;
      transform: translateY(50px);
      transition: all 0.8s ease-out;
    }

 .section-title {
      text-align: center;
      font-size: 2.5rem;
      margin-top: 60px;
      background: #e1bfb0 ;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      opacity: 0;
      transform: translateY(50px);
      transition: all 0.8s ease-out;
    }

    .skills-bubbles.show .section-title {
      opacity: 1;
      transform: translateY(0);
    }

    .skills-bubbles {
      padding: 60px 20px;
      text-align: center;
      opacity: 0;
      transform: translateY(50px);
      transition: all 1s ease-out;
    }

    .skills-bubbles.show {
      opacity: 1;
      transform: translateY(0);
    }

    .bubbles-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
      max-width: 1000px;
      margin: 40px auto;
    }

    .bubble {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 15px 25px;
      background: rgba(255, 255, 255, 0.1);
      border: 2px solid #ece4f0;
      border-radius: 50px;
      font-weight: 500;
      font-size: 1rem;
      color: #ffffff;
      position: relative;
      animation: float 6s ease-in-out infinite;
      transition: 0.3s;
      cursor: default;
    }

    .bubble:hover {
      background: #dfd8e2;
      color: #0d0d0d;
      transform: scale(1.1);
    }

    .section-subtitle {
      font-size: 1.8rem;
      margin: 40px 0 10px;
      color: #d9a6f3;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-15px); }
    }

    @media screen and (max-width: 600px) {
      .bubble {
        padding: 12px 18px;
        font-size: 0.9rem;
      }
    }
 
 .contact-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
   opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.contact-content {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  width: 100%;
  margin-left: auto;
}

.contact-left {
  flex: 1;
padding-left: 70px; 
  min-width: 300px;
}

.contact-left h2 {
  font-size: 2.5rem;
  color: #e1bfb0;
  margin-bottom: 20px;
}

.contact-left p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #fff;
  max-width: 600px;
}

.contact-right {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.contact-img {
  width: 450px;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
   align-items: center;  
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.contact-socials a {
  color: #fff;
  font-size: 24px;
  transition: color 0.3s ease;
}

.contact-socials a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  /* Stack content vertically */
  .contact-content {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  
  /* Remove left padding on small screens for better centering */
  .contact-left {
    padding-left: 0;
    width: 100%;
    text-align: center; /* Center the text */
  }

  /* Adjust heading size for smaller screens */
  .contact-left h2 {
    font-size: 2rem;
  }

  /* Adjust paragraph font size for readability */
  .contact-left p {
    font-size: 1rem;
    max-width: 100%;
  }

  /* Center the contact image and make it responsive */
  .contact-img {
    width: 70%;
    max-width: 300px; /* Optional: keep max width for larger screens */
    height: auto;
    margin-bottom: 20px;
  }

  /* Center the social icons */
  .contact-socials {
    justify-content: center;
  }
}
