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

body{
    font-family: 'Poppins', Arial, sans-serif;
    background: #f7f8fa;
    color: #222;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

#mobile-heading{
  display: none;
}
#type-text{
  flex-wrap: wrap;
}

.main-section{
  padding: 40px 5vw;
  max-width: 1200px;
  margin: 6rem auto;
  width: 100%;
}

/* BUTTONS */
.intro-section button, .About-section button, form button {
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5858 0%, #f857a6 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 12px rgba(248, 87, 166, 0.08);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.intro-section button:hover, .About-section button:hover, form button:hover {
  background: linear-gradient(90deg, #f857a6 0%, #ff5858 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 24px rgba(248, 87, 166, 0.15);
}

/* INTRO-SECTION */
.intro-section{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}
.intro-section h1{
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.intro-section p{
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.intro-section button{
  margin-top: 2rem;
}

.intro-section .imgContainer{
  min-width: 220px;
  min-height: 220px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  box-shadow: 0 4px 32px rgba(248, 87, 166, 0.10);
  background-image: url(/images/IMG-20220605-WA0126.jpg);
  background-size: cover;
  background-position: center;
  margin: auto;
  transition: box-shadow 0.3s, transform 0.3s;
}
.intro-section .imgContainer:hover {
  box-shadow: 0 8px 48px rgba(248, 87, 166, 0.18);
  transform: scale(1.04);
}

/* ABOUT SECTION  */
.About-section h2{
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.line{
  width: 4rem;
  height: 5px;
  background: linear-gradient(90deg, #ff5858 0%, #f857a6 100%);
  border-radius: 3px;
  margin-bottom: 1.2rem;
}
.line-1{
  margin-bottom: 5px;
  width: 8rem;
}
.About-section h4{
  line-height: 2.5;
  font-size: 1.5rem;
}
#details{
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  line-height: 1.7rem;
  padding: 1rem 0px;
  margin-bottom: .7rem;
  border-bottom: none;
}
.box{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}


.sideOne > p{
  font-size: 0.9rem;
}
.About-section span{
  font-weight: 700;
  color: #f857a6;
}
.box p{
  margin-bottom: 0.7rem;
}
button > a{
  text-decoration: none;
}
.About-section{
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}



/* PORTFOLIO DESIGN */
/* project section  */

#projects .projects {
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0;
  width: 100%;
}

#projects .projects-header h1 {
  margin-bottom: 50px;
}

#projects .all-projects {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  gap: 40px;
}

#projects .project-item {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: #fff;
}

#projects .project-info {
  padding: 30px;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
  color: white;
  min-height: 300px;
}

#projects .project-info h1 {
  font-size: 4rem;
  font-weight: 500;
}

#projects .project-info h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: 10px;
}

#projects .project-info p {
  color: white;
}

#projects .project-img {
  flex: 1;
  height: 300px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#projects .project-img:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
  opacity: 0.7;
}

#projects .project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease transform;
}

#projects .project-item:hover .project-img img {
  transform: scale(1.1);
}

@media only screen and (min-width: 768px) {
  #projects .project-item {
    flex-direction: row;
    height: 400px;
  }
  #projects .project-item:nth-child(even) {
    flex-direction: row-reverse;
  }
  #projects .project-item {
    margin: 0 0 40px 0;
    width: 100%;
    border-radius: 10px;
  }

  #projects .all-projects .project-info {
    height: 100%;
    min-height: 400px;
  }

  #projects .all-projects .project-img {
    height: 100%;
    min-height: 400px;
  }
}


/* CONTACT-SECTION */
.contact-section h1{
  font-size: 2rem;
  text-align: center;
}
.contact-section h4{
  margin: 1rem 0px;
  text-align: center;
}
.contact-section #p1{
  text-align: center;
  margin-bottom: 2rem;
}
.contactBox{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.box1{
  background: #f7f8fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(248, 87, 166, 0.07);
  padding: 1.2rem 1rem;
  min-width: 180px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
.box1:hover {
  box-shadow: 0 8px 32px rgba(248, 87, 166, 0.18);
  transform: translateY(-4px) scale(1.03);
}
#faq{
  text-align: center;
  font-weight: 700;
  
}

  /* FORM SECTION */
form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
label {
    display: block;
    margin-top: 10px;
}
input, textarea {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: 'Poppins', Arial, sans-serif;
    background: #f7f8fa;
    transition: border 0.2s;
}
input:focus, textarea:focus {
    border: 1.5px solid #f857a6;
    outline: none;
}

/* SOCIAL-ICONS */
.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}
.social-icons a {
  font-size: 2rem;
  color: #f857a6;
  transition: transform 0.2s, color 0.2s;
}
.social-icons a:hover {
  color: #ff5858;
  transform: scale(1.2) rotate(-8deg);
}

/* CSS for sidebar */
.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f857a6;
  letter-spacing: 0.5px;
}

.sidebar {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  transition: all 0.3s ease;
}

.nav-section {
  width: 18%;
  float: left;
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.main-section {
  width: 80%;
  margin-left: 20%;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.sidebar ul li {
  margin: 1.2rem 0;
}

.sidebar ul li a {
  color: #222;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.sidebar ul li a:hover {
  color: #f857a6;
}

.social-icons{
  height: 2rem;
}
.icons{
  font-size: 30px;
  transition: 300ms;
}
.icons:hover{
  font-size: 40px;
}

/* Fixed navigation styles */
.sidebar.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  border-radius: 0;
  margin: 0;
  z-index: 1000;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  transform: translateY(0);
  gap: 1rem;
}


.sidebar.fixed-nav .nav-brand {
  margin-bottom: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar.fixed-nav .brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f857a6;
  letter-spacing: 0.5px;
}

.sidebar.fixed-nav ul {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
  gap: 1rem;
  flex: 1;
  list-style: none;
  margin-bottom: 0 !important;
}

.sidebar.fixed-nav ul li {
  margin: 0 !important;
  padding: 0;
  display: block;
}

.sidebar.fixed-nav ul li a {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #222;
  font-weight: 600;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
}

.sidebar.fixed-nav ul li a:hover {
  background: rgba(248, 87, 166, 0.1);
  transform: translateY(-2px);
  color: #f857a6;
}

.sidebar.fixed-nav ul li a.nav-link.active {
  color: #f857a6;
  background: rgba(248, 87, 166, 0.1);
}

.sidebar.fixed-nav .social-icons {
  margin: 0;
  height: auto;
  flex-shrink: 0;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.sidebar.fixed-nav .icons {
  font-size: 20px;
  color: #666;
  transition: all 0.3s ease;
}

.sidebar.fixed-nav .icons:hover {
  color: #f857a6;
  transform: translateY(-2px) scale(1.1);
}

.sidebar.fixed-nav #darkModeToggle {
  margin: 0;
  font-size: 1rem;
  padding: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.sidebar.fixed-nav #darkModeToggle:hover {
  background: rgba(248, 87, 166, 0.1);
  transform: scale(1.1);
}

/* Adjust main section when nav is fixed */
.main-section.nav-fixed {
  margin-left: 0;
  width: 100%;
  padding-top: 100px;
  transition: all 0.3s ease;
}

/* Prevent layout shift by maintaining consistent spacing */
.nav-section {
  width: 18%;
  float: left;
  position: sticky;
  z-index: 1;
  top: 0;
  height: fit-content;
  transition: all 0.3s ease;
}

.main-section {
  width: 80%;
  margin-left: 20%;
  transition: all 0.3s ease;
}

.menu-toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #f857a6;
  cursor: pointer;
  display: none;
}

/* Media query for mobile view */
@media (max-width: 768px) {
  .sidebar {
      width: 100%;
      height: auto;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      padding: 1rem;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: 0;
      margin: 0;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      transition: all 0.3s ease;
      gap: 1rem;
  }

  .nav-brand {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .sidebar ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 1rem;
    flex: 1;
    display: none;
  }

  .sidebar ul li {
    padding: 0;
    margin: 0;
  }

  .sidebar ul li a {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
  }

  .sidebar ul li a:hover {
    background: rgba(248, 87, 166, 0.1);
    transform: translateY(-2px);
  }

  .social-icons {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 0.75rem;
    flex-shrink: 0;
    display: none;
  }

  .menu-toggle{
    display: inline-block;
  }

  .nav-fixed{
    display: none;
  }

  .social-icons a {
    margin: 0;
  }

  .icons {
    font-size: 20px;
  }

  #darkModeToggle {
    margin: 0;
    font-size: 1rem;
    padding: 0.4rem;
  }

  .nav-section {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
  }

  body {
    background: rgb(238, 240, 244);
    display: block;
    padding: 0;
    overflow-x: hidden;
  }

  /* Main section */
  #Heading {
    display: none;
  }
  
  #marginTop {
    margin-top: 5rem;
  }
  
  #mobile-heading {
    display: block;
  }
  
  .main-section {
    width: 100%;
    margin-left: 0;
    display: block;
    padding: 80px 20px 20px 20px;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
}

/* ANIMATIONS (for fallback if JS is off) */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.9s;
}
[data-aos].aos-animate {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .main-section {
    padding: 30px 2vw;
  }
  .intro-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .education-section {
    flex-direction: column;
  }
  .contactBox {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .main-section, .About-section, .portfolio-section, .contact-section {
    padding: 1.2rem 0.5rem;
  }
  .sidebar {
    padding: 1rem 0.5rem;
  }
  .intro-section .imgContainer {
    width: 160px;
    height: 160px;
    min-width: 120px;
    min-height: 120px;
  }
  .contactBox {
    grid-template-columns: 1fr;
  }
}

/* DARK MODE */
body.dark-mode {
  background: #181824;
  color: #f7f8fa;
}
body.dark-mode .sidebar,
body.dark-mode .About-section,
body.dark-mode .portfolio-section,
body.dark-mode .contact-section,
body.dark-mode .education,
body.dark-mode .experience {
  background: #23243a;
  color: #f7f8fa;
}
body.dark-mode .sidebar.fixed-nav {
  background: rgba(35, 36, 58, 0.95);
  backdrop-filter: blur(10px);
}
body.dark-mode .project {
  background: #23243a;
}
body.dark-mode .box1 {
  background: #23243a;
}
body.dark-mode input,
body.dark-mode textarea {
  background: #23243a;
  color: #f7f8fa;
  border-color: #444;
}
body.dark-mode .nav-link.active {
  color: #f857a6;
}

/* DARK MODE TOGGLE BUTTON */
#darkModeToggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}
#darkModeToggle:hover {
  color: #f857a6;
}

/* ANIMATED BACKGROUND */
.animated-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  background: linear-gradient(120deg, #f857a6 0%, #ff5858 100%);
  background-size: 200% 200%;
  animation: gradientMove 8s ease-in-out infinite;
  opacity: 0.12;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* TYPED TEXT */
#typed-text {
  border-right: 2px solid #f857a6;
  white-space: nowrap;
  /* overflow: hidden; */
  display: inline-block;
  height: 2.5rem;
}

/* MODAL POPUP */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24, 24, 36, 0.85);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  color: #222;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  max-width: 400px;
  width: 90vw;
  position: relative;
  box-shadow: 0 8px 32px rgba(248, 87, 166, 0.18);
  animation: modalIn 0.4s cubic-bezier(.68,-0.55,.27,1.55);
}
body.dark-mode .modal-content {
  background: #23243a;
  color: #f7f8fa;
}
@keyframes modalIn {
  from { transform: scale(0.8) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.close-modal {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #f857a6;
}

/* SCROLL TO TOP BUTTON */
#scrollToTop {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: linear-gradient(90deg, #ff5858 0%, #f857a6 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.5rem;
  box-shadow: 0 2px 12px rgba(248, 87, 166, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}
#scrollToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.08);
}

/* FORM SUCCESS MESSAGE */
.form-success-message {
  display: none;
  position: fixed;
  top: 1.5rem; left: 50%;
  transform: translateX(-50%);
  background: #4bb543;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: 0 2px 12px rgba(76, 175, 80, 0.18);
  animation: fadeInOut 2.5s;
}
@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* NAV LINK ACTIVE (SCROLL SPY) */
.nav-link.active {
  color: #f857a6 !important;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s;
}

/* Smooth transitions for theme */
body, .sidebar, .About-section, .portfolio-section, .contact-section, .education, .experience, .project, .box1, input, textarea {
  transition: background 0.4s, color 0.4s, box-shadow 0.3s;
}



/*small device toggle style */
.mobile-menu-container {
  display: none;
  flex-direction: column;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.97);
  padding: 2rem 1rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: slideDown 0.3s ease forwards;
}

.mobile-menu-container.active {
  display: inline-block;
}

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