/* ========== ADDITIONAL RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
  .form-grid,
  .main-contact-form .form-row,
  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .service-quote-form,
  .contact-form-box {
    padding: 30px 20px;
  }

  .page-hero-content h1 {
    font-size: 36px;
  }

  .section-title-center,
  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 25px;
    font-size: 14px;
  }
}

@media (max-width: 440px) {
  .header-contact {
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
  }
  .header-contact a.phone-number {
    color: rgb(91, 90, 90);
    font-family: "Poppins", sans-serif;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
  }

  .header-contact a span {
    display: none;
  }
  .slide-content {
    height: 16rem;
  }

  .slide-content h1 {
    font-size: 18px;
  }
  .slide-content p {
    font-size: 10px;
  }

  .slide-content {
    margin-top: -10rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 8px 16px;
    font-size: 10px;
  }

  .content-1 {
    width: 95%;
    padding: 0 20px;
    gap: 3px;
    margin: 0 auto;
  }

  .quote-content h2 {
    font-size: 22px;
  }
  .quote-content p {
    font-size: 12px;
  }
  .quote-benefits li {
    font-size: 12px;
  }

  .cta-banner .container h2 {
    font-size: 25px;
  }
  .cta-banner .container p {
    font-size: 15px;
  }

  .footer-bottom p {
    font-size: 11px;
  }

  .footer-col li a {
    font-size: 0.7rem;
  }

  .footer-contact p {
    font-size: 0.7rem;
  }
}

/* ==========================================
   HERO SLIDER TEXT ANIMATIONS
   ========================================== */

/* Hide slides by default */
.slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100vh;
}

.slide.active {
  display: block;
}

/* Slide Background Animation */
.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  animation: zoomIn 7s ease-out forwards;
}

[data-theme="dark"] .slide-bg {
  filter: brightness(0.4);
}

@keyframes zoomIn {
  0% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Slide Content Container */
.slide-content {
  position: absolute;
  top: 40%;
  left: 60px;
  transform: translateY(-50%);
  max-width: 650px;
  color: var(--white);
  padding: 40px;
  background: rgba(46, 45, 45, 0.7);
  border-left: 5px solid var(--primary-gold);
  backdrop-filter: blur(10px);
  opacity: 0;
}

[data-theme="dark"] .slide-content {
  background: rgba(26, 26, 26, 0.85);
}

/* Active slide content animation */
.slide.active .slide-content {
  animation: slideInLeft 1s ease-out 0.3s forwards;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Hero Title Animation */
.hero-title {
  font-size: 52px;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(-50px);
}

.slide.active .hero-title {
  animation: slideInTitle 0.8s ease-out 0.6s forwards;
}

@keyframes slideInTitle {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Subtitle Animation */
.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--white);
  line-height: 1.6;
  opacity: 0;
  transform: translateX(-50px);
}

.slide.active .hero-subtitle {
  animation: slideInSubtitle 0.8s ease-out 0.9s forwards;
}

@keyframes slideInSubtitle {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* CTA Buttons Animation */
.hero-cta-buttons {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
}

.slide.active .hero-cta-buttons {
  animation: slideInButtons 0.8s ease-out 1.2s forwards;
}

@keyframes slideInButtons {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Individual Button Animations */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

/* Staggered Button Animation */
.hero-cta-buttons .btn-primary {
  animation: fadeInUp 0.6s ease-out 1.3s both;
}

.hero-cta-buttons .btn-secondary {
  animation: fadeInUp 0.6s ease-out 1.5s both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Border Animation */
.slide-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 0;
  background-color: var(--primary-gold);
  transition: height 0.8s ease-out 0.5s;
}

.slide.active .slide-content::before {
  height: 100%;
}

/* Glowing Border Effect */
.slide-content::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--primary-gold) 50%,
    transparent 100%
  );
  opacity: 0;
  animation: borderGlow 3s ease-in-out infinite;
}

.slide.active .slide-content::after {
  opacity: 1;
}

@keyframes borderGlow {
  0%,
  100% {
    top: 0;
    opacity: 0;
  }
  50% {
    top: 50%;
    opacity: 1;
  }
}

/* Fade Out Animation (when slide changes) */
.slide.fade-out .slide-content {
  animation: fadeOutRight 0.6s ease-out forwards;
}

@keyframes fadeOutRight {
  0% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) translateX(50px);
  }
}

/* Typing Effect for Title (Optional Enhanced Version) */
.hero-title.typing {
  overflow: hidden;
  border-right: 3px solid var(--primary-gold);
  white-space: nowrap;
  animation:
    typing 2s steps(40, end) 0.6s forwards,
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-gold);
  }
}

/* Slide Transition Effect */
.slide {
  transition: opacity 0.6s ease-in-out;
}

.slide.entering {
  animation: slideEnter 1s ease-out forwards;
}

@keyframes slideEnter {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========== SLIDER DOTS ANIMATION ========== */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
  animation: fadeInDots 1s ease-out 1.8s both;
}

@keyframes fadeInDots {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: var(--primary-gold);
  transition: all 0.3s ease;
}

.dot:hover,
.dot.active {
  background-color: var(--primary-gold);
  transform: scale(1.2);
}

.dot.active::before {
  width: 100%;
  height: 100%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* Dot Ripple Effect on Click */
.dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
  opacity: 0;
}

.dot.clicked::after {
  animation: dotRipple 0.6s ease-out;
}

@keyframes dotRipple {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.5);
  }
}

/* ========== PROGRESS BAR (Optional) ========== */
.slide-progress {
  position: absolute;
  bottom: 0;
  left: 60px;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary-gold), #d4b56f);
  z-index: 11;
}

.slide.active .slide-progress {
  animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
  0% {
    width: 0;
  }
  100% {
    width: calc(100% - 120px);
  }
}

/* ========== MOBILE RESPONSIVE ANIMATIONS ========== */
@media (max-width: 1024px) {
  .slide-content {
    left: 30px;
    max-width: 500px;
    padding: 30px 25px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .slide-content {
    left: 20px;
    right: 20px;
    max-width: calc(100% - 40px);
    padding: 25px 20px;
    top: 50%;
  }

  @keyframes slideInLeft {
    0% {
      opacity: 0;
      transform: translateY(-50%) translateY(50px);
    }
    100% {
      opacity: 1;
      transform: translateY(-50%) translateY(0);
    }
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .slide-progress {
    left: 20px;
    width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .slide-content {
    padding: 20px 15px;
  }

  .hero-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .slider-dots {
    bottom: 20px;
    gap: 10px;
  }

  .dot {
    width: 12px;
    height: 12px;
  }
}

/* ========== ACCESSIBILITY - REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  .slide-bg,
  .slide-content,
  .hero-title,
  .hero-subtitle,
  .hero-cta-buttons,
  .slider-dots,
  .dot,
  .slide-progress {
    animation: none !important;
    transition: none !important;
  }

  .slide.active .slide-content {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .slide.active .hero-title,
  .slide.active .hero-subtitle,
  .slide.active .hero-cta-buttons {
    opacity: 1;
    transform: none;
  }
}

/* ========== DARK THEME ADJUSTMENTS ========== */
[data-theme="dark"] .slide-content {
  background: rgba(26, 26, 26, 0.85);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .dot {
  background-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .dot:hover,
[data-theme="dark"] .dot.active {
  background-color: var(--primary-gold);
}

/* Bouncy button entrance */
.hero-cta-buttons .btn-primary {
  animation: bounceIn 0.8s ease-out 1.3s both;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* ========== PAGE HERO ========== */
.page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
}

.page-hero-content h1 {
  font-size: 52px;
  margin-bottom: 15px;
  color: var(--white);
}

.page-hero-content p {
  font-size: 20px;
  color: var(--white);
}

/* ========== SERVICE PAGES ========== */
.service-hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.service-hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.service-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding-left: 60px;
  color: var(--white);
}

.service-hero-content h1 {
  font-size: 56px;
  margin-bottom: 20px;
  color: var(--white);
}

.service-hero-content p {
  font-size: 22px;
  margin-bottom: 30px;
  color: var(--white);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 16px 35px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
}

.btn-hero-primary {
  background-color: var(--primary-gold);
  color: var(--primary-dark);
}

.btn-hero-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

/* Service Introduction */
.service-intro {
  padding: 80px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-content h2 {
  font-size: 38px;
  margin-bottom: 25px;
}

.intro-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-light);
}

.intro-highlights {
  margin-top: 40px;
}

.highlight-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.highlight-icon {
  color: var(--primary-gold);
  font-size: 24px;
  font-weight: bold;
}

.intro-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== SERVICE PAGE SPECIFIC STYLES ========== */
.security-types-grid,
.cleaning-types-grid,
.lifeguard-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.security-type-card,
.cleaning-type-card,
.lifeguard-type-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.security-type-card:hover,
.cleaning-type-card:hover,
.lifeguard-type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.security-type-card img,
.cleaning-type-card img,
.lifeguard-type-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.security-type-card h3,
.cleaning-type-card h3,
.lifeguard-type-card h3 {
  padding: 20px 25px 10px;
  font-size: 22px;
}

.security-type-card p,
.cleaning-type-card p,
.lifeguard-type-card p {
  padding: 0 25px;
  color: var(--text-light);
  line-height: 1.7;
}

.type-features {
  padding: 20px 25px;
}

.type-features li {
  padding: 6px 0;
  color: var(--text-dark);
  font-size: 14px;
}

.btn-type {
  display: inline-block;
  margin: 0 25px 25px;
  color: var(--primary-gold);
  font-weight: 600;
  transition: var(--transition);
}

.btn-type:hover {
  color: var(--primary-dark);
  padding-left: 5px;
}

/* ========== TRAINING & PROCESS SECTIONS ========== */
.training-grid,
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.training-step,
.process-step {
  background-color: var(--light-gray);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.training-step:hover,
.process-step:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-5px);
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary-gold);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.training-step h3,
.process-step h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.training-step p,
.process-step p {
  font-size: 15px;
  line-height: 1.7;
}

/* ========== WHY CHOOSE US ========== */
.why-choose-us {
  background-color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.why-card {
  text-align: center;
  padding: 40px 30px;
  background-color: var(--light-gray);
  border-radius: 10px;
  transition: var(--transition);
}

.why-card:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-5px);
}

.image-icon {
  width: 110px;
  margin-bottom: 20px;

  margin: 0 auto;
}
.sira {
  width: 90px;
}

.last-image {
  width: 60px;
}
.last-image2 {
  width: 70px;
}

.why-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: inherit;
}

.why-card p {
  color: inherit;
  opacity: 0.9;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #d4b56f 100%);
  text-align: center;
  padding: 80px 20px;
}

.cta-banner h2 {
  font-size: 42px;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.cta-banner p {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--primary-dark);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-cta-primary {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 18px 40px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 17px;
  transition: var(--transition);
}

.btn-cta-primary:hover {
  background-color: var(--white);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
  background-color: transparent;
  color: var(--white);
  padding: 18px 40px;
  border: 2px solid var(--primary-dark);
  border-radius: 30px;
  font-weight: 600;
  font-size: 17px;
  transition: var(--transition);
}

.btn-cta-secondary:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

/* ========== CONTACT FORM ========== */
.contact-form-section {
  background-color: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.form-info h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.form-info p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.form-benefits {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
}

.form-benefits h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.form-benefits ul li {
  padding: 8px 0;
  color: var(--text-dark);
}

.emergency-contact {
  background-color: #fff3e0;
  padding: 25px;
  border-radius: 10px;
  border-left: 5px solid #ff6b00;
}

.emergency-contact h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #ff6b00;
}

.emergency-btn {
  display: inline-block;
  background-color: #ff6b00;
  color: var(--white);
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  margin-top: 10px;
}

.contact-form-box {
  background-color: var(--light-gray);
  padding: 50px;
  border-radius: 10px;
}

.main-contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.main-contact-form input,
.main-contact-form select,
.main-contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 2px solid var(--medium-gray);
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
}

.form-checkbox {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  align-items: flex-start;
}

.form-checkbox input {
  margin-top: 3px;
}

.btn-submit-contact {
  width: 100%;
  background-color: var(--primary-gold);
  color: var(--primary-dark);
  padding: 18px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit-contact:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 15px;
}

/*=======Footer Contact=========*/

.footer-contact .sright {
  background-color: #d4b56f;
  padding: 0 0.5rem;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}
