body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  /* background: url(./assets/4702747.jpg); */
   background:linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
}





/*  */

.navbar {
  border-radius: 10px;
}


.hero {
  min-height: 100vh;
}

.hero h1 {
  font-size: 2.2rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.hero-img {
  width: 250px;
  height: 250px;
  /* max-width: 100%; */
   object-fit: cover;
  border-radius: 20px;
  right: 20px;
  /* box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); */
}

.typing-glow {
  font-size: 1.3rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid red;
  width: fit-content;
  animation: blink-caret 0.75s step-end infinite;
  /* text-shadow: 0 0 10px red, 0 0 20px red; */
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: red; }
}

/* Desktop Social Icons */
.social-icons {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  z-index: 9999;
}

.social-icons a {
  font-size: 15px;
  color: white;
  background: #212529;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #dc3545;
  color: #fff;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
  .social-icons {
    display: none !important;
  }

  .social-icons-mobile {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .social-icons-mobile a {
    font-size: 20px;
    color: white;
    background: #212529;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .social-icons-mobile a:hover {
    background: #dc3545;
    color: #fff;
  }
}




.About{
  align-items: center;
}

html {
  scroll-behavior: smooth;
}

#about h3 {
  font-size: 28px;
  font-weight: 700;
}

#about ul li {
  font-size: 16px;
  padding: 5px 0;
}


#projects{
  text-align: center;
}

.card-img-top {
  height: 220px;           /* Set uniform height */
  object-fit: cover;       /* Crop without distortion */
  width: 100%;             /* Full width */
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}




#contact .form-control {
  background-color: #1e293b;
  border: 1px solid #444;
  color: white;
}
#contact .form-control:focus {
  border-color: #dc3545;
  box-shadow: none;
}



.btn-danger:hover,
.btn-secondary:hover,
.btn-outline-light:hover {
  transform: scale(1.05);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(108, 117, 125, 0.7), 0 0 20px rgba(108, 117, 125, 0.5);
}


#skills .bg-secondary:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6), 0 0 25px rgba(255, 0, 0, 0.4);
  background-color: #1f2937 !important;
}


/* Footer */

.footer {
  background-color: #111827;
  color: #ffffff;
}

.footer h5 {
  color: #dc3545;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: 0.3s;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-icon {
  color: #ffffff;
  font-size: 18px;
  transition: color 0.3s ease;
}

.footer-icon:hover {
  color: #dc3545;
}

.email{
  text-decoration: none;
  color: white;
}
.email:hover{
  color: blue;
}



/* project */


  @media (max-width: 767px) {
    /* Hide all cards except the first one in each carousel-item */
    .carousel-item .col-sm-6:nth-child(n+2) {
      display: none;
    }

    /* Make first card full width */
    .carousel-item .col-sm-6:first-child {
      flex: 0 0 100%;
      max-width: 100%;
    }
  }

