/* ============================================
   WEBILC - Custom CSS Stylesheet
   Apple-inspired Design System
   ============================================ */

/* CSS Variables - Design System */
:root {
  /* Colors */
  --bg-primary: #f4f4f4;
  --bg-white: #ffffff;
  --bg-dark: #0d0d0d;

  --text-primary: #0d0d0d;
  --text-body: #3a3a3a;
  --text-muted: #888888;
  --text-light: #f4f4f4;

  --border-color: #e0e0e0;
  --border-dark: #1f1f1f;

  /* Typography */
  --font-family: 'Poppins', sans-serif;
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing */
  --section-padding: 100px;
  --container-max-width: 1200px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-focus: 0 0 0 3px rgba(13, 13, 13, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  --transition-slower: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-regular);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ============================================
   BACKGROUND CANVAS FOR ALL SECTIONS
   ============================================ */
.section-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.section {
  position: relative;
  padding: var(--section-padding) 0;
  overflow: hidden;
}

.section-content {
  position: relative;
  z-index: 1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: 1.2;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 13px;
  font-weight: var(--font-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-heading {
  font-size: 42px;
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(244, 244, 244, 0.85);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-size: 20px;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  transition: transform var(--transition-base);
}

.brand:hover {
  transform: scale(1.02);
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.footer-brand-logo {
  width: 100px;
  height: auto;
  margin-bottom: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 15px;
  font-weight: var(--font-medium);
  color: var(--text-body);
  position: relative;
  transition: color var(--transition-base);
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-primary);
  transition: width var(--transition-slower);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: var(--font-medium);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-slower);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300%;
  height: 300%;
}

.btn:focus {
  box-shadow: var(--shadow-focus);
}

.btn-primary {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #1a1a1a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-dark);
  color: var(--text-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-large {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: var(--font-semibold);
}

.btn-full {
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 0 24px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 62px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -1.5px;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s var(--transition-slower) forwards;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: var(--font-regular);
  color: var(--text-body);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  background-color: var(--bg-primary);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-cta {
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slower);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slower);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 24px;
  transition: transform var(--transition-slower);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--text-primary);
  stroke-width: 1.5;
  fill: none;
}

.service-title {
  font-size: 20px;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-description {
  font-size: 15px;
  font-weight: var(--font-regular);
  color: var(--text-body);
  line-height: 1.7;
}

/* ============================================
   HOW WE WORK SECTION - JOURNEY LINE
   ============================================ */

.process {
  background-color: var(--bg-primary);
}

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

.process-cta {
  margin-bottom: 48px;
}

.process-journey {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.process-journey-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--border-color) 0%, var(--text-primary) 50%, var(--border-color) 100%);
  transform: translateX(-50%);
}

.process-journey-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--text-primary);
  transition: height 1.5s var(--transition-slower);
}

.process-journey-line-progress.animated {
  height: 100%;
}

.process-step-journey {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slower);
}

.process-step-journey.animated {
  opacity: 1;
  transform: translateY(0);
}

.process-step-journey:nth-child(odd) {
  flex-direction: row;
}

.process-step-journey:nth-child(even) {
  flex-direction: row-reverse;
}

.process-step-journey:last-child {
  margin-bottom: 0;
}

.process-step-content-journey {
  width: calc(50% - 60px);
  padding: 32px 40px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slower);
}

.process-step-journey:nth-child(odd) .process-step-content-journey {
  margin-right: auto;
  text-align: right;
}

.process-step-journey:nth-child(even) .process-step-content-journey {
  margin-left: auto;
  text-align: left;
}

.process-step-content-journey:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.process-step-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--bg-white);
  border: 3px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: var(--font-bold);
  color: var(--text-muted);
  z-index: 2;
  transition: all var(--transition-slower);
}

.process-step-journey.animated .process-step-node {
  border-color: var(--text-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 8px rgba(13, 13, 13, 0.05);
}

.process-step-title-journey {
  font-size: 18px;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.process-step-description-journey {
  font-size: 15px;
  font-weight: var(--font-regular);
  color: var(--text-body);
  line-height: 1.7;
}

/* ============================================
   ACHIEVEMENTS SECTION
   ============================================ */

.achievements {
  background-color: var(--bg-primary);
}

.achievements-header {
  text-align: center;
  margin-bottom: 60px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.achievement-item {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-slower);
}

.achievement-item:hover {
  background: var(--bg-white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.achievement-number {
  font-size: 52px;
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -2px;
}

.achievement-label {
  font-size: 14px;
  font-weight: var(--font-regular);
  color: var(--text-muted);
  max-width: 160px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================
   TESTIMONIALS SECTION - SLIDESHOW
   ============================================ */

.testimonials {
  background-color: var(--bg-primary);
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.testimonials-track {
  display: flex;
  gap: 24px;
  animation: scrollCarousel 40s linear infinite;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  flex: 0 0 450px;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slower);
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--text-primary);
  transition: transform var(--transition-fast);
}

.testimonial-card:hover .testimonial-stars svg {
  animation: starPulse 0.5s ease forwards;
}

.testimonial-card:hover .testimonial-stars svg:nth-child(1) {
  animation-delay: 0s;
}

.testimonial-card:hover .testimonial-stars svg:nth-child(2) {
  animation-delay: 0.05s;
}

.testimonial-card:hover .testimonial-stars svg:nth-child(3) {
  animation-delay: 0.1s;
}

.testimonial-card:hover .testimonial-stars svg:nth-child(4) {
  animation-delay: 0.15s;
}

.testimonial-card:hover .testimonial-stars svg:nth-child(5) {
  animation-delay: 0.2s;
}

@keyframes starPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.testimonial-quote {
  font-size: 15px;
  font-weight: var(--font-light);
  font-style: italic;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  font-size: 15px;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 13px;
  font-weight: var(--font-regular);
  color: var(--text-muted);
}

/* ============================================
   CONTACT FORM SECTION
   ============================================ */

.contact {
  background-color: var(--bg-primary);
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-subtext {
  font-size: 16px;
  font-weight: var(--font-regular);
  color: var(--text-body);
  margin-top: 16px;
}

.contact-form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slower);
}

.contact-form-wrapper:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color var(--transition-base);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: var(--font-regular);
  color: var(--text-primary);
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition-slower);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #c8c8c8;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(13, 13, 13, 0.05);
  transform: translateY(-2px);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ============================================
   ABOUT PAGE - WHO WE ARE
   ============================================ */

.about-hero {
  background-color: var(--bg-primary);
  padding-top: 172px;
  padding-bottom: var(--section-padding);
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-heading {
  font-size: 52px;
  font-weight: var(--font-bold);
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.15;
}

.about-body {
  font-size: 17px;
  font-weight: var(--font-regular);
  color: var(--text-body);
  line-height: 1.9;
}

.about-body p+p {
  margin-top: 20px;
}

/* ============================================
   MISSION SECTION
   ============================================ */

.mission {
  background-color: var(--bg-primary);
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.mission-quote {
  font-size: 20px;
  font-weight: var(--font-light);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.9;
  margin-bottom: 32px;
  position: relative;
  padding-left: 24px;
  border-left: 4px solid var(--text-primary);
  text-align: left;
  transition: all var(--transition-slower);
}

.mission-quote:hover {
  padding-left: 32px;
  border-left-width: 6px;
}

.mission-attribution {
  text-align: left;
  padding-left: 28px;
}

.mission-author {
  font-size: 15px;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.mission-role {
  font-size: 13px;
  font-weight: var(--font-regular);
  color: var(--text-muted);
}

/* ============================================
   ORIGIN SECTION
   ============================================ */

.origin {
  background-color: var(--bg-primary);
}

.origin-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.origin-text {
  font-size: 17px;
  font-weight: var(--font-regular);
  color: var(--text-body);
  line-height: 1.9;
}

/* ============================================
   PORTFOLIO PAGE - PROJECTS LANDSCAPE
   ============================================ */

.projects {
  background-color: var(--bg-primary);
  padding-top: 172px;
}

.projects-header {
  text-align: center;
  margin-bottom: 60px;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card-landscape {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slower);
  position: relative;
  overflow: hidden;
}

.project-card-landscape::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--text-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-slower);
}

.project-card-landscape:hover {
  transform: translateX(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project-card-landscape:hover::before {
  transform: scaleY(1);
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-number {
  font-size: 13px;
  font-weight: var(--font-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.project-title {
  font-size: 24px;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.project-description {
  font-size: 15px;
  font-weight: var(--font-regular);
  color: var(--text-body);
  line-height: 1.7;
}

.project-metrics-landscape {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 24px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
}

.project-metric {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.project-metric:hover {
  background: var(--bg-white);
  transform: scale(1.05);
}

.project-metric-value {
  font-size: 32px;
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
  transition: transform var(--transition-base);
}

.project-metric:hover .project-metric-value {
  transform: scale(1.1);
}

.project-metric-label {
  font-size: 13px;
  font-weight: var(--font-regular);
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq {
  background-color: var(--bg-primary);
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: var(--font-medium);
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-base);
}

.faq-question:hover {
  color: var(--text-body);
  padding-left: 10px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  transition: all var(--transition-slower);
}

.faq-question:hover .faq-icon {
  background: var(--text-primary);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-primary);
  transition: all var(--transition-slower);
}

.faq-question:hover .faq-icon::before,
.faq-question:hover .faq-icon::after {
  background-color: var(--bg-white);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon {
  background: var(--text-primary);
  transform: rotate(180deg);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
  background-color: var(--bg-white);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding var(--transition-slower);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 24px;
}

.faq-answer-text {
  font-size: 15px;
  font-weight: var(--font-regular);
  color: var(--text-body);
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--bg-primary);
  color: var(--text-body);
  padding: 60px 0 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-brand-tagline {
  font-size: 13px;
  font-weight: var(--font-light);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-brand-description {
  font-size: 14px;
  font-weight: var(--font-regular);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-title {
  font-size: 14px;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  font-weight: var(--font-regular);
  color: var(--text-muted);
  transition: all var(--transition-base);
  display: inline-block;
}

.footer-link:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: var(--font-regular);
  color: var(--text-muted);
  line-height: 1.6;
  transition: all var(--transition-base);
}

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

.footer-contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform var(--transition-base);
}

.footer-contact-item:hover .footer-contact-icon {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
}

.footer-copyright {
  font-size: 13px;
  font-weight: var(--font-regular);
  color: var(--text-muted);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-scale.animated {
  opacity: 1;
  transform: scale(1);
}

.animate-fade {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade.animated {
  opacity: 1;
}

/* Stagger delays for children */
.stagger-children>*:nth-child(1) {
  transition-delay: 0s;
}

.stagger-children>*:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-children>*:nth-child(3) {
  transition-delay: 0.2s;
}

.stagger-children>*:nth-child(4) {
  transition-delay: 0.3s;
}

.stagger-children>*:nth-child(5) {
  transition-delay: 0.4s;
}

.stagger-children>*:nth-child(6) {
  transition-delay: 0.5s;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
  :root {
    --section-padding: 80px;
  }

  .hero-title {
    font-size: 56px;
  }

  .section-heading {
    font-size: 36px;
  }

  .about-heading {
    font-size: 42px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card {
    flex: 0 0 400px;
  }

  .project-card-landscape {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* Process journey responsive */
  .process-journey-line {
    left: 30px;
  }

  .process-step-journey {
    flex-direction: row !important;
    padding-left: 80px;
  }

  .process-step-content-journey {
    width: 100%;
    text-align: left !important;
  }

  .process-step-node {
    left: 30px;
    transform: translateX(-50%);
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  :root {
    --section-padding: 60px;
  }

  .header-inner {
    height: 64px;
  }

  .nav {
    display: none;
  }

  .header-cta .btn-secondary {
    display: none;
  }

  .hero {
    padding-top: 64px;
    min-height: auto;
    padding-bottom: 80px;
  }

  .hero-title {
    font-size: 24px;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .section-heading {
    font-size: 32px;
    margin-bottom: 36px;
  }

  .about-heading {
    font-size: 36px;
  }

  .services-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .achievement-number {
    font-size: 42px;
  }

  .testimonial-card {
    flex: 0 0 320px;
    padding: 28px;
  }

  .project-metrics-landscape {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mission-quote {
    font-size: 17px;
    padding-left: 16px;
  }

  .mission-attribution {
    padding-left: 20px;
  }

  .contact-form-wrapper {
    padding: 32px 24px;
  }

  .process-step-journey {
    padding-left: 60px;
  }

  .process-step-node {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}