/* Reset */
/* background-color: #09131c; */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: #00cce7;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #0c1a25;
  color: white;
  padding: 0px 0px;
}

.navbar {
  background-color: #09131c;
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.logo{
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.logo img{
  height: 40px;
  width: 40px;
}

.menu-icon {
  display: none; /* Hidden by default */
  cursor: pointer;
  z-index: 1002;
  padding: 10px;
  /* width: 45px;
  height: 40px; */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #00a3b9;
  margin: 3px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-icon.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-icon.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-icon.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
  display: flex;
  list-style-type: none;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #00cce7;
}

.nav-indicator {
  position: absolute;
  bottom: -4px;
  height: 2px;
  background-color: #00cce7;
  transition: 0.3s ease-in-out;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #09131c;
  transition: 0.3s;
  z-index: 1001;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
  list-style-type: none;
  padding: 1rem 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.sidebar-link i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  transition: color 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #00cce7;
  background-color: rgba(0, 204, 231, 0.1);
}

.sidebar-link:hover i,
.sidebar-link.active i {
  color: #00cce7;
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
}

.home-icon { background-image: url('path_to_home_icon.svg'); }
.about-icon { background-image: url('path_to_about_icon.svg'); }
.edu-experience-icon { background-image: url('path_to_resume_icon.svg'); }
.portfolio-icon { background-image: url('path_to_portfolio_icon.svg'); }
.contact-icon { background-image: url('path_to_contact_icon.svg'); }

.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 80px;
  background-color: #0c1a25;
}

.intro-text {
  max-width: 600px;
}

.intro-text h1 {
  font-size: 48px;
  line-height: 1.2;
  color: #ffffff;
}

.intro-text span {
  color: #00f0ff;
}

.intro-text p {
  margin: 20px 0;
  font-size: 18px;
  line-height: 1.6;
  color: #c4c4c4;
}

.social-links a {
  margin-right: 10px;
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #00f0ff;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #00f0ff;
  color: #09131c;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #00c4ff;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.intro-image img {
  width: 350px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 30px 10px rgba(0, 240, 255, 0.7);
  border: 10px solid #0c1a25;
  background: linear-gradient(145deg, #00f0ff, #7600ff);
  padding: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition for smooth scaling */
}

.intro-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #7600ff, #00f0ff);
  border-radius: 50%;
  padding: 15px;
  box-shadow: 0 0 30px 15px rgba(0, 240, 255, 0.4);
  animation: float 2s ease-in-out infinite;
}

/* Hover effect */
.intro-image img:hover {
  cursor: pointer;
  transform: scale(1.1); /* Slightly enlarge the image */
  box-shadow: 0 0 40px 15px rgba(0, 240, 255, 0.9); /* Enhance shadow for hover */
}



.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 1rem;
  background-color: #0c1a25;
  gap: 20px;
  overflow-x: hidden;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-100%);
  transition: transform 0.8s ease-out;
}

.about-text {
  flex: 1;
  max-width: 100%;
  color: #ffffff;
  transform: translateX(100%);
  transition: transform 0.8s ease-out;
}

.about-image.visible,
.about-text.visible {
  transform: translateX(0);
}

.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 30px 10px rgba(0, 240, 255, 0.7);
  border: 10px solid #0c1a25;
  background: linear-gradient(145deg, #00f0ff, #7600ff);
  padding: 5px;
}

.about-text h2 {
  font-size: 48px;
  line-height: 1.2;
}

.about-text span {
  color: #00f0ff;
}

.about-text h3 {
  font-size: 24px;
  margin-top: 10px;
}

.about-text p {
  margin: 20px 0;
  font-size: 18px;
  line-height: 1.6;
  color: #c4c4c4;
}



.services {
  padding: 100px 20px;
  background-color: #0c1a25;
  text-align: center;
}

.services h2 {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 50px;
}

.services h2 span {
  color: #00f0ff;
}

.services-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.service-box {
  background-color: #112233;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 0 15px 10px rgba(0, 240, 255, 0.1);
  width: 500px;
  margin: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
  cursor: pointer;
  transform: translateY(-10px) scale(1.05); /* Add scale effect */
  box-shadow: 0 0 30px 15px rgba(0, 240, 255, 0.3);
}


.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #00f0ff;
}

.service-box h3 {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 15px;
}

.service-box p {
  font-size: 16px;
  color: #c4c4c4;
  margin-bottom: 20px;
}

.service-box .btn {
  display: inline-block;
  padding: 10px 20px;
  color: #ffffff;
  background-color: #00f0ff;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.service-box .btn:hover {
  background-color: #00cce7;
}


.skills-section {
    width: 80%;
    margin: auto;
    color: #fff;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #fff;
    display: inline-block;
}

.skill-bar {
  margin: 20px 0;
}

p {
  margin: 0;
}

.progress {
  background-color: #333;
  border-radius: 20px;
  position: relative;
  margin: 5px 0;
  height: 25px;
  width: 100%;
}

.progress-done {
  background: linear-gradient(to left, #00f260, #0575e6);
  box-shadow: 0 3px 3px -5px #00f260, 0 2px 5px #0575e6;
  border-radius: 20px;
  color: #fff;
  height: 100%;
  width: 0; /* Initial state for animation */
  opacity: 0; /* Hidden initially */
  transition: width 2.5s ease, opacity 0.5s ease;
}

.circular-skills {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(#0575e6 calc(var(--percent) * 1%), #333 0);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform: scale(0); /* Shrunk initially */
  transition: transform 1.2s ease, background 1.2s ease;
}

.circle.visible {
  transform: scale(1); /* Expand when visible */
}

.circle:not(.visible) {
  transform: scale(0.6); /* Slightly smaller when out of view */
}

.inner-circle {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.circle p {
  position: absolute;
  bottom: -30px;
  text-align: center;
}
/* This is for edu-experience section  */
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  margin: 8rem 4rem 6rem 6rem;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section h2 i {
  font-size: 2rem;
  opacity: 0.8;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item a{
  text-decoration: none;
}
.timeline-item a:hover p{
  color: #00cce7;
}

.timeline-dot {
  position: absolute;
  left: -2.1rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #00cce7;
}

.timeline-content h3 {
  color: #00cce7;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.date {
  color: #8892b0;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.institution {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.description {
  color: #8892b0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Hover Effects */
.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content h3 {
  transform: translateX(10px);
  transition: transform 0.3s ease;
}
/* Initial state for timeline items */
.timeline-item {
  opacity: 0;
  transform: translateY(20px); /* Start off below the screen */
  transition: opacity 1s ease, transform 1s ease;
}

/* Animation class when the item becomes visible */
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0); /* Animate to its original position */
}
/* This is for project section  */
.projects{
  width: 100%;
  text-align: center;
}
.projects h2{
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 50px;
  text-align: center;
}
.projects h2 span{
  color: #00c4ff;
}
.projects {
  padding: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-item.visible {
  opacity: 1;
  transform: translateY(0);
}


.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-link {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link i {
  font-size: 1.5rem;
}

.project-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #00cce7;
  transform: scale(1.1);
}



.contact {
  padding: 100px 80px;
  background-color: #0c1a25;
  color: #ffffff;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-info,
.contact-form {
  flex: 1;
  max-width: 45%;
  transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
.contact-info.visible, .contact-form.visible {
  transform: translateX(0);
  opacity: 1;
}
.contact-info h2 {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 20px;
}

.contact-info h2 span {
  color: #00f0ff;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #c4c4c4;
}

.contact-info p strong {
  color: #ffffff;
}

.social-links a {
  font-size: 24px;
  color: #00f0ff;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #00cce7;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: none;
  background-color: #112233;
  color: #ffffff;
  font-size: 16px;
}

.contact-form textarea {
  height: 150px;
  resize: none;
}
.contact-info a{
  text-decoration: none;
  color: white;
}
.contact-info a:hover{
  color: #00c4ff;
}
.contact-form .btn {
  width: 100%;
  padding: 15px 20px;
  background-color: #00f0ff;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form .btn:hover {
  background-color: #00cce7;
}

/* Animation styles */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item, .project-item, .animate-on-scroll {
  opacity: 0; /* Initially hidden */
  transform: translateY(20px); /* Start off below the screen */
  transition: opacity 1s ease, transform 1s ease; /* Animation transition */
}

.timeline-item.visible, .project-item.visible, .animate-on-scroll.visible {
  opacity: 1; /* Fully visible */
  transform: translateY(0); /* Animate to its original position */
}
/* This is for footer section  */
#footer {
  background-color: #09131c;
  display: flex;
  flex-direction: column;
  padding: 3rem 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 1s ease, transform 1s ease;
}

#footer.visible {
  opacity: 1;
  transform: translateY(0);
}
#footer h3 {
  text-align: center;
  font-size: 2.5rem;
  color: white;
  margin: 1rem;
}

#footer h3 span {
  color: #00f0ff;
}

#footer p {
  margin: 5px;
  font-size: 1.3rem;
}

.card {
  display: flex;
  height: 70px;
  width: 270px;
  margin-bottom: 0.7rem;
}

.card svg {
  position: absolute;
  display: flex;
  width: 60%;
  height: 100%;
  font-size: 24px;
  font-weight: 700;
  opacity: 1;
  transition: opacity 0.25s;
  z-index: 2;
  cursor: pointer;
}

.card .social-link1,
.card .social-link2,
.card .social-link3,
.card .social-link4 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25%;
  color: whitesmoke;
  font-size: 24px;
  text-decoration: none;
  transition: 0.25s;
  border-radius: 50px;
}

.card svg {
  transform: scale(1);
}

.card .social-link1:hover {
  background: #f09433;
  background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f09433', endColorstr='#bc1888',GradientType=1 );
  animation: bounce_613 0.4s linear;
}

.card .social-link2:hover {
  background-color: rgb(7, 98, 200);
  animation: bounce_613 0.4s linear;
}

.card .social-link3:hover {
  background-color: #000000;
  animation: bounce_613 0.4s linear;
}

.card .social-link4:hover {
  background-color: #12a50b;
  animation: bounce_613 0.4s linear;
}

@keyframes bounce_613 {
  40% {
    transform: scale(1.4);
  }

  60% {
    transform: scale(0.8);
  }

  80% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}


.popup {
  position: fixed;
  right: 20px;
  top: 20px;
  background-color: #00f0ff;
  color: white;
  padding: 16px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1000;
}

.popup.show {
  opacity: 1;
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}
/* Webkit browsers (Chrome, Safari, newer versions of Edge) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0c1a25;
}

::-webkit-scrollbar-thumb {
  background: #00cce7;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00a3b9;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #00cce7 #0c1a25;
}

/* For Internet Explorer */
body {
  scrollbar-face-color: #00cce7;
  scrollbar-track-color: #0c1a25;
  /* scrollbar-track-color: #0c1a25; */
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 1024px) {
  .projects-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width:980px){
  .intro{
    flex-direction: column-reverse;
    padding: 4rem .5rem;
  }

  .intro-text{
    max-width: 100%;
    padding: 1rem;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width:790px) {
  .about{
    flex-direction: column;
  }
  .about-image img {
    border-radius: 0%;
    border: 0px solid #0c1a25;
    padding: 5px;
  }
  .circle {
    margin: 1.5rem 0rem;
  }
}
@media (max-width: 768px) {
  #cursor-dot {
    display: none;
}
  .nav-menu {
    display: none;
  }

  .menu-icon {
    display: flex; /* Only show on mobile */
  }

  /* Rest of the mobile styles remain unchanged */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #09131c;
    padding: 1rem;
  }
  .sidebar.active {
      left: 0;
  }

  .nav-indicator {
    display: none;
  }
  .container {
      grid-template-columns: 1fr;
      gap: 2rem;
  }

  body {
      padding: 1rem;
  }

  .section h2 {
      font-size: 2rem;
  }

  .timeline-content h3 {
      font-size: 1.3rem;
  }
}
}
@media (max-width:673px) {
  .contact-content{
    flex-direction: column;
  }
  .contact-info, .contact-form {
    max-width: 100%;
    margin: 1rem 0rem;
  }
  .intro-image img{
    width: 250px;
  }
}
@media(max-width: 640px) {
  .projects-grid {
      grid-template-columns: 1fr;
  }

  .projects {
      padding: 1rem;
  }
  .container{
    margin: 4rem 0.5rem;
  } 
  .contact{
    padding: 4rem 0.5rem;
  }
}

