/* Q Tech Solutions — modern overlay on archived template */
:root {
  --q-cyan: #00adef;
  --q-orange: #f7941d;
  --q-ink: #0b1220;
  --q-muted: #5b6577;
  --q-paper: #f5f7fb;
  --q-line: rgba(11, 18, 32, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  color: var(--q-muted) !important;
  background: #fff !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.carousel-caption h1,
.section-title h2 {
  font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  letter-spacing: -0.02em;
  color: var(--q-ink) !important;
}

a {
  color: var(--q-cyan);
}

a:hover,
a:focus {
  color: var(--q-orange);
}

/* Nav */
.navbar-default {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 0 !important;
  box-shadow: 0 10px 40px rgba(11, 18, 32, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 0;
}

.navbar-default .navbar-nav > li > a {
  color: var(--q-ink) !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover {
  color: var(--q-cyan) !important;
  background: transparent !important;
}

.logoimage {
  max-height: 52px !important;
  width: auto !important;
}

/* Hero */
#home {
  position: relative;
}

#tt-home-carousel .item > img {
  width: 100%;
  min-height: 72vh;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.05);
}

.carousel-caption {
  text-shadow: none !important;
  bottom: 18% !important;
}

.carousel-caption h1,
#tt-home-carousel .carousel-caption h1 {
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.4rem) !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.18em !important;
  white-space: normal !important;
}

.carousel-caption h3 {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 400 !important;
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  line-height: 1.5 !important;
}

.carousel-caption .btn,
.btn-primary,
.btn.btn-primary,
a.btn.btn-primary {
  background: linear-gradient(120deg, var(--q-cyan), #008fc4) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(0, 173, 239, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-caption .btn:hover,
.btn-primary:hover,
a.btn.btn-primary:hover {
  background: linear-gradient(120deg, var(--q-orange), #e07f00) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(247, 148, 29, 0.35);
}

.item-prev,
.item-next {
  background: rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  width: 48px !important;
  height: 48px !important;
  line-height: 48px !important;
  backdrop-filter: blur(8px);
}

/* Sections */
.section-title h2 span,
.tt-overlay h2 span {
  color: var(--q-cyan) !important;
}

.creative-section,
.feature-section,
.service-section,
.about-section,
.portfolio-section,
.partner-section,
.contact-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.service-tab .nav-tabs > li > a {
  border-radius: 18px !important;
  border: 1px solid var(--q-line) !important;
  background: #fff !important;
  padding: 22px 12px !important;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.service-tab .nav-tabs > li.active > a,
.service-tab .nav-tabs > li > a:hover {
  border-color: rgba(0, 173, 239, 0.45) !important;
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.08);
  transform: translateY(-3px);
}

.service-tab .nav-tabs > li > a i:before,
.service-tab .nav-tabs > li > a .fa {
  color: var(--q-cyan);
}

/* Cards / feature blocks */
.featured-item,
.service-item,
.portfolio,
.team-member,
.bwWrapper {
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(11, 18, 32, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-item:hover,
.service-item:hover,
.portfolio:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.12);
}

/* Hide broken partner/testimonial slots if images missing */
.partner-section img[src*="partner/"],
.testimonial-section img[src*="testimonial/"] {
  background: var(--q-paper);
  min-height: 60px;
  object-fit: contain;
}

/* Contact / footer */
footer,
.footer-section {
  background: linear-gradient(160deg, #071018 0%, #122033 55%, #0b1c2c 100%) !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

footer h3,
.footer-section h3 {
  color: var(--q-cyan) !important;
}

footer p,
footer span,
.footer-section p,
.footer-section span {
  color: rgba(255, 255, 255, 0.75) !important;
}

.footer-logo img {
  max-width: 180px !important;
  height: auto !important;
  margin: 0 auto 28px !important;
  display: block;
}

.footer-contact-grid {
  margin: 10px 0 28px !important;
}

.footer-contact-grid h3 {
  margin-bottom: 10px !important;
  font-size: 18px !important;
}

.footer-contact-grid p {
  margin: 0 auto !important;
  max-width: 280px;
  line-height: 1.7 !important;
}

.footer-phone,
.footer-email {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  display: inline-block;
  margin: 4px 0;
}

.footer-phone:hover,
.footer-email:hover {
  color: var(--q-cyan) !important;
}

.contact-form-status {
  max-width: 720px;
  margin: 0 auto 20px !important;
  text-align: left;
}

.video-wrap .video-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #0b1220;
  box-shadow: 0 18px 50px rgba(11, 18, 32, 0.16);
}

.video-wrap .video-poster img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
}

.video-wrap .video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 173, 239, 0.95);
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(0, 173, 239, 0.35);
}

.video-wrap .video-poster:hover .video-play {
  background: var(--q-orange);
}

.social-icon {
  margin: 10px 0 20px !important;
}

.social-icon ul {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  flex-wrap: wrap;
}

.social-icon ul li {
  float: none !important;
  display: inline-block !important;
  margin: 0 !important;
}

.social-icon a,
.social-icon ul li a i {
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  display: inline-block !important;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.social-icon a:hover,
.social-icon ul li a i:hover {
  background: var(--q-cyan) !important;
  border-color: var(--q-cyan) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.partner-carousel .partner-item,
.partner-section .partner-item {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin: 8px;
  min-height: 90px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.partner-section img {
  max-height: 64px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
  margin: 0 auto;
  display: block;
}

.form-control {
  border-radius: 14px !important;
  border: 1px solid var(--q-line) !important;
  box-shadow: none !important;
  height: 48px !important;
  padding: 10px 16px !important;
}

textarea.form-control {
  height: auto !important;
  min-height: 140px;
}

/* Motion */
@keyframes q-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-caption,
.section-title,
.service-tab {
  animation: q-rise 0.7s ease both;
}

@media (max-width: 767px) {
  #tt-home-carousel .item > img {
    min-height: 58vh;
  }
  .carousel-caption {
    bottom: 12% !important;
    padding: 0 12px;
  }
}

/* Hidden honeypot fields — keep out of layout and assistive tech focus */
.contact-honey {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Floating WhatsApp badge */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #fff !important;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55);
  outline: none;
}

.whatsapp-float .fa {
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 767px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float .fa {
    font-size: 28px;
  }
}
