/*--------------------------------------------------------------
# W3C Compliance & Accessibility Base Styles
--------------------------------------------------------------*/

/* Skip to content link (WCAG 2.1 requirement) */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99999;
  padding: 10px 20px;
  background: #982598;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 6px 0;
  text-decoration: none;
  transition: left 0s;
}
.skip-to-content:focus {
  left: 0;
  outline: 3px solid #ff689b;
  outline-offset: 2px;
}

/* Global focus ring — WCAG 2.1 AA requirement */
*:focus-visible {
  outline: 3px solid #ff689b;
  outline-offset: 3px;
  border-radius: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ff689b;
  outline-offset: 2px;
}

/* Remove default outline only when :focus-visible is supported */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Fluid images everywhere */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Address tag — semantic HTML reset */
address {
  font-style: normal;
  line-height: 1.8;
  color: #F1E9E9;
  margin-bottom: 15px;
}

/* Footer label styles for contact form */
.contactForm label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #E491C9;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

/* Footer contact form full-width labels on all sizes */
.footer-newsletter .form-group {
  margin-bottom: 14px;
}
.footer-newsletter .form-control {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(152,37,152,0.3);
  color: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.footer-newsletter .form-control:focus {
  border-color: #E491C9;
  box-shadow: 0 0 10px rgba(228,145,201,0.3);
  background: rgba(0,0,0,0.35);
  outline: none;
}
.footer-newsletter .form-control::placeholder {
  color: rgba(255,255,255,0.4);
}

/* Main content reset for skip-link target */
#main-content:focus {
  outline: none;
}

/*--------------------------------------------------------------
# Responsive Fluid Typography
--------------------------------------------------------------*/
h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

/*--------------------------------------------------------------
# 3D Animated Background
--------------------------------------------------------------*/
.area {
  background: #15173D;
  background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(152, 37, 152, 0.2);
  /* Purple transparent tech cubes */
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: animate 25s linear infinite;
  bottom: -150px;
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background: #15173D;
  /* Navy background */
  color: #F1E9E9;
  /* Light Grey text */
  font-family: "Open Sans", sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #15173D;
  /* Deep Navy Background */
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #982598, #E491C9);
  /* Gradient Purple to Pink */
  border-radius: 6px;
  border: 3px solid #15173D;
  /* Spacing from track */
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #E491C9, #982598);
}

a {
  color: #E491C9;
  /* Pink accent */
  transition: 0.5s;
}

a:hover,
a:active,
a:focus {
  color: #E491C9;
  /* Pink on hover */
  outline: none;
  text-decoration: none;
}

p {
  padding: 0;
  margin: 0 0 30px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  margin: 0 0 20px 0;
  padding: 0;
}

/* Back to top button */

.back-to-top {
  position: fixed;
  display: none;
  background: #982598;
  color: #fff;
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 1;
  font-size: 16px;
  border-radius: 50%;
  right: 15px;
  bottom: 15px;
  transition: background 0.5s;
  z-index: 11;
}

.back-to-top:hover {
  background: #E491C9;
  color: #fff;
}

.back-to-top i {
  padding-top: 12px;
  color: #fff;
}

/* Prelaoder */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #f2f2f2;
  border-top: 6px solid #1bb1dc;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/

#topbar {
  padding: 0 0 10px 0;
  font-size: 14px;
  transition: all 0.5s;
}

#topbar .social-links {
  text-align: right;
}

#topbar .social-links a {
  color: #15173D;
  padding: 4px 12px;
  display: inline-block;
  line-height: 1px;
}

#topbar .social-links a:hover {
  color: #982598;
}

#topbar .social-links a:first-child {
  border-left: 0;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

#header {
  height: 75px;
  /* Compact height always */
  transition: all 0.5s;
  z-index: 997;
  padding: 15px 0;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  background-color: #F1E9E9;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
}

#header #topbar,
#topbar {
  display: none;
}

#header.header-scrolled,
#header.header-pages {
  height: 75px;
  padding: 15px 0;
  background-color: #F1E9E9;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
}

#header.header-scrolled #topbar,
#header.header-pages #topbar {
  display: none;
}

#header .logo h1 {
  font-size: 36px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#header .logo h1 a,
#header .logo h1 a:hover {
  color: #fff;
  text-decoration: none;
}

#header .logo img {
  padding: 0;
  margin: 0;
  max-height: 50px;
}

.main-pages {
  margin-top: 90px;
}

/*--------------------------------------------------------------
# Intro Section
--------------------------------------------------------------*/

#intro {
  width: 100%;
  height: 100vh;
  position: relative;
  /* WebP (20KB) served to modern browsers; PNG (581KB) fallback for older browsers */
  background: #15173D url("../img/intro_bg_dark.png") center top no-repeat;
  background: #15173D image-set(
    url("../img/intro_bg_dark.webp") type("image/webp"),
    url("../img/intro_bg_dark.png") type("image/png")
  ) center top no-repeat;
  background-size: cover;
}

#intro .intro-info h2 {
  color: #fff;
  margin-bottom: 40px;
  font-size: 48px;
  font-weight: 700;
}

#intro .intro-info h2 span {
  color: #982598;
  text-shadow: 0 0 10px rgba(152, 37, 152, 0.6);
}

.btn-get-started,
.btn-services {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 32px;
  border-radius: 4px;
  transition: 0.5s;
  color: #fff;
  background: #982598;
  color: #fff;
  box-shadow: 0 0 15px rgba(152, 37, 152, 0.4);
}

.btn-get-started:hover,
.btn-services:hover {
  color: #fff;
  text-decoration: none;
  background: #E491C9;
  box-shadow: 0 0 20px rgba(228, 145, 201, 0.6);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/

/* Desktop Navigation */

/* Desktop Navigation */
/* .main-nav { ... } */

.main-nav,
.main-nav * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav>ul>li {
  position: relative;
  white-space: nowrap;
  float: left;
}

.main-nav a {
  display: block;
  position: relative;
  color: #15173D;
  padding: 10px 15px;
  transition: 0.3s;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav .active>a,
.main-nav li:hover>a {
  color: #982598;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(152, 37, 152, 0.4);
}

.main-nav .drop-down ul {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% - 30px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  padding: 10px 0;
  background: #15173D;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
  transition: ease all 0.3s;
}

.main-nav .drop-down:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.main-nav .drop-down li {
  min-width: 180px;
  position: relative;
}

.main-nav .drop-down ul a {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  color: #F1E9E9;
}

.main-nav .drop-down ul a:hover,
.main-nav .drop-down ul .active>a,
.main-nav .drop-down ul li:hover>a {
  color: #E491C9;
}

.main-nav .drop-down>a:after {
  content: "\f107";
  font-family: FontAwesome;
  padding-left: 10px;
}

.main-nav .drop-down .drop-down ul {
  top: 0;
  left: calc(100% - 30px);
}

.main-nav .drop-down .drop-down:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
}

.main-nav .drop-down .drop-down>a {
  padding-right: 35px;
}

.main-nav .drop-down .drop-down>a:after {
  content: "\f105";
  position: absolute;
  right: 15px;
}

/* Mobile Navigation */

.mobile-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 9999;
  overflow-y: auto;
  left: -260px;
  width: 260px;
  padding-top: 18px;
  background: rgba(40, 38, 70, 0.8);
  transition: 0.4s;
}

.mobile-nav * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav a {
  display: block;
  position: relative;
  color: #fff;
  padding: 10px 20px;
  font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav .active>a,
.mobile-nav li:hover>a {
  color: #E491C9;
  text-decoration: none;
}

.mobile-nav .drop-down>a:after {
  content: "\f078";
  font-family: FontAwesome;
  padding-left: 10px;
  position: absolute;
  right: 15px;
}

.mobile-nav .active.drop-down>a:after {
  content: "\f077";
}

.mobile-nav .drop-down>a {
  padding-right: 35px;
}

.mobile-nav .drop-down ul {
  display: none;
  overflow: hidden;
}

.mobile-nav .drop-down li {
  padding-left: 20px;
}

.mobile-nav-toggle {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 1;
  cursor: pointer;
  text-align: right;
}

.mobile-nav-toggle i {
  margin: 18px 18px 0 0;
  color: #15173D;
}

.mobile-nav-overly {
  width: 100%;
  height: 100%;
  z-index: 9997;
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(21, 23, 61, 0.9);
  overflow: hidden;
  display: none;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .mobile-nav {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle i {
  color: #fff;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/

/* Sections Header
--------------------------------*/

.section-header h3 {
  font-size: 36px;
  color: #fff;
  text-align: center;
  font-weight: 700;
  position: relative;
  font-family: "Montserrat", sans-serif;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.section-header h3::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #982598;
  bottom: -15px;
  left: calc(50% - 25px);
  box-shadow: 0 0 10px #982598;
}

.section-header p {
  text-align: center;
  margin: auto;
  font-size: 15px;
  padding-bottom: 60px;
  color: #F1E9E9;
  width: 50%;
}

/* Section with background
--------------------------------*/

.section-bg {
  background-color: transparent;
  /* Transparent for animation visibility */
  background-image:
    linear-gradient(rgba(152, 37, 152, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 37, 152, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* About Us Section
--------------------------------*/

#about {
  padding: 80px 0;
}

#about .about-content {
  padding-top: 40px;
}

#about .about-content h2 {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

#about .about-content h3 {
  color: #F1E9E9;
  font-weight: 400;
  font-size: 22px;
  font-style: italic;
}

#about .about-content ul {
  list-style: none;
  padding: 0;
}

#about .about-content ul li {
  padding-bottom: 10px;
}

#about .about-content ul li i {
  font-size: 20px;
  padding-right: 4px;
  color: #982598;
}

#about .about-img {
  position: relative;
  margin: 30px 30px 30px 30px;
}

#about .about-img img {
  width: 100%;
  border: 8px solid #fff;
  transition: 0.5s;
}

#about .about-img img:hover {
  width: 100%;
  -webkit-transform: scale(1.03);
  transform: scale(1.03);
}

#about .about-img::before {
  position: absolute;
  left: -31px;
  top: -30px;
  width: 90%;
  height: 92%;
  z-index: -1;
  content: "";
  background-color: rgba(21, 23, 61, 0.9);
  transition: 0.5s;
}

#about .about-img::after {
  position: absolute;
  left: -31px;
  top: -30px;
  width: 90%;
  height: 92%;
  z-index: -1;
  content: "";
  background-color: rgba(21, 23, 61, 0.9);
  transition: 0.5s;
}

/* Services Section
--------------------------------*/

#services {
  padding: 60px 0 40px 0;
}

#services .box {
  padding: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 0 10px 40px 10px;
  background: rgba(21, 23, 61, 0.9);
  box-shadow: 0 10px 29px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#services .box img {
  margin-bottom: 20px;
}

#services .box:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(152, 37, 152, 0.3);
  border-color: #982598;
}

#services .icon {
  margin: 0 auto 15px auto;
  padding-top: 12px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

#services .icon i {
  font-size: 36px;
  line-height: 1;
}

#services .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

#services .title a {
  color: #fff;
}

#services .box:hover .title a {
  color: #982598;
}

#services .description {
  font-size: 14px;
  line-height: 28px;
  margin-bottom: 0;
  text-align: left;
  color: #F1E9E9;
}

/* Why Us Section
--------------------------------*/

#why-us {
  padding: 60px 0;
}

#why-us .why-us-img {
  text-align: center;
  /* Center the image */
}

#why-us .why-us-img img {
  max-width: 90%;
  /* Slightly larger for SVG */
  /* border-radius: 10px;  Removed for transparent SVG */
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); Removed for transparent SVG */
}

#why-us .why-us-content .features {
  margin: 0 0 15px 0;
  padding: 0;
  transition: 0.3s ease-in-out;

}

#why-us .why-us-content .features i {
  font-size: 36px;
  float: left;
  color: #982598;
}

#why-us .why-us-content .features h4 {
  font-size: 24px;
  font-weight: 600;
  margin-left: 56px;
  color: #fff;
  margin-bottom: 5px;
}

#why-us .why-us-content .features p {
  font-size: 16px;
  margin-left: 56px;
  color: #F1E9E9;
}

#why-us .counters {
  padding-top: 40px;
}

#why-us .counters span {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 48px;
  display: block;
  color: #982598;
}

#why-us .counters p {
  padding: 0;
  margin: 0 0 20px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #F1E9E9;
}

/* Call To Action Section
--------------------------------*/

#call-to-action {
  background: #2d2b46;
  background-size: cover;
  padding: 40px 0;
}

#call-to-action .cta-title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

#call-to-action .cta-text {
  color: #fff;
}

#call-to-action .cta-btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 26px;
  border-radius: 3px;
  transition: 0.5s;
  margin: 10px;
  border: 3px solid #fff;
  color: #fff;
}

#call-to-action .cta-btn:hover {
  background: #E491C9;
  border: 3px solid #E491C9;
}

/* Features Section
--------------------------------*/

#features {
  padding: 80px 0;
}

#features h4 {
  font-weight: 600;
  font-size: 24px;
}

/* Portfolio Section
--------------------------------*/

#portfolio {
  padding: 60px 0;
}

#portfolio #portfolio-flters {
  padding: 0;
  margin: 5px 0 35px 0;
  list-style: none;
  text-align: center;
}

#portfolio #portfolio-flters li {
  cursor: pointer;
  margin: 15px 15px 15px 0;
  display: inline-block;
  padding: 6px 10px;
  font-size: 16px;
  line-height: 20px;
  color: #413e66;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

#portfolio #portfolio-flters li:hover,
#portfolio #portfolio-flters li.filter-active {
  color: #982598;
}

#portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

#portfolio .portfolio-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

#portfolio .portfolio-item .portfolio-wrap {
  overflow: hidden;
  position: relative;
  margin: 0;
}

#portfolio .portfolio-item .portfolio-wrap:hover img {
  opacity: 0.4;
  transition: 0.3s;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  text-align: center;
  opacity: 0;
  transition: 0.2s linear;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4 {
  font-size: 22px;
  line-height: 1px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 0;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4 a {
  color: #fff;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4 a:hover {
  color: #1bb1dc;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info p {
  padding: 0;
  margin: 0;
  color: #f8fcff;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details {
  display: inline-block;
  line-height: 1;
  text-align: center;
  width: 36px;
  height: 36px;
  background: #982598;
  border-radius: 50%;
  margin: 10px 4px 0 4px;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview i,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details i {
  padding-top: 6px;
  font-size: 22px;
  color: #fff;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview:hover,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details:hover {
  background: #42c3e8;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview:hover i,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details:hover i {
  color: #fff;
}

#portfolio .portfolio-item .portfolio-wrap:hover {
  background: #15173D;
}

#portfolio .portfolio-item .portfolio-wrap:hover .portfolio-info {
  opacity: 1;
}

/* Testimonials Section
--------------------------------*/

#testimonials {
  padding: 60px 0;
}

#testimonials .section-header {
  margin-bottom: 40px;
}

#testimonials .testimonial-item .testimonial-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-right: 10px;
  float: left;
}

#testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #fff;
  margin-left: 140px;
}

#testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #ccc;
  margin: 0 0 15px 0;
  margin-left: 140px;
}

#testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 140px;
}

#testimonials .owl-nav,
#testimonials .owl-dots {
  margin-top: 5px;
  text-align: center;
}

#testimonials .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
}

#testimonials .owl-dot.active {
  background-color: #982598;
}

/* Team Section
--------------------------------*/

#team {
  padding: 60px 0;
}

#team .member {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

#team .member .member-info {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transition: 0.2s;
  padding: 15px 0;
  background: rgba(29, 28, 41, 0.6);
}

#team .member .member-info-content {
  transition: margin 0.2s;
  height: 40px;
  transition: height 0.4s;
}

#team .member:hover .member-info {
  transition: 0.4s;
}

#team .member:hover .member-info-content {
  height: 80px;
}

#team .member h4 {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 18px;
  color: #fff;
}

#team .member span {
  font-style: italic;
  display: block;
  font-size: 13px;
  color: #fff;
}

#team .member .social {
  margin-top: 15px;
}

#team .member .social a {
  transition: none;
  color: #fff;
}

#team .member .social a:hover {
  color: #E491C9;
}

#team .member .social i {
  font-size: 18px;
  margin: 0 2px;
}

/* Clients Section
--------------------------------*/

#clients {
  padding: 60px 0;
}

#clients img {
  max-width: 80%;
  opacity: 0.5;
  transition: 0.3s;
  padding: 15px 0;
}

#clients img:hover {
  opacity: 1;
}

#clients .owl-nav,
#clients .owl-dots {
  margin-top: 5px;
  text-align: center;
}

#clients .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
}

#clients .owl-dot.active {
  background-color: #982598;
}

/* Pricing Section
--------------------------------*/

#pricing {
  padding: 80px 0;
}

#pricing .card {
  border: 0;
  border-radius: 0px;
  box-shadow: 0 3px 0px 0 rgba(65, 62, 102, 0.08);
  transition: all 0.3s ease-in-out;
  padding: 36px 0;
  position: relative;
}

#pricing .card:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background-color: #982598;
  transition: 0.5s;
}

#pricing .card:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
  box-shadow: 0 20px 35px 0 rgba(0, 0, 0, 0.08);
}

#pricing .card:hover:after {
  width: 100%;
}

#pricing .card .card-header {
  background-color: rgba(21, 23, 61, 0.9);
  border-bottom: 0px;
  -moz-text-align-last: center;
  text-align-last: center;
}

#pricing .card .card-title {
  margin-bottom: 16px;
  color: #a0a0a0;
}

#pricing .card .card-block {
  padding-top: 0;
  text-align: center;
}

#pricing .card .list-group-item {
  border: 0px;
  padding: 6px;
  color: #F1E9E9;
  font-weight: 300;
  background-color: transparent;
}

#pricing .card h3 {
  font-size: 64px;
  margin-bottom: 0px;
  color: #fff;
}

#pricing .card h3 .currency {
  font-size: 30px;
  position: relative;
  font-weight: 400;
  top: -30px;
  letter-spacing: 0px;
}

#pricing .card h3 .period {
  font-size: 16px;
  color: #b0b0b0;
  letter-spacing: 0px;
}

#pricing .card .list-group {
  margin-bottom: 15px;
}

#pricing .card .btn {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  color: #5f5b96;
  border-radius: 0;
  padding: 10px 24px;
  letter-spacing: 1px;
  border-radius: 3px;
  display: inline-block;
  background: #982598;
  color: #fff;
}

#pricing .card .btn:hover {
  background: #E491C9;
}

/* Frequently Asked Questions Section
--------------------------------*/

#faq {
  padding: 60px 0;
  overflow: hidden;
}

#faq #faq-list {
  padding: 0;
  list-style: none;
}

#faq #faq-list li {
  border-bottom: 1px solid #ebebeb;
}

#faq #faq-list a {
  padding: 22px 0;
  display: block;
  position: relative;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  padding-right: 20px;
}

#faq #faq-list i {
  font-size: 24px;
  position: absolute;
  right: 0;
  top: 20px;
}

#faq #faq-list p {
  margin-bottom: 20px;
}

#faq #faq-list a.collapse {
  color: #982598;
}

#faq #faq-list a.collapsed {
  color: #F1E9E9;
}

#faq #faq-list a.collapsed i::before {
  content: "\f2c7" !important;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.custom-alert {
  padding: 20px;
  background-color: #39f158;
  /* Red background color */
  color: white;
  /* White text color */
  border-radius: 5px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

#footer {
  padding: 0 0 30px 0;
  font-size: 14px;
  background: transparent;
}

#footer .footer-top {
  padding: 60px 0 30px 0;
  background: transparent;
}

#footer .footer-top .footer-info {
  margin-bottom: 30px;
}

#footer .footer-top .footer-info h3 {
  font-size: 34px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#footer .footer-top .footer-info p {
  font-size: 13px;
  line-height: 24px;
  margin-bottom: 0;
  font-family: "Montserrat", sans-serif;
  color: #b0b0b0;
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #982598;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: #E491C9;
  color: #fff;
}

#footer .footer-top h4 {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

#footer .footer-top .footer-links {
  margin-bottom: 30px;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul li {
  padding: 8px 0;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul a {
  color: #b0b0b0;
}

#footer .footer-top .footer-links ul a:hover {
  color: #E491C9;
}

#footer .footer-top .footer-contact {
  margin-bottom: 30px;
}

#footer .footer-top .footer-contact p {
  line-height: 26px;
}

#footer .footer-top .footer-newsletter {
  margin-bottom: 30px;
}


#footer .footer-top .contactForm .form-group {
  margin-bottom: 15px;
}

#footer .footer-top .contactForm #sendmessage {
  color: #fff;
  background: #982598;
  display: none;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

#footer .footer-top .contactForm #errormessage {
  color: #fff;
  display: none;
  background: red;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

#footer .footer-top .contactForm #sendmessage.show,
#footer .footer-top .contactForm #errormessage.show,
#footer .footer-top .contactForm .show {
  display: block;
}

#footer .footer-top .contactForm .validation {
  color: red;
  display: none;
  margin: 0 0 20px;
  font-weight: 400;
  font-size: 13px;
}

#footer .footer-top .contactForm label {
  color: #fff;
  font-weight: 500;
}

#footer .footer-top .contactForm input.form-control,
#footer .footer-top .contactForm textarea.form-control {
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05) !important;
  /* Glassy transparent */
  color: #fff !important;
  font-size: 14px;
  backdrop-filter: blur(5px);
  /* Glass effect */
}

#footer .footer-top .contactForm input.form-control:focus,
#footer .footer-top .contactForm textarea.form-control:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #982598;
  box-shadow: 0 0 0 0.2rem rgba(152, 37, 152, 0.25);
}

#footer .footer-top .contactForm button[type="submit"] {
  background: linear-gradient(135deg, #982598 0%, #E491C9 100%);
  /* Gradient button */
  border: 0;
  border-radius: 30px;
  /* Rounded pill shape */
  padding: 12px 30px;
  color: #fff;
  transition: 0.3s;
  cursor: pointer;
  width: 100%;
  font-weight: 700;
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(152, 37, 152, 0.4);
}

#footer .footer-top .form button[type="submit"]:hover {
  background: linear-gradient(135deg, #E491C9 0%, #982598 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(152, 37, 152, 0.6);
}

#footer .footer-top .form input::-webkit-input-placeholder,
#footer .footer-top .form textarea::-webkit-input-placeholder {
  color: #a2a0bd;
  opacity: 0.7;
}

#footer .footer-top .form input::-moz-placeholder,
#footer .footer-top .form textarea::-moz-placeholder {
  color: #a2a0bd;
  opacity: 0.7;
}

#footer .footer-top .form input:-ms-input-placeholder,
#footer .footer-top .form textarea:-ms-input-placeholder {
  color: #a2a0bd;
  opacity: 0.7;
}

#footer .footer-top .form input::placeholder,
#footer .footer-top .form textarea::placeholder {
  color: #a2a0bd;
  opacity: 0.7;
}

#footer .copyright {
  text-align: center;
  padding-top: 30px;
  color: #b0b0b0;
  font-size: 15px;
}

#footer .credits {
  text-align: center;
  font-size: 14px;
  padding-top: 4px;
  color: #8582a8;
}

#footer .credits a {
  color: #982598;
}

#footer .credits a:hover {
  color: #E491C9;
}

/*--------------------------------------------------------------
# Responsive Media Queries
--------------------------------------------------------------*/

@media (min-width: 991px) {
  #call-to-action .cta-btn-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
  }

  .social-links {
    margin-top: 80px;
  }

  .form {
    text-align: left;
  }
}

@media (min-width: 992px) {
  #intro .intro-info {
    padding-top: 80px;
  }

  #testimonials .testimonial-item p {
    width: 80%;
  }
}

@media (max-width: 991px) {
  #topbar {
    display: none;
  }

  #header {
    height: 70px;
    padding: 15px 0;
  }

  #header .logo h1 {
    font-size: 28px;
    padding: 8px 0;
  }

  #why-us .why-us-content {
    padding-top: 30px;
  }

  #pricing {
    padding-bottom: 30px;
  }

  #pricing .card {
    margin-bottom: 50px;
  }

  .social-links {
    margin-top: 80px;
  }

  /* Ensure mobile nav toggle is visible */
  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 991px) {
  #intro .intro-info h2 {
    color: #413e66;
    margin-bottom: 40px;
    font-size: 37px;
    font-weight: 900;
  }

  #about .about-content h3 {
    color: #696592;
    font-weight: 900;
    font-size: 17px;
    font-style: italic;
  }
}

@media (max-width: 820px) {
  #intro .intro-info h2 {
    color: #413e66;
    margin-bottom: 40px;
    font-size: 37px;
    font-weight: 900;
  }

  #about .about-content h3 {
    color: #696592;
    font-weight: 900;
    font-size: 17px;
    font-style: italic;
  }
}

@media (max-width: 768px) {
  #intro .intro-info h2 {
    color: #413e66;
    margin-bottom: 40px;
    font-size: 34px;
    /* Reduced specific size */
    font-weight: 900;
  }

  #about .about-content h3 {
    color: #696592;
    font-weight: 900;
    font-size: 17px;
    font-style: italic;
  }

  .back-to-top {
    bottom: 15px;
  }

  #faq #faq-list a {
    font-size: 18px;
  }

  #faq #faq-list i {
    top: 13px;
  }
}

@media (max-width: 767px) {
  #intro {
    height: auto;
    padding: 80px 0 60px 0;
  }

  #intro .container {
    height: auto !important;
  }

  #intro .intro-img {
    width: 100%;
    /* Full width on mobile */
    max-width: 400px;
    /* Limit max width */
    margin: 0 auto;
    display: block;
  }

  #intro .intro-info {
    text-align: center;
    padding-top: 40px;
    order: 2;
    /* Ensure text is below image if flex direction changes, though bootstrap handles cols */
  }

  #intro .intro-info h2 {
    font-size: 32px;
    /* Smaller for mobile */
    margin-bottom: 30px;
  }

  #intro .intro-info p {
    font-size: 16px;
    /* Readable text */
  }

  .section-header p {
    width: 100%;
  }

  #testimonials .testimonial-item {
    text-align: center;
  }

  #testimonials .testimonial-item .testimonial-img {
    float: none;
    margin: auto;
  }

  #testimonials .testimonial-item h3,
  #testimonials .testimonial-item h4,
  #testimonials .testimonial-item p {
    margin-left: 0;
  }

  /* Ensure service images scale */
  #services .box img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 574px) {
  .about-content {
    text-align: center;
  }

  #about .about-content h3 {
    color: #696592;
    font-weight: 900;
    font-size: 17px;
    font-style: italic;
  }

  #footer .footer-top {
    margin-bottom: 25px;
  }

  .footer-info {
    text-align: center;
  }

  .footer-links {
    text-align: center;
  }

  .social-links {
    text-align: center;
    margin-bottom: 90px;
  }

  /* Fixed selector for Contact Form */
  .contactForm {
    text-align: left;
    padding: 0 15px;
    /* Add side padding */
  }

  /* Buttons full width on small screens */
  .contactForm button[type="submit"] {
    width: 100%;
  }
}

/*--------------------------------------------------------------
# Lead Generation Modal Custom Styles for Dark Theme
--------------------------------------------------------------*/
#leadModal .modal-content {
  background: rgba(21, 23, 61, 0.85) !important;
  /* More transparent for blur */
  border: 2px solid rgba(152, 37, 152, 0.5) !important;
  /* Glowing border */
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(152, 37, 152, 0.2) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #fff;
  overflow: hidden;
}

#leadModal .modal-header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.05) !important;
  padding: 25px 30px 20px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%) !important;
}

#leadModal .modal-title {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
  color: #fff !important;
  font-size: 26px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

#leadModal .modal-title span {
  background: linear-gradient(135deg, #ff689b 0%, #982598 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

#leadModal .close {
  color: #fff !important;
  opacity: 0.8 !important;
  text-shadow: none !important;
  font-size: 32px !important;
  transition: 0.3s !important;
  padding: 20px 25px !important;
}

#leadModal .close:hover {
  color: #ff689b !important;
  opacity: 1 !important;
  transform: rotate(90deg) !important;
}

#leadModal .modal-body {
  padding: 0 30px 30px !important;
}

#leadModal .form-group {
  margin-top: 20px !important;
}

#leadModal .form-group label {
  font-weight: 600 !important;
  color: #e491c9 !important;
  margin-bottom: 8px !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

#leadModal .form-control {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(152, 37, 152, 0.3) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 15px 20px !important;
  transition: all 0.3s !important;
  font-size: 15px !important;
}

#leadModal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

#leadModal .form-control:focus {
  background: rgba(0, 0, 0, 0.4) !important;
  border-color: #e491c9 !important;
  box-shadow: 0 0 15px rgba(228, 145, 201, 0.4) !important;
  outline: none !important;
}

#leadModal .btn-submit {
  background: linear-gradient(135deg, #ff689b 0%, #982598 100%) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 15px 30px !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  transition: all 0.4s ease !important;
  width: 100% !important;
  margin-top: 25px !important;
  box-shadow: 0 8px 25px rgba(152, 37, 152, 0.5) !important;
  font-size: 16px !important;
}

#leadModal .btn-submit:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(152, 37, 152, 0.7) !important;
}

/*--------------------------------------------------------------
# Success Modals (Demo Booked & Contact Message Sent)
--------------------------------------------------------------*/
.btn-modal-success,
#demoSuccessModal .btn-submit,
#contactSuccessModal .btn-submit {
  background: linear-gradient(135deg, #ff689b 0%, #8e44ad 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 12px 36px !important;
  min-width: 150px !important;
  cursor: pointer !important;
  box-shadow: 0 8px 25px rgba(255, 104, 155, 0.45) !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  outline: none !important;
  text-decoration: none !important;
}

.btn-modal-success:hover,
.btn-modal-success:focus,
#demoSuccessModal .btn-submit:hover,
#demoSuccessModal .btn-submit:focus,
#contactSuccessModal .btn-submit:hover,
#contactSuccessModal .btn-submit:focus {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 30px rgba(255, 104, 155, 0.65) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.btn-modal-success:active,
#demoSuccessModal .btn-submit:active,
#contactSuccessModal .btn-submit:active {
  transform: translateY(0) scale(0.99) !important;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  outline: none !important;
  color: rgba(255, 255, 255, 0.65);
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  z-index: 15;
  padding: 4px 10px;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
  color: #ff689b;
  transform: scale(1.15);
  text-decoration: none;
}

/*--------------------------------------------------------------
# Responsive — Tablet (≤ 992px)
--------------------------------------------------------------*/
@media (max-width: 992px) {
  /* Header */
  #header { height: 70px; padding: 12px 0; }

  /* Intro section */
  #intro { height: auto; min-height: 100vh; padding: 90px 0 60px; }
  #intro .intro-info { text-align: center; padding: 30px 15px 0; }
  #intro .intro-info h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); }
  #intro .intro-img { max-width: 380px; margin: 0 auto 30px; }

  /* Section header paragraph width */
  .section-header p { width: 80%; }

  /* Services & Products grid */
  #services .box,
  #products .box { margin: 0 5px 30px; }

  /* Why us */
  #why-us .why-us-img { margin-bottom: 30px; }
  #why-us .why-us-content { padding-top: 20px; }

  /* Footer newsletter full width on tablet */
  .footer-newsletter { margin-top: 30px; }

  /* Portfolio cards */
  .portfolio-wrap { margin-bottom: 20px; }
}

/*--------------------------------------------------------------
# Responsive — Mobile (≤ 767px)
--------------------------------------------------------------*/
@media (max-width: 767px) {
  /* Intro */
  #intro { height: auto; padding: 90px 0 50px; }
  #intro .intro-info { order: 2; text-align: center; }
  #intro .intro-img { order: 1; max-width: 300px; margin: 0 auto 20px; }
  #intro .intro-info h1 { font-size: clamp(1.4rem, 6vw, 2rem); }

  /* Sections */
  .section-header p { width: 100%; padding-bottom: 40px; }
  .section-header h3 { font-size: clamp(1.4rem, 5vw, 1.8rem); }

  /* About */
  #about { padding: 50px 0; }
  #about .about-img { margin: 0 0 30px; }
  #about .about-img::before,
  #about .about-img::after { display: none; }

  /* Services */
  #services { padding: 40px 0 20px; }
  #services .box { margin: 0 0 25px; padding: 20px; }

  /* Features section */
  #features .row.feature-item { margin-top: 30px !important; padding-top: 0 !important; }
  #features .col-lg-6:first-child { margin-bottom: 20px; }

  /* Why us */
  #why-us { padding: 40px 0; }
  #why-us .why-us-img img { max-width: 70%; margin: 0 auto; }

  /* Testimonials */
  #testimonials .testimonial-item { text-align: center; }
  #testimonials .testimonial-item .testimonial-img { float: none; margin: 0 auto 15px; }
  #testimonials .testimonial-item h3,
  #testimonials .testimonial-item h4,
  #testimonials .testimonial-item p { margin-left: 0; }

  /* Products section */
  #products { padding: 40px 0 20px; }
  #products .box { padding: 20px; margin: 0 0 20px; }

  /* Portfolio */
  #portfolio { padding: 40px 0 !important; }

  /* Footer */
  #footer .footer-top { padding: 40px 0 30px; }
  #footer .footer-contact,
  #footer .footer-links,
  #footer .footer-newsletter { margin-bottom: 30px; }
  .footer-links { text-align: left; }
  .social-links { margin-top: 15px; }

  /* Back to top — avoid overlapping WhatsApp */
  .back-to-top { bottom: 80px; right: 12px; }

  /* Lead modal */
  #leadModal .modal-title { font-size: 20px !important; }
  #leadModal .modal-body { padding: 0 20px 20px !important; }
}

/*--------------------------------------------------------------
# Responsive — Small Mobile (≤ 575px)
--------------------------------------------------------------*/
@media (max-width: 575px) {
  /* Intro */
  #intro .intro-info h1 { font-size: clamp(1.3rem, 7vw, 1.8rem); }
  .btn-get-started { padding: 10px 22px; font-size: 13px; }

  /* Section header */
  .section-header h3 { font-size: 1.4rem; }

  /* Services boxes full-width */
  #services .box,
  #products .box { padding: 18px 15px; }

  /* Footer */
  .footer-links ul { columns: 2; }
  .footer-newsletter .contactForm button[type="submit"],
  #contactSubmitBtn { width: 100%; }

  /* Copyright */
  #footer .copyright,
  #footer .credits { text-align: center; }

  /* Remove about image decorators on very small */
  #about .about-img { margin: 0 0 20px; }
}

/*--------------------------------------------------------------
# Responsive — SEO Landing Pages (product pages)
--------------------------------------------------------------*/
@media (max-width: 767px) {
  /* Hero sections on product pages */
  section[style*="padding:60px 0"] h1 { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
  section[style*="padding:60px 0"] .col-lg-5,
  section[style*="padding:60px 0"] .col-lg-4 { margin-top: 30px; }

  /* FAQ blocks */
  div[style*="margin-bottom:20px;border"] { padding: 15px !important; }
  div[style*="margin-bottom:20px;border"] h5 { font-size: 15px !important; }

  /* Internal link grids in services page */
  div[style*="display:flex;align-items:center"] { gap: 8px !important; }
}

/*--------------------------------------------------------------
# Responsive — Image lazy-load & CLS prevention
--------------------------------------------------------------*/
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

/* Prevent layout shift for logo */
#header .logo img {
  width: auto;
  max-height: 50px;
  height: 50px;
}

/*--------------------------------------------------------------
# Print Styles (W3C good practice)
--------------------------------------------------------------*/
@media print {
  .area, .mobile-nav, .mobile-nav-toggle, .back-to-top,
  #leadModal, .btn-get-started, .social-links { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  #header { position: static !important; box-shadow: none !important; }
  a { color: #000 !important; text-decoration: underline !important; }
  a[href]:after { content: " (" attr(href) ")"; }
}
/* -- P4-B: Link contrast accessibility fix -----------------------------------
/* Ensures footer/body links are distinguishable without relying on color alone */.footer-links nav ul li a,.footer-contact a,.footer-newsletter a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* -- Fix 5: p.title mirrors h4.title in #services (heading count reduction) --
   Preserves exact visual appearance after h4.title ? p.title change in home.blade.php */
#services .box p.title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}
#services .box p.title a {
  color: #fff;
}
#services .box:hover p.title a {
  color: #982598;
}

/* p.why-feature-title mirrors #why-us h4 (font-size:24px, font-weight:600) */
#why-us .why-us-content .features p.why-feature-title {
  font-size: 24px;
  font-weight: 600;
  margin-left: 56px;
  color: #fff;
  margin-bottom: 5px;
}

/* p.feature-title mirrors #features h4 (font-weight:600, font-size:24px) */
#features p.feature-title {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 10px;
  color: #fff;
}

/* p.team-role mirrors #testimonials .testimonial-item h4 (role subtitle style) */
#testimonials .testimonial-item p.team-role {
  font-size: 14px;
  color: #ccc;
  margin: 0 0 15px 0;
  margin-left: 140px;
}

/* #products p.title mirrors h4.title (same as services) */
#products .box p.title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}
#products .box p.title a {
  color: #fff;
}
#products .box:hover p.title a {
  color: #982598;
}

/*--------------------------------------------------------------
# Footer Government Initiative Logos
--------------------------------------------------------------*/

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-left {
  flex: 1;
  min-width: 200px;
}

.copyright-text,
.credits-text {
  margin: 0 0 4px;
  font-size: 13px;
  color: #b0a8b9;
}

.credits-text a {
  color: #E491C9;
  font-weight: 600;
}

.footer-govt-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.footer-govt-logos a {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 6px 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.footer-govt-logos a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(152, 37, 152, 0.35);
}

.footer-govt-logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
    padding-bottom: 90px; /* Space for WhatsApp / Back-to-top */
  }
  .footer-bottom-left {
    margin-bottom: 15px;
  }
  .footer-govt-logos {
    justify-content: center;
    width: 100%;
  }
  .footer-govt-logo {
    height: 32px;
  }
}

@media (max-width: 576px) {
  .footer-bottom-row {
    padding-bottom: 110px; /* Even more space for small screens */
  }
  .footer-govt-logos {
    gap: 12px;
  }
}
