/* General */
body {
  font-family: 'Poppins', sans-serif;
  padding-top: 70px; /* Prevent content hiding under navbar */
}

/* Navbar Styling */
.navbar {
  transition: all 0.3s ease;
}

/* Sticky scroll effect */
.navbar.scrolled {
  background-color: #000 !important;
  padding: 10px 0;
}

/* Nav links */
.nav-link {
  color: #fff !important;
  margin-right: 15px;
  position: relative;
}

/* Hover underline effect */
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #0d6efd;
  left: 0;
  bottom: 0;
  transition: 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown-menu {
  border-radius: 10px;
  border: none;
}

.dropdown-item:hover {
  background-color: #0d6efd;
  color: #fff;
}

/* Button */
.btn-primary {
  border-radius: 25px;
}




/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  padding: 80px 0;
}

/* Title */
.hero-title {
  font-size: 3rem;
  font-weight: 700;
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.8rem;
  margin: 15px 0;
}

/* Typing text color */
#typing {
  color: #0d6efd;
  font-weight: 600;
}

/* Paragraph */
.hero-text {
  color: #cbd5f5;
  margin-bottom: 20px;
}

/* Buttons */
.hero-buttons .btn {
  padding: 10px 25px;
  border-radius: 30px;
}

/* Carousel images */
.carousel-item img {
  height: 350px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }
}






/* About Section */
.about-section {
  background-color: #0f172a;
  color: #fff;
}

/* Section Title */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Typing */
.about-typing {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

#aboutTyping {
  color: #0d6efd;
  font-weight: 600;
}

/* Text */
.about-text {
  color: #cbd5f5;
}

/* Image hover effect */
.about-img img {
  transition: transform 0.4s ease;
}

.about-img img:hover {
  transform: scale(1.05);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}






/* Skills Section */
.skills-section {
  background: #020617;
  color: #fff;
}

/* Title */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Typing text */
#skillsTyping {
  color: #0d6efd;
  font-weight: 600;
}

/* Progress bar */
.progress {
  height: 10px;
  background: #1e293b;
  border-radius: 20px;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  background: linear-gradient(90deg, #0d6efd, #3b82f6);
  transition: width 1.5s ease;
}

/* Skill Card */
.skill-card {
  background: #0f172a;
  padding: 15px;
  border-radius: 15px;
  text-align: center;
  transition: 0.3s;
}

.skill-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}







/* Projects Section */
.projects-section {
  background: #0f172a;
  color: #fff;
}

/* Title */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Typing text */
#projectsTyping {
  color: #0d6efd;
  font-weight: 600;
}

/* Project Card */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.project-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: 0.4s;
}

/* Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 110, 253, 0.85);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.4s;
  text-align: center;
}

/* Hover Effect */
.project-card:hover img {
  transform: scale(1.1);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Filter Buttons */
.filter-btn {
  border-radius: 20px;
}


/* extra in project section start */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.project-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Mobile view adjustments */
@media (max-width: 576px) {
  .project-card img {
    height: 120px; /* chhota image */
  }

  .project-overlay h5 {
    font-size: 14px;
  }

  .project-overlay p {
    font-size: 12px;
  }

  .project-overlay .btn {
    font-size: 10px;
    padding: 3px 8px;
  }
}



@media (max-width: 576px) {
  .project-item {
    padding: 5px;
  }
}

/* extra in project section success and end */







/* Experience Section */
.experience-section {
  background: #020617;
  color: #fff;
}

/* Title */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Typing */
#expTyping {
  color: #0d6efd;
  font-weight: 600;
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 20px;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 3px;
  height: 100%;
  background: #0d6efd;
}

/* Item */
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 50px;
}

/* Dot */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 15px;
  height: 15px;
  background: #0d6efd;
  border-radius: 50%;
}

/* Content */
.timeline-content {
  background: #0f172a;
  padding: 20px;
  border-radius: 15px;
  transition: 0.3s;
}

.timeline-content img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Hover */
.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Fade animation */
.timeline-item {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}







/* Contact Section */
.contact-section {
  background: #0f172a;
  color: #fff;
}

/* Title */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Info Box */
.info-box {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background: #020617;
  padding: 15px;
  border-radius: 12px;
  transition: 0.3s;
}

.info-box i {
  font-size: 24px;
  color: #0d6efd;
  margin-right: 15px;
}

.info-box:hover {
  transform: translateX(5px);
  background: #1e293b;
}

/* Form */
.contact-form .form-control,
.contact-form .input-group-text {
  background: #020617;
  border: none;
  color: #fff;
}

.contact-form .form-control::placeholder {
  color: #94a3b8;
}

/* Focus */
.contact-form .form-control:focus {
  box-shadow: none;
  border: 1px solid #0d6efd;
}

/* Button */
.contact-form .btn {
  border-radius: 25px;
}




/* Footer */
.footer-section {
  background: #020617;
  color: #fff;
  position: relative;
}

/* Logo */
.footer-logo {
  font-weight: 700;
  font-size: 1.8rem;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #0d6efd;
  padding-left: 5px;
}

/* Social Icons */
.social-icons a {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
  color: #fff;
  background: #0f172a;
  padding: 10px;
  border-radius: 50%;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #0d6efd;
  transform: translateY(-5px);
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 15px;
  color: #94a3b8;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0d6efd;
  border: none;
  color: #fff;
  padding: 10px 15px;
  border-radius: 50%;
  display: none;
  cursor: pointer;
  transition: 0.3s;
}

#backToTop:hover {
  background: #2563eb;
}