/* -------------------------------------
   VARIABLES & RESET
-------------------------------------- */
:root {
  --primary: #E63946;
  /* A more elegant, slightly softer red */
  --primary-hover: #D62828;
  --dark: #0F172A;
  --darker: #020617;
  --light: #F8FAFC;
  --gray: #64748B;
  --white: #FFFFFF;
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -------------------------------------
   PRELOADER
-------------------------------------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--darker);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, visibility 0.8s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 0, 51, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.4);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body,
html {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  background-color: var(--darker);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* -------------------------------------
   UTILITIES
-------------------------------------- */
.container-sm {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.text-gradient {
  background: linear-gradient(135deg, #FF4D6D 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(255, 0, 51, 0.4);
  /* Glow effect */
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  line-height: 1.1;
}

.section-title.dark {
  color: var(--darker);
}

.section-desc {
  font-size: 1.125rem;
  color: #E2E8F0;
  /* Slightly brighter for better contrast */
  max-width: 650px;
  line-height: 1.8;
}

.section-desc.dark-desc {
  color: var(--gray);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  margin: 5px;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #B30024 100%);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(255, 0, 51, 0.4);
  border: 1px solid rgba(255, 0, 51, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF1A46 0%, #CC0029 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(255, 0, 51, 0.6);
}

.btn-secondary {
  background: rgba(255, 0, 51, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 0, 51, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 0, 51, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 0, 51, 0.2);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* -------------------------------------
   VIDEO BACKGROUND
-------------------------------------- */
#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  /* Hidden initially */
  transition: opacity 1.5s ease-in-out;
}

#bg-video.loaded {
  opacity: 1;
  /* Faded in via JS */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.3) 0%, rgba(2, 6, 23, 0.8) 100%);
  z-index: -1;
}

/* -------------------------------------
   HEADER & NAV
-------------------------------------- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  transition: var(--transition);
  z-index: 1000;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(15, 23, 42, 0.95);
  /* Even darker for legibility */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.logo img {
  height: 60px;
  transition: var(--transition);
}

header.scrolled .logo img {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

/* Burger */
#burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
  background: none;
  border: none;
  padding: 10px;
}

#burger .line {
  width: 28px;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  transition: transform 0.3s ease-in-out, opacity 0.2s;
}

#burger.active .line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

#burger.active .line:nth-child(2) {
  opacity: 0;
}

#burger.active .line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* -------------------------------------
   HERO SECTION
-------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  /* Contain absolute video */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
  /* Ensure video doesn't overflow */
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  /* Hero intro animations */
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: cinematicFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
  /* After preloader */
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #E2E8F0;
  margin-bottom: 40px;
  font-weight: 300;
  /* Hero intro animations */
  opacity: 0;
  transform: translateY(20px);
  animation: cinematicFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: cinematicFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.1s;
}

@keyframes cinematicFadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* -------------------------------------
   IDS SECTION (Glassmorphism)
-------------------------------------- */
.glass-section {
  padding: 100px 0;
  position: relative;
}

.ids-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  background: rgba(15, 0, 3, 0.85);
  /* Dark red glass */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 0, 51, 0.2);
  border-radius: 24px;
  padding: 60px;
  box-shadow: inset 0 0 40px rgba(255, 0, 51, 0.05), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.rotator-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-family: 'Montserrat', sans-serif;
}

.rotator-label {
  color: var(--white);
  font-weight: 600;
}

.rotator-text {
  color: var(--primary);
  font-weight: 800;
  min-width: 150px;
  display: inline-block;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.ids-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.stat-box:last-child {
  grid-column: 1 / -1;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}


/* -------------------------------------
   SERVICES SECTION
-------------------------------------- */
.services-section {
  padding: 120px 0;
  position: relative;
  z-index: 10;
}

.white-bg {
  background-color: var(--light);
  color: var(--darker);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #FF6B6B);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: rgba(230, 57, 70, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
  background: var(--primary);
}

.service-icon {
  width: 40px;
  transition: var(--transition);
  filter: grayscale(100%) brightness(0.2) sepia(1) hue-rotate(-50deg) saturate(5);
  /* Make dark red initially approx */
}

.service-card:hover .service-icon {
  filter: brightness(0) invert(1);
  /* Make white on hover */
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--darker);
}

.service-card p {
  color: var(--gray);
  margin-bottom: 30px;
}

.readmore-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}

.readmore-link .arrow {
  margin-left: 8px;
  transition: var(--transition);
}

.readmore-link:hover .arrow {
  transform: translateX(5px);
}


/* -------------------------------------
   TRUST SECTION (Combined)
-------------------------------------- */
.trust-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--darker) 0%, #080B14 100%);
  position: relative;
  z-index: 10;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.stamps-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.stamps-container img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  transition: var(--transition);
}

.stamps-container img:hover {
  transform: scale(1.05);
}

/* SCROLLING LOGOS */
.scroll-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  padding: 40px 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fading edges */
.scroll-container::before,
.scroll-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
}

.scroll-container::before {
  left: 0;
  background: linear-gradient(to right, #080B14, transparent);
}

.scroll-container::after {
  right: 0;
  background: linear-gradient(to left, #080B14, transparent);
}

.scroll-content {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}

.scroll-content:hover {
  animation-play-state: paused;
}

.scroll-content img {
  height: 45px;
  margin: 0 35px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6) brightness(2);
  transition: var(--transition);
}

.scroll-content img:hover {
  filter: grayscale(0%) opacity(1) brightness(1);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


/* -------------------------------------
   CTA SECTION
-------------------------------------- */
.cta-section {
  padding: 100px 0;
  background: var(--primary);
  position: relative;
  z-index: 10;
  text-align: center;
  overflow: hidden;
}

/* Decorative background pattern */
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: rotate(45deg);
  z-index: 0;
}

.cta-section .container-sm {
  position: relative;
  z-index: 1;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
  background: var(--darker);
  color: var(--white);
}

/* -------------------------------------
   FOOTER
-------------------------------------- */
.modern-footer {
  background: #050812;
  padding: 40px 0;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.modern-footer p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* -------------------------------------
   FLOATING WHATSAPP & BACK TO TOP
-------------------------------------- */
.floating-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1100;
  transition: var(--transition);
  filter: drop-shadow(0 10px 20px rgba(37, 211, 102, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 15px 25px rgba(37, 211, 102, 0.6));
}

.floating-btn img {
  width: 65px;
  height: 65px;
}

.back-to-top {
  position: fixed;
  bottom: 120px;
  right: 40px;
  z-index: 1099;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

/* -------------------------------------
   ANIMATIONS (Intersection Observer)
-------------------------------------- */
.animate {
  opacity: 0;
  visibility: hidden;
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up {
  transform: translateY(50px);
}

.fade-right {
  transform: translateX(-50px);
}

.fade-left {
  transform: translateX(50px);
}

.animate.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}


/* -------------------------------------
   RESPONSIVE DESIGN
-------------------------------------- */
@media (max-width: 992px) {

  .ids-grid,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  #burger {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.5s ease-in-out;
  }

  nav ul.show {
    clip-path: circle(150% at 100% 0);
  }

  nav a {
    font-size: 1.2rem;
  }

  .ids-grid {
    padding: 40px 20px;
  }

  .stat-box {
    padding: 20px 10px;
  }

  .floating-btn {
    bottom: 20px;
    right: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}