html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #000;
}

body {
  background: url('img/background.jpg') center center / cover no-repeat fixed;
}

#wrapper {
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

@supports (-webkit-overflow-scrolling: touch) {
  body {
    background-attachment: scroll;
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 25px 5px, white, transparent),
    radial-gradient(1px 1px at 50px 25px, white, transparent),
    radial-gradient(1px 1px at 125px 20px, white, transparent),
    radial-gradient(1.5px 1.5px at 50px 75px, white, transparent),
    radial-gradient(2px 2px at 15px 125px, white, transparent),
    radial-gradient(2.5px 2.5px at 110px 80px, white, transparent);
  background-size: 200px 200px;
  animation: twinkle 10s infinite, move 50s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

@keyframes move {
  from { background-position: 0 0; }
  to { background-position: 200px 200px; }
}

.intro {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 2rem;
  margin: auto;
  max-width: 900px;
  min-height: 550px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  background: inherit;
}

.intro::before, .intro::after {
  content: '';
  position: absolute;
}

.intro::before {
  z-index: -2;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(168, 239, 255, 1), transparent 30%) no-repeat;
  animation: rotate 4s linear infinite;
}

.intro::after {
  z-index: -1;
  inset: 6px;
  background: linear-gradient(45deg, #40b6d8, #073e65);
  border-radius: 5px;
}

@keyframes rotate {
  100% { transform: rotate(1turn); }
}

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

#intro-text, #intro-text p {
  font: 1.1em/1.5em 'Lato', sans-serif;
  color: #e0e0e0;
  margin: 18px 0;
  animation: fadeIn 1s ease forwards;
}

#glow {
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 10px #03bcf4, 0 0 20px #03bcf4, 0 0 40px #03bcf4,
               0 0 80px #03bcf4, 0 0 160px #03bcf4;
  animation: glow 5s linear;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

#glow:before {
  content: "";
  position: absolute;
  width: 105%;
  height: 0.75ex;
  border-top: 0.25ex solid #00a1ff;
  border-radius: 50%;
  bottom: -0.6ex;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: underlineAnimation 2s ease forwards;
}

@keyframes underlineAnimation {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes glow {
  0%, 18%, 20%, 50.1%, 60%, 65.1%, 80%, 90.1%, 92% {
    color: #0e3742;
    text-shadow: none;
  }
  18.1%, 20.1%, 30%, 50%, 60.1%, 65%, 80.1%, 90%, 92.1%, 100% {
    color: #fff;
    text-shadow: 0 0 10px #03bcf4, 0 0 20px #03bcf4, 0 0 40px #03bcf4,
                 0 0 80px #03bcf4, 0 0 160px #03bcf4;
  }
}

.profile-pic {
  max-height: 200px;
  max-width: 200px;
  width: auto;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  animation: fadeIn 1s ease-in-out;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 0.8 / 1;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.download-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #444;
  color: #f5f5dc;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
  background-color: #555;
}

@media (max-width: 600px) {
  .profile-pic { max-height: 300px; }
  #intro-text {
    font: 0.9em/1.2em 'Lato', sans-serif;
    margin: 10px 0;
  }
}

.about {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  padding: 20px;
  margin: 50px auto;
  width: 80%;
  max-width: 900px;
  border-radius: 10px;
  position: relative;
}

.about::after, .about::before, .about > :last-child::after {
  content: '';
  position: absolute;
  background-color: #00ffff; /* Cyan color for neon effect */
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
  opacity: 0;
}

.about::before {
  width: 2px;
  height: 0;
  top: 50%;
  right: 0;
  animation: growVertical linear both, neonPulse 1.5s ease-in-out infinite alternate;
  animation-timeline: view();
  animation-range: entry 20% cover 50%;
}

.about::after {
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  animation: growHorizontal linear both, neonPulse 1.5s ease-in-out infinite alternate;
  animation-timeline: view();
  animation-range: entry 20% cover 50%;
}

.about > :last-child::after {
  width: 2px;
  height: 0;
  left: 0;
  bottom: 0;
  animation: growVertical2 linear both, neonPulse 1.5s ease-in-out infinite alternate;
  animation-timeline: view();
  animation-range: entry 20% cover 50%;
}

@keyframes growHorizontal {
  from { width: 0; opacity: 0; }
  to { width: 50%; opacity: 1; }
}

@keyframes growVertical {
  from { height: 0; opacity: 0; }
  to { height: 50%; opacity: 1; }
}

@keyframes growVertical2 {
  from { height: 0; opacity: 0; }
  to { height: 10%; opacity: 1; }
}

@supports not (animation-timeline: view()) {
  .about::before, .about::after, .about > :last-child::after {
    animation-duration: 1s;
    animation-fill-mode: forwards;
    opacity: 0;
  }
  .about::before { animation-delay: 0.5s; }
  .about::after { animation-delay: 0s; }
  .about > :last-child::after { animation-delay: 1s; }
}

@supports not (animation-timeline: scroll()) {
  .about::before, .about::after, .about > :last-child::after {
    animation-timeline: none;
  }
}

.large-box {
  display: none; /* Add this line to hide the projects section */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  margin: 60px auto;
  max-width: 1000px;
  min-height: 500px;
  border-radius: 15px;
  background-color: rgba(245, 245, 220, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.large-box h2 {
  color: #f5f5dc;
  margin-bottom: 30px;
  font-size: 2.5em;
  text-align: center;
}

.projects-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
}

.project-box {
  width: 280px;
  height: 200px;
  margin: 20px;
  padding: 20px;
  background-color: rgba(0, 78, 146, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.project-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.project-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(168, 239, 255, 0.3), transparent 30%);
  animation: rotate 4s linear infinite;
  z-index: 1;
}

.project-box::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: rgba(0, 78, 146, 1);
  border-radius: 7px;
  z-index: 2;
}

.project-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-box h3 {
  color: #f5f5dc;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.project-box p {
  color: #e0e0e0;
  font-size: 0.9em;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .project-box {
    width: calc(100% - 40px);
    height: auto;
    min-height: 180px;
  }
}

@keyframes neonPulse {
  from {
    box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
  }
  to {
    box-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff;
  }
}

.intro {
  position: relative;
}

.superwrap{
  display: grid;
  position: absolute;
  height: 30px;
  place-items: center;
  right:80px;
  top:10px;
}


.social-wrapper{
  padding: 5px;
  border-radius:50px;
  height:30px;
  box-sizing: border;

}

 .social-button{
  border: 1px solid rgba(255, 255, 255, 0.1);
  display:inline-block;
  width: 30px;
  height:30px;
  margin: -1px 5px;
  overflow: hidden;
  text-decoration: none; /* Removes the underline */
  color: inherit; /* Ensures the color is the same as the surrounding text */
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0px 5px 3px  rgba(0,0,0,0.1);
  transition: width 0.3s ease-out, transform 0.1s ease-in-out;
}

.social-button:active{
  box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.1);
  transform:translateY(2px);
}

.social-icon{
  display: inline-block;
  width: 30px;
  height: 30px;
  text-align: center;
  border-radius: 50px;
  
  line-height: 30px;
  text-shadow: 0 0 1px rgba(255, 255, 255, 1),
   0 0 10px rgba(255, 255, 255, 1),
   0 0 15px rgba(0, 200, 255, 1);
}
.social-button:hover{
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 0 1px rgba(255, 255, 255, 1),
   0 0 10px rgba(255, 255, 255, 1),
    0 0 15px rgba(0, 200, 255, 1);
  width: 90px;
}

.social-button:hover .social-icon{
  text-shadow: 
    0 0 5px white,     /* Small white shadow close to the element */
    0 0 15px white,    /* Larger, soft shadow for glow */
    0 0 30px white,    /* Larger white glow effect */
    0 0 50px white;    /* Even larger for brilliance */
}

.social-button:nth-child(2):hover{
  width: 75px;
}

.social-button i{
  font-size: 17px;
  color: green;
  animation: spin_n_grow 0.5s linear, neon_glow 5s linear infinite;
}

@keyframes spin_n_grow{
  0% {
    transform: scale(1) rotate(0deg); /* Normal size, no rotation */
  }

  50% {
    transform: scale(1.5) rotate(360deg); /* Back to original size and complete two rotations */
  }
  80% {
    transform: scale(1.5) rotate(360deg); /* Back to original size and complete two rotations */
  }
  100%{
    transform: scale(1) rotate(360deg);
  }
}

@keyframes neon_glow{
  0%{
    filter: hue-rotate(0deg);
  }
  100%{
    filter: hue-rotate(360deg);
  }
}

.social-button span{
  text-align: center;
  display: inline-block;
  font-size:12px;
  font-weight:500;
  color:#e0e0e0;
  position: relative;
  top: -2px;
}

@media (max-width: 768px) {
  .superwrap {
    right: 20px;
  }

  .social-button:hover{
    width: 30px;
    text-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .social-button:nth-child(2):hover{
    width: 30px;
  }

  .social-button:hover .social-icon{
    text-shadow:  0 0 1px rgba(255, 255, 255, 1),
    0 0 10px rgba(255, 255, 255, 1),
    0 0 15px rgba(0, 200, 255, 1);
  }
  .social-button:active .social-icon{
    text-shadow: 
    0 0 5px white,     /* Small white shadow close to the element */
    0 0 15px white,    /* Larger, soft shadow for glow */
    0 0 30px white,    /* Larger white glow effect */
    0 0 50px white;    /* Even larger for brilliance */
  }
}

@media (hover: none) and (pointer: coarse) {
  .social-button:hover {
    width: 30px;
    text-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .social-button:nth-child(2):hover {
    width: 30px;
  }

  .social-button:hover .social-icon {
    text-shadow: 0 0 1px rgba(255, 255, 255, 1),
     0 0 10px rgba(255, 255, 255, 1),
     0 0 15px rgba(0, 200, 255, 1);
  }

  /* Add active state for touch devices */
  .social-button:active .social-icon {
    text-shadow: 
      0 0 5px white,
      0 0 15px white,
      0 0 30px white,
      0 0 50px white;
  }
}

.contact-form {
  max-width: 600px;
  margin: 60px auto;
  padding: 30px;
  background: rgba(0, 78, 146, 0.3); /* More transparent background */
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Remove the ::before and ::after pseudo-elements */
.contact-form::before,
.contact-form::after {
  display: none;
}

.contact-form h2 {
  color: #f5f5dc;
  text-align: center;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 2px solid #0ef; /* Add cyan border */
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5dc;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a0a0a0;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button {
  display: block;
  width: 100%;
  padding: 10px;
  background: #0ef; /* Cyan button color */
  color: #000; /* Black text for contrast */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
}

.contact-form button:hover {
  background: #00c8ff; /* Lighter cyan on hover */
}

@media (max-width: 768px) {
  .contact-form {
    margin: 40px 20px;
  }
}

.wrapper-skills{
  max-width: 900px;
  margin: 0 auto; /* Centers the element horizontally */
  padding: 0 20px; /* Adds some padding on the sides */
  margin-top: 30px;
}


.wrapper-skills *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins', sans-serif;
}

.wrapper-skills .sub-title {
  text-align: center;
  font-size: 40px;
  padding-bottom: 40px;
  padding-top: 30px;
}


.wrapper-skills .sub-title span {
  color: #0ef;
}

.wrapper-skills section {
  display: flex;
  flex-wrap: wrap;
}

.container1 {
  width: 400px;
  height: 400px;
  padding: 25px 5px;
  margin-left: 25px;
  margin-top: 5px;
  margin-right: 25px;
}

.wrapper-skills #skills{
  flex: 1;
  max-width: 80%;
  min-width: 35%;
}

#radial-container{
  margin-top: 65px;
  width: 320px
}

.heading {
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 5px;
  margin-bottom: 10px;
}

.bar{
  font-size: 23px;
}

.Technical-bars .bar{
  margin:10px 0;
}

.Technical-bars .bar:first-child{
  margin-top: 0;
}

.Technical-bars .bar:last-child{
  margin-bottom: 0;
}

.Technical-bars .bar .info{
  margin-bottom: 5px;
}

.Technical-bars .bar .info span{
  font-size: 17px;
  font-weight: 500;
  animation: showText 0.5s 1s linear forwards;
  opacity: 0;
}

.Technical-bars .bar .progress-line{
  position: relative;
  border-radius: 10px;
  width: 100%;
  height: 5px;
  background-color: black;
  animation: animate 1s cubic-bezier(1,0,0.5,1) forwards;
  transform: scaleX(0);
  transform-origin: left;
}
@keyframes animate{
  100%{
    transform: scaleX(1);
  }
}

.Technical-bars .bar .progress-line span{
  height: 100%;
  background-color: #0ef;
  position: absolute;
  border-radius: 10px;
  animation: animate 1s 1s cubic-bezier(1,0,0.5,1) forwards;
  transform: scaleX(0);
  transform-origin: left;
}
.progress-line.python span{
  width: 100%;
}
.progress-line.web span{
  width: 70%;
}
.progress-line.sql span{
  width: 80%;
}
.progress-line.c span{
  width: 60%;
}
.progress-line.java span{
  width: 60%;
}

.progress-line span::after{
  position: absolute;
  padding: 1px 8px;
  background-color: #000;
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
  top: -28px;
  right: -20px;
  animation: showText 0.5s 1.5s linear forwards;
  opacity: 0;
}

.progress-line.python span::after{
  content: "100%";
}

.progress-line.web span::after{
  content: "70%";
}
.progress-line.sql span::after{
  content: "80%";
}
.progress-line.c span::after{
  content: "60%";
}
.progress-line.java span::after{
  content: "60%";
}

.progress-line span before{
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 7px solid trasparent;
  border-bottom-width: 0px;
  border-right-width: 0px;
  border-top-color: #000;
  top:-10px;
  right: 0;
  animation: showText 0.5s 1.5s linear forwards;
  opacity: 0;
}

@keyframes showText{
  100%{
    opacity: 1;
  }
}

.radial-bars{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
}

@media (max-width: 703px) and (min-width: 475px) {
  .radial-bars{
    width: 120%;
  }
}

.radial-bars .radial-bar{
  width: 50%;
  height: 170px;
  margin-bottom: 5px;
  position: relative;
}

.radial-bars .radial-bar svg{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 120px;
  height: 160px;
}
.radial-bars .radial-bar .progress-bar{
  stroke-width: 10;
  stroke: black;
  fill: transparent;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  stroke-linecap: round;
  animation: animate-bar 1s linear forwards;
}

@keyframes animate-bar{
  100%{
    stroke-dashoffset: -1;
  }
}

.timeline-section {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  border-radius: 15px;
}

.timeline-section h2 {
  color: #f5f5dc;
  text-align: center;
  margin-bottom: 30px;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  visibility: hidden;
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background: #0ef;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  width: 100%;
  margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
  float: right;
  padding-left: 20px;
}

.timeline-item:nth-child(even) {
  float: left;
  padding-right: 20px;
  text-align: right;
}

.timeline-content {
  
  padding: 20px;
  border-radius: 10px;
  position: relative;
}

.timeline-content::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #0ef;
  border-radius: 50%;
  top: 20px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  left: -0px;
}

.timeline-item:nth-child(even) .timeline-content::after {
  right: -0px;
}

.timeline-content h3 {
  color: #0ef;
  margin-bottom: 10px;
}

.timeline-content p {
  color: black;
  font-weight: 500;
  color: #f5f5dc;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.2); /* Add white glow */
}

@media (max-width: 768px) {
  .timeline-section {
    padding: 10px;
  }

  .timeline::before {
    left: -13px;
    visibility: visible;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 15px;
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .timeline-item:nth-child(odd) {
    text-align: left;
    float: none;
  }
  
  .timeline-item:nth-child(even) {
    float: none;
    padding-left: 15px;
  }
  
  .timeline-content {
    left: -10px;
    padding: 15px;
  }

  .timeline-content::after {
    left: -35px !important;
    right: auto !important;
    width: 15px;
    height: 15px;
  }

  .timeline-item:nth-child(odd) .timeline-content::after{
    left: -30px !important;
  }

  .timeline-item:nth-child(even) .timeline-content::after{
    left: -25px !important;
  }

  .timeline-content h3 {
    font-size: 18px;
  }

  .timeline-content p {
    font-size: 14px;
  }
}

.path{
  stroke-width: 10;
  stroke: #0ef;
  fill: transparent;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  stroke-linecap: round;
}
.path-1{animation: animate-path1 1s linear forwards;}
.path-2{animation: animate-path2 1s linear forwards;}
.path-3{animation: animate-path3 1s linear forwards;}
.path-4{animation: animate-path4 1s linear forwards;}

@keyframes animate-path1{
  100%{
    stroke-dashoffset: 150;
  }
}

@keyframes animate-path2{
  100%{
    stroke-dashoffset: 75;
  }
}
@keyframes animate-path3{
  100%{
    stroke-dashoffset: 50;
  }
}
@keyframes animate-path4{
  100%{
    stroke-dashoffset: 50;
  }
}

.radial-bar .percentage{
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 17px;
  font-weight: 500;
  animation: showText 0.5s 1s linear forwards;
  opacity: 0;
}
.progress-bar .text{
  width: 100%;
  position: absolute;
  text-align: center;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 500;
  animation: showText 0.5s 1s linear forwards;
  opacity: 0;
}