@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --bg-color: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #94a3b8;
  --accent: #7b92d3;
  --accent-light: #7bbed3;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
}

::-webkit-scrollbar-thumb {
  background: #f1f5f9;
  border-radius: 4px;
  border: 2px solid #ffffff;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

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

html {
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Header & Navbar */
header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 1000;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-container {
  max-width: 1200px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

header.navbar.scrolled {
  height: 70px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

header.navbar.scrolled .logo-img {
  height: 65px;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 90px;
  width: auto;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-img:hover {
  transform: scale(1.03);
}


#blueT, #blueL, #tealT, #tealL, #greenT, #greenL, #textS, #textW text {
  opacity: 0;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 1px;
  transition: var(--transition-smooth);
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--accent);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--accent);
}



/* Sections Configuration */
.section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: 90px;
}

/* Stacking z-indexes for parallax cover reveal scroll effect */
#home {
  z-index: 10;
  background-color: #ffffff;
}
#why-us { z-index: 11; }
#services { z-index: 12; }
#process { z-index: 13; }
#industries { z-index: 14; }
#testimonials { z-index: 15; }
#contact-us { z-index: 16; }

#hero-logo {
  position: absolute;
  top: calc(50% + 45px); /* Offset vertical center by 45px to account for the 90px header padding */
  left: 50%;
  transform: translate(-40%, -50%); /* Adjust horizontal transform to visually center the offset SVG viewBox */
  width: 95%;
  max-width: 1375px;
  height: auto;
  z-index: 1; /* Below the hero-overlay */
  opacity: 0.9; /* Subtle watermark base opacity */
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  opacity: 0;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  color: #ffffff;
}

.hero-title-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 600;
}

.hero-title-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem;
  font-style: italic;
  font-weight: 300;
}

.hero-title-caps {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #7bd3bc;
  letter-spacing: 0.12em;
}

.hero-text {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 760px;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  align-items: center;
  color: var(--accent-light);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.bullet-divider {
  color: var(--accent);
  font-weight: 400;
  opacity: 0.8;
}

.hero-btn {
  display: inline-block;
  padding: 1.1rem 2.4rem;
  background: linear-gradient(135deg, #7bbed3, #7bd3bc);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(123, 190, 211, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(123, 190, 211, 0.3);
  filter: brightness(1.03);
}

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

/* Initially set opacity to 0 for GSAP animation to avoid FOUC */
.hero-content > * {
  opacity: 0;
}

@media (max-width: 768px) {
  .hero-title-serif {
    font-size: 2.4rem;
  }
  
  .hero-title-italic {
    font-size: 2.4rem;
  }
  
  .hero-title-caps {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
  }
  .hero-text {
    font-size: 1rem;
    line-height: 1.6;
  }
  .hero-bullets {
    flex-direction: column;
    gap: 0.4rem;
  }
  .bullet-divider {
    display: none;
  }
  .hero-btn {
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
  }
}

.section-title {
  font-size: 5.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dark);
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  margin: 2rem auto 0 auto;
  border-radius: 1.5px;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

/* Intersection Observer Active States */
.section.in-view .section-title {
  opacity: 1;
  transform: translateY(0);
}

.section.in-view .section-title::after {
  transform: scaleX(1);
}

.why-us-title, .services-title, .process-title, .industries-title, .testimonials-title, .contact-title {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7b92d3, #7bd3bc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.why-us-title::after, .services-title::after, .process-title::after, .industries-title::after, .testimonials-title::after, .contact-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: 1.5rem auto 0 auto;
  border-radius: 1.5px;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.section.in-view .why-us-title,
.section.in-view .services-title,
.section.in-view .process-title,
.section.in-view .industries-title,
.section.in-view .testimonials-title,
.section.in-view .contact-title {
  opacity: 1;
  transform: translateY(0);
}

.section.in-view .why-us-title::after,
.section.in-view .services-title::after,
.section.in-view .process-title::after,
.section.in-view .industries-title::after,
.section.in-view .testimonials-title::after,
.section.in-view .contact-title::after {
  transform: scaleX(1);
}

.why-us-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 10;
}

.why-us-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  margin-top: 3.5rem;
}

.why-us-card {
  position: relative;
  background-color: #ffffff;
  border: 2px solid #7bbed3;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-us-card > * {
  position: relative;
  z-index: 1;
}

/* Pseudo-element for the gradient box shadow (glow) */
.why-us-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(to top left, #7b92d3, #7bd3bc);
  z-index: -2;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(4px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

/* Pseudo-element for the hover gradient border and white card face */
.why-us-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 12px;
  border: 2px solid transparent;
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(to bottom right, #7b92d3, #7bd3bc);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section.in-view .why-us-card {
  opacity: 1;
  transform: translateY(0);
}

.section.in-view .why-us-card:nth-child(1) { transition-delay: 0.1s; }
.section.in-view .why-us-card:nth-child(2) { transition-delay: 0.2s; }
.section.in-view .why-us-card:nth-child(3) { transition-delay: 0.3s; }
.section.in-view .why-us-card:nth-child(4) { transition-delay: 0.4s; }
.section.in-view .why-us-card:nth-child(5) { transition-delay: 0.5s; }
.section.in-view .why-us-card:nth-child(6) { transition-delay: 0.6s; }

.why-us-card:hover {
  transform: translateY(-5px);
}

.why-us-card:hover::before {
  opacity: 0.22;
  filter: blur(18px);
  transform: translateY(8px) scale(1.02);
}

.why-us-card:hover::after {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease;
}

.why-us-card:hover .card-icon svg {
  transform: scale(1.1) rotate(5deg);
  stroke: var(--accent-light);
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.card-description {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Services Section Styles */
.services-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px; /* Made wider (from 1020px to 1200px) */
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 10;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 3.5rem auto 0 auto; /* Centered horizontally */
}

.service-card {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.in-view .service-card {
  opacity: 1;
}

.section.in-view .service-card:nth-child(1) { transition-delay: 0.4s; }
.section.in-view .service-card:nth-child(2) { transition-delay: 0.62s; }
.section.in-view .service-card:nth-child(3) { transition-delay: 0.84s; }
.section.in-view .service-card:nth-child(4) { transition-delay: 1.06s; }
.section.in-view .service-card:nth-child(5) { transition-delay: 1.28s; }
.section.in-view .service-card:nth-child(6) { transition-delay: 1.5s; }

/* Photo Card Styling */
.service-split-card {
  height: 175px;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06), 0 3px 8px rgba(15, 23, 42, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-split-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.12), 0 6px 15px rgba(15, 23, 42, 0.18);
}

.card-header-section {
  height: 25%;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  box-sizing: border-box;
}

.card-header-section.color-blue {
  background-color: #7b92d3;
}

.card-header-section.color-teal {
  background-color: #7bbed3;
}

.card-header-section.color-green {
  background-color: #7bd3bc;
}

.card-body-section {
  height: 75%;
  background-color: #ffffff;
  padding: 1.2rem 2rem;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
}

.service-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.service-card-desc {
  font-size: 1rem;
  font-weight: 400;
  color: #334155;
  line-height: 1.6;
  margin: 0;
  opacity: 1; /* Always visible */
}

/* Process Section Styles */
.process-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 10;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-top: 5rem;
  position: relative;
}

/* Horizontal timeline connector line */
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px; /* Center of the 80px circles */
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, #7b92d3, #7bd3bc);
  z-index: 1;
  opacity: 0.3;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 17%;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.in-view .process-step {
  opacity: 1;
  transform: translateY(0);
}

.section.in-view .process-step:nth-child(1) { transition-delay: 0.1s; }
.section.in-view .process-step:nth-child(2) { transition-delay: 0.2s; }
.section.in-view .process-step:nth-child(3) { transition-delay: 0.3s; }
.section.in-view .process-step:nth-child(4) { transition-delay: 0.4s; }
.section.in-view .process-step:nth-child(5) { transition-delay: 0.5s; }

.step-number-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #7bbed3;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(123, 190, 211, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.process-step:hover .step-number-container {
  transform: scale(1.1);
  border-color: #7b92d3;
  box-shadow: 0 8px 25px rgba(123, 146, 211, 0.22);
}

.step-number {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7b92d3, #7bd3bc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.step-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.8rem 0;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Process Section Custom Color Theme (#7b92d3 Background with White Content) */
#process {
  background-color: #7b92d3;
}

#process .process-title {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
}

#process .process-title::after {
  background-color: #ffffff;
}

#process .process-steps::before {
  background: #ffffff;
  opacity: 0.4;
}

#process .step-number-container {
  background-color: #7b92d3; /* Solid matching background to block the connector line */
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#process .process-step:hover .step-number-container {
  background-color: #ffffff; /* Fills with white on hover */
  border-color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#process .step-number {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  transition: color 0.3s ease, -webkit-text-fill-color 0.3s ease;
}

#process .process-step:hover .step-number {
  -webkit-text-fill-color: #7b92d3;
  color: #7b92d3;
}

#process .step-title {
  font-family: var(--font-sans);
  font-weight: 700;
  color: #ffffff;
}

#process .step-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Industries Section Styles */
#industries {
  background-color: #ffffff;
}

.industries-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 10;
}

.industries-subtitle {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: #475569;
  max-width: 800px;
  text-align: center;
  margin: 1.5rem auto 3.5rem auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.section.in-view .industries-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  width: 100%;
}

.industry-card {
  background-color: #999999;
  border: none;
  border-radius: 9999px;
  padding: 1.35rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
}

.section.in-view .industry-card {
  opacity: 1;
  transform: translateY(0);
}

.section.in-view .industry-card:nth-child(1) { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s; }
.section.in-view .industry-card:nth-child(2) { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s; }
.section.in-view .industry-card:nth-child(3) { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s; }
.section.in-view .industry-card:nth-child(4) { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; }
.section.in-view .industry-card:nth-child(5) { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s; }
.section.in-view .industry-card:nth-child(6) { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s; }
.section.in-view .industry-card:nth-child(7) { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s; }
.section.in-view .industry-card:nth-child(8) { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s; }

.industry-name {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

/* Testimonials Section Styles (#7bbed3 Background with White Content) */
#testimonials {
  background-color: #7bbed3;
}

.testimonials-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 10;
}

#testimonials .testimonials-title {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  margin-bottom: 4rem;
}

#testimonials .testimonials-title::after {
  background-color: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 3rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 320px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(30px);
}

.section.in-view .testimonial-card {
  opacity: 1;
  transform: translateY(0);
}

.section.in-view .testimonial-card:nth-child(1) { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.section.in-view .testimonial-card:nth-child(2) { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.section.in-view .testimonial-card:nth-child(3) { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }

.testimonial-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.star-icon {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 1;
}

.testimonial-quote {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  font-style: italic;
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.author-name {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.author-company {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Contact Section Styles (#333 Background, 3-Row Layout) */
#contact-us {
  background-color: #333333;
}

.contact-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 10;
}

#contact-us .contact-title {
  margin-bottom: 4rem;
}

.contact-content-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  width: 100%;
  margin-bottom: 5rem;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: left;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7bbed3;
  margin: 0;
}

.info-value {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.5;
}

.contact-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #7bd3bc;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
  background-color: #7b92d3;
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form-col {
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.form-input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.9rem 1.2rem;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #7b92d3;
  background-color: rgba(255, 255, 255, 0.08);
}

.form-input.is-invalid {
  border-color: #f87171 !important;
  background-color: rgba(248, 113, 113, 0.05);
}

.form-input.is-valid {
  border-color: #4ade80 !important;
  background-color: rgba(74, 222, 128, 0.03);
}

.error-message {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 0.2rem;
  display: none;
}

.error-message.show {
  display: block;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.captcha-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.8rem 1.2rem;
  margin: 0.5rem 0;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.captcha-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #7b92d3;
}

.captcha-label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #ffffff;
  cursor: pointer;
}

.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  gap: 0.2rem;
}

.captcha-logo svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
  fill: none;
}

.contact-submit-btn {
  background: linear-gradient(135deg, #7b92d3, #7bd3bc);
  border: none;
  border-radius: 6px;
  padding: 1.1rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(123, 146, 211, 0.2);
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 146, 211, 0.3);
}

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

.contact-footer-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  width: 100%;
}

.copyright-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Animations for in-view triggers */
.contact-info-col, .contact-form-col {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.section.in-view .contact-info-col {
  opacity: 1;
  transform: translateY(0);
}

.section.in-view .contact-form-col {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  header.navbar {
    padding: 0 2.5rem;
  }
}

@media (max-width: 1024px) {
  .section-title {
    font-size: 4.2rem;
    letter-spacing: 0.14em;
  }
  
  .menu-btn {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.05rem;
  }

  .why-us-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  header.navbar {
    height: 80px;
  }
  
  .navbar-container {
    padding: 0 1.5rem;
  }
  
  header.navbar.scrolled {
    height: 65px;
  }
  
  header.navbar.scrolled .logo-img {
    height: 55px;
  }
  
  .logo-img {
    height: 70px;
  }

  
  .section {
    padding-top: 80px;
  }
  
  .section-title {
    font-size: 2.8rem;
    letter-spacing: 0.1em;
  }
  
  .section-title::after {
    width: 60px;
    margin-top: 1.5rem;
  }

  .why-us-title, .services-title, .process-title, .industries-title, .testimonials-title, .contact-title {
    font-size: 1.8rem;
  }
  
  .why-us-title::after, .services-title::after, .process-title::after, .industries-title::after, .testimonials-title::after, .contact-title::after {
    width: 50px;
    margin-top: 1.2rem;
  }

  .why-us-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
  }

  .why-us-card {
    max-width: 480px;
    width: 100%;
    justify-self: center;
    padding: 2rem 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .service-card {
    max-width: 580px; /* Restored to full wider layout */
    width: 100%;
    justify-self: center;
  }

  .service-split-card {
    height: auto;
  }

  .card-header-section {
    height: auto;
    padding: 1.2rem 1.5rem;
  }

  .card-body-section {
    height: auto;
    padding: 1.5rem 1.5rem;
  }

  /* Process responsive overrides */
  .process-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-left: 2.5rem;
  }

  .process-steps::before {
    top: 0;
    bottom: 0;
    left: calc(2.5rem + 30px); /* Centers the line with 60px circle */
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #7b92d3, #7bd3bc);
  }

  .process-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    gap: 1.5rem;
  }

  .step-number-container {
    margin-bottom: 0;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .step-number {
    font-size: 1.4rem;
  }

  .step-text-container {
    align-items: flex-start;
  }

  .step-title {
    font-size: 1.25rem;
    margin: 0 0 0.4rem 0;
  }

  /* Industries responsive overrides */
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }
  
  .industry-card {
    padding: 0.9rem 1.35rem;
    min-height: 60px;
  }

  .industries-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }

  /* Testimonials responsive overrides */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 2.2rem 1.8rem;
    min-height: auto;
  }
  
  #testimonials .testimonials-title {
    margin-bottom: 2.5rem;
  }

  /* Contact responsive overrides */
  .contact-content-row {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
  }
  
  .contact-info-col {
    gap: 2rem;
  }
  
  #contact-us .contact-title {
    margin-bottom: 2.5rem;
  }
  
  .contact-submit-btn {
    padding: 1rem 1.5rem;
  }
}
