
html{
  scroll-behavior: smooth;
}

@media (min-width:768px){
.carousel_view{
object-fit: cover;
height: 100vh;
width: 100%;
}
.carousel-caption{
  margin-top: 3rem;
}
 .carousel-caption {
    top: 30%;
  }

  .pt_5{
  padding-top: 5rem;
}

.pt_1{
  padding-top: 1rem;
}

.pb_3{
  padding-bottom: 3rem;
}

.pb_2{
  padding-bottom: 2rem;
}


.pb_1{
  padding-bottom: 1rem;
}
}

.navbar{
  position: fixed;
  z-index: 4;
  width: 100%;
}

.pt_3{
  padding-top: 3rem;
}

.pb_2{
  padding-bottom: 2rem;
}

.pt_2{
  padding-top: 2rem;
}
.pt_1{
  padding-top: 1rem;
}

.carousel-caption{
  top: 7rem;
}


.mobile_view{
  object-fit: cover;
}

.display_none{
  display: none;
}

.hero_sec{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 110px 50px;

}

#hero_txt{
  margin-left: 0rem;
}



.box{
  position: relative;
  justify-content: center;
  min-height: 100vh;
  color: white;
  text-align: center;
}

.box video{
  position: absolute;
  left: 0%;
  top: 0%;
  width: 100%;
  height: 100% ;
  object-fit: cover;
  z-index: -1;
}

.h3_txt{
  margin-bottom: 15px;
  font-size: 32px;
  text-transform: uppercase;
  text-shadow: 0 2px rgba(0,0,0,0.5);
}

.box .pragh_txt{
  margin-bottom: 40px;
  font-size: 20px;

}

.box a.boxbtn{
  padding: 15px 40px;
  background: transparent;
  border-radius: 50px;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  border: 4px solid white;
  transition: all .5s;
}

.box a.boxbtn:hover{
  background: white;
  color: black;
}

@media (min-width:800px){
  .box {
    max-height: 600px;
  }
  .box .h3_text{
    font-size:65px ;
  }
  .box .pragh_txt{
    font-size: 25px;
  }
  .box a.boxbtn{
    padding:15px 35px ;
  }
}

.carousel-item{
   height: 100vh;
}

.img_vh{
   position: relative;
    object-fit: cover;
    height: 100%;
    width:100%
}

.mb_5{
  margin-bottom: 5rem;
}

.card-txt{
  margin-top: -9rem;
}

.center{
  text-align: center;
}
.margin{
  margin-left: 31rem;
  margin-top: 1rem;
}

/* Remove default link styling */
.service-link {
  text-decoration: none;
  color: inherit;
}

/* Card hover effect */
.service-card {
  transition: all 0.3s ease-in-out;
  border-radius: 15px;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #fff;
}

/* Card title styling */
.service-card .card-title {
  font-size: 1.25rem;
  color: black; /* Bootstrap danger red */
  margin-bottom: 15px;
  transition: color 0.3s ease-in-out;
}

.service-card:hover .card-title {
  color: #b02a37; /* Darker red on hover */
}

/* Card text styling */
.service-card .card-text {
  color: #6c757d;
  line-height: 1.6;
}


/* ===== About Me Section Custom Styling ===== */
#About img {
  max-height: 450px;   /* keeps image size balanced */
  object-fit: cover;   /* ensures image fills nicely */
}

#About h2 {
  color: #2c2c2c;      /* softer heading color */
}

#About p {
  line-height: 1.7;    /* improves readability */
}

#About .btn-danger {
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3); /* soft red shadow */
  transition: all 0.3s ease-in-out;
}

#About .btn-danger:hover {
  background-color: #c82333; /* deeper red */
  transform: translateY(-2px); /* subtle lift */
}

/* Navbar improvements */
.navbar .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: #b02a37; /* Stylish red hover */
}

/* Fix carousel caption positioning */
.carousel-caption {
  top: 39%;
}

/* Fix margin issue on "Show More" button */
.margin {
  margin: 1rem auto;
  display: block;
}

/* Responsive card text overlay */
.card-txt {
  margin-top: -7rem;
}
@media (max-width: 768px) {
  .card-txt {
    margin-top: -4rem;
    font-size: 0.9rem;
  }
  .hide_txt{
    display: none;
  }
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card img {
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}


