/* ============================================
   ASM Dubai - Modern UI Styles
   ============================================ */

:root {
  /* Colors - industrial / welding theme */
  --color-bg: #0a0e14;
  --color-bg-elevated: #111820;
  --color-surface: #161d28;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #e6edf3;
  --color-text-muted: #8b949e;
  --color-accent: #2563eb;
  --color-accent-hover: #dc2626;
  --color-accent-soft: rgba(37, 99, 235, 0.15);
  
  /* Logo colors - red, blue, white */
  --logo-red: #dc2626;
  --logo-blue: #2563eb;
  --logo-white: #ffffff;
  --color-white: #ffffff;
  

  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --container: min(90vw, 1200px);
  --section-padding: clamp(4rem, 10vw, 8rem);
  --section-gap: clamp(1.5rem, 4vw, 3rem);
  --header-height: 88px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.35s;
}

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

html {
  scroll-behavior: smooth;
}

/* Smooth scroll: prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll on mobile */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Touch-friendly tap targets */
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
}

/* Improve button touch targets on mobile */
@media (max-width: 768px) {
  .btn {
    min-height: 44px; /* iOS recommended touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Page transition: fade out when leaving */
body.page-transition-out main {
  opacity: 0;
  transition: opacity 0.28s ease-out;
}
body.page-transition-out .header {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

/* 3D spinner overlay when navigating to next page */
.page-load-spinner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 20, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}
body.page-transition-out .page-load-spinner {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-load-spinner__inner {
  width: 56px;
  height: 56px;
  position: relative;
  perspective: 140px;
  transform-style: preserve-3d;
}

.page-load-spinner__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--color-accent);
  border-right-color: rgba(37, 99, 235, 0.5);
  transform-style: preserve-3d;
  animation: page-spinner-3d-1 1s linear infinite;
}
.page-load-spinner__ring--1 {
  transform: rotateX(65deg) rotateZ(0deg);
}
.page-load-spinner__ring--2 {
  transform: rotateY(65deg) rotateZ(0deg);
  animation-name: page-spinner-3d-2;
  animation-duration: 1.2s;
  animation-direction: reverse;
}

@keyframes page-spinner-3d-1 {
  to {
    transform: rotateX(65deg) rotateZ(360deg);
  }
}
@keyframes page-spinner-3d-2 {
  to {
    transform: rotateY(65deg) rotateZ(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-load-spinner__ring {
    animation: none;
    border-top-color: var(--color-accent);
    border-right-color: var(--color-accent);
    opacity: 0.9;
  }
  .page-load-spinner__ring--1 {
    transform: rotateX(65deg);
  }
  .page-load-spinner__ring--2 {
    transform: rotateY(65deg);
  }
}

/* Page transition: fade in when page loads */
body.page-transition-in main,
body.page-transition-in .footer {
  opacity: 0;
}
main,
.footer {
  transition: opacity 0.35s ease-out;
}
body:not(.page-transition-in) main,
body:not(.page-transition-in) .footer {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  body.page-transition-out main,
  body.page-transition-out .header { transition-duration: 0.05s; }
  main,
  .footer { transition-duration: 0.08s; }
}

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

/* Focus and cursor: visible focus for keyboard, subtle cursor */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  :focus-visible {
    outline-offset: 3px;
  }
}
a:hover,
button:hover:not(:disabled) {
  cursor: pointer;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.header.scrolled {
  background: rgba(10, 14, 20, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-white);
  transition: opacity 0.3s ease;
}

.nav__logo:hover {
  opacity: 1;
}

.logo-icon {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.3s ease;
  opacity: 1;
}

.nav__logo:hover .logo-icon,
.footer__logo:hover .logo-icon {
  transform: scale(1.05);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease-out);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--duration) var(--ease-out);
}

.nav__link:hover {
  color: var(--color-white);
}

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

.nav__link--active {
  color: var(--color-white);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.nav__cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%) translateZ(0);
  backface-visibility: hidden;
  pointer-events: none;

  /* PERFORMANCE BOOST */
  will-change: transform;
  image-rendering: auto;
}

/* overlay for readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.4) 0%, rgba(10, 14, 20, 0.85) 70%, var(--color-bg) 100%);
  z-index: 1;
}



.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--color-white);
}

.hero__title .highlight {
  color: var(--color-accent);
  position: relative;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
  border: 2px solid transparent;
}

.btn--primary {
  background: linear-gradient(135deg, var(--logo-blue) 0%, var(--logo-red) 100%);
  color: var(--logo-white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--logo-red) 0%, var(--logo-blue) 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.btn__spinner {
  display: none;
  width: 1.1em;
  height: 1.1em;
  margin-left: 0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
.btn--loading .btn__spinner {
  display: inline-block;
}
.btn--loading .btn__text {
  opacity: 0.9;
}
@media (prefers-reduced-motion: reduce) {
  .btn__spinner {
    animation: none;
    border-right-color: currentColor;
    opacity: 0.8;
  }
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(37, 99, 235, 0.5);
}

.btn--outline:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--logo-blue);
  color: #60a5fa;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn--large {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

.btn--full {
  width: 100%;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  border-radius: 2px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Reveal animations - initial state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Typewriter effect ----- */
.typewriter-line {
  display: inline;
}

.typewriter-char {
  opacity: 0;
  animation: typewriter-char 0.12s ease-out forwards;
}

@keyframes typewriter-char {
  to {
    opacity: 1;
  }
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: -0.15em;
  opacity: 0;
  animation: typewriter-cursor-show 0.05s forwards, typewriter-blink 0.7s step-end infinite;
}

@keyframes typewriter-cursor-show {
  to {
    opacity: 1;
  }
}

@keyframes typewriter-blink {
  50% {
    opacity: 0;
  }
}

/* ----- Jump / bounce effect for containers ----- */
.reveal.visible.animate-jump {
  transition: none;
  animation: jump-in 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes jump-in {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal.visible.animate-jump {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Sections common
   ============================================ */

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

/* Clear visual gap between consecutive sections */
.section + .section {
  margin-top: var(--section-gap);
}

/* Scroll margin for fixed header anchor links */
[id] {
  scroll-margin-top: calc(var(--header-height) + 0.5rem);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* Readable line length for paragraphs */
.section__header .section__subtitle,
.section p,
.about__content p,
.video-section__content p,
.video-full__content p {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}
.section__header .section__subtitle { margin-left: auto; margin-right: auto; }
.about__content p { margin-left: 0; margin-right: 0; }
.video-section__content p,
.video-full__content p { margin-left: 0; margin-right: 0; }

.section__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  color: var(--color-white);
  line-height: 1.2;
}

.section__title--light {
  color: var(--color-white);
}

.section__subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  font-weight: 400;
}

/* ============================================
   Services Grid
   ============================================ */

.services {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}

.services__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/images/Service3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.services__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10, 14, 20, 0.9) 0%, rgba(10, 14, 20, 0.85) 100%);
}

.services__inner {
  position: relative;
  z-index: 2;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.service-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--color-white);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================
   Services Detail – single smooth background per section
   ============================================ */

.services-detail--single-bg {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.services-detail--single-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--logo-blue), var(--logo-red));
  z-index: 2;
}

.services-detail__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.services-detail__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 20, 0.55) 0%,
    rgba(10, 14, 20, 0.78) 40%,
    rgba(10, 14, 20, 0.92) 100%
  );
  pointer-events: none;
}

.services-detail__content {
  position: relative;
  z-index: 2;
}

.services-detail__content-inner {
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.services__grid--detail {
  counter-reset: service-num;
}

.services__grid--detail .service-card {
  counter-increment: service-num;
  background: rgba(22, 29, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--color-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.services__grid--detail .service-card:hover {
  border-left-color: var(--color-accent-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.services__grid--detail .service-card h3::before {
  content: counter(service-num) '. ';
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 0.25rem;
}

/* ============================================
   About Section
   ============================================ */

.about {
  background: var(--color-bg-elevated);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__content .section__title {
  text-align: left;
  margin-bottom: 1.25rem;
}

.about__content .section__badge {
  margin-bottom: 1rem;
}

.about__content p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  font-size: 0.9875rem;
}

.about__list {
  margin-bottom: 2rem;
}

.about__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.about__list--checkmarks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem 2rem;
}

.about__list--checkmarks li::before {
  content: '✓';
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.video-full__content .about__list--checkmarks li {
  color: rgba(255, 255, 255, 0.95);
  padding-left: 1.5rem;
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.about__card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateX(8px);
}

.about__stat {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.about__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.about__suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.about__card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ============================================
   Testimonials
   ============================================ */

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

.testimonials__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.testimonials.bg-loaded .testimonials__bg {
  background-image: url("assets/images/Testimonials.jpg");
}

.testimonials__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10, 14, 20, 0.88) 0%, rgba(10, 14, 20, 0.82) 100%);
}

.testimonials__inner {
  position: relative;
  z-index: 2;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  margin: 0;
}

.testimonial-card p {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-card cite {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: normal;
}

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

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

.faq__list {
  max-width: 720px;
  margin: 2rem auto 0;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-surface);
}

.faq__item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  float: right;
  color: var(--color-accent);
  font-weight: 700;
}

.faq__item[open] summary::after {
  content: '−';
}

.faq__item p {
  padding: 1rem 1.5rem 1.25rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid var(--color-border);
}

/* ============================================
   Projects / CTA Section
   ============================================ */

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

.projects__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-elevated) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.projects.bg-loaded .projects__bg {
  background-image: url("assets/images/Contract.jpg");
}

.projects__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.55) 0%, rgba(10, 14, 20, 0.82) 100%),
              radial-gradient(ellipse 70% 60% at 50% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
}

.projects__content {
  position: relative;
  z-index: 1;
}

.projects__content .section__title {
  margin-bottom: 1rem;
}

.projects__text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact.bg-loaded .contact__bg {
  background-image: url("assets/images/Contact.jpg");
}

.contact__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10, 14, 20, 0.92) 0%, rgba(10, 14, 20, 0.88) 100%);
}

.contact__inner {
  position: relative;
  z-index: 2;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.contact__map {
  flex: 1;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.contact__map-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent) !important;
  transition: color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.contact__map-link:hover {
  color: var(--color-accent-hover) !important;
  transform: translateX(4px);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color var(--duration) var(--ease-out);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form__group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form success/error feedback (contact form → submit.php) */
.form-feedback {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-feedback--success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.form-feedback--error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}


.contact__block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.contact__block p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.contact__block a {
  color: var(--color-accent);
  transition: color var(--duration) var(--ease-out);
}

.contact__block a:hover {
  color: var(--color-accent-hover);
}

.contact__social {
  margin-top: 0.75rem;
}

.contact__instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent) !important;
  font-weight: 500;
  transition: color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.contact__instagram:hover {
  color: var(--color-accent-hover) !important;
  transform: scale(1.05);
}

.contact__instagram svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Instagram Section (About page)
   ============================================ */

.instagram-section {
  background: var(--color-bg-elevated);
}

/* Instagram section with video background */
.instagram-section--video {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.instagram-section__video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.instagram-section__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translate(-50%, -50%) translateZ(0);
  -webkit-transform: translate(-50%, -50%) translateZ(0);
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.instagram-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.75) 0%, rgba(10, 14, 20, 0.85) 50%, rgba(10, 14, 20, 0.9) 100%);
}

.instagram-section__content {
  position: relative;
  z-index: 2;
}

.instagram-section__content .section__title,
.instagram-section__content .section__subtitle,
.instagram-section__content .section__badge,
.instagram-section__content .instagram-section__hashtags {
  color: var(--color-text);
}

.instagram-section__content .section__subtitle {
  color: var(--color-text-muted);
}

.instagram-section__content .instagram-section__hashtags {
  color: rgba(255, 255, 255, 0.7);
}

.instagram-section__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.instagram-section .section__subtitle {
  margin-bottom: 1.5rem;
}

.btn--instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white !important;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.btn--instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(188, 24, 136, 0.4);
}

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

.instagram-section__hashtags {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ----- Instagram section COMPACT + ANIMATED (about page) ----- */
.instagram-section--compact {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.instagram-section--compact.instagram-section {
  min-height: 0;
}

/* Animated background (replaces video) */
.instagram-section--animated {
  position: relative;
  overflow: hidden;
}

.instagram-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.instagram-section__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-elevated) 40%, var(--color-surface) 100%);
  animation: instagram-gradient-shift 12s ease-in-out infinite;
}

@keyframes instagram-gradient-shift {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.02);
  }
}

.instagram-section__gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse 60% 80% at 80% 80%, rgba(220, 38, 38, 0.08) 0%, transparent 45%);
  animation: instagram-glow-pulse 8s ease-in-out infinite;
}

@keyframes instagram-glow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.instagram-section__shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.instagram-section__shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.06);
  animation: instagram-float 20s ease-in-out infinite;
}

.instagram-section__shape--1 {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 15%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.instagram-section__shape--2 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 20%;
  animation-delay: -4s;
  animation-duration: 22s;
}

.instagram-section__shape--3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 25%;
  animation-delay: -8s;
  animation-duration: 16s;
}

.instagram-section__shape--4 {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 10%;
  animation-delay: -2s;
  animation-duration: 24s;
}

.instagram-section__shape--5 {
  width: 40px;
  height: 40px;
  bottom: 30%;
  right: 35%;
  animation-delay: -6s;
  animation-duration: 14s;
}

@keyframes instagram-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(15px, -20px) scale(1.1);
    opacity: 0.9;
  }
  50% {
    transform: translate(-10px, 10px) scale(0.95);
    opacity: 0.5;
  }
  75% {
    transform: translate(-20px, -10px) scale(1.05);
    opacity: 0.8;
  }
}

.instagram-section__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: instagram-grid-pulse 6s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes instagram-grid-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.instagram-section__card {
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  background: rgba(17, 24, 32, 0.75);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.instagram-section__badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.instagram-section__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.instagram-section__text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.instagram-section__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: white !important;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 30%, #dc2743 60%, #bc1888 100%);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.instagram-section__btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(220, 39, 67, 0.45);
}

.instagram-section__btn .instagram-section__icon {
  width: 18px;
  height: 18px;
}

.instagram-section__card .instagram-section__hashtags {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* ============================================
   Connect floating buttons (about page)
   ============================================ */

.connect-float {
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  text-align: center;
}

.connect-float__wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  margin: 0 auto;
  background: rgba(17, 24, 32, 0.85);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.connect-float__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 999px;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.connect-float__btn--ig {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(220, 38, 38, 0.12) 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.connect-float__btn--ig:hover {
  color: var(--color-white);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.connect-float__btn--wa {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.connect-float__btn--wa:hover {
  color: var(--color-white);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.connect-float__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-white);
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease-out);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__copy p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   Reveal animation transitions
   ============================================ */

.reveal.visible {
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible:nth-child(1) { transition-delay: 0.05s; }
.reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.reveal.visible:nth-child(3) { transition-delay: 0.15s; }
.reveal.visible:nth-child(4) { transition-delay: 0.2s; }
.reveal.visible:nth-child(5) { transition-delay: 0.25s; }
.reveal.visible:nth-child(6) { transition-delay: 0.3s; }
.reveal.visible:nth-child(7) { transition-delay: 0.35s; }
.reveal.visible:nth-child(8) { transition-delay: 0.4s; }
.reveal.visible:nth-child(9) { transition-delay: 0.45s; }

/* Stagger for grid children */
.services__grid .reveal.visible { transition-delay: calc(0.1s * var(--i, 0)); }

/* ============================================
   Video Sections (Page Hero & Split Layout)
   ============================================ */

/* Page hero with video background */
.page-hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  overflow: hidden;
}

.page-hero__video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: translate(-50%, -50%) translateZ(0);
  -webkit-transform: translate(-50%, -50%) translateZ(0);
  /* Clarity optimizations - smooth rendering for video */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Performance optimizations for smooth playback */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
  /* Ensure video fills container */
  max-width: none;
  max-height: none;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.5) 0%, rgba(10, 14, 20, 0.85) 60%, var(--color-bg) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.page-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Video + text split section */
.video-section {
  padding: var(--section-padding) 0;
  position: relative;
}

.video-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.video-section__inner--reverse .video-section__media {
  order: 2;
}

.video-section__inner--reverse .video-section__content {
  order: 1;
}

.video-section__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-section__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-section__content .section__badge {
  margin-bottom: 0.75rem;
}

.video-section__content .section__title {
  text-align: left;
  margin-bottom: 1rem;
}

.video-section__content p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.video-section__content .btn {
  margin-top: 0.5rem;
}

/* Video grid (projects gallery) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.video-grid__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.video-grid__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.video-grid__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-grid__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 20, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.video-grid__item:hover .video-grid__item-overlay {
  opacity: 1;
}

.video-grid__item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
}

/* ============================================
   Project Gallery (image-based, advanced effects)
   ============================================ */

/* Tighter spacing between Project Categories header and gallery */
.section--gallery .section__header {
  margin-bottom: 1rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}

.project-gallery__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
              border-color 0.35s var(--ease-out), opacity 0.6s var(--ease-out);
}

.project-gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), transparent 50%, rgba(220, 38, 38, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.project-gallery__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  border-color: rgba(37, 99, 235, 0.25);
}

.project-gallery__item:hover::before {
  opacity: 1;
}

.project-gallery__img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.project-gallery__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}

.project-gallery__item:hover .project-gallery__img-wrap img {
  transform: scale(1.12);
}

/* Staggered subtle pan on hover (alternating origin) */
.project-gallery__item:nth-child(3n+1):hover .project-gallery__img-wrap img {
  transform: scale(1.12) translateX(-2%) translateY(-1%);
}

.project-gallery__item:nth-child(3n+2):hover .project-gallery__img-wrap img {
  transform: scale(1.12) translateX(1%) translateY(1%);
}

.project-gallery__item:nth-child(3n):hover .project-gallery__img-wrap img {
  transform: scale(1.12) translateX(2%) translateY(-1%);
}

.project-gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 14, 20, 0.75) 70%, rgba(10, 14, 20, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.project-gallery__item:hover .project-gallery__overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-gallery__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  transform: translateY(4px);
  transition: transform 0.35s var(--ease-out);
}

.project-gallery__item:hover .project-gallery__title {
  transform: translateY(0);
  color: #ffffff;
}

/* Staggered reveal on load (works with reveal script) */
.project-gallery__item.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.project-gallery__item.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-gallery__item.reveal.visible:nth-child(1) { transition-delay: 0.05s; }
.project-gallery__item.reveal.visible:nth-child(2) { transition-delay: 0.12s; }
.project-gallery__item.reveal.visible:nth-child(3) { transition-delay: 0.19s; }
.project-gallery__item.reveal.visible:nth-child(4) { transition-delay: 0.26s; }
.project-gallery__item.reveal.visible:nth-child(5) { transition-delay: 0.33s; }
.project-gallery__item.reveal.visible:nth-child(6) { transition-delay: 0.4s; }

/* Full-width video section */
.video-full {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.video-full__wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 70vh;
  min-height: 280px;
}

.video-full__wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.4) 0%, rgba(10, 14, 20, 0.75) 100%);
}

.video-full__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  z-index: 1;
}

.video-full__content .section__title {
  margin-bottom: 0.75rem;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.video-full__text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.video-full__phones {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.video-full__phones a {
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.video-full__phones a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.video-full__phones-sep {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0.25rem;
}

.video-full__btn {
  margin-top: 0;
}

/* Page-specific section backgrounds */
.video-section:nth-child(even) {
  background: var(--color-bg-elevated);
}

.video-section:nth-child(odd) {
  background: var(--color-bg);
}

/* Stats bar (reference-style) */
.stats-bar {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats-bar__item {
  padding: 0 1rem;
}

.stats-bar__value {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.stats-bar__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-bar__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .video-section__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .video-section__inner--reverse .video-section__media,
  .video-section__inner--reverse .video-section__content {
    order: unset;
  }

  .video-section__content .section__title {
    text-align: center;
  }

  .video-section__content .section__badge {
    display: block;
    text-align: center;
  }

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

@media (max-width: 768px) {
  .page-hero {
    min-height: 100vh;
    height: 100vh;
  }

  .video-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .video-full__wrap {
    aspect-ratio: 16 / 9;
  }
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
  /* Container padding adjustment */
  .container {
    padding: 0 clamp(1rem, 3vw, 1.5rem);
  }

  /* Navigation */
  .nav {
    padding: 0 clamp(1rem, 3vw, 1.5rem);
  }

  /* Logo sizing */
  .logo-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .nav__logo {
    font-size: 1.2rem;
  }

  /* About section */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .about__content .section__badge {
    display: block;
    text-align: center;
  }

  .about__visual {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .about__card {
    flex: 1 1 280px;
  }

  /* Contact section */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact__info {
    grid-template-columns: 1fr;
  }

  .contact__map {
    min-height: 240px;
  }

  /* Testimonials */
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  /* Section spacing */
  .section {
    padding: clamp(3rem, 8vw, 6rem) 0;
  }

  .section__header {
    margin-bottom: 2rem;
  }
}

/* Mobile and tablet (768px) */
@media (max-width: 768px) {
  /* Header adjustments */
  :root {
    --header-height: 72px;
  }

  /* Navigation mobile menu */
  .nav__menu,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu.active {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: auto;
    flex-direction: column;
    padding: 2rem;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .nav__menu.active .nav__link {
    font-size: 1rem;
    padding: 0.75rem 0;
  }

  .nav__menu.active + .nav__cta {
    display: none;
  }

  .nav__menu.active ~ .nav__cta-mobile {
    display: inline-flex;
  }

  /* Logo mobile sizing */
  .logo-icon {
    width: 3rem;
    height: 3rem;
  }

  .nav__logo {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

  /* Hero section */
  .hero {
    height: 100vh;
    min-height: 100vh;
    padding: calc(var(--header-height) + 1rem) 0 2rem;
  }

  .hero__content {
    padding: 0 1rem;
  }

  .hero__video,
  .page-hero__video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
  }

  .hero__subtitle {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 1.5rem;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 0.75rem 1.5rem;
  }

  .hero__scroll {
    bottom: 1rem;
    font-size: 0.7rem;
  }

  /* Page hero */
  .page-hero {
    min-height: 100vh;
    height: 100vh;
    padding: calc(var(--header-height) + 1rem) 0 2rem;
  }

  .page-hero__content {
    padding: 0 1rem;
  }

  /* Services grid */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .services-detail__content-inner {
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  /* About section mobile */
  .about__visual {
    flex-direction: column;
    gap: 1rem;
  }

  .about__card {
    flex: 1 1 100%;
    padding: 1.5rem;
  }

  .about__number {
    font-size: 2rem;
  }

  .about__suffix {
    font-size: 1.25rem;
  }

  /* Contact form */
  .form__row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact__form {
    gap: 1rem;
  }

  .form__group input,
  .form__group select,
  .form__group textarea {
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 0;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer__logo {
    font-size: 1rem;
    justify-content: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer__brand p {
    font-size: 0.85rem;
    margin-top: 0.75rem;
  }

  /* Section titles and spacing */
  .section__title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .section__subtitle {
    font-size: 0.95rem;
  }

  .section__badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }

  /* Projects section */
  .projects__text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .projects__content .btn {
    width: 100%;
    max-width: 280px;
    margin: 0.5rem 0;
  }

  /* FAQ */
  .faq__item summary {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .faq__item p {
    padding: 0.875rem 1.25rem 1rem;
    font-size: 0.9rem;
  }

  /* Instagram section */
  .instagram-section__card {
    padding: 1.25rem 1.5rem;
  }

  .instagram-section__title {
    font-size: 1rem;
  }

  .instagram-section__text {
    font-size: 0.75rem;
  }

  /* Connect float buttons */
  .connect-float__wrap {
    flex-direction: column;
    padding: 0.75rem;
  }

  .connect-float__btn {
    width: 100%;
    justify-content: center;
  }

  /* Video sections */
  .video-section__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .video-section__content .section__title {
    text-align: center;
  }

  .video-section__content .section__badge {
    display: block;
    text-align: center;
  }

  .video-grid,
  .project-gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .video-full__wrap {
    aspect-ratio: unset;
    height: 520px;
    min-height: 520px;
  }

  .video-full__overlay {
    background: linear-gradient(180deg, rgba(10, 14, 20, 0.55) 0%, rgba(10, 14, 20, 0.88) 100%);
  }

  .video-full__content {
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
  }

  .video-full__phones {
    display: block;
  }

  .video-full__phones a {
    display: block;
    margin-bottom: 0.35rem;
  }

  .video-full__phones-sep {
    display: none;
  }

  .footer {
    padding-bottom: 5.5rem;
  }

  /* Stats bar */
  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stats-bar__value {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .stats-bar__label {
    font-size: 0.85rem;
  }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
  /* Container tighter padding */
  .container {
    padding: 0 1rem;
  }

  .nav {
    padding: 0 1rem;
  }

  /* Logo even smaller */
  .logo-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .nav__logo {
    font-size: 1rem;
    gap: 0.4rem;
  }

  /* Hero adjustments */
  .hero__title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero__subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .hero__buttons .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
  }

  /* Section titles */
  .section__title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .section__subtitle {
    font-size: 0.875rem;
  }

  /* Service cards */
  .service-card {
    padding: 1.25rem;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  /* About cards */
  .about__card {
    padding: 1.25rem;
  }

  .about__number {
    font-size: 1.75rem;
  }

  .about__suffix {
    font-size: 1.1rem;
  }

  .about__card p {
    font-size: 0.85rem;
  }

  /* Contact */
  .contact__map {
    min-height: 200px;
  }

  .contact__block h3 {
    font-size: 1rem;
  }

  .contact__block p {
    font-size: 0.875rem;
  }

  /* Footer */
  .footer__logo {
    font-size: 0.95rem;
  }

  .footer__links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer__links a {
    font-size: 0.9rem;
  }

  /* Buttons */
  .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
  }

  .btn--large {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
  }

  /* Stats bar single column */
  .stats-bar__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Projects buttons stack */
  .projects__content .btn {
    display: block;
    margin: 0.5rem auto;
  }

  /* FAQ */
  .faq__item summary {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  .faq__item p {
    padding: 0.75rem 1rem 0.875rem;
    font-size: 0.85rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-card p {
    font-size: 0.9rem;
  }

  .testimonial-card cite {
    font-size: 0.85rem;
  }

  /* Instagram section */
  .instagram-section__card {
    padding: 1rem 1.25rem;
  }

  .instagram-section__title {
    font-size: 0.95rem;
  }

  .instagram-section__text {
    font-size: 0.7rem;
  }

  .instagram-section__btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
  }
}

/* Large desktop (1440px+) */
@media (min-width: 1440px) {
  :root {
    --container: min(90vw, 1400px);
  }
}

/* Extra large desktop (1920px+) */
@media (min-width: 1920px) {
  :root {
    --container: min(90vw, 1600px);
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    height: auto;
    padding: calc(var(--header-height) + 2rem) 0 3rem;
  }

  .hero__content {
    padding: 2rem 0;
  }

  .page-hero {
    min-height: auto;
    height: auto;
    padding: calc(var(--header-height) + 2rem) 0 3rem;
  }
}

/* Prevent text size adjustment on iOS */
@media (max-width: 768px) {
  input,
  select,
  textarea,
  button {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ============================================
   Floating WhatsApp Button
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .whatsapp-float__icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .whatsapp-float__icon {
    width: 28px;
    height: 28px;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .nav__toggle,
  .hero__scroll,
  .btn,
  .whatsapp-float {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    page-break-inside: avoid;
  }
}
