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

*, *:before, *:after {
  margin: 0;
  padding: 0;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .hide-on-mobile { display: none !important; }
  .stack-on-mobile { display: block; width: 100% !important; }
  .text-center-mobile { text-align: center !important; }
}

/* Client section fixes */
.valuable-clients, .clients, .client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
  padding: 20px;
}

.valuable-clients img,
.clients img,
.client-logos img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.valuable-clients img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* Scroll animation */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  display: flex;
  animation: scroll 25s linear infinite;
  width: max-content;
}

/* --- End of Responsive & Client Section --- */

/* Responsive: stack vertically on small screens and place nav after content */
@media (max-width: 1024px) {
  .contact-section-large {
    display: block !important;
    padding: 2rem 1rem !important;
    min-height: auto !important;
  }
  .contact-form-large, .map-area {
    min-height: 400px !important;
  }
  .map-area { margin-top: 1.5rem !important; }
  .contact-section-large .grid {
    grid-template-columns: 1fr !important;
  }
}

/* Ensure both admin cards are equal height and add hover effect */
.admin-equal {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.about-card.admin-equal {
  min-height: 420px;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.25s;
}
.about-card.admin-equal:hover {
  box-shadow: 0 12px 36px #ff4d4d33, 0 0 36px #ff993333;
  transform: translateY(-8px) scale(1.03);
  border: 2.5px solid #ff4d4d;
  background: #fff8f8cc;
}
/* Make admin image fill the height of the card column */
.admin-avatar {
  height: 100%;
  display: flex;
  align-items: stretch;
}
.admin-img-fit {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: top;
  max-width: 320px;
  max-height: 100%;
}
/* CONTACT US SECTION ENLARGED */
.contact-section-large {
  padding: 6rem 0 !important;
  min-height: 700px !important;
}
.contact-form-large {
  padding: 2rem 1.5rem !important;
  min-height: 400px !important;
  font-size: 1.1rem !important;
  border-radius: 20px !important;
  background: none !important;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15), 0 0 50px rgba(255,53,102,0.1) !important;
}
.contact-form-large .floating input,
.contact-form-large .floating textarea {
  padding: 32px 24px !important;
  font-size: 1.45rem !important;
  border-radius: 20px !important;
  border-width: 3px !important;
  min-height: 70px !important;
}
.contact-form-large .floating textarea {
  min-height: 160px !important;
  resize: vertical !important;
}
.contact-form-large .floating label {
  left: 24px !important;
  top: 24px !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}
.contact-form-large .floating input:focus + label,
.contact-form-large .floating input:not(:placeholder-shown) + label,
.contact-form-large .floating textarea:focus + label,
.contact-form-large .floating textarea:not(:placeholder-shown) + label {
  transform: translateY(-36px) scale(.95) !important;
  font-size: 1.15rem !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  background: transparent !important;
}
.contact-form-large .btn-send {
  padding: 28px 52px !important;
  font-size: 1.55rem !important;
  border-radius: 26px !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
  min-height: 70px !important;
  box-shadow: 0 12px 40px rgba(255,53,102,0.2), 0 0 40px rgba(255,122,24,0.1) !important;
  transition: all 0.3s ease !important;
}
.contact-form-large .btn-send:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 18px 50px rgba(255,53,102,0.3), 0 0 50px rgba(255,122,24,0.15) !important;
}

@media (max-width: 900px) {
  .contact-section-large {
    padding: 3rem 0 !important;
    min-height: 500px !important;
  }
  .contact-form-large {
    padding: 2rem 1rem !important;
    min-height: 400px !important;
    font-size: 1.1rem !important;
    border-radius: 20px !important;
  }
  .contact-form-large .floating input,
  .contact-form-large .floating textarea {
    padding: 18px 14px !important;
    font-size: 1.1rem !important;
    border-radius: 14px !important;
    min-height: 50px !important;
  }
  .contact-form-large .floating textarea {
    min-height: 100px !important;
  }
  .contact-form-large .floating label {
    left: 14px !important;
    top: 14px !important;
    font-size: 1.05rem !important;
  }
  .contact-form-large .floating input:focus + label,
  .contact-form-large .floating input:not(:placeholder-shown) + label,
  .contact-form-large .floating textarea:focus + label,
  .contact-form-large .floating textarea:not(:placeholder-shown) + label {
    transform: translateY(-28px) scale(.95) !important;
    font-size: 1rem !important;
    padding: 0 10px !important;
  }
  .contact-form-large .btn-send {
    padding: 18px 28px !important;
    font-size: 1.15rem !important;
    border-radius: 18px !important;
    min-height: 55px !important;
  }
  #admin-message .flex-col.md\:flex-row {
    flex-direction: column;
  }
  .admin-equal.flex-col.md\:flex-row {
    flex-direction: column;
  }
  #admin-message .about-card {
    flex-direction: column;
  }
  #admin-message .about-card .order-1 { order: 1; }
  #admin-message .about-card .order-2 { order: 2; }
  #admin-message .admin-avatar { margin-bottom: 1.5rem; }
}
/* The margin here was causing horizontal overflow on some screen sizes. Removing it and relying on the container's padding is a better approach. */
.about-card.clients-section {
  padding: 3rem 2.5rem !important; /* Simplified padding */
  min-height: 480px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.client-marquee-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 180px;
}
.client-marquee-wrap {
  overflow: hidden; /* This is the key fix to prevent the marquee from causing horizontal scroll */
  width: 100%;
}
.client-marquee {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: clientMarquee 60s linear infinite;
}
@keyframes clientMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-card {
  display: inline-flex;
}
@media (max-width: 768px) {
  .client-marquee {
    gap: 1rem;
    animation-duration: 80s;
  }
  .client-card {
    min-width: 100px;
    padding: 0.8rem 0.3rem;
  }
  .client-card img {
    height: 40px;
  }
}
.client-card {
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 0 32px rgba(255,53,102,0.06);
  background: rgba(255,255,255,0.8);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 120px;
  transition: transform .2s, box-shadow .2s;
}
.client-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 20px 40px rgba(255,53,102,0.12), 0 0 40px rgba(255,122,24,0.10);
}
/* Larger client logo images */
.client-card img {
  max-width: 120px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .client-card img {
    max-width: 80px;
    height: 70px;
  }
}
@media (max-width: 768px) {
  .client-card {
    min-width: 120px;
    padding: 1.2rem 0.5rem;
  }
  .client-card img {
    height: 60px;
  }
}
/* Hide scrollbar for client logos track */
.hide-scrollbar {
  -ms-overflow-style: none; /* IE 10+ */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}
.service-tab:hover {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #fff;
  transform: translateY(-3px);
}
/* Remove card background, blur, and shadow for About Us GIF side */
.plain-bg {
  background: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
  padding: 0 !important;
}
/* Remove background for About Us GIF container and image */
.no-bg {
  background: transparent !important;
}
/* Scroll to Top/Bottom Button Styles */
.scroll-btn {
  position: fixed;
  right: 24px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0002;
  padding: 12px 16px;
  cursor: pointer;
  transition: opacity 0.2s;
  z-index: 1000;
}
.scroll-btn-top {
  bottom: 80px;
  display: none;
}
.scroll-btn-bottom {
  bottom: 24px;
}


body, p, li, span, label, input, textarea, select, button, .admin-message, .circle-title, .service-list, .nav-link, .circle-label, .circle-count, .circle-unit, .service-panel, .service-tab, .btn-send, .btn-glow {
  font-family: 'Roboto Slab', 'Montserrat', serif !important;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

body {
  margin: 0;
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Lobster', 'Poppins', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a1a2e;
}

.gradient-text {
  font-family: 'Lobster', 'Montserrat', cursive, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ff4d4d;
  background: linear-gradient(90deg, #ff4d4d, #ff9933, #ff66b2, #ffee58);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* text-fill-color: transparent; */ /* Removed non-standard property */
  text-shadow: 0 2px 8px rgba(255,77,77,0.08);
}

.admin-name {
  font-family: 'Roboto Slab', 'Montserrat', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ff4d4d;
  letter-spacing: 0.03em;
}

.admin-message {
  font-family: 'Inter', 'Poppins', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 400;
  color: #23272f;
  line-height: 1.7;
}

.btn-send, .btn-glow {
  font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}

label, input, textarea, select, button {
  font-family: 'Inter', 'Poppins', Arial, sans-serif;
}

/* Gradient background */
.electric-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #ff4d4d20, #ff993320, #ff66b220, #ffee5820);
  z-index: -6;
}

/* Electric waves container */
.electric-flow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -5;
}

svg.flow-wave {
  position: absolute;
  width: 200%;
  height: 80px;
  opacity: 0.3;
  filter: drop-shadow(0 0 12px rgba(255,200,50,0.4)) drop-shadow(0 0 8px rgba(255,120,120,0.3));
  animation: floatWave 6s ease-in-out infinite alternate;
}

/* Parallax wave speeds */
svg.flow-wave:nth-child(1) { top: 10%; animation-duration: 8s; }
svg.flow-wave:nth-child(2) { top: 30%; animation-duration: 7s; }
svg.flow-wave:nth-child(3) { top: 50%; animation-duration: 6s; }
svg.flow-wave:nth-child(4) { top: 70%; animation-duration: 5s; }

svg.flow-wave path {
  stroke-width: 2;
  fill: none;
  stroke: url(#waveGradient);
}

@keyframes floatWave {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(0%) translateY(8px); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* Sparks */
.spark {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fffc70 0%, #ff4d4d 70%);
  opacity: 0.8;
  pointer-events: none;
}

/* Vertical Sparks */
.v-spark {
  position: absolute;
  width: 2px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffc70 0%, #ff4d4d 70%);
  opacity: 0.5;
  pointer-events: none;
}

/* Gradient flicker effect */
.flicker {
  animation: flickerGrad 1.5s infinite alternate;
}

@keyframes flickerGrad {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
  100% { filter: brightness(0.95); }
}

@media (max-width: 768px) {
  svg.flow-wave { height: 60px; }
}

@media (max-width: 480px) {
  svg.flow-wave { height: 50px; }
}
/* Electric SVG Background */
.electric-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  inset: 0;
  background: linear-gradient(120deg, #ff4d4d20, #ff993320, #ff66b220, #ffee5820);
  z-index: -6;
  pointer-events: none;
}
.electric-flow {
  position: fixed;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -5;
  pointer-events: none;
}
svg.flow-wave {
  position: absolute;
  width: 200%;
  height: 80px;
  opacity: 0.3;
  filter: drop-shadow(0 0 12px rgba(255,200,50,0.4)) drop-shadow(0 0 8px rgba(255,120,120,0.3));
  animation: floatWave 6s ease-in-out infinite alternate;
}
svg.flow-wave:nth-child(1) { top: 10%; animation-duration: 8s; }
svg.flow-wave:nth-child(2) { top: 30%; animation-duration: 7s; }
svg.flow-wave:nth-child(3) { top: 50%; animation-duration: 6s; }
svg.flow-wave:nth-child(4) { top: 70%; animation-duration: 5s; }
svg.flow-wave path {
  stroke-width: 2;
  fill: none;
  stroke: url(#waveGradient);
}
@keyframes floatWave {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(0%) translateY(8px); }
  100% { transform: translateX(-50%) translateY(0); }
}
.spark {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fffc70 0%, #ff4d4d 70%);
  opacity: 0.8;
  pointer-events: none;
}
.v-spark {
  position: absolute;
  width: 2px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffc70 0%, #ff4d4d 70%);
  opacity: 0.5;
  pointer-events: none;
}
.flicker {
  animation: flickerGrad 1.5s infinite alternate;
}
@keyframes flickerGrad {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
  100% { filter: brightness(0.95); }
}
@media (max-width: 768px) {
  svg.flow-wave { height: 60px; }
}
@media (max-width: 480px) {
  svg.flow-wave { height: 50px; }
}
.about-media, .about-text {
  height: 100%;
}
.about-img-box {
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .about-media, .about-text {
    min-height: 420px;
  }
  .about-img-box {
    min-height: 420px;
  }
}

/* Circle Progress Styles */
.circle-progress-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.circle-progress {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circle-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 10;
}
.circle-bar {
  fill: none;
  stroke: url(#circle-gradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 276.46;
  transition: stroke-dashoffset 1.5s cubic-bezier(.4,2,.6,1);
}
.circle-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent1);
  display: flex;
  align-items: baseline;
}
.circle-count {
  font-size: 2rem;
}
.circle-unit {
  font-size: 1.2rem;
  margin-left: 2px;
}
.circle-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-top: 0.5rem;
  text-align: center;
}
.about-img-box {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}
.about-img-box img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.floating-navbar {
  background: rgba(255, 255, 255, 0.6); /* Glassmorphism background */
  -webkit-backdrop-filter: blur(10px); /* For Safari */
  backdrop-filter: blur(10px); /* Standard */
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 0 32px rgba(255,53,102,0.06);
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem; /* Increased vertical padding */
  padding-bottom: 1rem; /* Increased vertical padding */
}
.nav-gradient {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(255,122,24,0.10), 0 0 16px rgba(255,53,102,0.06);
}

.nav-gradient:hover {
  filter: brightness(1.1) saturate(1.2);
  transform: translateY(-2px) scale(1.04);
}

.nav-links {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (max-width: 767px) {
  .floating-navbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
  }
}

.floating-navbar.animate {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

 .nav-gradient {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(255,122,24,0.10), 0 0 16px rgba(255,53,102,0.06);
}

.nav-gradient:hover {
  filter: brightness(1.1) saturate(1.2);
  transform: translateY(-2px) scale(1.04);
}

.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}

:root{
  --accent1:#ff7a18;
  --accent2:#ff3566;
  --accent3:#ffd200;
  --glass: rgba(255,255,255,0.6);
}
*{box-sizing:border-box}
body{
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  color:#111;
  background: radial-gradient(900px 400px at 10% 10%, rgba(255,122,24,0.04), transparent 10%),
              radial-gradient(700px 300px at 90% 80%, rgba(255,53,102,0.03), transparent 10%);
}

/* NAV */



.logo {
  color: #111;
  font-family: 'Montserrat Alternates', sans-serif;
  filter: drop-shadow(0 4px 15px rgba(255, 122, 24, 0.1)); /* Add a subtle glow to the logo */
}
.logo-text {
  color: #ff4d4d; /* A strong red color */
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700; /* Matches the imported font weight */
  letter-spacing: 0.05em; /* Adds some space between letters */
  text-shadow: 0 0 8px rgba(255, 77, 77, 0.4), 0 0 12px rgba(255, 238, 88, 0.3); /* Adds a stylish glow */
}
.nav-link{padding:8px 12px;border-radius:9999px;transition:all .25s}
.nav-link:hover{background:linear-gradient(90deg,var(--accent1),var(--accent2));color:white;transform:translateY(-3px)}

/* hero gradient headline */
.hero-gradient{
  background: linear-gradient(90deg,var(--accent1),var(--accent2),var(--accent3));
  -webkit-background-clip:text;background-clip:text;color:transparent;
  animation: hue 6s linear infinite;
  white-space: normal; /* Allow text to wrap */
  word-break: break-word; /* Force long words to break if needed */
  font-size: clamp(2.25rem, 5.5vw, 3.75rem); /* Responsive font size */
}
@keyframes hue{ 0%{filter:hue-rotate(0deg)}50%{filter:hue-rotate(20deg)}100%{filter:hue-rotate(0deg)}}

/* buttons */
.btn-glow{
  padding:12px 20px;border-radius:9999px;font-weight:700;text-decoration:none;
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  box-shadow: 0 8px 30px rgba(255,122,24,0.12), 0 0 30px rgba(255,53,102,0.08);
  transition: transform .25s, box-shadow .25s;
  position:relative; overflow:hidden;
}
.btn-glow::after{
  content:''; position:absolute; left:-50%; top:0; width:200%; height:100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02), rgba(255,255,255,0.15));
  transform: skewX(-20deg) translateX(0); transition: transform .9s;
}
.btn-glow:hover{ transform:translateY(-6px) scale(1.02); }
.btn-glow:hover::after{ transform: skewX(-20deg) translateX(40%); }

.btn-outline{ padding:12px 20px; border-radius:9999px; background:transparent; border:2px solid rgba(0,0,0,0.06); text-decoration:none; font-weight:600; }

/* loader visuals */
.bulb-preloader {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,122,24,0.92), rgba(255,53,102,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(.4,2,.6,1);
  opacity: 1;
  pointer-events: all;
}
#preloader.fade-out {
  animation: fadeOut 1s forwards;
}
@keyframes fadeOut {
  to { opacity: 0; pointer-events: none; }
}
.bulb-glow {
  filter: drop-shadow(0 0 32px #fff176) drop-shadow(0 0 64px #fff176);
}
.bulb-container{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  background:rgba(255,255,255,0.15);
  padding:2.5rem 2rem;
  border-radius:2rem;
  box-shadow:0 8px 32px rgba(255,53,102,0.10);
}
.bulb-img-wrap {
  position: relative;
  display: inline-block;
}
.bulb-img{
  width:160px;
  height:160px;
  filter: drop-shadow(0 4px 16px rgba(255,53,102,0.18));
  animation: pulse 1.6s ease-in-out infinite;
  display: block;
}
.percent-text{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.1rem;
  font-weight: 900;
  color: #e53935;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(255,53,102,0.18);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* loader visuals */
#loader{ background: linear-gradient(135deg, rgba(255,122,24,0.92), rgba(255,53,102,0.9)); }
.loader-outer{ width:96px; height:96px; border-radius:50%; display:flex; align-items:center; justify-content:center; position:relative; }
.loader-ring{ width:84px; height:84px; border-radius:50%; border:6px solid rgba(255,255,255,0.12); border-top-color:white; animation: spin 1s linear infinite; }
.loader-core{ width:28px; height:28px; border-radius:50%; background:linear-gradient(90deg,var(--accent2),var(--accent1)); box-shadow: 0 12px 30px rgba(255,53,102,0.18); transform-origin:center; animation: pulse 1.6s ease-in-out infinite; }

@keyframes spin{ to{ transform:rotate(360deg);} }
@keyframes pulse{ 0%{ transform:scale(1);}50%{ transform:scale(1.15);}100%{ transform:scale(1);} }

/* ABOUT */
.about-text{ color:#111; }
.gradient-text{ background: linear-gradient(90deg,var(--accent1),var(--accent2)); -webkit-background-clip:text;background-clip:text;color:transparent; }

/* SERVICES flip card */
.scene{ perspective:1200px; }
.flip-card{ position:relative; width:100%; min-height:16rem; transform-style:preserve-3d; transition: transform .8s cubic-bezier(.2,.9,.3,1); }
.card-face{ position:absolute; inset:0; backface-visibility:hidden; border-radius:1rem; overflow:hidden; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-end; }
.card-front{ background:transparent; }
.card-back{ transform: rotateY(180deg); padding:24px; background: linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.65)); color:white; }
.flip-card.flipped{ transform: rotateY(180deg); }

.card-caption{ position:absolute; left:18px; bottom:18px; background: linear-gradient(90deg,var(--accent1),var(--accent2)); color:white; padding:8px 12px; border-radius:999px; font-weight:600; box-shadow: 0 8px 20px rgba(255,122,24,0.12); }

.btn-close{ background:rgba(255,255,255,0.12); border:none; color:white; padding:8px 12px; border-radius:999px; cursor:pointer; }

/* CLIENTS marquee */
.client-wrap{ position:relative; }
.client-track{ display:flex; gap:24px; align-items:center; animation: runClients 18s linear infinite; }
@keyframes runClients{ 0%{ transform:translateX(0);} 100%{ transform:translateX(-50%);} }

.client-card{ transition: transform .2s; }
.client-card:hover{ transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

/* CONTACT floating labels */
.floating{ position:relative; }
.floating input, .floating textarea{ width:100%; padding:14px 12px; border-radius:10px; border:1px solid rgba(0,0,0,0.08); background:transparent; }
.floating label{ position:absolute; left:12px; top:12px; transition: all .18s ease; pointer-events:none; color:rgba(0,0,0,0.6); }
.floating input:focus + label, .floating input:not(:placeholder-shown) + label,
.floating textarea:focus + label, .floating textarea:not(:placeholder-shown) + label{
  transform: translateY(-22px) scale(.88); background:white; padding:0 6px; border-radius:6px;
}

/* send button */
.btn-send{ background: linear-gradient(90deg,var(--accent2),var(--accent1)); color:white; padding:12px 18px; border-radius:12px; font-weight:700; box-shadow: 0 10px 30px rgba(255,53,102,0.12); animation: pulseBtn 2.8s infinite; }
@keyframes pulseBtn{ 0%{ box-shadow:0 8px 20px rgba(255,53,102,0.08);}50%{ box-shadow:0 18px 40px rgba(255,53,102,0.14);}100%{ box-shadow:0 8px 20px rgba(255,53,102,0.08);} }

.btn-ghost{ padding:12px 18px; border-radius:12px; border:1px solid rgba(0,0,0,0.06); background:white; }

/* mesh effect placement */
#bg-canvas{ mix-blend-mode: screen; opacity:0.85; }

/* small utilities */
.fade-in-up{ opacity:0; transform: translateY(20px); transition: all .9s cubic-bezier(.2,.9,.3,1); }
.fade-in-up.visible{ opacity:1; transform: translateY(0); }

/* Hero section animations */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.fade-in-left {
  animation: fadeInLeft 1s ease-out forwards;
}
.fade-in-right {
  animation: fadeInRight 1s ease-out 0.3s forwards; /* 0.3s delay */
  opacity: 0; /* Start as invisible before animation */
}

/* Hero section layout adjustments */
#home .grid {
  align-items: center;
  gap: 2rem;
}
#home .about-card {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
#home img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}
@media (max-width: 768px) {
  #home .grid {
    gap: 1rem;
  }
  #home .about-card {
    padding: 1.5rem;
  }
  #home .grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  #home .fade-in-left {
    justify-content: center;
  }
}

/* Contact section two-column layout */
.contact-form-container {
  padding: 1rem;
}
@media (min-width: 1024px) {
  .contact-form-container {
    padding: 2rem;
  }
}

/* Enhanced contact section styling */
.contact-section-large .about-card {
  background: rgba(255,255,255,0.65) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  backdrop-filter: blur(15px) !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 60px rgba(255,53,102,0.08) !important;
  transition: all 0.3s ease !important;
}

.contact-section-large .about-card:hover {
  background: rgba(255,255,255,0.75) !important;
  box-shadow: 0 25px 80px rgba(0,0,0,0.2), 0 0 80px rgba(255,53,102,0.12) !important;
  transform: translateY(-5px) !important;
}

/* Grid layout enhancements */
.contact-section-large .grid {
  gap: 3rem !important;
  align-items: stretch !important;
}

@media (min-width: 1024px) {
  .contact-section-large .grid {
    gap: 4rem !important;
  }
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.contact-info-card .contact-card {
  background: rgba(255, 255, 255, 0.6);
  width:auto !important; padding:10px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}


/* Ensure both video and img fill the card front and match card size */

.card-front {
  height: 180px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.card-front img,
.card-front video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  background: none;
  margin: 0;
}

@media (max-width:768px){
  .client-card{ min-width:200px; }
  .card-front {
    height: 120px;
    padding: 0;
    margin: 0;
  }
  .card-front img,
  .card-front video {
    height: 100%;
    margin: 0;
  }
}


/* --- Mobile & Responsive Fixes --- */
img {
  max-width: 100%;
  height: auto;
}

button, a, .nav-toggle {
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }
  header nav ul {
    display: block;
    padding: 10px 0;
  }
  header nav ul li {
    margin: 10px 0;
  }
  .stats, .services, .clients {
    display: block;
  }
  .stats div, .services div, .clients div {
    margin-bottom: 20px;
  }
  .contact-form input, .contact-form textarea, .contact-form button {
    width: 100%;
    font-size: 16px;
  }
}


/* =============================
   Responsive Fixes & Client Section
   ============================= */
html {
  overflow-x: hidden;
  box-sizing: border-box;
}
*, *:before, *:after {
  margin: 0;
  padding: 0;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .hide-on-mobile { display: none !important; }
  .stack-on-mobile { display: block; width: 100% !important; }
  .text-center-mobile { text-align: center !important; }
}

/* Client section fixes */
.valuable-clients, .clients, .client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
  padding: 20px;
}

.valuable-clients img,
.clients img,
.client-logos img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.valuable-clients img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* Scroll animation */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  display: flex;
  animation: scroll 25s linear infinite;
  width: max-content;
}

/* --- End of Responsive & Client Section --- */

/* =========================================
   Optimized Responsive CSS Animations
   ========================================= */

/* ================================
   Global Animation Settings
   ================================ */
* {
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ================================
   Fade Animations
   ================================ */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.fade-out {
  opacity: 1;
  animation: fadeOut 1s forwards;
}
@keyframes fadeOut {
  to { opacity: 0; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ================================
   Slide Animations
   ================================ */
.slide-left {
  transform: translateX(-80%);
  animation: slideLeft 0.7s forwards;
}
@keyframes slideLeft { to { transform: translateX(0); } }

.slide-right {
  transform: translateX(80%);
  animation: slideRight 0.7s forwards;
}
@keyframes slideRight { to { transform: translateX(0); } }

.slide-down {
  transform: translateY(-30px);
  opacity: 0;
  animation: slideDown 0.8s forwards;
}
@keyframes slideDown { to { transform: translateY(0); opacity: 1; } }

/* ================================
   Scale / Zoom Animations
   ================================ */
.zoom-in {
  transform: scale(0.8);
  opacity: 0;
  animation: zoomIn 0.8s forwards;
}
@keyframes zoomIn { to { transform: scale(1); opacity: 1; } }

.zoom-out {
  transform: scale(1);
  opacity: 1;
  animation: zoomOut 0.8s forwards;
}
@keyframes zoomOut { to { transform: scale(0); opacity: 0; } }

/* ================================
   Bounce Animations
   ================================ */
.bounce {
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.bounce-small {
  animation: bounceSmall 0.6s infinite;
}
@keyframes bounceSmall {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ================================
   Rotation Animations
   ================================ */
.rotate {
  animation: rotate 2s linear infinite;
}
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.rotate-slow { animation: rotate 4s linear infinite; }

/* ================================
   Shake / Wiggle Animations
   ================================ */
.shake {
  animation: shake 0.5s ease-in-out infinite;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
}

.wiggle {
  animation: wiggle 1s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
  75% { transform: rotate(-4deg); }
}

/* ================================
   Pulse / Glow Animations
   ================================ */
.pulse {
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.glow {
  box-shadow: 0 0 6px #ff3566;
  animation: glowAnim 1s infinite alternate;
}
@keyframes glowAnim {
  0% { box-shadow: 0 0 6px #ff3566; }
  50% { box-shadow: 0 0 12px #ff7a18; }
  100% { box-shadow: 0 0 6px #ff3566; }
}

/* ================================
   Text Animations
   ================================ */
.gradient-text-animate {
  background: linear-gradient(90deg, #ff3566, #ff7a18, #ffee58);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textHue 3s linear infinite;
  background-size: 200% 200%;
}
@keyframes textHue {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.text-bounce {
  display: inline-block;
  animation: textBounce 0.9s infinite;
}
@keyframes textBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ================================
   Responsive Optimizations
   ================================ */
@media (max-width: 768px) {
  .fade-in-up, .slide-down, .bounce, .text-bounce {
    animation-duration: 0.6s;  /* Faster animations on mobile */
  }

  .pulse, .glow, .gradient-text-animate {
    animation-duration: 1s;  /* Reduce heavy animation duration */
  }

  .rotate, .rotate-slow {
    animation-duration: 3s;  /* Slower rotations for mobile performance */
  }
}
