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 {
  font-family: "Raleway", sans-serif;
}
h2 {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 36px;
  color: #333;
}
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: 15px;
}
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;
}
ul,
ol {
  padding: 0;
  padding: 0;
  padding: 0;
}
hr {
  height: 2px;
  width: 70px;
  text-align: center;
  position: relative;
  background: #1e7a46;
  margin-bottom: 20px;
  border: 0;
}
/* 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: 24px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
}
#menu.navbar-default .navbar-nav > li > a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: #555;
  font-size: 15px;
  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-image: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  padding: 14px 34px;
  letter-spacing: 1px;
  margin: 0;
  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: #6372ff;
}
.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 {
  display: table;
  width: 100%;
  padding: 0;
  background: url(../img/intro-bg.jpg) center center no-repeat;
  background-color: #e5e5e5;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}
.intro .overlay {
  background: rgba(0, 0, 0, 0.2);
}
.intro h1 {
  font-family: "Raleway", sans-serif;
  color: #fff;
  font-size: 82px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
}
.intro h1 span {
  font-weight: 800;
  color: #5ca9fb;
}
.intro p {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 30px;
  margin: 0 auto;
  margin-bottom: 60px;
}
header .intro-text {
  padding-top: 350px;
  padding-bottom: 200px;
  text-align: center;
}
/* Features Section */
#features {
  background: #f6f6f6;
  padding: 60px 0;
  text-align: center;
}

#features .section-title h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

#features 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);
}

#features .col-md-3 {
  margin-bottom: 40px;
}

#features h3 {
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

#features p {
  font-size: 14px;
  color: #777;
  margin: 0;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  #features i.fa {
    font-size: 28px;
    width: 70px;
    height: 70px;
    padding: 15px 0;
    margin-bottom: 15px;
  }

  #features {
    padding: 40px 20px;
  }

  #features .col-xs-6 {
    width: 100%;
    max-width: 100%;
  }

  #features .feature-item {
    display: block;
    margin-bottom: 30px;
    text-align: center;
  }
}
  

/* About Section */
#about {
  padding: 100px 0;
}
#about h3 {
  font-size: 22px;
  margin: 0 0 20px;
}
#about h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
#about h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}
#about .about-text li {
  margin-bottom: 6px;
  margin-left: 6px;
  list-style: none;
  padding: 0;
}
#about .about-text li:before {
  content: "\f00c";
  font-family: "FontAwesome";
  color: #5ca9fb;
  font-size: 11px;
  font-weight: 300;
  padding-right: 8px;
}
#about img {
  width: 520px;
  margin-top: 10px;
  background: #fff;
  border-right: 0;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
}
#about p {
  line-height: 24px;
  margin: 30px 0;
}
/* Services Section */
#services {
  padding: 100px 0;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  color: #fff;
  text-align: center;
}

#services .section-title h2 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 20px;
  position: relative;
}

#services .section-title p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 40px;
}

#services .section-title h2::after {
  content: "";
  position: absolute;
  height: 4px;
  width: 60px;
  background: rgba(255, 255, 255, 0.3);
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Flexbox Grid */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
}

.service-item {
  background: transparent;
  flex: 1 1 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
  box-sizing: border-box;
  padding: 20px 10px;
  min-width: 280px;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

#services i.fa {
  font-size: 42px;
  width: 120px;
  height: 120px;
  padding: 40px 0;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  border-radius: 50%;
  color: #fff;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

#services i.fa:hover {
  transform: scale(1.1);
}

#services .service-desc {
  margin: 10px 10px 30px;
  padding: 0 10px;
}

#services h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

#services p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin: 0;
}

/* Tablet */
@media (max-width: 991px) {
  #services {
    padding: 80px 20px;
  }

  .service-item {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }
}

/* Mobile */
@media (max-width: 767px) {
  #services {
    padding: 60px 15px;
  }

  #services .section-title h2 {
    font-size: 28px;
  }

  #services .section-title p {
    font-size: 15px;
  }

  #services i.fa {
    font-size: 30px;
    width: 80px;
    height: 80px;
    padding: 25px 0;
    margin-bottom: 15px;
  }

  #services h3 {
    font-size: 18px;
  }

  #services p {
    font-size: 13px;
  }

  .service-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
  

/* Portfolio Section */
#portfolio {
  padding: 100px 0;
  background: #f9f9f9;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive Flex Grid */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.gallery-item {
  flex: 1 1 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
  box-sizing: border-box;
  transition: transform 0.3s ease;
  height: 300px; /* Fixed height for all items */
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

/* Image Wrapper */
.portfolio-item {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

/* Image Sizing */
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover Effects */
.hover-bg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hover-bg .hover-text {
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
  color: #fff;
  background: linear-gradient(to right, rgba(99, 114, 255, 0.8), rgba(92, 169, 251, 0.8));
  width: 100%;
  height: 100%;
  padding-top: 30%;
  opacity: 0;
  transition: all 0.5s ease;
}

.hover-bg:hover .hover-text {
  opacity: 1;
}

.hover-text > h4 {
  opacity: 0;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  transform: translateY(100%);
}

.hover-bg:hover .hover-text > h4 {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 991px) {
  .gallery-item {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
    height: 250px;
  }

  #portfolio {
    padding: 80px 20px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .gallery-item {
    flex: 1 1 100%;
    max-width: 100%;
    height: 200px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .section-title p {
    font-size: 15px;
  }

  #portfolio {
    padding: 60px 15px;
  }
}

/* Testimonials Section */
#testimonials {
  padding: 80px 0;
  background: #f6f6f6;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: 700;
}

/* Make row a flex container to align children */
#testimonials .row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px; /* Optional spacing between cards */
}

/* Equal column heights */
#testimonials .col-md-4 {
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(33.333% - 30px); /* 3 cards per row, minus spacing */
  max-width: calc(33.333% - 30px);
  min-height: 100%;
}

/* Force the testimonial card to stretch fully */
.testimonial {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
}

/* Image container */
.testimonial-image {
  flex-shrink: 0;
  margin-right: 20px;
}

/* Image styling */
.testimonial-image img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

/* Text content */
.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-content p {
  margin: 0 0 10px 0;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: #333;
}

.testimonial-meta {
  font-size: 14px;
  font-weight: 600;
  color: #777;
}

/* Responsive behavior for mobile */
@media (max-width: 768px) {
  #testimonials .row {
    flex-direction: column;
    gap: 20px;
  }

  #testimonials .col-md-4 {
    max-width: 100%;
  }

  .testimonial {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-image {
    margin: 0 0 15px 0;
  }

  .testimonial-content {
    align-items: center;
  }

  .testimonial-content p {
    text-align: center;
  }
}


/* Team Section */
#team {
  padding: 100px 15px; /* added horizontal padding for mobile */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

#team h4 {
  margin: 5px 0;
  text-align: center;
}

#team .team-img {
  width: 100%;
  max-width: 240px;  /* fixed max width */
  height: 240px;     /* fixed height for same size */
  object-fit: cover; /* cover crop to maintain aspect ratio */
  border-radius: 8px; /* optional: rounded corners */
  display: block;
  margin: 0 auto;    /* center images */
}

#team .thumbnail {
  background: transparent;
  border: 0;
  text-align: center;
  padding: 15px;
  box-sizing: border-box;
}

#team .thumbnail .caption {
  padding: 10px 0 0;
  color: #888;
  font-size: 14px;
  text-align: center;
}

/* Responsive Grid for team members */
#team .team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* spacing between team cards */
}

/* On smaller screens stack vertically */
@media (max-width: 600px) {
  #team {
    padding: 60px 15px;
  }
  #team .team-container {
    flex-direction: column;
    align-items: center;
  }
  #team .team-img {
    max-width: 180px;
    height: 180px;
  }
}

/* Contact Section */
#contact {
  padding: 100px 0 60px;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  color: rgba(255, 255, 255, 0.75);
}
#contact .section-title {
  margin-bottom: 40px;
}
#contact .section-title p {
  font-size: 16px;
}
#contact h2 {
  color: #fff;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
#contact .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 30px;
}
#contact h3 {
  color: #fff;
  margin-top: 80px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  font-weight: 400;
}
#contact form {
  padding-top: 20px;
}
#contact .text-danger {
  color: #cc0033;
  text-align: left;
}
#contact .btn-custom {
  margin: 30px 0;
  background: transparent;
  border: 2px solid #fff;
}
#contact .btn-custom:hover {
  color: #1f386e;
  background: #fff;
}
label {
  font-size: 12px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  float: left;
}
#contact .form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.42857143;
  color: #444;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ddd;
  border-radius: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}
#contact .form-control:focus {
  border-color: #999;
  outline: 0;
  -webkit-box-shadow: transparent;
  box-shadow: transparent;
}
.form-control::-webkit-input-placeholder {
  color: #777;
}
.form-control:-moz-placeholder {
  color: #777;
}
.form-control::-moz-placeholder {
  color: #777;
}
.form-control:-ms-input-placeholder {
  color: #777;
}
#contact .contact-item {
  margin: 20px 0;
}
#contact .contact-item span {
  color: rgba(255, 255, 255, 1);
  margin-bottom: 10px;
  display: block;
}
#contact .contact-item i.fa {
  margin-right: 10px;
}
#contact .social {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 50px;
  margin-top: 50px;
  text-align: center;
}
#contact .social ul li {
  display: inline-block;
  margin: 0 20px;
}
#contact .social i.fa {
  font-size: 22px;
  width: 48px;
  height: 48px;
  padding: 12px 0;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}
#contact .social i.fa:hover {
  color: #608dfd;
  background: #fff;
}
/* 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: 50px 0;
  }
}



/* Make sure navbar container is position relative */
.navbar .container {
  position: relative;
  overflow: visible; /* allow dropdowns to overflow if needed */
} 

/* Hide dropdowns initially */
.navbar-nav > .dropdown .dropdown-menu,
.dropdown-submenu .dropdown-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ddd;
  min-width: 200px;
  max-width: 300px; /* limit submenu width */
  padding: 10px 0;
  box-sizing: border-box; /* include padding in width */
  z-index: 1000;
  word-wrap: break-word; /* break long words */
  white-space: normal; /* allow wrapping */
}

/* Top-level dropdown (below Products) */
.navbar-nav > .dropdown > .dropdown-menu {
  top: 100%;
  left: 0;
}

/* Show top-level dropdown on hover */
.navbar-nav > .dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Submenu container relative for positioning */
.dropdown-submenu {
  position: relative;
}

/* Nested submenu open to the right */
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;  /* right side */
  max-width: 250px; /* limit nested submenu width */
  white-space: normal; /* allow text wrap */
}

/* Show nested submenu on hover */
.dropdown-submenu:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown menu item styles */
.dropdown-menu > li > a {
  display: block;
  padding: 8px 20px;
  color: #333;
  text-decoration: none;
  white-space: normal; /* allow wrapping */
  box-sizing: border-box;
}

/* Hover effect */
.dropdown-menu > li > a:hover {
  background-color: #f0f0f0;
}

/* Arrow indicator for submenu */
.dropdown-submenu > a::after {
  content: "▶";
  float: right;
  margin-left: 5px;
  font-size: 12px;
}

/* Responsive fallback */
/* Phone & tablet (collapsed navbar) -------------------------------- */
@media (max-width: 767px) {

  /* Make every dropdown behave like a simple block list */
  .navbar-nav > .dropdown .dropdown-menu,
  .dropdown-submenu .dropdown-menu {
    position: static;       /* sit in normal document flow   */
    transform: none;        /* cancel any translate effects  */
    opacity: 1;             /* always visible                */
    visibility: visible;    /* always visible                */
    background: #f9f9f9;  /* flat background               */
    border: 0;              /* no border / shadow            */
    box-shadow: none;
    max-width: 100%;        /* fill the available width      */
    padding: 0;             /* Bootstrap already adds padding*/
  }

  /* Remove little ▶ arrows next to items that had sub‑menus */
  .dropdown-submenu > a::after {
    content: none;
  }
}




/*-----------------------*/

/* Mobile & Tablet Responsive Styles */
@media (max-width: 768px) {
  body, html {
    font-size: 14px;
  }

  h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 16px;
  }

  h5 {
    line-height: 18px;
  }

  p, p.intro {
    font-size: 14px;
    line-height: 20px;
  }

  #menu {
    padding: 10px 15px;
  }

  #menu.navbar-default .navbar-nav > li > a {
    font-size: 13px;
    margin: 7px 12px 0;
    padding: 6px 4px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: 26px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .section-title h2::after {
    width: 40px;
    height: 3px;
    margin-left: -20px;
  }

  .btn-custom {
    padding: 10px 25px;
    font-size: 13px;
  }

  .intro h1 {
    font-size: 48px;
    padding-top: 150px;
    padding-bottom: 100px;
  }

  #about {
    padding: 50px 15px;
  }

  #about img {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
  }

  #services {
    padding: 50px 15px;
  }

  #portfolio {
    padding: 50px 15px;
  }

  #testimonials {
    padding: 50px 15px;
  }

  #team {
    padding: 50px 15px;
  }

  #contact {
    padding: 50px 15px 30px;
  }

  #contact h2,
  #contact h3 {
    font-size: 22px;
  }

  #contact .btn-custom {
    padding: 10px 25px;
    font-size: 14px;
  }

  #footer {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  body, html {
    font-size: 13px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 16px;
  }

  h4 {
    font-size: 14px;
  }

  h5 {
    line-height: 16px;
  }

  p, p.intro {
    font-size: 13px;
    line-height: 18px;
  }

  #menu.navbar-default .navbar-nav > li > a {
    font-size: 12px;
    margin: 5px 8px 0;
    padding: 5px 2px;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .section-title h2 {
    font-size: 20px;
    padding-bottom: 8px;
  }

  .section-title h2::after {
    width: 30px;
    height: 3px;
    margin-left: -15px;
  }

  .btn-custom {
    padding: 8px 20px;
    font-size: 12px;
  }

  .intro h1 {
    font-size: 36px;
    padding-top: 100px;
    padding-bottom: 70px;
  }

  #about,
  #services,
  #portfolio,
  #testimonials,
  #team,
  #contact {
    padding: 30px 10px;
  }

  #about img {
    width: 100%;
    margin: 20px 0;
  }

  #contact h2,
  #contact h3 {
    font-size: 18px;
  }

  #contact .btn-custom {
    padding: 8px 20px;
    font-size: 13px;
  }

  #footer {
    padding: 15px 10px;
    font-size: 12px;
  }
}


/* Existing styles ... */

/* phones */
@media (max-width:480px){
  .products {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .product-item {
    width: calc(33.333% - 16px); /* 3 items per row on larger screens */
    max-width: 100%;
    margin-bottom: 16px;
  }

  .product-item > a,
  .product-item > div {
    display: block;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    overflow: hidden;
    padding: 16px 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
  }

  .product-item:hover {
    transform: translateY(-4px);
  }

  .product-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 12px;
  }
}

/* Hide product list on mobile devices */
@media (max-width: 767px) {
  .products {
    display: none !important;
  }
}

/* Your other styles below ... */


.wrapper {
  margin-top: 8rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 3.5rem;
  background-color: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
  border-radius: 16px;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #212529;
  line-height: 1.8;
  font-size: 1.2rem;
}

.img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.title {
  font-size: 4.25rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #222;
  text-align: center;
}

.description {
  font-size: 2rem;
  line-height: 1.9;
  margin-bottom: 48px;
  color: #444;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.sectionTitle {
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 2.5rem;
  border-bottom: 3px solid #0078d4;
  padding-bottom: 10px;
  color: #0078d4;
}

.subsectionTitle {
  font-weight: 600;
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #005ea2;
}

.list {
  list-style-type: disc;
  padding-left: 28px;
  margin-bottom: 32px;
  font-size: 1.5rem;
  color: #555;
  max-width: 600px;
}

.paragraph {
  font-size: 1.5rem;
  color: #555;
  max-width: 600px;
  margin-bottom: 32px;
}

.notFound {
  margin-top: 8rem;
  text-align: center;
  color: #6c757d;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  font-size: 3rem;
}

/* Mobile view */
@media (max-width: 600px) {
  .wrapper {
    margin-top: 4rem;
    padding: 2rem 1.5rem;
    font-size: 1rem; /* smaller base font size */
  }

  .img {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .title {
    font-size: 2.5rem;
    margin-bottom: 24px;
  }

  .description {
    font-size: 1.2rem;
    margin-bottom: 32px;
    max-width: 100%;
  }

  .sectionTitle {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 6px;
  }

  .subsectionTitle {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .list {
    font-size: 1.1rem;
    padding-left: 20px;
    max-width: 100%;
    margin-bottom: 24px;
  }

  .paragraph {
    font-size: 1.1rem;
    max-width: 100%;
    margin-bottom: 24px;
  }

  .notFound {
    font-size: 2rem;
    margin-top: 4rem;
  }
}




@media (min-width: 768px) {
  /* Desktop: open dropdown on hover */
  .navbar-nav > li.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  /* For submenu */
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

.submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
