:root {
  --navy: #0e1f33;
  --steel: #202b38;
  --graphite: #394251;
  --cloud: #f4f6f8;
  --accent: #f4a11a;
  --accent-dark: #c77906;
  --white: #ffffff;
  --text: #dbe4f2;
  --body: 'Barlow', 'Helvetica Neue', sans-serif;
  --heading: 'Rajdhani', 'Barlow', sans-serif;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body);
  background-color: var(--steel);
  color: var(--text);
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.75rem 5vw;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(14, 31, 51, 0.08);
}

.logo {
  font-family: var(--heading);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  justify-self: start;
}

.header-logo-container {
  width: 120px;
  height: 90px;
  min-width: 120px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  flex-shrink: 0;
  box-sizing: border-box;
}

.logo img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 120px;
  height: 90px;
  object-fit: contain;
}

.header-spacer {
  justify-self: end;
}

/* Desktop Navbar Styles - applies to screens wider than 768px */
.primary-nav {
  display: flex;
  gap: 4rem;
  font-size: 1.7rem;
  color: var(--navy);
  justify-content: center;
  justify-self: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 200;
  letter-spacing: 0.02em;
}

/* SEO keyword - visible to search engines but hidden visually */
.seo-keyword {
  display: none !important;
}

.primary-nav a {
  color: var(--navy);
  opacity: 0.75;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--accent);
  opacity: 1;
}

.nav-cta {
  background-color: var(--accent);
  color: var(--navy);
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 0 5vw 0 5vw;
  text-align: left;
  overflow: hidden;
  background-image: url('./hero1.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(14, 31, 51, 0.9), rgba(14, 31, 51, 0.4));
  z-index: -1;
}

.hero-content {
  max-width: 640px;
  text-align: center;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero .eyebrow {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.7rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
  letter-spacing: 0.15em;
  background-color: rgba(255, 255, 255, 0.45);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  display: inline-block;
  white-space: nowrap;
}

section {
  padding: 4rem 5vw;
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-copy {
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
}

.btn.primary {
  background-color: var(--accent);
  color: var(--steel);
}

.btn.primary:hover {
  background-color: var(--accent-dark);
}

.btn.ghost {
  border-color: var(--white);
}

.services {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.03) 50%, rgba(0, 0, 0, 0.01) 100%),
              radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
  background-color: var(--white);
  color: var(--navy);
  position: relative;
}

.services header {
  text-align: center;
  margin-bottom: 2rem;
}

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

.services h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.policy-header-line {
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: 0 auto;
  margin-top: 1.5rem;
}

.services h2,
.services h3,
.services h4 {
  color: var(--navy);
}

.services p {
  color: var(--navy);
  opacity: 0.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.service-grid article {
  background-color: rgba(14, 31, 51, 0.02);
  border: 1px solid rgba(14, 31, 51, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-grid article:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 31, 51, 0.1);
}

.service-grid article h3 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 1.3rem;
}

.service-grid article p {
  line-height: 1.7;
  flex-grow: 1;
}

/* Policy Cards Enhanced Styling */
.policy-card {
  position: relative;
  background-color: rgba(14, 31, 51, 0.02);
  border: 1px solid rgba(14, 31, 51, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(30px);
  overflow: hidden;
}

.policy-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: rgba(14, 31, 51, 0.15);
  transition: background-color 0.25s ease;
}

.policy-card.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.policy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(14, 31, 51, 0.15);
}

.policy-card:hover::before {
  background-color: rgba(14, 31, 51, 0.3);
}

.policy-icon {
  margin-bottom: 1.25rem;
  color: var(--navy);
  opacity: 0.6;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.policy-card:hover .policy-icon {
  opacity: 0.9;
  transform: scale(1.05);
}

.policy-card h3 {
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 1.3rem;
}

.policy-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--navy);
  opacity: 0.7;
  margin-bottom: 1.25rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

.policy-card p:not(.policy-subtitle) {
  line-height: 1.7;
  flex-grow: 1;
  color: var(--navy);
  opacity: 0.8;
}

.icon.circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(244, 161, 26, 0.15);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.projects {
  background-color: var(--steel);
  padding: 0;
}

.projects header {
  background: linear-gradient(135deg, var(--steel) 0%, rgba(244, 161, 26, 0.03) 100%);
  padding: 8rem 5vw 6rem 5vw;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
}

.projects header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--accent);
}

.projects h1 {
  color: var(--white);
  font-size: clamp(4rem, 8vw, 6rem);
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-family: 'Barlow', sans-serif;
  position: relative;
}

.projects-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6rem;
  max-width: 100%;
  margin: 0;
  width: 100%;
  padding: 6rem 5vw;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 3rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.project-image-left,
.project-image-right {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.project-image {
  width: 100%;
  height: 100%;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  border: 3px solid var(--accent);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-image:hover {
  border-color: var(--accent-dark);
  box-shadow: 0 8px 32px rgba(244, 161, 26, 0.3);
}

.project-image.image-placeholder {
  background-color: rgba(255, 255, 255, 0.1);
  background-image: none;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
  gap: 1.5rem;
}

.project-info h3 {
  color: var(--white);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-family: var(--heading);
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 1rem;
  line-height: 1.3;
  text-align: center;
}

.project-info h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.project-read-more-btn {
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--heading);
  display: block;
  margin: 0 auto 1rem auto;
}

.project-read-more-btn:hover {
  background-color: var(--accent);
  color: var(--white);
}

.project-info .project-details {
  display: flex;
  margin-top: 1.5rem;
  background-color: var(--steel);
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--white);
}

/* Ensure all text elements inside project-details are white */
.project-info .project-details p,
.project-info .project-details span,
.project-info .project-details div:not(.project-detail-divider):not(.phases-container):not(.phase-section),
.project-info .project-details strong,
.project-info .project-details em,
.project-info .project-details b,
.project-info .project-details i {
  color: var(--white) !important;
}

.project-info .project-details:not(:has(.project-detail-item)) {
  display: block;
  flex-direction: column;
  padding: 1.5rem;
  width: auto;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Specific styling for text-only project details */
#saudi-electricity-details,
#water-infrastructure-details {
  display: block;
  padding: 1.5rem !important;
  width: auto !important;
  max-width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background-color: var(--steel) !important;
  border: 2px solid var(--accent) !important;
  flex-direction: column !important;
}

.project-info .project-details:empty {
  display: none;
}

.project-info .project-details > p {
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 0 1rem 0;
  text-align: center;
  width: 100%;
  flex-basis: 100%;
  display: block;
}

.project-info .project-details:not(:has(.project-detail-item)) > p {
  margin: 0 0 0.75rem 0;
  max-width: 600px;
}

.project-info .project-details:not(:has(.project-detail-item)) > p:last-child {
  margin-bottom: 0;
}

/* Specific paragraph styling for text-only project details */
#saudi-electricity-details > p,
#water-infrastructure-details > p {
  margin: 0 0 0.75rem 0 !important;
  max-width: 600px !important;
  color: var(--white) !important;
  display: block !important;
  width: 100% !important;
}

#saudi-electricity-details > p:last-child,
#water-infrastructure-details > p:last-child {
  margin-bottom: 0 !important;
}

.project-info .project-details p:last-child {
  margin-bottom: 0;
}

.project-info .project-details p strong {
  color: var(--white);
  font-weight: 600;
  font-size: 1.2rem;
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-info .project-details p:first-child strong {
  margin-top: 0;
}

/* Override for phase sections - make titles white and centered */
.project-info .project-details .phases-container .phase-section p:first-child strong {
  color: var(--white) !important;
  text-align: center !important;
  margin-top: 0 !important;
}

.project-info .project-details .phases-container .phase-section p {
  color: var(--white) !important;
}

.project-info .project-details p:last-child {
  margin-bottom: 0;
}


.project-detail-item {
  display: flex;
  align-items: center;
}

.project-detail-item p {
  margin: 0;
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
}

.project-detail-item p strong {
  color: var(--white);
  font-weight: 600;
  display: inline;
}

.project-detail-divider {
  width: 2px;
  height: 40px;
  background-color: var(--accent);
  flex-shrink: 0;
}

.phases-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
  align-items: start;
}

.phase-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.phase-section p {
  margin: 0;
  text-align: center;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.6;
  width: 100%;
}

.project-info .project-details .phase-section p {
  color: var(--white) !important;
}

.project-info .project-details .phase-section p strong {
  color: var(--white) !important;
}

.project-info .project-details .phases-container .phase-section p {
  color: var(--white) !important;
}

.project-info .project-details .phases-container .phase-section p strong {
  color: var(--white) !important;
}

.phase-section p:first-child {
  margin-bottom: 0.5rem;
}

.phase-section p:first-child strong {
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--navy) !important;
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
  width: 100%;
}

.project-info .project-details .phase-section p:first-child strong {
  color: var(--white) !important;
}

.project-info .link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.project-info .link:hover {
  color: var(--white);
}

.project-card {
  position: relative;
  height: 550px;
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card.electrical-project,
.project-card.water-project {
  max-width: 450px;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.project-overlay {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
}

.project-overlay h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.link {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

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

.project-details {
  width: 100%;
  padding: 2rem;
  background-color: var(--white);
  border: 1px solid rgba(14, 31, 51, 0.1);
  border-radius: var(--radius);
  animation: fadeIn 0.3s ease-in;
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.project-details.show {
  display: flex;
}

.project-details p {
  color: var(--navy);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
  opacity: 0.85;
}

.project-gallery {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex: 0 0 auto;
  width: auto;
  height: 550px;
  align-items: stretch;
}

.gallery-item {
  width: 350px;
  height: 550px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(244, 161, 26, 0.4);
  z-index: 1;
}

/* Partners Section */
.partners-section {
  background-color: var(--steel);
  padding: 6rem 5vw;
}

.partners-section header {
  text-align: center;
  margin-bottom: 4rem;
}

.partners-section h2 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-family: 'Barlow', sans-serif;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.partner-logo-box:nth-child(13),
.partner-logo-box:nth-child(14),
.partner-logo-box:nth-child(15),
.partner-logo-box:nth-child(16) {
  grid-column: span 1;
  height: 150px;
  min-height: 150px;
  max-height: 150px;
}

@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .partner-logo-box:nth-child(13),
  .partner-logo-box:nth-child(14),
  .partner-logo-box:nth-child(15),
  .partner-logo-box:nth-child(16) {
    grid-column: span 1;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
  }
}

@media (max-width: 800px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.partner-logo-box {
  background-color: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  min-height: 150px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-logo-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(244, 161, 26, 0.3);
}

.partner-logo-box img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
}

.partner-logo-box:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* Ensure all partner logo boxes have consistent sizing */
.partner-logo-box:nth-child(13),
.partner-logo-box:nth-child(14),
.partner-logo-box:nth-child(15),
.partner-logo-box:nth-child(16) {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.partner-logo-box:nth-child(13) img,
.partner-logo-box:nth-child(14) img,
.partner-logo-box:nth-child(15) img,
.partner-logo-box:nth-child(16) img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mini-case {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: stretch;
  padding: 4rem 0;
}

.case-hero {
  background-image: url('https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=900&q=80');
  background-size: cover;
  background-position: center;
  border-radius: 0 var(--radius) var(--radius) 0;
  min-height: 420px;
}

.case-content {
  padding: 0 5vw;
}

.case-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.case-slider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.case-slider button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  cursor: pointer;
}

.slides {
  display: flex;
  gap: 0.75rem;
}

.slide {
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.slide.active {
  border: 2px solid var(--accent);
}

.testimonials {
  background-color: var(--graphite);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.testimonial-grid article {
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 160px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.site-footer {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(14, 31, 51, 0.08);
  padding: 2.5rem 5vw 1rem 5vw;
  max-width: 100%;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.footer-main-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-logo-section {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 1.5rem;
}

.footer-logo {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-info-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}

.footer-box {
  background-color: rgba(14, 31, 51, 0.02);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
}

.footer-line {
  width: 100%;
  height: 1px;
  background-color: var(--accent);
  margin: 0.75rem 0 1rem 0;
}

.footer-email,
.footer-phone {
  margin: 0;
  color: var(--navy);
  text-align: center;
  font-size: 0.9rem;
}

.footer-contact-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.footer-email a,
.footer-phone a {
  color: var(--navy);
  text-decoration: none;
}

.footer-email a:hover,
.footer-phone a:hover {
  color: var(--accent);
}

.footer-box h4 {
  margin-bottom: 0;
  font-size: 1rem;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
}

.footer-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--navy);
}

.footer-box ul li {
  color: var(--navy);
}

.footer-box ul li a {
  color: var(--navy);
  text-decoration: none;
}

.footer-box ul li a:hover {
  color: var(--accent);
}

.social {
  display: flex;
  gap: 0.75rem;
}

.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(14, 31, 51, 0.2);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--navy);
}

.legal {
  grid-column: 1 / -1;
  opacity: 0.7;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--navy);
  border-top: 1px solid rgba(14, 31, 51, 0.1);
}

.site-footer a {
  transition: color 0.2s ease;
  color: var(--navy);
}

.site-footer ul a:hover {
  color: var(--accent);
}

.hero-logo {
  height: 200px;
  width: auto;
  display: block;
  margin: 0 auto 2rem auto;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Loader Styles */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0.8s ease-out;
  visibility: visible;
}

.loader.hidden {
  opacity: 0;
  transform: translateY(-100%);
  visibility: hidden;
}

.loader-logo-container {
  width: 200px;
  height: 200px;
  min-width: 200px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  box-sizing: border-box;
}

.loader-logo {
  max-width: 100%;
  height: auto;
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  padding: 1.5rem;
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 1200px) {
  .projects-container {
    gap: 6rem;
  }
  
  .project-card {
    height: 550px;
  }
  
  .project-gallery {
    max-width: 700px;
    gap: 1.25rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .primary-nav {
    gap: 0.75rem;
    font-size: 0.85rem;
  }
  .mini-case {
    grid-template-columns: 1fr;
  }
  .case-hero {
    border-radius: var(--radius);
    margin: 0 5vw;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Center contracting services cards on tablet */
  .service-category:first-of-type {
    align-items: center;
  }
  
  .service-category:first-of-type .service-items-grid {
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }
  
  .service-category:first-of-type .service-item {
    width: calc((100% - 4rem) / 3);
    min-width: 280px;
    max-width: 350px;
  }
  
  .projects-container {
    gap: 4rem;
  }
  .project-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .project-image-left,
  .project-image-right {
    min-height: 400px;
  }
  
  .project-image {
    min-height: 400px;
  }
  
  .project-info {
    padding: 1.5rem 0;
    order: 1;
  }
  
  .project-image-left {
    order: 2;
  }
  
  .project-image-right {
    order: 3;
  }
}

/* Phone Navbar Styles - applies to screens 768px and smaller */
@media (max-width: 768px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    justify-items: center;
  }
  
  /* Add scroll offset for anchor links on mobile to account for sticky header */
  #why-fal,
  #about,
  #services-detailed,
  #projects,
  #services {
    scroll-margin-top: 120px;
  }
  
  .logo {
    justify-self: center;
    order: 1;
  }
  
  .logo img {
    height: 50px;
  }
  
  .primary-nav {
    flex-wrap: nowrap;
    justify-content: center;
    font-size: 1rem;
    gap: 0.8rem;
    order: 2;
    width: 100%;
    padding-right: 0;
    justify-self: center;
  }
  
  .primary-nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .header-spacer {
    display: none;
  }
  
  section {
    padding: 3rem 1.5rem;
  }
  
  .falqi-section {
    padding: 3rem 1.5rem 6rem 1.5rem;
    margin-bottom: 3rem;
    overflow: visible;
  }
  
  .falqi-content {
    height: auto;
    gap: 2rem;
    overflow: visible;
  }
  
  .falqi-sections-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    overflow: visible;
    display: grid;
  }
  
  /* Style boxes to match desktop on mobile */
  .falqi-positions-section,
  .falqi-contributions-section,
  .falqi-image-box,
  .mission-vision-item {
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  
  .falqi-image-box {
    order: 1;
    margin-bottom: 0;
  }
  
  .falqi-image-box img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .falqi-positions-section {
    order: 2;
    margin-bottom: 2rem;
  }
  
  .falqi-contributions-section {
    order: 3;
    margin-bottom: 2rem;
  }
  
  .mission-vision-item {
    order: 4;
    margin-bottom: 2rem;
  }
  
  .falqi-bio-section {
    margin-bottom: 2rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-detailed {
    margin-top: 3rem;
    position: relative;
  }
  
  .mission-vision-section {
    padding: 2rem 0 3rem 0;
    margin-top: 0;
  }
  
  .hero {
    min-height: 85vh;
  }
  
  .hero-content {
    padding: 3rem 1.5rem;
  }
  
  .projects-container {
    gap: 4rem;
    padding: 4rem 1.5rem;
  }
  
  .project-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-image-left,
  .project-image-right {
    min-height: 600px;
    height: auto;
  }
  
  .project-image {
    min-height: 600px;
    height: auto;
    background-size: contain;
    background-position: center center;
  }
  
  .project-info {
    padding: 1rem 0;
    order: 1;
  }
  
  .project-image-left {
    order: 2;
  }
  
  .project-image-right {
    order: 3;
  }
  
  .project-info h3 {
    font-size: 1.2rem;
  }
  
  .phases-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  
  .phase-section {
    width: 100%;
    align-items: center;
  }
  
  .phase-section p {
    text-align: center;
    width: 100%;
  }
  
  .phase-section p strong {
    text-align: center;
    width: 100%;
  }
  
  .falqi-header img {
    width: 180px;
  }
  
  .falqi-name {
    font-size: 1.8rem;
  }
  
  .company-intro-content {
    padding: 3rem 1.5rem;
  }
}

/* Small Phone Navbar Styles - applies to screens 520px and smaller (overrides 768px styles) */
@media (max-width: 520px) {
  .hero {
    text-align: center;
    min-height: 80vh;
  }
  
  .hero-content {
    align-items: center;
    padding: 2rem 1.5rem;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .projects-container {
    gap: 3rem;
    padding: 3rem 1.5rem;
  }
  
  .project-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-image-left,
  .project-image-right {
    min-height: 550px;
    height: auto;
  }
  
  .project-image {
    min-height: 550px;
    height: auto;
    background-size: contain;
    background-position: center center;
  }
  
  .project-info {
    padding: 1rem 0;
    order: 1;
  }
  
  .project-image-left {
    order: 2;
  }
  
  .project-image-right {
    order: 3;
  }
  
  .project-info h3 {
    font-size: 1.1rem;
  }
  
  .header-logo-container {
    width: 60px;
    height: 45px;
    min-width: 60px;
    min-height: 45px;
  }
  
  .logo img {
    width: 60px;
    height: 45px;
  }
  
  .primary-nav {
    font-size: 1rem;
    gap: 0.7rem;
    padding-left: 0;
    justify-self: start;
  }
  
  .site-header {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    justify-items: center;
  }
  
  /* Add scroll offset for anchor links on smaller phones */
  #why-fal,
  #about,
  #services-detailed,
  #projects,
  #services {
    scroll-margin-top: 100px;
  }
  
  .logo {
    justify-self: center;
    order: 1;
  }
  
  .primary-nav {
    justify-content: center;
  }
  
  .falqi-section {
    padding: 2.5rem 1rem 6rem 1rem;
    margin-bottom: 3rem;
    overflow: visible;
  }
  
  .falqi-content {
    height: auto;
    gap: 2rem;
    overflow: visible;
  }
  
  .falqi-sections-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    overflow: visible;
    display: grid;
  }
  
  /* Style boxes to match desktop on mobile */
  .falqi-positions-section,
  .falqi-contributions-section,
  .falqi-image-box,
  .mission-vision-item {
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  
  .falqi-image-box {
    order: 1;
    margin-bottom: 0;
  }
  
  .falqi-image-box img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .falqi-positions-section {
    order: 2;
    margin-bottom: 2rem;
  }
  
  .falqi-contributions-section {
    order: 3;
    margin-bottom: 2rem;
  }
  
  .mission-vision-item {
    order: 4;
    margin-bottom: 2rem;
  }
  
  .falqi-bio-section {
    margin-bottom: 2rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-detailed {
    margin-top: 3rem;
    position: relative;
  }
  
  .mission-vision-section {
    padding: 2rem 0 3rem 0;
    margin-top: 0;
  }
  
  .header-spacer {
    display: none;
  }
  
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stats-grid .stat-card:nth-child(5),
  .stats-grid .stat-card:nth-child(6) {
    grid-column: auto;
  }
  
  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .equipment-grid .equipment-card:nth-child(n) {
    grid-column: auto !important;
  }
  
  /* Industrial Plants - each box on its own like Our Impact in Numbers */
  .why-fal-plants .equipment-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: stretch;
  }
  
  .why-fal-plants .equipment-grid .equipment-card {
    max-width: 100%;
    width: 100%;
  }
  
  /* Center Cranes (final box) at the bottom on mobile */
  .why-fal-equipment .equipment-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: stretch;
  }
  
  .why-fal-equipment .equipment-grid .equipment-card:nth-child(11) {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .why-fal-section header {
    padding: 4rem 1.5rem 3rem 1.5rem;
  }
  
  .why-fal-section header h1 {
    font-size: 2.5rem;
  }
  
  .why-fal-content {
    padding: 2rem 1.5rem;
  }
  
  .why-fal-container {
    padding: 2rem 1.5rem;
  }
  
  .project-main {
    align-items: center;
    width: 100%;
    max-width: 100%;
  }
  
  .project-card {
    height: 350px;
    max-width: 100%;
  }
  
  .project-details {
    width: 100%;
  }
  
  .project-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    height: 350px;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* Company Introduction Section */
.company-intro-section {
  position: relative;
  padding: 0;
  min-height: 60vh;
  background-color: var(--white);
  color: var(--navy);
  background-image: url('./falu2 copy.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.company-intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 0;
}

.company-intro-section header {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--white) 0%, rgba(244, 161, 26, 0.03) 100%);
  padding: 8rem 5vw 6rem 5vw;
  text-align: center;
  border-bottom: 1px solid rgba(14, 31, 51, 0.08);
}

.company-intro-section header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--accent);
}

.company-intro-section header h1 {
  color: var(--navy);
  font-size: clamp(4rem, 8vw, 6rem);
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-family: 'Barlow', sans-serif;
  position: relative;
}

.company-intro-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 5vw;
  text-align: center;
}

.company-intro-text {
  font-size: 1.35rem;
  line-height: 1.9;
  color: var(--navy);
  opacity: 0.9;
  max-width: 900px;
  margin: 0 auto;
}

/* Falqi Section */
.falqi-section {
  position: relative;
  padding: 4rem 5vw 8rem 5vw;
  background-color: var(--white);
  background-image: url('./faly.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  margin-bottom: 0;
}

.falqi-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 0;
}

.falqi-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}


.falqi-top-content {
  margin-bottom: 3rem;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.falqi-meet-title {
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  margin-top: 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-family: var(--heading);
  text-align: center;
}

.falqi-bio {
  color: var(--navy);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
  opacity: 0.85;
  text-align: center;
  max-width: 100%;
  width: 100%;
}


.falqi-bio {
  color: var(--navy);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
  opacity: 0.85;
}

.falqi-image-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: start;
}

.falqi-image-wrapper img {
  width: 100%;
  max-width: 400px;
  height: 550px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.falqi-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.falqi-header img {
  width: 250px;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.falqi-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
}


.falqi-name {
  color: var(--navy);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-family: var(--heading);
  line-height: 1.2;
  text-align: center;
}

.falqi-bio-section,
.falqi-positions-section,
.falqi-contributions-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  align-items: center;
}

.falqi-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.falqi-image-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.falqi-image-box img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.mission-vision-item {
  display: flex;
  flex-direction: column;
}




.falqi-section-title {
  color: var(--navy);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-family: var(--heading);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.75rem;
  display: block;
  text-align: center;
  width: 100%;
}

.falqi-section-title-long {
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.falqi-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--navy);
  opacity: 0.9;
  margin: 0;
  font-weight: 400;
  text-align: center;
}

.falqi-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  width: 100%;
}

.falqi-list li {
  padding: 0.75rem 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--navy);
  opacity: 0.85;
  text-align: center;
  width: 100%;
  border-bottom: 1px solid rgba(244, 161, 26, 0.3);
  transition: opacity 0.3s ease;
}

.falqi-list li:last-child {
  border-bottom: none;
}

.falqi-list-item-hidden {
  display: none;
}

.falqi-list-item-hidden.show {
  display: list-item;
}

.falqi-read-more-btn {
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--heading);
  align-self: center;
  margin-top: auto;
}

.falqi-read-more-btn {
  margin-top: auto;
  align-self: center;
}

.falqi-read-more-btn:hover {
  background-color: var(--accent);
  color: var(--white);
}

.center-word {
  display: block;
  text-align: center;
}

.falqi-list li:hover {
  opacity: 1;
  border-bottom-color: var(--accent);
}


/* Mission & Vision Section */
.mission-vision-section {
  position: relative;
  padding: 2rem 0 3rem 0;
  background-color: var(--white);
  background-image: url('./falu2 copy.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mission-vision-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 0;
}

.mission-vision-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 5vw;
}


.mission-vision-item h2 {
  color: var(--navy);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 1rem;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-family: var(--heading);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.75rem;
  text-align: center;
}

.mission-vision-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--navy);
  opacity: 0.85;
  margin: 0;
  font-weight: 400;
  text-align: center;
}

.mission-vision-item p:first-of-type {
  margin-bottom: 1rem;
}

.falqi-section {
  overflow: visible; /* allow the content to grow and push the next section down */
  margin-bottom: 0;
}

.services-detailed {
  margin-top: 0;
  padding-top: 0;
}

.falqi-content {
  height: auto;      /* remove the fixed 550px height */
}

/* Services Detailed Section */
.services-detailed {
  padding: 0;
  background-color: var(--white);
  position: relative;
  margin-top: 0;
}

.services-detailed header {
  background: linear-gradient(135deg, var(--white) 0%, rgba(244, 161, 26, 0.03) 100%);
  padding: 8rem 5vw 6rem 5vw;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(14, 31, 51, 0.08);
}

.services-detailed header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--accent);
}

.services-detailed h1 {
  color: var(--navy);
  font-size: clamp(4rem, 8vw, 6rem);
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-family: 'Barlow', sans-serif;
  position: relative;
}

.services-detailed .services-content {
  padding: 6rem 5vw 8rem 5vw;
}

.services-categories {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7rem;
  padding-top: 0;
}

.service-category {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  position: relative;
}

.service-category:nth-child(even) {
  padding-left: 2rem;
}

.service-category:nth-child(odd) {
  padding-right: 2rem;
}

.service-category:first-of-type {
  padding-left: 0;
  padding-right: 0;
}

.category-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 auto 2rem auto;
  text-align: center;
  position: relative;
  padding-bottom: 1.5rem;
  width: 100%;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.service-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  position: relative;
}

.service-category:first-of-type .service-items-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin: 0 auto;
}

.service-category:first-of-type .service-item {
  flex: 0 0 auto;
  width: calc((100% - 4rem) / 4);
  min-width: 280px;
  max-width: 380px;
}

.service-category:first-of-type .service-image-placeholder {
  height: 320px;
  padding: 0;
}

.service-category:first-of-type .service-content {
  padding: 2.5rem;
  gap: 1.25rem;
}

.service-category:first-of-type .service-content h4 {
  font-size: 1.3rem;
}

.service-category:first-of-type .service-content p {
  font-size: 1rem;
}

.service-category:nth-of-type(2) .service-items-grid,
.service-category:nth-of-type(3) .service-items-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  background-color: var(--white);
  border: 2px solid var(--navy);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(244, 161, 26, 0.15);
  position: relative;
}

.service-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.service-item::after {
  display: none;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(244, 161, 26, 0.25);
  border-color: var(--navy);
}

.service-item:hover::before {
  opacity: 0.1;
}

.service-image-placeholder {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, rgba(244, 161, 26, 0.08), rgba(14, 31, 51, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0.75rem;
}

.service-image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(244, 161, 26, 0.15), rgba(14, 31, 51, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-item:hover .service-image-placeholder::before {
  opacity: 1;
}

.service-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-category:first-of-type .service-image-placeholder img {
  object-fit: cover;
}

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

.service-image-placeholder:empty::after {
  content: '📷';
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.service-icon {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, rgba(244, 161, 26, 0.1), rgba(14, 31, 51, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-item:hover .service-icon {
  background: linear-gradient(135deg, rgba(244, 161, 26, 0.15), rgba(14, 31, 51, 0.08));
  transform: scale(1.02);
}

.service-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
  background: var(--white);
}

.service-content h4 {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.service-item:hover .service-content h4 {
  color: var(--accent);
}

.service-content p {
  color: var(--navy);
  opacity: 0.75;
  line-height: 1.7;
  margin: 0;
  font-size: 0.85rem;
  flex-grow: 1;
  font-weight: 400;
}

/* Medium tablet breakpoint for falqi grid */
@media (max-width: 1200px) and (min-width: 1025px) {
  .falqi-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
  }
  
  .falqi-positions-section {
    order: 2;
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }
  
  .falqi-contributions-section {
    order: 3;
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }
  
  .falqi-image-box {
    grid-column: 1 / -1;
    order: 1;
    max-width: 400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .falqi-image-box img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .mission-vision-item {
    grid-column: 1 / -1;
    order: 4;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }
}

/* Breakpoint for 992px-1024px to ensure boxes are visible */
@media (max-width: 1024px) and (min-width: 992px) {
  .falqi-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
  }
  
  .falqi-positions-section {
    order: 2;
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }
  
  .falqi-contributions-section {
    order: 3;
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }
  
  .falqi-image-box {
    grid-column: 1 / -1;
    order: 1;
    max-width: 400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .falqi-image-box img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .mission-vision-item {
    grid-column: 1 / -1;
    order: 4;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }
}

@media (max-width: 1024px) {
  .falqi-header {
    flex-direction: column;
    gap: 2rem;
  }
  
  .falqi-header img {
    width: 200px;
  }
  
  .falqi-info-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .falqi-bio {
    flex: 1;
    max-width: 100%;
    text-align: center;
  }
  
  .falqi-info-row .falqi-image-wrapper img {
    max-width: 250px;
  }
  
  .falqi-content {
    gap: 2.5rem;
  }
  
  .falqi-sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .falqi-positions-section,
  .falqi-contributions-section,
  .falqi-image-box,
  .mission-vision-item {
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
  }
  
  .falqi-image-box {
    order: 1;
    height: auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .falqi-image-box img {
    max-height: 400px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .falqi-positions-section {
    order: 2;
    justify-content: space-between;
  }
  
  .falqi-contributions-section {
    order: 3;
    justify-content: space-between;
  }
  
  .mission-vision-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .mission-vision-item {
    padding: 2.5rem;
    order: 4;
  }
  
  .footer-main-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-logo-section {
    align-items: center;
    justify-content: center;
  }
  
  .footer-logo {
    height: 60px;
  }
  
  .footer-info-boxes {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-items-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-category:first-of-type {
    align-items: center;
  }
  
  .service-category:first-of-type .service-items-grid {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }
  
  .service-category:first-of-type .service-item {
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }
  
  .service-category:nth-of-type(2) .service-items-grid,
  .service-category:nth-of-type(3) .service-items-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-box {
    text-align: center;
  }
  
  .footer-box h4 {
    text-align: center;
  }
  
  .footer-box ul {
    text-align: center;
  }
  
  .footer-email,
  .footer-phone {
    text-align: center;
  }
  
  .services-detailed header {
    padding: 6rem 5vw 4rem 5vw;
    margin-bottom: 0;
  }
  
  .projects header {
    padding: 6rem 5vw 4rem 5vw;
  }
  
  .projects-container {
    padding: 4rem 5vw;
  }
  
  .company-intro-section header {
    padding: 6rem 5vw 4rem 5vw;
  }
  
  .company-intro-content {
    padding: 4rem 5vw 6rem 5vw;
  }
  
  .services-detailed .services-content {
    padding: 4rem 5vw 6rem 5vw;
  }
  
  .services-categories {
    gap: 5rem;
  }
  
  .service-category:nth-child(even),
  .service-category:nth-child(odd) {
    padding-left: 0;
    padding-right: 0;
  }
  
  .service-items-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-category:first-of-type {
    align-items: center;
  }
  
  .service-category:first-of-type .service-items-grid {
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }
  
  .service-category:first-of-type .service-item {
    width: calc((100% - 2rem) / 2);
    min-width: 320px;
    max-width: 450px;
  }
  
  .service-category:first-of-type .service-image-placeholder {
    height: 250px;
  }
  
  .service-image-placeholder {
    height: 120px;
    padding: 0.75rem;
  }
}

@media (max-width: 768px) {
  .services-detailed header {
    padding: 5rem 1.5rem 4rem 1.5rem;
    margin-bottom: 0;
  }
  
  .projects header {
    padding: 5rem 1.5rem 4rem 1.5rem;
  }
  
  .projects-container {
    padding: 4rem 1.5rem;
  }
  
  .company-intro-section header {
    padding: 5rem 1.5rem 4rem 1.5rem;
  }
  
  .company-intro-content {
    padding: 4rem 1.5rem 5rem 1.5rem;
  }
  
  .services-detailed .services-content {
    padding: 4rem 1.5rem 5rem 1.5rem;
  }
  
  .services-categories {
    gap: 4rem;
  }
  
  .service-category {
    gap: 2.5rem;
  }
  
  .category-title {
    font-size: 1.4rem;
  }
  
  .service-items-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-category:first-of-type {
    align-items: center;
  }
  
  .service-category:first-of-type .service-items-grid {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }
  
  .service-category:first-of-type .service-item {
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }
  
  .service-category:first-of-type .service-image-placeholder {
    height: 200px;
  }
  
  .service-category:nth-of-type(2) .service-items-grid,
  .service-category:nth-of-type(3) .service-items-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-content {
    padding: 1.5rem;
  }
  
  .service-content h4 {
    font-size: 1.1rem;
  }
  
  .service-image-placeholder {
    height: 100px;
    padding: 0.5rem;
  }
  
  .footer-logo {
    height: 40px;
  }
  
  .logo img {
    height: 60px;
  }
  
  .site-header {
    padding: 0.5rem 1.5rem;
  }
}

/* Why FAL Section Styles */
.why-fal-section {
  background-color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.why-fal-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url('./high1.jpg'),
    url('./high2.jpg'),
    url('./high3.jpg'),
    url('./exca.JPG'),
    url('./high4.jpeg');
  background-size: 
    800px auto,
    750px auto,
    780px auto,
    720px auto,
    760px auto;
  background-position: 
    90% 15%,
    5% 35%,
    85% 60%,
    8% 80%,
    92% 95%;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.why-fal-section header {
  background: linear-gradient(135deg, var(--white) 0%, rgba(244, 161, 26, 0.03) 100%);
  padding: 8rem 5vw 6rem 5vw;
  text-align: center;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(14, 31, 51, 0.08);
}

.why-fal-section header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--accent);
}

.why-fal-section header h1 {
  color: var(--navy);
  font-size: clamp(4rem, 8vw, 6rem);
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-family: 'Barlow', sans-serif;
  position: relative;
}

.why-fal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 5vw;
  text-align: center;
  position: relative;
  z-index: 1;
}

.why-fal-subheadline {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  opacity: 1;
}

.why-fal-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--navy);
  opacity: 0.85;
  margin-bottom: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.why-fal-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
  text-align: center;
}

.why-fal-stats,
.why-fal-plants,
.why-fal-equipment {
  padding: 6rem 0;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .why-fal-section header {
    padding: 6rem 5vw 4rem 5vw;
  }
  
  .why-fal-content {
    padding: 4rem 5vw 6rem 5vw;
  }
  
  .why-fal-section::before {
    background-size: 
      600px auto,
      580px auto,
      600px auto,
      550px auto,
      580px auto;
    opacity: 0.12;
  }
}

@media (max-width: 768px) {
  .why-fal-section header {
    padding: 5rem 1.5rem 4rem 1.5rem;
  }
  
  .why-fal-content {
    padding: 4rem 1.5rem 5rem 1.5rem;
  }
  
  .why-fal-section::before {
    background-size: 
      400px auto,
      380px auto,
      400px auto,
      350px auto,
      380px auto;
    opacity: 0.10;
  }
}

.why-fal-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  font-family: var(--heading);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.why-fal-section-intro {
  font-size: 1.1rem;
  color: var(--navy);
  text-align: center;
  opacity: 0.8;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  justify-items: center;
}

.stats-grid .stat-card:nth-child(5) {
  grid-column: 2;
}

.stats-grid .stat-card:nth-child(6) {
  grid-column: 3;
}

.stats-grid .stat-card:nth-child(7) {
  grid-column: 4;
}

.stat-card {
  background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(244, 161, 26, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(244, 161, 26, 0.5) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-card.visible::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(244, 161, 26, 0.15);
  border-color: rgba(244, 161, 26, 0.3);
}


.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  font-family: var(--heading);
  margin-bottom: 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1.05rem;
  color: var(--navy);
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.equipment-grid .equipment-card:nth-child(1),
.equipment-grid .equipment-card:nth-child(2),
.equipment-grid .equipment-card:nth-child(3) {
  grid-column: span 1;
}

.equipment-grid .equipment-card:nth-child(1) {
  grid-column: 2;
}

.equipment-grid .equipment-card:nth-child(2) {
  grid-column: 3;
}

.equipment-grid .equipment-card:nth-child(3) {
  grid-column: 4;
}

.equipment-grid .equipment-card:nth-child(4),
.equipment-grid .equipment-card:nth-child(5),
.equipment-grid .equipment-card:nth-child(6) {
  grid-column: span 1;
}

.equipment-grid .equipment-card:nth-child(4) {
  grid-column: 2;
}

.equipment-grid .equipment-card:nth-child(5) {
  grid-column: 3;
}

.equipment-grid .equipment-card:nth-child(6) {
  grid-column: 4;
}

.equipment-grid .equipment-card:nth-child(7) {
  grid-column: 1;
}

.equipment-grid .equipment-card:nth-child(8) {
  grid-column: 2;
}

.equipment-grid .equipment-card:nth-child(9) {
  grid-column: 3;
}

.equipment-grid .equipment-card:nth-child(10) {
  grid-column: 4;
}

.equipment-grid .equipment-card:nth-child(11) {
  grid-column: 5;
}

.equipment-grid .equipment-card {
  max-width: 240px;
  width: 100%;
}

.equipment-card {
  background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(244, 161, 26, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
}

.equipment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(244, 161, 26, 0.5) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.equipment-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.equipment-card.visible::before {
  transform: scaleX(1);
}

.equipment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(244, 161, 26, 0.15);
  border-color: rgba(244, 161, 26, 0.3);
}

.equipment-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.equipment-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  font-family: var(--heading);
  margin-bottom: 0.65rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.equipment-label {
  font-size: 0.95rem;
  color: var(--navy);
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.featured-equipment-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
}

.featured-equipment-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.featured-equipment-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-equipment-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.featured-equipment-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-equipment-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy);
  font-family: var(--heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.featured-equipment-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--navy);
  opacity: 0.85;
  margin: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-card {
    padding: 2.5rem 2rem;
  }
  
  .equipment-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .equipment-grid .equipment-card:nth-child(n) {
    grid-column: auto !important;
  }
  
  .equipment-grid .equipment-card {
    max-width: 100%;
  }
  
  .equipment-card {
    padding: 2.5rem 2rem;
  }
  
  .featured-equipment-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .why-fal-hero {
    padding: 6rem 5vw 4rem 5vw;
  }
  
  .why-fal-stats,
  .why-fal-plants,
  .why-fal-equipment,
  .why-fal-featured {
    padding: 4rem 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stats-grid .stat-card:nth-child(5),
  .stats-grid .stat-card:nth-child(6),
  .stats-grid .stat-card:nth-child(7) {
    grid-column: auto;
  }
  
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .equipment-grid .equipment-card:nth-child(n) {
    grid-column: auto !important;
  }
  
  .equipment-grid .equipment-card {
    max-width: 100%;
  }
  
  .stat-card,
  .equipment-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 520px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }
  
  /* Industrial Plants - each box on its own like Our Impact in Numbers */
  .why-fal-plants .equipment-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: stretch;
  }
  
  .why-fal-plants .equipment-grid .equipment-card {
    max-width: 100%;
    width: 100%;
  }
  
  /* Center Cranes (final box) at the bottom on mobile */
  .why-fal-equipment .equipment-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: stretch;
  }
  
  .why-fal-equipment .equipment-grid .equipment-card:nth-child(11) {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .why-fal-badges {
    flex-direction: column;
    align-items: center;
  }
  
  .badge {
    width: 100%;
    max-width: 300px;
  }
}

/* Desktop About Us Section - min-width: 992px */
@media (min-width: 992px) {
  .falqi-sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
  }

  .falqi-positions-section,
  .falqi-contributions-section {
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }

  .falqi-image-box {
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
  }

  .falqi-image-box img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .mission-vision-item {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    max-width: 100%;
    grid-row: 2;
    grid-column: 1 / span 3;
  }
}


