body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #000814;
    display: flex;
    color: white;
    flex-direction: column; /* Align children vertically */
    min-height: 100vh;
    overflow: hidden; /* Prevent scrolling */
  }
  /* Responsive Design */
  
  .page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
  }
  .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .name-container {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    perspective: 1000px;
    overflow: hidden;
}

.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    /* Further reduced opacity in the gradient */
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.2) 0%,  /* Reduced from 0.4 to 0.2 */
        rgba(255, 255, 255, 0.1) 50%, /* Reduced from 0.2 to 0.1 */
        transparent 5%
    );
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 
        50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%
    );
    border-radius: 1px;
    pointer-events: none;
    transform-style: preserve-3d;
    /* Further reduced opacity in the glow effect */
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.15), /* Reduced from 0.3 to 0.15 */
        0 0 30px rgba(255, 255, 255, 0.1),  /* Reduced from 0.2 to 0.1 */
        0 0 45px rgba(255, 255, 255, 0.05); /* Reduced from 0.1 to 0.05 */
    transition: transform 0.3s ease-out;
    will-change: transform;
    animation: snowfall 1s infinite linear;
}

@keyframes snowfall {
    0% {
        opacity: 0;
        filter: brightness(1);
    }
    10% {
        opacity: 0.15; /* Reduced from 0.3 to 0.15 */
        filter: brightness(0.2);
    }
    50% {
        filter: brightness(1);
    }
    90% {
        opacity: 0.15; /* Reduced from 0.3 to 0.15 */
        filter: brightness(1.2);
    }
    100% {
        opacity: 0;
        filter: brightness(1);
    }
}
  
  #home-page {
    background-color: #000814;
  }

  h1 {
    margin: 0;
    font-size: 36px;
  }

 .profile-img {
    width: 250px; /* Adjust size */
    height: 250px;
    border-radius: 100%; /* Makes it circular */
    object-fit: cover; /* Ensures the image fills the circle */
    image-rendering: smooth; /* Makes the image smoother */
    object-position: center;
  }

  #name {
    font-size: 5rem;
    cursor: pointer;
    color: #F5F5F5;
   
  }
  /*------------- About-Box----------------------------------------------- */
  .about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -50px;
    padding-bottom: 35px;
  }

  /*------------- About-me-Submit----------------------------------------------- */
  #about-btn {
    background-color: transparent;
    color: white;
    padding: 12px 50px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-weight: 400;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1000;
  }

  #about-btn:hover {
    
    border-color: rgba(255, 255, 255, 0.4); 
    transform: translateY(-2px);
  }

  #about-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  }

  /* Move both emoji and text */
  .moving-emoji {
    font-size: 20px;
    display: inline-flex; /* Changed to inline-flex */
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: moveEmoji 1.5s infinite alternate ease-in-out;
    margin-right: 8px; /* Add space between emoji and text */
  }

  .btn-text {
    display: inline-flex; /* Changed to inline-flex */
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: shiftText 1.5s infinite alternate ease-in-out;
  }

  /* Update animations to move together */
  @keyframes moveEmoji {
    0% { transform: translateY(0); }
    50% { transform: translateY(3px); }
    100% { transform: translateY(0); }
  }

  @keyframes shiftText {
    0% { transform: translateY(0); }
    50% { transform: translateY(3px); }
    100% { transform: translateY(0); }
  }

    /*------------------ Social-Media-----------------------------------*/
    .social-icons {
      position: fixed;
      bottom: 20px;
      right: 20px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      z-index: 1001; /* Higher than CV container */
    }

    .social-icons a {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 40px;
      height: 40px;
      background-color: white;  
      border-radius: 50%;
      text-decoration: none;
      font-size: 20px;
      transition: all 0.3s ease; /* Smooth transition for hover effect */
      cursor: pointer; /* Show pointer cursor on hover */
    }
    .social-icons a img {
      width: 50%;
      height: 50%;
      transition: all 0.3s ease;
    }
    /* Tooltip and Hover Effects */
    .social-icons a::after {
      content: attr(data-tooltip);
      position: absolute;
      right: 50px;
      top: 50%;
      transform: translateY(-50%);
      background: white;
      color: black;
      padding: 5px 10px;
      font-size: 12px;
      white-space: nowrap;
      border-radius: 5px;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      pointer-events: none;
      z-index: 1002; /* Highest z-index to show above everything */
    }

    .social-icons a:hover {
      background-color: #555;
      transform: scale(1.1);
    }

    .social-icons a:hover::after {
      opacity: 1;
      visibility: visible;
      right: 45px;
    }
    /*------------- Footer-------------------------------------------- */
    footer {
        position: relative;  /* Add this to establish stacking context */
        font-size: 0.95rem;
        font-style: italic;
        color: #F5F5F5;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 40px;
        padding: 10px;
        
    }

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40%;  /* Reduced from 80% to 40% */
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
    
    }
      
    /*----------------- About Me Page Styles------------------------------------------------------------------- */
    .about-page {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      height: 100vh;  /* Make it full viewport height */
      position: fixed;  /* Fix the position */
      top: 0;
      left: 0;
      overflow: hidden;  /* Prevent scrolling */
    }

    .about-heading {
      text-align: center;
      width: 100%;
      margin-top: 20px;
      font-size: 2.5em;
      color: white;
    }

    .content-container {
      display: flex;
      align-items: flex-start; /* Align items to the top */
      width: 80%;
      margin-top: 20px;
    }

    .text-box {
      background-color: #000814;
      padding: 20px;
      border-radius: 10px;
      flex: 1; /* Take remaining space */
      box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1); /* Subtle shadow */
    }

    .text-box p {
      margin: 0;
      font-size: 1.1em;
      line-height: 1.6;
      color: #F5F5F5
    }
    /* Expertise Section Layout */
    .expertise-section {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin-top: 20px;
      padding: 20px;
      border-radius: 10px;
    }

    /* Expertise Text on the Left */
    .expertise-text {
      flex: 1;
      font-size: 18px;
      line-height: 1.6;
      padding: 10px;
      color: #F5F5F5
    }

    /* Expertise Image on the Right */
    .expertise-img {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      
    }
    /* Expertise Section Styles */
    .expertise-section {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 20px;
      padding-left: 60%;

    }

    .expertise-text {
      display: flex;
      flex-direction: column;
      gap: 10px; /* Space between boxes */
      width: 50%; /* Adjust width as needed */
     
    }

    .skill-box {
      border: 1px solid #ccc; /* Gray border */
      padding: 10px 20px; /* Padding inside the box */
      border-radius: 5px; /* Rounded corners */
      text-align: center;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }


    .role-text {
        text-align: center;
        color: #F5F5F5;
        margin-top: 20px;
    }


    .role-text p {
        font-style: italic;
        font-size: 1.5rem;
        margin: 0;
    }

    .role-text .highlight {
        position: relative;
        text-decoration: none; /* Remove default underline */
    }

    /* Create beautiful underline effect */
    .role-text .highlight::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px; /* Changed from default to move underline down */
        width: 100%;
        height: 2px;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.4) 20%,
            rgba(251, 255, 11, 0.6) 50%,
            rgba(255, 255, 255, 0.4) 80%,
            transparent
        );
        box-shadow: 
            0 0 5px rgba(255, 255, 255, 0.3),
            0 0 10px rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        animation: underlineAnimation 2s infinite;
        animation-direction: alternate;
        animation-timing-function: ease-in-out;
    }

    @keyframes underlineAnimation {
        from {
            transform: scaleX(0);
        }
    }

    .about-me-box, .skills-box, .expertise-box, .project-box {
        background: rgba(255, 255, 255, 0.05);  /* Reduced from 0.1 to 0.05 */
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.08);  /* Reduced border opacity */
        border-radius: 10px;
        padding: 20px;
        margin: 20px;
        color: white;
        max-width: 400px;
        width: 35%;
        position: absolute;
        transform: translate(-100%, -50%);
        opacity: 0;
        z-index: 10;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);  /* Reduced shadow opacity */
    }

    /* Left side boxes */
    .about-me-box, .skills-box {
        left: 5%;              /* Changed from 20px to percentage */
    }

    /* Right side boxes */
    .expertise-box, .project-box {
        right: 5%;             /* Changed from 20px to percentage */
        transform: translate(100%, -50%);
    }

    /* Vertical positioning */
    .about-me-box {
        top: 25%;
    }

    .skills-box {
        top: 75%;
    }

    .expertise-box {
        top: 25%;
    }

    .project-box {
        top: 75%;
    }

    /* Headings */
    .about-me-box h2, .skills-box h2, .expertise-box h2, .project-box h2 {
        margin-bottom: 20px;
        font-size: 22px;
        font-weight: 400;
        color: #fff;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
        letter-spacing: 3px;
        position: relative;
        display: inline-block;
        padding: 5px 0;
        text-transform: uppercase;
        background: transparent;
        border-left: 2px solid rgba(255, 255, 255, 0.4);
        padding-left: 15px;
    }

    /* Remove any previous effects */
    .about-me-box h2::after, .skills-box h2::after, .expertise-box h2::after, .project-box h2::after {
        display: none;
    }

    /* Animations */
    .slide-in-left {
        animation: slideInLeft 1s forwards;
    }

    .slide-in-right {
        animation: slideInRight 1s forwards;
    }

    @keyframes slideInLeft {
        from {
            transform: translate(-100%, -50%);
            opacity: 0;
        }
        to {
            transform: translate(0, -50%);
            opacity: 1;
        }
    }

    @keyframes slideInRight {
        from {
            transform: translate(100%, -50%);
            opacity: 0;
        }
        to {
            transform: translate(0, -50%);
            opacity: 1;
        }
    }

/* Text animation styles */
.fade-in-text {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
    margin-right: 3px;  /* Add space between words */
}

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

.about-me-box p, .skills-box p, .expertise-box p, .project-box p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* About Section Styling */
.about-header {
    margin-bottom: 20px;
}

.greeting {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-align: left; /* Aligns text to the left */
    margin-right: 30px;
    margin-bottom: 10px;
}
.name {
  text-align: left;
  margin-top: 10px; /* Additional spacing from top */
  font-size: 30px;
  margin-bottom: 15px; 
}
.description {
  text-align: left;
  margin-bottom: 40px; 
  font-size: 15px;
  border-left: 3px solid;
  border-image: linear-gradient(to bottom, #4a90e2, #87ceeb) 1;
  padding-left: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
  padding: 15px;
  border-radius: 10px;
  box-shadow: 
    inset 0 0 15px rgba(255,255,255,0.1),
    0 0 20px rgba(0,0,0,0.2);
    line-height: 1.3;
    transition: all 0.3s ease;
}
.description:hover {
  border-image: linear-gradient(to bottom, #87ceeb, #4a90e2) 1;
  transform: translateX(5px);
}

.title{
  text-align: center;
  margin-top: 10px; /* Additional spacing from top */
  font-size: 30px;
  margin-bottom: 15px;
}

.specialties {
  margin: 15px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: left;
  
}

.specialties span {
  display: inline-block;
  padding: 0 5px;
  transition: color 0.3s ease;
  
}

.specialties span:hover {
  color: #4ECDC4;  /* or any accent color you prefer */
}

.specialties .separator {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 5px;
}
.role-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 15px 0;
}

.location-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0;
}

.location-info i {
    margin-right: 5px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-right: 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.portfolio-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;  /* Three columns: left, center(image), right */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.container {
  position: relative;
  max-width: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

.left-content {
  position: absolute;
  left: 5%;
  top: 20%; /* Adjust this value to align with other content */
  width: 30%;
  opacity: 0; /* Start hidden */
  animation: slideInLeft 1s ease forwards;
  animation-delay: 0.5s; 
}

.center-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10%;
  width: 30%;
  text-align: center;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
}

.right-content {
  position: absolute;
  right: 5%;
  top: 20%; /* Same as left content */
  width: 30%;
  opacity: 0; /* Start hidden */
  animation: slideInRight 1s ease forwards;
  animation-delay: 2s; /* Wait 4 seconds before starting */
}

/* Make text and elements slightly smaller if needed */
.technical-skills {
  margin: 0px;
}

.section-title {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 20px;
   text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
   text-decoration-thickness: 2px;
   text-underline-offset: 4px;
   text-decoration: underline;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.skill-item {
    position: relative;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);  /* White border */
    border-radius: 8px;  /* Rounded corners */
    margin: 5px;  /* Add some spacing */
    z-index: 1004;
}

.skill-item:hover, .skill-item:active {
    border-color: rgba(255, 255, 255, 1);  /* Brighter border on hover */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);  /* Subtle glow effect */
}

.skill-item i {
    font-size: 20px;    /* Reduced icon size */
}

.skill-item::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    width: 200px;
}

.hover-grid {
    display: none;
    grid-template-rows: auto 1fr;
    gap: 20px;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    margin-bottom: 10px;
    width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    z-index: 1005; /* Higher z-index to show above other elements */
}

.hover-grid p {
    grid-column: 1 / -1;  /* Span all columns */
    margin: 0;
    padding-bottom: 10px;
    text-align: center;
    color: white;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-grid .icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-item:hover .hover-grid {
  display: grid;  /* Show grid only on hover */
}

.hover-grid i {
    position: relative;  /* For tooltip positioning */
    font-size: 24px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hover-grid i::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -20px;  /* Moved slightly closer to icon */
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 6px;  /* Reduced padding */
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);  /* Slightly transparent white */
    font-size: 7px;  /* Smaller font size */
    font-weight: 100;  /* Regular weight */
    border-radius: 5px;  /* Smaller border radius */
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    letter-spacing: 0.5px;  /* Slight letter spacing for readability */
}

.hover-grid i:hover::after {
    opacity: 1;
    visibility: visible;
}
/*----------------------------------------- Connect With Me------------------------------------------------------*/

.info-box {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
    border-radius: 10px;
    box-shadow: 
    inset 0 0 15px rgba(255,255,255,0.1),
    0 0 20px rgba(0,0,0,0.2);
    padding: 8px 16px;
    margin: 0;  /* Remove all margins */
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}
.info-box:hover {
  border-image: linear-gradient(to bottom, #87ceeb, #4a90e2) 1;
  transform: translateX(5px);
}
.info-box img {
  width: 20px;
  height: 20px;
}
.info-box i {
  width: 16px;
  text-align: center;
}
.info-box span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration: underline; 
  transition: all 0.3s ease;
}
.info-box span:hover {
  color: #4ECDC4;  /* or any accent color you prefer */
  transform: translateX(5px);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;   
  transition: all 0.3s ease;
}
/*----------------------------------------- Home Button----------------------------------------------------------*/

.home-button {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.home-button i {
    color: white;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.home-button:hover {
    transform: translateY(-3px);
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.home-button:hover i {
    transform: scale(1.1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*------------------------------------------- CV Button----------------------------------------------------------*/

.cv-container {
  position: fixed;
  right: 5px;
  top: 25px;
  z-index: 999; /* Lower than social icons */
}
.cv-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 25px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.cv-btn:hover {
  transform: translateY(-3px);
  border-color: white;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.cv-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.cv-btn:hover i {
  transform: scale(1.1);
}

.cv-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.cv-button a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.cv-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.4);
    background: linear-gradient(135deg, #0072ff, #00c6ff);
}

.cv-button i {
    font-size: 18px;
}

/* Subtle pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.cv-button a::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cv-button a:hover::after {
    opacity: 0.4;
    animation: glow 1.5s infinite;
}

@keyframes glow {
    0% {
        filter: blur(5px);
    }
    50% {
        filter: blur(7px);
    }
    100% {
        filter: blur(5px);
    }
}

/*------------------------------------- Progress Bars ----------------------------------------------------------*/
.project-stats {
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
}

.progress-item {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: white;
    font-size: 14px;
}

.progress-bar {
    height: 20px;
    background: linear-gradient(90deg, #004b05, #76b981);
    border-radius: 50px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #004b05, #76b981);
    border-radius: 4px;
    transition: width 1s ease;
    animation: slideIn 1.5s ease-out;
    position: relative;
}
.progress-number {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
}


/*------------------------------------------ Company  -----------------------------------------------------------*/
.slider-container {
    margin-top: 20px;
     width: 100%;
}

.slider-track {
    display: flex;
    gap: 5px;
}
.slide {
    flex: 0 0 100px;
    transition: transform 0.3s ease;
}

.slide img {
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

/*------------------------------------------ Hide/Show Bg affect  -----------------------------------------------------------*/
/* When about page is active, hide the animations */
/* When about page is active, hide the animations */
.about-page-active .background-animation,
.about-page-active .particle-container,
.about-page-active .particle {
    display: none;
}
/*-----------------------------------------------Responsive-Design------------------------------------------------*/
@media screen and (max-width: 768px) {
  /* Update body and html styles */
  html, body {
    height: auto;
    min-height: auto;
    overflow-y: auto;
    position: relative;
  }

  /* Update portfolio layout */
  .portfolio-layout {
    position: relative;
    min-height: auto;
    padding-bottom: 0px; /* Add space for footer */
  }
  .about-container {
    margin-top: -150px;
    padding-bottom: 20px;
    position: relative;
    z-index: 1000;
  }
  footer{
align-items: center;
display: flex;
justify-content: center;
text-align: center;

  }
  /* Update content positioning */
  .left-content {
    position: relative;
    top: 30px;
    left: 0;
    width: 90%;
    margin: 10px auto; /* Reduced from 60px to 20px */
  }
  .intro-section {
    margin-top: -50px; /* Reduced from -150px */
  }
 

  .right-content {
    position: relative;
    top: -350px;
    right: 0;
    width: 90%;
    transform: none;
    margin-top: 20px; /* Changed from 300px to 20px */
    margin: 0 auto; /* Center the content */
  }
  .home-button{
    position: fixed;
    z-index: 1000;
  }

    .page {
    height: auto;
    min-height: 100vh;
  }
  .name-container {
    flex-direction: column;
    padding: 20px;
  }
  .main-content {
    flex: 1; /* Ensures it takes available space */
    min-height: 100vh; /* Ensures full height */
      padding-bottom: 50px; /* Adjust to footer height */
}

  #name {
    font-size: 3rem;
  }
  .cv-container{
   right: 5px;
   position: fixed;
   top:5px;
  }
  .cv-btn{
    position: static;
    right: 0;
    height: 20px;
    width: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: left;
    top: 0px;
    border-radius: 40px;
  }

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

  .about-container {
    padding-bottom: 20px;
  }

  #submit, .about-button {
    padding: 8px 40px;
  }

  .social-icons {
    display: flex;
    position: fixed;
    align-items: right;
    justify-content: right;
    right: 0px;
    flex-wrap: wrap;
    gap: 15px;
  }

  .social-icons img {
    width: 30px;
    height: 30px;
  }


  /* Ensure the button is clickable by preventing other elements from blocking it */
  .content-wrapper {
    pointer-events: none;
  }

  .content-wrapper > * {
    pointer-events: auto;
  }

  .hover-grid {
    width: 150px; /* Slightly smaller on mobile */
    padding: 15px;
  }

}

@media screen and (max-width: 480px) {
  #name {
    font-size: 2rem;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  #submit, .about-button {
    padding: 6px 30px;
    font-size: 14px;
  }

 

  .portfolio-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .technical-skills,
  .project-stats,
  .company-slider {
    width: 100%;
    margin: 80px 0;
  }
}

@media screen and (max-height: 600px) {
  .page {
    height: auto;
    padding: 20px 0;
    overflow-y: auto;
  }
 

  .profile-img {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 768px) {
  .portfolio-layout {
      flex-direction: column;
      align-items: flex-start;
      padding: 10px;
  }
 .name{
  margin-top: 50px;
 }
 .role-text{
  position: absolute;
top: 100px;
 }

  .left-content{
    width: 90%;
    text-align: center;
  }
  .right-content{
    margin-top: 300px;
    width: 90%;
    text-align: center;
  }

  .home-button {
      position: fixed;
      top: 10px;
      left: 0px;
  }

}

