body,
html {
  font-family: "Open Sans", sans-serif;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: #777;
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
}

h2,
h3,
h4 {
  color: whitesmoke;
  font-family: "Raleway", sans-serif;
}

h2 {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 36px;
  color: whitesmoke;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

h4 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

h5 {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 20px;
}

p {
  font-size: 20px;
  color: #aca5a5;
}

p.intro {
  margin: 12px 0 0;
  line-height: 24px;

}

a {
  color: #608dfd;
  font-weight: 400;
}

a:hover,
a:focus {
  text-decoration: none;
  color: #608dfd;
}

ul,
ol {
  list-style: none;
}

hr {
  height: 2px;
  width: 70px;
  text-align: center;
  position: relative;
  background: #1e7a46;
  margin-bottom: 20px;
  border: 0;
}

.gallery_header {
  text-transform: uppercase;
  margin: 0 0 20px;
  padding-top: 30px;
  font-weight: 800;
  font-size: 36px;
  color: #000000;
}

/* Navigation */
#menu {
  padding: 15px;
  transition: all 0.8s;
}

#menu.navbar-default {
  background-color: #fff;
  border-color: rgba(231, 231, 231, 0);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

#menu a.navbar-brand {
  font-family: "Raleway", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #050833;
  text-transform: uppercase;
}

#menu.navbar-default .navbar-nav>li>a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: #555;
  font-size: 18px;
  font-weight: 400;
  padding: 8px 2px;
  border-radius: 0;
  margin: 9px 20px 0;
}

#menu.navbar-default .navbar-nav>li>a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  content: "";
  transition: width 0.2s;
}

#menu.navbar-default .navbar-nav>li>a:hover:after {
  width: 100%;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
  background-color: transparent;
}

.navbar-default .navbar-nav>.active>a:after,
.navbar-default .navbar-nav>.active>a:hover:after,
.navbar-default .navbar-nav>.active>a:focus:after {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%) !important;
  content: "" !important;
  transition: width 0.2s !important;
}

.navbar-toggle {
  border-radius: 0;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #fff;
  border-color: #608dfd;
}

.navbar-default .navbar-toggle:hover>.icon-bar {
  background-color: #608dfd;
}

.section-title {
  margin-bottom: 70px;
}

.section-title h2 {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.section-title h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}

.section-title p {
  font-size: 18px;
}

.btn-custom {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: #5ca9fb;
  background: linear-gradient(to right, #182491 0%, #1a1f24 100%);
  padding: 14px 34px;
  letter-spacing: 1px;
  margin-top: 90px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.5s linear;
  border: 0;
}

.btn-custom:hover,
.btn-custom:focus,
.btn-custom.focus,
.btn-custom:active,
.btn-custom.active {
  color: #fff;
  background-image: none;
  background-color: #182599;
}

.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  outline-offset: none;
}


/* Header Section */
.intro {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 5%;
  width: 100%;
  height: 95vh;
  background: url(../img/back.jpg) center center no-repeat;
  background-color: #e5e5e5;
  background-size: cover;
  text-align: left;
  margin-top: 70px;
  margin-bottom: 10px;
}

.intro .overlay {
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.intro-text {
  position: absolute;
  top: 180px;
  left: 5%;
  z-index: 1;
  text-align: left;
}

.intro-text h1 {
  font-family: "Raleway", sans-serif;
  color: #ffffff;
  font-size: 40px;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-text h1 span {
  font-weight: 800;
  color: #5ca9fb;
}

.intro-text p {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 30px;
  margin: 0 auto 60px;
}


/* Features Section */
#home {
  background: linear-gradient(to right, #182491 0%, #1a1f24 100%);
  border-radius: 40px;
  padding-top: 40px;
  margin-top: -80px;

}

#home i.fa {
  font-size: 38px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #fff;
  width: 100px;
  height: 100px;
  padding: 30px 0;
  border-radius: 50%;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}

#home h2 {
  margin-top: 30px;
}

#home h3 {
  color: #fff;
  font-size: 30px;
  margin-top: 20px;
}

#home p {
  font-size: 20px;
  color: #bdd2df;
}


/* About Section */
#about {
  padding-top: 80px;
  margin-bottom: 50px;
  border: #a89e9e;
  border-radius: 40px;
}

#about h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
  color: #070227;
  margin-top: 50px;
}

.about-text p {
  margin: 0 auto 20px; 
  font-size: 23px;
  text-align: left;
  color: #48494b;
}

#about hr {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}

.counter-box {
  margin-top: -60px;
  width: 200px;
  height: 200px;
  padding: 20px;
  border-radius: 10px;
  background-color: #e0e6ec;
  box-shadow: rgba(11, 45, 235, 0.4) 5px 5px, rgba(13, 22, 148, 0.3) 10px 10px, rgba(7, 5, 131, 0.2) 15px 15px, 
  rgba(14, 33, 202, 0.1) 20px 20px, rgba(36, 39, 235, 0.05) 25px 25px;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.counter-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.counter-box i {
  font-size: 17px;
  color: #041b35;
  margin-bottom: 10px;
}

.counter-box .num {
  font-size: 2.2em;
  font-weight: 700;
  color: #080335;
}

.counter-box .text {
  font-size: 17px;
  color: #092946;
  margin-top: 5px;
  font-weight:bold;
}

.wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 100px;
  margin-top: 40px;
}

#about img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

/* Services Section */
#services {
  padding-top: 150px;
  padding-bottom: 60px;
  background: linear-gradient(to right, #182491 0%, #1a1f24 100%);
  color: #fff;
  border-radius: 40px;
}

#services .service-desc {
  margin: 10px 10px 20px;
}

#services h2 {
  color: #ffffff;
  margin-top: -20px;
}

#services .p1 {
  max-width: 950px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 20px;
  color: #bdd2df;
}

#services p {
  margin: 0 auto;
  line-height: 1.6;
  font-size: 20px;
  color: #b0d1d8;
  margin-bottom: 50px;
}

#services h3 {
  color: #fff;
  font-size: 25px;
  margin-top: 20px;
}

#services .section-title h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}

#services img {
  width: 70%;
  height: 160px;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  border-radius: 50px;
 
}

#services .service-desc {
  margin-bottom: 40px;
}


/* gallery Section */
#gallery {
  padding: 100px 0;
}
.portfolio-item {
  margin: 1px 1px;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 40px;
}

#gallery p {
  font-size: 20px;
  color: #48494b;
  margin-bottom: -40px;
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.portfolio-item .hover-bg {
  overflow: hidden;
  position: relative;
  margin: 0;
}
#portfolio h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
  color: #070227;
}
.hover-bg .hover-text {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  color: #fff;
  padding: 30% 0 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.5s;
}

.hover-bg .hover-text>h4 {
  opacity: 0;
  color: #fff;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: all 0.3s;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
}

.hover-bg:hover .hover-text>h4 {
  opacity: 1;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.hover-bg:hover .hover-text {
  opacity: 1;
}


/* Contact Section */
#contact {
  padding: 130px 0;
  background: linear-gradient(to right, #182491 0%, #1a1f24 100%);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 40px;
  margin-bottom: 0px;
}

/* Title & Text */
#contact h2 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 700;
}

#contact .p1 {
  font-size: 20px;
  color: #bdd2df;
  margin-bottom: 10px;
}

#contact .first {
  margin-bottom: 30px;
}

/* Form Styles */
#contact .form-group {
  margin-bottom: 20px;
  width: 100%;
}

#contact .form-control {
  background: #f8f9fa;
  color: #333;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 12px 16px;
  font-size: 16px;
}

#contact .form-control:focus {
  border-color: #5ca9fb;
  outline: none;
  box-shadow: 0 0 5px rgba(92, 169, 251, 0.5);
}

/* Button */
#contact .btn-M {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}

#contact .btn-M:hover {
  background: #fff;
  color: #1f386e;
}

/* Contact Info */
#contact .contact-info h3 {
  font-size: 22px;
  color: #fff;
}

#contact .contact-info p {
  font-size: 16px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

#contact .contact-info span {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

#contact .contact-info i {
  margin-right: 10px;
  color: #5ca9fb;
}

/* Social Icons */
#contact .contact {
  padding-top: 30px;
  align-items: center;
  justify-content: center;
}

#contact .social {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 30px;
  margin-top: 0px;
  text-align: center;
}

#contact .social ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#contact .social ul li {
  display: inline-block;
  margin: 0 10px;
}

#contact .social i.fa {
  font-size: 20px;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  padding: 11px;
  transition: all 0.3s ease-in-out;
}

#contact .social i.fa:hover {
  background: #fff;
  color: #1a1f24;
}

#contact .imgs {
  width: 200px;
  height: 200px;
  margin: 20px auto 10px;
  display: block;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  border-radius: 10px;
}

#contact .con {
  padding-left: 85px;
  padding-right: 85px;
  margin-bottom: 10px;
}



/* Footer Section*/
#footer {
  background: #f6f6f6;
  padding: 30px 0;
}

#footer p {
  color: #888;
  font-size: 14px;
}

#footer a {
  color: #608dfd;
}

#footer a:hover {
  border-bottom: 2px solid #608dfd;
}

@media (max-width: 768px) {
  #about img {
    margin: 30px auto; /* center vertically with top/bottom spacing */
    max-width: 80%;    /* reduce width */
    height: auto;      /* maintain aspect ratio */
    display: block;    /* ensure center-block works */
  }

  .intro-text h1 {
    font-family: "Raleway", sans-serif;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
  }
}


@media (max-width: 500px) {
  /* home */
  .intro-text h1 {
    font-family: "Raleway", sans-serif;
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .intro-text {
    position: absolute;
    top: 100px;
    left: 5%;
    z-index: 1;
    text-align: left;
  }

#home h3{
  color: #fff;
  font-size: 25px;
  margin-top: 20px;
}

  #home p {
    font-size: 17px;
    color: #bdd2df;
  }

  /* about */
  #about h2 {
    position: relative;
    margin-bottom: 10px;
    padding-bottom: 10px;
    color: #070227;
    font-size: 35px;
  }

  .about-text p {
    margin: 0 auto ;
    font-size: 17px;
    text-align: justify;
    color: #48494b;
    margin-bottom: -80px!important;
  }

  .wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 90px;
}
  
  .counter-box .num {
    font-size: 1.8em;
  }

  .counter-box {
    width: 100%;
    max-width: 250px;
    margin-top: 30px;
    margin-bottom: -70px;
    padding: 15px;
    height: auto;
  }

  #about img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

  /* service */
  #services h2 {
    color: #fff;
    margin-top: -20px;
    font-size: 35px;
  }

  #services .p1 {
    max-width: 950px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 17px;
    color: #bdd2df;
  }

  #services p {
    margin: 0 auto;
    line-height: 1.6;
    font-size: 17px;
    color: #b0d1d8;
    margin-bottom: 50px;
  }

  #services h3 {
    color: #fff;
    font-size: 22px;
    margin-top: 20px;
  }

/* gallery */
#portfolio p{
  font-size: 17px;
  color: #48494b;
  margin-bottom: 10px;
}

#gallery h2 {
  margin-bottom: 15px;
  padding-bottom: 15px;
  margin-top: -10px;
  color: #070227;
}

.portfolio-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
}

.portfolio-item {
  margin: 1px 1px;
  padding: 2px;
  border-radius: 10px;
 
}

  /* contact */
  #contact h2 {
    color: #fff;
    font-size: 35px;
  }

  #contact .p1 {
    font-size: 17px;
    color: #bdd2df;
  }

  #contact .imgs {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
    border-radius: 10px;
  }

  #contact .con {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  #contact .cons {
    padding-left: 0px !important;
    padding-right: 10px !important;
  }

  #contact .contact-info p {
    font-size: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
  }
}

@media (min-width: 500px) and (max-width: 992px) {
  /* nav */
 #menu .logo{
  height: 20px;
  width: 120px;
  display: inline-block;
  vertical-align: middle; 
}

#menu.navbar-default .navbar-nav>li>a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: #555;
  font-size: 15px;
  font-weight: 300;
  padding: 8px 2px;
  border-radius: 0;
  margin: 9px 20px 0;
}

/* home */
  .intro-text h1 {
    font-family: "Raleway", sans-serif;
    color: #ffffff;
    font-size: 33px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .intro-text {
    position: absolute;
    top: 100px;
    left: 5%;
    z-index: 1;
    text-align: left;
  }

#home h3{
  color: #fff;
  font-size: 25px;
  margin-top: 10px;
}

/* about */
#about h2 {
    position: relative;
    margin-bottom: 10px;
    padding-bottom: 10px;
    color: #070227;
    font-size: 35px;
    margin-top: 30px;
  }

    .about-text p {
    margin: 0 auto ;
    font-size: 17px;
    text-align: justify;
    color: #48494b;
    margin-bottom: -50px;
  }

 .wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0px;
  margin-bottom: 90px;
} 
  .counter-box .num {
    font-size: 1.8em;
  }

  .counter-box {
    width: 100%;
    max-width: 250px;
    margin-top: 30px;
    margin-bottom: -70px;
    padding: 15px;
    height: auto;
  }

  #about img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

  /* service */
   #services h2 {
    color: #fff;
    margin-top: -30px;
    font-size: 35px;
  }

  /* gallery */
#gallery h2 {
  margin-bottom: 15px;
  padding-bottom: 15px;
  margin-top: -20px;
  color: #070227;
}

.portfolio-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

/* contact */
 #contact h2 {
    color: #fff;
    font-size: 35px;
    margin-top: -20px;
  }
}
