/* Reset styles (if not already in reset.css) */
body, h1, h2, p, ul, li, a, img {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  justify-content: center;
}

/* General styles */
body {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #111215;
  height: 100%;
  display: flex;
  flex-direction: column;
}

main{
  flex:1;
}

/* Logo container */
nav .container {
  display: flex;
  align-items: center;
}

/* Logo image */
nav .logo img {
  width: 40px; /* Adjust size as needed */
  height: 40px;
  margin-right: 10px; /* Space between the logo and the text */
}

.navbar .logo-name{
  width: 210px;
  display: inline;
  position: absolute;
  top: 25px;
  font-size: x-large;
  color: white;
}

.navbar .navbar-nav .nav-link {
  font-weight: 500;
  color: #fff;
  padding: 15px 7px;
  margin: 10px 15px;
}
.container{
   max-width: 1200px; 
}
.navbar{
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  background: transparent;
  border-bottom: 2px solid transparent;
  z-index: 999;
  min-height: 80px;
}
/* Nav links */
.navbar-nav .nav-link {
  font-size: 16px;
  color: #fff;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background: linear-gradient(to left, #ff007a, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav .logo-name:hover {
  background: linear-gradient(to left, #ff007a, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

footer {
  text-align: center;
  padding: 10px;
  background: #333;
  color: #fff;
  position: fixed;
  width: 100%;
  bottom: 0;
}

.parallax {
  position:relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-item {
  background-image: url('../assets/slider/unsplash-02.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  height: 100vh; /* Fullscreen height */
}

.carousel-item::before {
  pointer-events: none;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
  backdrop-filter: blur(5px); /* Apply blur effect */
  z-index: 1; /* Place it above the image but below the text */
}

.carousel-caption {
  position: absolute;
  top: 50%; /* Vertically center */
  left: 50%; /* Horizontally center */
  transform: translate(-50%, -50%); /* Adjust for perfect centering */
  text-align: center; /* Center align text */
  z-index: 2; /* Ensure it appears above the image */
}

.carousel-caption h1 {
  font-size: 3rem; 
  font-weight: bold;
  width: 70vw;
}

.carousel-caption p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Add text shadow */
  width: 70vw;
}
.carousel-caption .btn {
  background: transparent;
  border-color: #fff;
}

.section-separator {
  height: 2px; /* Thickness of the line */
  width: 80%; /* Full width of the section */
  background: linear-gradient(to right, #7f00ff, #00ffff); /* Gradient colors */
}

#right {
  margin-left: auto;
}

.gradient-text {
  background: linear-gradient(to right, #ff007a, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* Make the text itself transparent */
}

section{
  padding-top: 5%;
  padding-bottom: 5%;
  scroll-snap-align: start;
  scroll-snap-type: y mandatory;

}/* General Styles */
.about-section {
  display: flex;
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  padding: 20px; /* Add padding for better spacing */
}

.about-container {
  display: flex;
  flex-direction: row; /* Default: image on the left, text on the right */
  align-items: center; /* Vertically align items */
  width: 80%; /* Limit container width */
  max-width: 1200px;
}

.about-image {
  flex: 1; /* Image takes up equal space */
  display: flex;
  justify-content: center; /* Center image horizontally */
  align-items: center; /* Center image vertically */
}

.about-image img {
  width: 80%; /* Image size */
  max-width: 300px; /* Maximum width */
  height: auto; /* Maintain aspect ratio */
  border-radius: 10%; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow */
}

.about-text {
  flex: 2; /* Text takes up twice the space compared to the image */
  text-align: left; /* Align text to the left */
  padding-left: 20px; /* Space between text and image */
}

.about-text h2 {
  background: linear-gradient(to right, #ff007a, #00ffff);
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 30px;
  margin-top: 20px;
  border-radius: 10px;
  padding: 7px 12px;
  max-width: fit-content;
  box-sizing: border-box;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #ffffff; /* Adjust text color for readability */
}

/* Media Query for Smaller Screens */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column; /* Stack image and text vertically */
    text-align: center; /* Center-align text for smaller screens */
  }

  .about-image {
    margin-bottom: 20px; /* Add spacing between image and text */
  }

  .about-text {
    padding-left: 0; /* Remove left padding */
  }

  .about-text h2 {
    margin: 0 auto 20px; /* Center-align the heading */
  }
}

/* Tech Stack Section Styles */
.tech-stack {
  margin-right: 10%;
  padding-left: 10%;
  padding-right: 10%;
}

.tech-stack-container {
  display: flex; /* Flexbox layout for side-by-side alignment */
  align-items: center; /* Vertically align items */
  justify-content: space-around; /* Add spacing between title and sphere */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 20px; /* Space between items */
}

.tech-stack-container h2 {
  flex: 1; /* Allow the title to take some space */
  font-size: 2rem; /* Adjust font size */
  font-weight: 300;
  letter-spacing: 5px;
  margin: 0; /* Remove default margin */
  text-align: left; /* Align the text to the left */
  color: #ffffff; /* Optional: Title text color */
}

.text-container {
  display: flex;
  flex-direction: column; /* Stack h2, h1, and p vertically */
  justify-content: center; /* Center vertically within the container */
  text-align: left; /* Align text to the left */
  max-width: 400px; /* Limit width for better layout */
}

.text-container h2 {
  font-size: 2rem; /* Adjust h2 size */
}

.text-container h1 {
  font-size: 2.5rem; /* Adjust h1 size */
  margin-top: 10px;
  background: linear-gradient(to right, #ff007a, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; 
}

.text-container p {
  font-size: 1rem; /* Adjust paragraph size */
  margin-top: 10px;
}

.projects-section{
  padding-left: 10%;
  padding-right: 10%;
}

#sphere-container {
  flex: 2; /* Allow the sphere container to take more space */
  width: 100%; /* Adjust width */
  max-width: 400px; /* Limit max width */
  height: 400px; /* Set a fixed height */
  display: flex;
  align-items: center;
  justify-content: center; /* Center content inside the sphere container */
  margin-left: auto;
  margin-right: auto;
}
#sphere-container a {
  color: #333;
  font-size: 18px;
  text-decoration: none;
}

#sphere-container img {
  width: 50px;          /* Adjust size of each logo */
  height: 50px;
  object-fit: contain;  /* Maintain aspect ratio */
  transition: transform 0.2s ease;
}

#sphere-container img:hover {
  transform: scale(1.2);
}


/* Footer Container */
.footer {
  position: relative;
  background-color: #111; /* Dark background */
  color: #fff; /* White text color */
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between; /* Space out the sections */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 20px;
}

/* Footer Columns */
.footer-column {
  flex: 1;
  min-width: 250px; /* Minimum width for smaller screens */
  margin: auto;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-column ul li {
  display: flex;
  margin-bottom: 15px;
}

.footer-column ul li i {
  font-size: 1.5rem;
  margin-right: 10px; /* Space between icon and text */
}

.footer-column ul li p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Links */
.footer-column a {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-column a:hover {
  color: #00ffff; /* Optional: Hover effect for links */
}

.footer-logo{
  width: 50px;
  height: 50px;
}
/* Social Icons */
.social-icons {
  display: flex;
  gap: 10px; /* Space between icons */
  margin: 20px 0;
  justify-content: center;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: #00ffff; /* Optional: Hover color for icons */
}

.social-icons a .icon-linkedin {
  background-image: url('../assets/img/linkedin.webp');
  background-size: cover;
  background-position: center;
  width: 70%;
  height: 70%;
}

.social-icons a .icon-github {
  background-image: url('../assets/img/github.webp');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
}

/* Footer Text */
.footer-column p {
  font-size: 0.8rem;
  color: #888; /* Subtle text color */
}

/* Contact Section */
#contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin: auto;
  margin-top: 200px;
  margin-bottom: 200px;
  color: #333;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Gradient Text for h2 */
#contact h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #7f00ff, #00ffff); /* Purple to cyan gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* Make text transparent to show gradient */
  text-align: center;
}

#contact p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #666;
}

/* Form Styling */
form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

form label {
  text-align: left;
  margin-bottom: 5px;
  font-size: 1rem;
  color: #ffffff;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 2px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  color: #1b1b1b;
  font-size: 1rem;
  outline: none;
}

form input:focus, form textarea:focus {
  border: 2px solid #7f00ff; /* Focus color */
}

form button {
  background-color: #7f00ff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #00ffff;
  color: #111;
}

.projects-section h2{
  padding-bottom: 20px;
  font-weight: 300;
  letter-spacing: 5px;
}


/* Carousel Container */
.carousel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  overflow: hidden;
}

/* Slides Container */
.carousel-slides {
  display: flex;
  transition: transform 0.5s ease; /* Smooth slide transition */
  width: 85%;
}

/* Single Slide */
.carousel-slide {
  display: flex;
  flex: 1 0 100%; /* Full width per slide */
  max-width: 100%;
  align-items: center;
  justify-content: center;
  overflow: visible;
  gap: 20px; /* Space between image and text */
  opacity: 0;
  transform: translateX(100%); /* Hide slides initially */
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0); /* Show active slide */
}

/* Image Styling */
.carousel-slide img {
  width: 50%;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Text Styling */
.carousel-text {
  width: 50%;
  text-align: left;
}

.carousel-text h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.carousel-text p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Chevron Buttons */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -50px;
  margin-right: -50px;
}

.carousel-control.left {
  left: 55px;
}

.carousel-control.right {
  right: 55px;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-slide {
    flex-direction: column; /* Stack image and text vertically */
  }

  .carousel-slide img,
  .carousel-text {
    width: 100%;
    text-align: center;
  }

  .carousel-control {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 20px; /* Position at the bottom of the carousel */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  font-size: 2rem; /* Adjust size of the chevron */
  color: #fff; /* White color for the chevron */
  animation: bounce 4.5s infinite; 
  z-index: 10; /* Ensure it's above other elements */
}

.scroll-indicator a {
  text-decoration: none;
  color: inherit; /* Use the color defined for .scroll-indicator */
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-indicator i {
  font-size: 2rem;
  color: #fff;
}
.scroll-indicator a:hover {
  animation: bounce 0.6s infinite; /* Trigger bounce animation on hover */
}

html {
  scroll-behavior: smooth;
}

/* Back-to-Top Button Container */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  z-index: 1000;
  visibility: hidden; /* Hidden initially */
  opacity: 0; /* Invisible initially */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Button Style */
.back-to-top button {
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  transform: translateY(-20px);
  outline: none;
}

.back-to-top button:focus{
  outline: none;
}

/* Progress Ring */
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
}

.progress-ring svg {
  transform: rotate(-90deg); /* Rotate for progress effect */
}

.progress-ring-circle {
  fill: none;
  stroke: url(#gradient-stroke); /* Progress color */
  stroke-width: 3;
  stroke-dasharray: 126; /* Circumference = 2 * π * radius (r=20) */
  stroke-dashoffset: 126; /* Start at 0% progress */
  transition: stroke-dashoffset 0.3s ease;
}