/* ==========================================================================
   BridgeHire Global - CSS Styling Sheet
   Corporate Minimalism: Navy (#0A192F), Teal (#00B4D8), Gold (#FEDF00)
   ========================================================================== */

/* --- Design System & CSS Variables --- */
:root {
  /* Colors */
  --color-navy: hsl(217, 60%, 11%);       /* Deep corporate blue */
  --color-navy-dark: hsl(217, 60%, 7%);   /* Darker background */
  --color-navy-light: hsl(217, 45%, 16%); /* Card backgrounds */
  --color-teal: hsl(190, 90%, 45%);       /* Brand primary, links, icons */
  --color-teal-glow: hsl(180, 100%, 50%); /* Hover accent */
  --color-gold: hsl(43, 96%, 56%);        /* CTA highlights, stars */
  --color-gold-bright: hsl(43, 100%, 65%);/* Active/hover gold */
  
  --color-white: hsl(0, 0%, 100%);
  --color-text-primary: hsl(210, 20%, 98%);
  --color-text-secondary: hsl(215, 15%, 75%);
  --color-text-muted: hsl(215, 12%, 55%);
  
  /* Layout & Spacing */
  --header-height-large: 90px;
  --header-height-small: 70px;
  --max-width: 1200px;
  --border-radius: 12px;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
  
  /* Shadows */
  --shadow-subtle: 0 4px 30px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(0, 180, 216, 0.3);
  --shadow-gold-glow: 0 0 25px rgba(254, 223, 0, 0.45);
}

/* --- Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Disabled default to allow custom inertia scroll */
  background-color: var(--color-navy-dark);
  font-family: 'Inter', sans-serif;
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--color-navy-dark);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* --- Custom Inertia Scroll Structure --- */
#scroll-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

#scroll-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1; /* Render on top of the background video */
  will-change: transform;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-navy-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-navy-light);
  border: 2px solid var(--color-navy-dark);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-teal);
}

/* --- Header & Navigation Bar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-large);
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent;
  display: flex;
  align-items: center;
}

/* Scrolled state: transparency turns to glassmorphism */
.header.scrolled {
  height: var(--header-height-small);
  background: rgba(10, 25, 47, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.5);
}

.nav-container {
  max-width: var(--max-width);
  width: 90%;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Dynamic Logo Transition */
.logo-wrapper {
  position: absolute;
  left: 50%;
  top: 70px; /* Aligned slightly more down so it is not cut out at the top of the viewport */
  transform: translate(-50%, -50%) scale(2.4); /* Doubled scale at top (2.4x) */
  transition: opacity 1.0s ease-in-out, transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), left 0.45s cubic-bezier(0.25, 1, 0.5, 1), top 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

.logo-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}

.logo-link {
  position: relative;
  display: block;
  height: 100%;
  width: 140px; /* Base width to accommodate logos */
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), width 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-logo {
  height: 100%;
  width: auto;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-main {
  opacity: 1;
  /* Returning unscrolled: delay 0.2s, duration 0.2s (awaits wrapper slide) */
  transition: opacity 0.2s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.logo-white {
  opacity: 0;
  pointer-events: none;
  /* Returning unscrolled: delay 0.2s, duration 0.2s (awaits wrapper slide) */
  transition: opacity 0.2s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

/* Toggle white logo when dark overlay is active (at 5s) */
.logo-wrapper.dark-active .logo-main {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-wrapper.dark-active .logo-white {
  opacity: 1;
  pointer-events: auto;
  /* Returning unscrolled: delay 0.2s, duration 0.2s */
  transition: opacity 0.2s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.logo-scrolled {
  opacity: 0;
  pointer-events: none;
  /* Returning unscrolled: delay 0s, duration 0.1s (fades out instantly) */
  transition: opacity 0.1s cubic-bezier(0.25, 1, 0.5, 1) 0s;
}

/* Logo in scrolled state: slides left and scales back */
.header.scrolled .logo-wrapper {
  left: 0;
  top: 50%; /* Returns to standard vertical centering in the scrolled header */
  transform: translate(0, -50%) scale(1.0);
}

.header.scrolled .logo-link {
  width: 110px;
}

/* Hide both top logos when scrolled */
.header.scrolled .logo-main,
.header.scrolled .logo-white {
  opacity: 0;
  pointer-events: none;
  /* Scrolling down: delay 0s, duration 0.1s (fades out instantly) */
  transition: opacity 0.1s cubic-bezier(0.25, 1, 0.5, 1) 0s;
}

.header.scrolled .logo-wrapper.dark-active .logo-white {
  opacity: 0;
  pointer-events: none;
  /* Scrolling down: delay 0s, duration 0.1s (fades out instantly) */
  transition: opacity 0.1s cubic-bezier(0.25, 1, 0.5, 1) 0s;
}

.header.scrolled .logo-scrolled {
  opacity: 1;
  pointer-events: auto;
  /* Scrolling down: delay 0.2s, duration 0.2s (awaits wrapper slide) */
  transition: opacity 0.2s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

/* Language selector button layout */
.lang-selector {
  position: absolute;
  right: 76px; /* Always fixed on the right, avoiding hamburger at right: 0 */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  transition: var(--transition-smooth);
}

/* Static language selector stays next to hamburger when scrolled */
.header.scrolled .lang-selector {
  right: 76px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: var(--transition-fast);
}

.lang-btn .flag-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.lang-btn.active {
  border-color: var(--color-teal);
  color: var(--color-white);
  background: rgba(0, 180, 216, 0.1);
}

.lang-btn:hover {
  border-color: rgba(0, 180, 216, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* Hamburger Menu Toggle */
.menu-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 32px;
  height: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1010;
}

.menu-bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.menu-toggle:hover .menu-bar {
  background-color: var(--color-teal);
}

/* Hamburger transition on active menu */
.menu-toggle.active .bar-1 {
  transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active .bar-2 {
  opacity: 0;
}

.menu-toggle.active .bar-3 {
  transform: translateY(-11px) rotate(-45deg);
}

/* --- Fullscreen Overlay Navigation --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 0; /* Animated height dropdown */
  background: rgba(10, 25, 47, 0.95);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  display: block; /* Use block to allow max-height transitions */
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 180, 216, 0.25); /* Teal accent border at the bottom */
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.35s ease, 
              visibility 0.35s ease, 
              padding-bottom 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  max-height: 460px; /* Limit height so it doesn't take the whole screen */
  padding-top: 110px; /* Leaves space for the header toggle buttons */
  padding-bottom: 40px;
}

/* --- Desktop Hanging Menu overrides --- */
@media (min-width: 769px) {
  .nav-overlay {
    left: auto;
    right: 5%;
    width: 360px;
    top: 105px; /* Floats below the large unscrolled header */
    border-radius: 20px;
    border: 1px solid rgba(0, 180, 216, 0.25);
    background: rgba(10, 25, 47, 0.96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 180, 216, 0.15);
    transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.35s ease, 
                visibility 0.35s ease, 
                top 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                padding-bottom 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  }
  
  .header.scrolled + .nav-overlay {
    top: 80px; /* Floats below the scrolled header */
  }
  
  .nav-overlay.active {
    max-height: 380px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  
  .overlay-menu {
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .menu-link {
    font-size: 20px; /* More elegant for the compact card */
    letter-spacing: 1.5px;
  }
  
  .overlay-footer {
    padding-top: 20px;
  }
}

@media (min-width: 1334px) {
  .nav-overlay {
    right: calc((100vw - 1200px) / 2); /* Aligns perfectly with centered nav-container's right edge */
  }
}

.overlay-content {
  text-align: center;
  max-width: 600px;
  width: 90%;
  margin: 0 auto;
}

.overlay-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.menu-link {
  font-family: 'Outfit', sans-serif;
  font-size: 28px; /* Slightly smaller for hanging dropdown */
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: 2px;
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.menu-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
  transition: width 0.3s ease;
}

.menu-link:hover {
  color: var(--color-teal-glow);
}

.menu-link:hover::after {
  width: 100%;
}

.overlay-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.social-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.social-link:hover {
  color: var(--color-gold);
}

/* --- Section 1: Hero Section --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-end; /* bottom alignment */
  justify-content: flex-start; /* left alignment */
  overflow: hidden;
  padding-left: 8%; /* spacing from left */
  padding-bottom: 120px; /* spacing from bottom */
  transform: translateZ(0); /* Force GPU layer rendering for the entire section */
  backface-visibility: hidden;
  background-color: hsl(217, 60%, 7%); /* Solid dark background to blend the low-opacity video */
}

.video-background-container {
  position: absolute; /* Absolute positioned inside the relative hero section */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0); /* Force GPU layer rendering */
  backface-visibility: hidden;
  opacity: 1; /* Start fully bright */
  transition: opacity 1.5s ease-in-out; /* Smooth transition for dimming */
}

.hero-section.active .video-background-container {
  opacity: 0.32; /* Dim the video to blend with the dark background (reduced darkness by 20%) */
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1100px; /* Expanded width on desktop to accommodate side-by-side layout */
  text-align: left;
}

/* 5-second fade in animation classes */
.hero-text-block {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

.hero-text-left {
  flex: 1;
  max-width: 680px;
}

.hero-text-block.hidden {
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--color-white) 30%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 0 40px 0; /* align left */
  font-weight: 350;
}

.cta-wrapper {
  display: flex;
  justify-content: flex-start; /* align button left */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-wrapper.hidden {
  opacity: 0;
  transform: translateY(50px); /* appear from bottom up (larger slide) */
  pointer-events: none;
}

/* CTA Blue/Teal & Gold Button with Glow Effect */
.btn-cta {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-navy);
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-gold) 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 30px;
  padding: 16px 36px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden; /* Hide the shine element and shockwave ripples */
  transition: var(--transition-smooth);
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: var(--transition-smooth);
  opacity: 0;
  pointer-events: none;
}

.btn-cta:hover::after {
  left: 125%;
  opacity: 1;
  transition: all 0.75s ease-in-out;
}

/* CTA Shockwave Effect styling */
.btn-cta .shockwave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  pointer-events: none;
  animation: shockwave-animate 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes shockwave-animate {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-cta:hover {
  background-position: right center;
  box-shadow: var(--shadow-gold-glow);
  transform: translateY(-3px) scale(1.03);
}

.btn-cta:active {
  transform: translateY(-1px);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

.mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 2px;
  height: 6px;
  background-color: var(--color-teal);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scrollMouse 2s infinite ease-in-out;
}

@keyframes scrollMouse {
  0% { transform: translate(-50%, 0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* --- Section Container Commons --- */
.section-container {
  max-width: var(--max-width);
  width: 90%;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-white);
  margin-bottom: 16px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
  margin: 0 auto 24px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* --- Section 2: Services Offered --- */
.services-section {
  padding: 120px 0;
  background-color: hsl(210, 30%, 97%); /* Light corporate minimalist gray */
  color: var(--color-navy);
}

.services-section .section-title,
.success-section .section-title,
.contact-section .section-title {
  color: var(--color-navy);
}

.services-section .section-subtitle,
.success-section .section-subtitle,
.contact-section .section-subtitle {
  color: hsl(217, 20%, 35%);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  transform-style: preserve-3d; /* Enable smooth 3D transformations */
  backface-visibility: hidden;
}

/* Alternating service direction for desktop */
@media (min-width: 768px) {
  .service-item {
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
  }
  
  .service-item:nth-child(even) {
    direction: rtl;
  }
  
  .service-item:nth-child(even) .service-text-col {
    direction: ltr; /* Reset text direction to left-to-right */
  }
}

/* Dynamic scroll revealing handled by app.js update3DReveals */

.service-image-col {
  width: 100%;
}

.image-inner {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.image-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.15) 0%, rgba(10, 25, 47, 0.4) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.service-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.image-inner:hover .service-img {
  transform: scale(1.05);
}

.service-text-col {
  display: flex;
  flex-direction: column;
}

.service-number {
  font-family: 'Outfit', sans-serif;
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-teal) 0%, rgba(254, 223, 0, 0.3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.8;
}

.service-item-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.service-item-description {
  color: hsl(217, 15%, 35%);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.7;
}

/* --- Section 3: Testimonials --- */
.testimonials-section {
  padding: 120px 0;
  background-color: var(--color-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: var(--color-navy-light);
  border: 1px solid rgba(0, 180, 216, 0.08);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  right: 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 90px;
  color: var(--color-teal);
  opacity: 0.08;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: var(--shadow-glow);
}

.stars-wrapper {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.star {
  color: var(--color-gold);
  font-size: 18px;
}

.testimonial-quote {
  color: var(--color-text-secondary);
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  margin-top: auto;
}

.author-name {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.author-role {
  color: var(--color-teal);
  font-size: 12px;
  font-weight: 500;
}

/* --- Section 4: Contact Us --- */
.contact-section {
  padding: 80px 0;
  background-color: hsl(210, 30%, 97%); /* Light corporate background */
  color: var(--color-navy);
}

@media (min-width: 992px) {
  .contact-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: stretch;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1.05fr 1.25fr;
    gap: 30px;
  }
}

/* Contact cards common styling */
.contact-card {
  background: linear-gradient(135deg, var(--color-navy-light) 0%, hsl(217, 35%, 15%) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.card-badge {
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: var(--color-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.card-title {
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.card-description {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 36px;
  font-weight: 300;
}

/* Email direct link button styling */
.btn-email-link {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background-color: var(--color-teal);
  color: var(--color-navy);
  border: none;
  border-radius: 30px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.25);
  transition: var(--transition-smooth);
  width: 100%;
  justify-content: center;
}

.btn-email-link:hover {
  background-color: var(--color-teal-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: var(--color-navy);
}

.btn-whatsapp {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background-color: #25D366; /* Standard WhatsApp Brand Color */
  color: var(--color-white);
  border: none;
  border-radius: 30px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
  width: 100%;
  justify-content: center;
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  color: var(--color-white);
}

.whatsapp-icon {
  display: block;
}

/* Right side form container styling */
.form-container {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 180, 216, 0.15);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(10, 25, 47, 0.06);
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  background-color: var(--color-white);
  border: 1px solid rgba(10, 25, 47, 0.15);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--color-navy);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: hsl(217, 12%, 60%);
  font-weight: 350;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.15);
  background-color: var(--color-white);
}

/* Form validation styling */
.form-group.error input,
.form-group.error textarea {
  border-color: #EF4444;
}

.error-msg {
  color: #EF4444;
  font-size: 11px;
  margin-top: 6px;
  font-weight: 500;
}

/* Submit Button styling */
.btn-submit {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-gold) 100%);
  background-size: 200% auto;
  color: var(--color-navy);
  border: none;
  border-radius: 30px;
  padding: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.btn-submit:hover {
  background-position: right center;
  box-shadow: var(--shadow-gold-glow);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Loading spinner inside submit button */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(10, 25, 47, 0.3);
  border-radius: 50%;
  border-top-color: var(--color-navy);
  animation: spin 0.8s linear infinite;
}

.hidden {
  display: none !important;
}

/* Floating social buttons (visible on desktop and mobile) */
.floating-social-container {
  display: flex;
  position: fixed;
  bottom: 30px;
  right: 30px;
  gap: 16px;
  z-index: 999;
}

.whatsapp-float,
.instagram-float {
  display: flex;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: #ffffff;
  cursor: pointer;
}

.whatsapp-float {
  background-color: #25D366;
}

.instagram-float {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.whatsapp-float svg,
.instagram-float svg {
  width: 32px;
  height: 32px;
  display: block;
}

.whatsapp-float:hover,
.instagram-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-float:active,
.instagram-float:active {
  transform: scale(0.95);
}

.whatsapp-float:hover {
  background-color: #20ba5a;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Toast Feedback Notifications --- */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--color-navy-light);
  border: 1px solid var(--color-teal);
  border-left: 5px solid var(--color-teal);
  border-radius: 6px;
  padding: 16px 24px;
  z-index: 2000;
  box-shadow: var(--shadow-subtle);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.success {
  border-color: var(--color-teal);
  border-left-color: var(--color-teal);
}

.toast-notification.error {
  border-color: #EF4444;
  border-left-color: #EF4444;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  font-weight: 900;
  font-size: 18px;
}

.toast-notification.success .toast-icon {
  color: var(--color-teal);
}

.toast-notification.error .toast-icon {
  color: #EF4444;
}

.toast-message {
  font-size: 14px;
  color: var(--color-text-primary);
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 30px;
}

.footer-container {
  max-width: var(--max-width);
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  height: 36px;
  width: auto;
  align-self: flex-start;
}

.footer-tagline {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 300;
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 350;
}

.footer-links a:hover {
  color: var(--color-teal);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 350;
}

.footer-contact a {
  color: var(--color-text-primary);
}

.footer-contact a:hover {
  color: var(--color-teal);
}

.footer-bottom {
  max-width: var(--max-width);
  width: 90%;
  margin: 60px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* --- Section 3.5: Success Case --- */
.success-section {
  padding: 120px 0;
  background-color: hsl(210, 30%, 97%); /* Light corporate background */
  color: var(--color-navy);
}

.success-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

@media (min-width: 992px) {
  .success-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
  }
}

.success-image-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(10, 25, 47, 0.08);
  position: relative;
  aspect-ratio: 1 / 1;
}

.success-employee-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.success-image-wrapper:hover .success-employee-img {
  transform: scale(1.03);
}

.success-meta-list {
  list-style: none;
  margin-top: 10px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-white);
  padding: 24px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(10, 25, 47, 0.08);
  box-shadow: 0 4px 15px rgba(10, 25, 47, 0.03);
}

.success-meta-item {
  font-size: 14px;
  color: hsl(217, 15%, 35%);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(10, 25, 47, 0.06);
  padding-bottom: 10px;
}

.success-meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.success-meta-item strong {
  color: var(--color-navy);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.success-meta-item span {
  font-weight: 400;
}

.success-quotes-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.success-emp-name {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--color-navy);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 24px;
  margin-bottom: 0;
  text-align: center;
}

.quote-block {
  background-color: var(--color-white);
  border-left: 4px solid var(--color-teal);
  border-radius: 0 12px 12px 0;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(10, 25, 47, 0.04);
  position: relative;
  transition: var(--transition-smooth);
}

.quote-block.client-quote {
  border-left-color: var(--color-gold);
}

.quote-block:hover {
  transform: translateX(5px);
  box-shadow: 0 15px 40px rgba(10, 25, 47, 0.08);
}

.quote-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background-color: var(--color-navy);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
}

.quote-block.client-quote .quote-badge {
  background-color: var(--color-gold);
  color: var(--color-navy);
}

.quote-text {
  font-size: 15px;
  line-height: 1.7;
  color: hsl(217, 15%, 30%);
  font-style: italic;
  font-weight: 350;
}

/* --- Section 3.6: Pricing --- */
.pricing-section {
  padding: 120px 0;
  background-color: var(--color-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

.pricing-card {
  background-color: var(--color-navy-light);
  border: 1px solid rgba(0, 180, 216, 0.08);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: var(--shadow-glow);
}

.pricing-icon-wrapper {
  background-color: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-teal);
  transition: var(--transition-smooth);
}

.pricing-card:hover .pricing-icon-wrapper {
  background-color: var(--color-teal);
  color: var(--color-navy);
  transform: scale(1.05);
}

.pricing-icon {
  width: 24px;
  height: 24px;
}

.pricing-card-title {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--color-white);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.pricing-card-desc {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
}

/* --- Mobile Viewport Adjustments (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Revert Smooth Scroll Wrapper to normal document flow on mobile */
  #scroll-wrapper {
    position: static;
    height: auto;
    overflow: visible;
  }
  
  #scroll-content {
    position: static;
    transform: none !important;
  }

  /* Mobile Hero Video 4:3 fit changes */
  .hero-section {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 110px; /* Leave space for top header logo/menu */
    padding-bottom: 24px; /* Align with bottom margin of float buttons */
    position: relative;
    box-sizing: border-box;
  }

  .video-background-container {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1;
    top: auto;
    left: auto;
  }

  .bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .hero-text-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 1;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .hero-text-left {
    max-width: 100%;
  }

  .cta-wrapper {
    width: 100%;
    max-width: calc(100% - 136px); /* Prevent overlap with mobile bottom-right float buttons */
    margin-top: auto;
  }

  .cta-wrapper .btn-cta {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
    display: inline-block;
  }

  @media (max-width: 360px) {
    .cta-wrapper .btn-cta {
      font-size: 12px;
      padding: 12px 16px;
    }
  }

  .scroll-down-indicator {
    display: none;
  }

  /* Mobile Logo Overrides: Always show small horizontal logo, hide big logos */
  .logo-main,
  .logo-white,
  .logo-wrapper.dark-active .logo-main,
  .logo-wrapper.dark-active .logo-white {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .logo-scrolled {
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
  }

  .logo-link {
    width: 110px !important;
  }

  /* Brand Logo Mobile Sizing - Aligned left with safe padding */
  .logo-wrapper {
    left: 15px;
    top: 50%;
    transform: translate(0, -50%) scale(1.1);
    transform-origin: left center;
  }

  /* Scrolled Brand Logo Mobile Sizing */
  .header.scrolled .logo-wrapper {
    transform: translate(0, -50%) scale(0.9);
    transform-origin: left center;
  }

  /* Compact language buttons and selector on mobile to prevent overlap */
  .lang-selector,
  .header.scrolled .lang-selector {
    right: 56px;
    gap: 8px;
  }

  .lang-btn {
    padding: 6px;
    border-radius: 50%;
    gap: 0;
  }

  .lang-btn span {
    display: none;
  }

  /* Success & Pricing Section Mobile Tweaks */
  .success-section,
  .pricing-section {
    padding: 80px 0;
  }
  
  .success-grid,
  .pricing-grid {
    gap: 40px;
  }
  
  .success-meta-list {
    margin-top: 20px;
  }

  /* Floating social buttons layout adjustments on mobile */
  .floating-social-container {
    bottom: 24px;
    right: 16px;
    gap: 8px;
  }

  .whatsapp-float,
  .instagram-float {
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  }

  .whatsapp-float svg,
  .instagram-float svg {
    width: 24px;
    height: 24px;
  }

  /* Reduce scaling bounce slightly on mobile to feel tighter */
  .whatsapp-float:hover,
  .instagram-float:hover {
    transform: scale(1.04);
  }

  /* Remove hero video dimming overlay on mobile */
  .hero-section.active .video-background-container {
    opacity: 1 !important;
  }
}
