/* ==========================================================================
   WOODWAVE CARPENTRY — PROFESSIONAL GLOBAL STYLESHEET
   ==========================================================================

   Goals:
   - Preserve existing page/component functionality.
   - Remove duplicate/conflicting rules.
   - Prevent grid/flex overflow and hidden layers leaking sideways.
   - Keep the navbar, homepage, inner pages, portfolio, contact and FAQ
     components working together.
   - Improve responsive behavior without changing the visual direction.

   NOTE:
   Image URLs in this stylesheet are relative to assets/css/style.css.
   Therefore homepage hero images should be in assets/img/ and are referenced
   with ../img/...
   ========================================================================== */

/* ==========================================================================
   1. BRAND COLOR PALETTE & DYNAMIC THEMING
   ========================================================================== */

:root[data-theme="dark"] {
  --bg-dark: #041222;
  --bg-base: #041222;
  --bg-card: rgba(11, 32, 59, 0.4);
  --bg-card-hover: rgba(11, 32, 59, 0.65);
  --bg-nav: rgba(4, 18, 34, 0.5);
  --bg-nav-scroll: rgba(4, 18, 34, 0.95);
  --bg-input: rgba(0, 0, 0, 0.3);

  --blue: #0078c1;
  --blue-glow: rgba(0, 120, 193, 0.35);

  --green: #60a325;
  --green-glow: rgba(96, 163, 37, 0.4);

  --timber: #b6813f;
  --timber-glow: rgba(182, 129, 63, 0.28);

  --white: #f8f9fa;
  --text-main: #f8f9fa;
  --text-muted: #8fa6c1;

  --border-alpha: rgba(255, 255, 255, 0.08);
  --border-alpha-hover: rgba(255, 255, 255, 0.25);
  --shadow-main: rgba(0, 0, 0, 0.6);
}

:root[data-theme="light"] {
  --bg-dark: #f2f6fa;
  --bg-base: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-nav: rgba(255, 255, 255, 0.7);
  --bg-nav-scroll: rgba(255, 255, 255, 0.98);
  --bg-input: rgba(242, 246, 250, 0.9);

  --blue: #0078c1;
  --blue-glow: rgba(0, 120, 193, 0.2);

  --green: #60a325;
  --green-glow: rgba(96, 163, 37, 0.25);

  --timber: #8a5a2e;
  --timber-glow: rgba(138, 90, 46, 0.16);

  --white: #0b203b;
  --text-main: #0b203b;
  --text-muted: #516a87;

  --border-alpha: rgba(11, 32, 59, 0.1);
  --border-alpha-hover: rgba(11, 32, 59, 0.3);
  --shadow-main: rgba(11, 32, 59, 0.08);
}

:root {
  --font-head: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-lg: 24px;
  --radius-sm: 14px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.6s;

  --space-xs: clamp(0.75rem, 1vw, 1rem);
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  --space-md: clamp(1.5rem, 3vw, 2.5rem);
  --space-lg: clamp(3rem, 6vw, 5rem);
  --space-xl: clamp(5rem, 10vw, 8rem);

  /* #navbar = 1.75rem top offset + ~1.1rem vertical padding + ~42px logo,
     so anything sitting directly under it needs at least this much clearance */
  --nav-clearance: clamp(6.5rem, 8vw + 3rem, 8.5rem);
}

/* ==========================================================================
   2. GLOBAL RESET, FRAMEWORK & TYPOGRAPHY
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  overflow-x: clip;
}

body {
  min-width: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-dark);
  line-height: 1.625;
  letter-spacing: -0.01em;
  overflow-x: clip;
  position: relative;

  transition:
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

main,
section,
header,
footer {
  min-width: 0;
}

section {
  position: relative;
  padding-block: var(--space-xl);
}

/* Visible keyboard focus. Components below intentionally suppress the
   default outline in favor of their own focus treatment (inputs use a
   glow box-shadow); this restores a visible ring for everything else. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1340px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: 2;
  min-width: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

.text-center {
  text-align: center;
}

/* Ambient background effects */

.ambient-glow-1 {
  position: fixed;
  top: -15%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 65%);
  filter: blur(80px);
  z-index: -1;
  animation: floatAmbient 22s infinite alternate ease-in-out;
  pointer-events: none;
}

.ambient-glow-2 {
  position: fixed;
  right: -15%;
  bottom: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 65%);
  filter: blur(80px);
  z-index: -1;
  animation: floatAmbient 28s infinite alternate-reverse ease-in-out;
  pointer-events: none;
}

@keyframes floatAmbient {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(6vw, 4vh) scale(1.08);
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;

  font-family: var(--font-head);
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-tag::before {
  content: "";
  width: 32px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--blue);
}

.title-huge {
  margin-bottom: 1.5rem;

  font-family: var(--font-head);
  font-size: clamp(3.2rem, 7.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-main);
}

.title-section {
  margin-bottom: 1.5rem;

  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.text-gradient {
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  max-width: 65ch;

  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-muted);
}

.subtitle.center {
  margin-inline: auto;
}

/* ==========================================================================
   3. BUTTONS & UI
   ========================================================================== */

.btn {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 1.25rem 2.75rem;

  border: 0;
  border-radius: 100px;

  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  cursor: pointer;
  outline: none;

  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    background-color 0.4s var(--ease),
    color 0.4s var(--ease);
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 12px 32px var(--green-glow);
}

:root[data-theme="dark"] .btn-primary {
  color: #ffffff;
}

:root[data-theme="light"] .btn-primary {
  color: #041222;
}

.btn-primary:hover {
  background: var(--blue);
  color: #ffffff;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 38px var(--blue-glow);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  border: 1px solid var(--border-alpha-hover);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   4. NAVIGATION
   ========================================================================== */

#navbar {
  position: fixed;
  top: 1.75rem;
  left: 50%;
  z-index: 1000;

  width: min(1340px, 94%);
  padding: 1.1rem 2.5rem;

  transform: translateX(-50%);

  border: 1px solid var(--border-alpha);
  border-radius: 100px;

  background: var(--bg-nav);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);

  transition:
    top 0.4s var(--ease),
    background-color 0.4s var(--ease),
    padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

#navbar.scrolled {
  top: 0.75rem;
  padding: 0.85rem 2.5rem;

  background: var(--bg-nav-scroll);
  box-shadow: 0 20px 40px var(--shadow-main);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: linear-gradient(135deg, var(--blue), var(--green));

  box-shadow: 0 0 22px var(--blue-glow);
}

.nav-logo-icon img,
.nav-logo-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-logo-text {
  min-width: 0;

  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.nav-logo-text span {
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.nav-links a {
  position: relative;

  padding: 4px 0;

  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background: var(--green);

  transform: scaleX(0);
  transform-origin: right;

  transition: transform 0.3s var(--ease);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border-alpha);
  border-radius: 50%;
  outline: none;

  background: none;
  color: var(--text-main);

  transition:
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}

.theme-toggle-btn:hover {
  background: var(--border-alpha);
  border-color: var(--border-alpha-hover);
  color: var(--blue);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

:root[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: none;
}

:root[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 7px;

  padding: 6px;

  border: 0;
  background: none;

  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 2px;

  background: var(--text-main);

  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: var(--green);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background: var(--green);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 999;

  width: 100%;
  height: 100dvh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;

  padding: var(--space-md);

  background: var(--bg-base);

  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a.mob-link {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-main);
}

.mobile-menu a.mob-link:hover,
.mobile-menu a.mob-link.active {
  color: var(--green);
}

/* ==========================================================================
   5. HOMEPAGE HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;

  display: flex;
  align-items: center;

  /* top padding = navbar clearance, bottom padding keeps the hero from
     needing a hard 100vh clamp on short/laptop screens */
  padding-top: var(--nav-clearance);
  padding-bottom: var(--space-lg);

  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background:
    radial-gradient(circle at 15% 100%, var(--timber-glow) 0%, transparent 55%),
    linear-gradient(
      to right,
      rgba(4, 18, 34, 0.95) 20%,
      rgba(11, 32, 59, 0.5) 100%
    ),
    url("../img/project10/img5.webp") center / cover no-repeat;

  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);

  -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}

:root[data-theme="light"] .hero-bg {
  background:
    radial-gradient(circle at 15% 100%, var(--timber-glow) 0%, transparent 55%),
    linear-gradient(
      to right,
      rgba(242, 246, 250, 0.95) 25%,
      rgba(255, 255, 255, 0.65) 100%
    ),
    url("../img/project10/img5.webp") center / cover no-repeat;
}

.hero-content {
  max-width: 940px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-alpha);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-badge svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;

  stroke: var(--blue);
  fill: none;
}

/* ==========================================================================
   6. HOMEPAGE SERVICES
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem;

  margin-top: 4rem;
}

.service-card {
  position: relative;
  z-index: 0;

  display: block;
  min-width: 0;

  padding: 3.5rem 2.75rem;

  overflow: hidden;

  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);

  background: var(--bg-card);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transform-style: preserve-3d;

  transition:
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    background-color 0.4s var(--ease);
}

.service-card::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  background: radial-gradient(
    circle at top right,
    var(--blue-glow),
    transparent 65%
  );

  opacity: 0;

  transition: opacity 0.5s var(--ease);
}

.service-card:hover {
  border-color: var(--border-alpha-hover);
  box-shadow: 0 25px 50px var(--shadow-main);
  background-color: var(--bg-card-hover);
}

.service-card:hover::before {
  opacity: 0.5;
}

.service-icon {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 2.25rem;

  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-sm);

  background: rgba(0, 120, 193, 0.05);
  color: var(--blue);

  transition:
    transform 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

:root[data-theme="light"] .service-icon {
  background: rgba(0, 120, 193, 0.08);
}

.service-icon svg {
  width: 34px;
  height: 34px;

  stroke: currentColor;
  fill: none;
}

.service-card:hover .service-icon {
  transform: translateZ(25px) scale(1.05);
  color: var(--green);
  border-color: var(--green-glow);
}

.service-card h3 {
  margin-bottom: 1.1rem;

  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
}

.service-card p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ==========================================================================
   7. BEFORE / AFTER SLIDER
   ========================================================================== */

.ba-container {
  position: relative;

  width: 100%;
  max-width: 1140px;
  height: 68vh;
  min-height: 460px;

  margin: 4.5rem auto 0;

  overflow: hidden;

  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);

  background: var(--bg-card);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4);

  user-select: none;
  touch-action: pan-y;
}

:root[data-theme="light"] .ba-container {
  box-shadow: 0 25px 60px var(--shadow-main);
}

.ba-img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;
  color: transparent;
  background: var(--bg-card);

  object-fit: cover;
  pointer-events: none;
}

.ba-before {
  z-index: 2;

  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;

  width: 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;

  transform: translateX(-50%);
  cursor: ew-resize;

  will-change: left;
}

.ba-handle-btn {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--blue);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);

  pointer-events: none;
}

.ba-handle-btn svg {
  width: 30px;
  height: 30px;

  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
}

.ba-badge {
  position: absolute;
  bottom: 2.25rem;
  z-index: 4;

  padding: 0.65rem 1.6rem;

  border-radius: 100px;

  background: rgba(11, 32, 59, 0.85);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bb-before {
  left: 2.25rem;
  color: var(--blue);
  border: 1px solid var(--blue-glow);
}

.bb-after {
  right: 2.25rem;
  color: var(--green);
  border: 1px solid var(--green-glow);
}

/* ==========================================================================
   8. PORTFOLIO GRID
   ========================================================================== */

#portfolio-gallery {
  padding: var(--space-lg) 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 320px;
  gap: 1.75rem;

  width: 100%;
  margin-top: 2rem;

  min-width: 0;
}

.pg-item {
  position: relative;

  display: block;
  min-width: 0;
  min-height: 0;

  /* safe default so any item missing a size modifier still reads as a
     normal grid cell instead of collapsing to an auto-placed sliver */
  grid-column: span 4;
  grid-row: span 1;

  overflow: hidden;

  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);

  background: var(--bg-card);
}

.pg-item.medium {
  grid-column: span 4;
  grid-row: span 2;
}

.pg-item.wide {
  grid-column: span 8;
  grid-row: span 1;
}

.pg-item.small {
  grid-column: span 4;
  grid-row: span 1;
}

.pg-item img {
  display: block;

  width: 100%;
  height: 100%;

  overflow: hidden;
  color: transparent;

  object-fit: cover;

  transition: transform 0.9s var(--ease);
}

.pg-item:hover img {
  transform: scale(1.06);
}

.pg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 2.75rem;

  background: linear-gradient(
    to top,
    rgba(4, 18, 34, 0.95) 0%,
    rgba(4, 18, 34, 0.1) 70%
  );

  opacity: 0;

  transition: opacity 0.4s var(--ease);
}

.pg-item:hover .pg-overlay {
  opacity: 1;
}

.pg-overlay h4 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;

  transform: translateY(15px);

  transition: transform 0.4s var(--ease);
}

.pg-overlay p {
  margin-bottom: 0.25rem;

  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);

  transform: translateY(15px);

  transition: transform 0.5s var(--ease);
}

.pg-item:hover .pg-overlay h4,
.pg-item:hover .pg-overlay p {
  transform: translateY(0);
}

/* ==========================================================================
   9. WHY WOODWAVE / USP
   ========================================================================== */

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 5.5rem;
  align-items: center;
}

.usp-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.usp-item {
  display: flex;
  gap: 1.75rem;
  min-width: 0;
}

.usp-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--blue);
  border-radius: 50%;

  background: var(--blue-glow);
  color: var(--blue);
}

.usp-icon svg {
  width: 24px;
  height: 24px;

  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.usp-text {
  min-width: 0;
}

.usp-text h4 {
  margin-bottom: 0.6rem;

  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.usp-text p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   10. STATISTICS
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.stat-card {
  position: relative;
  min-width: 0;

  padding: 3.5rem 2.2rem;

  text-align: center;

  overflow: hidden;

  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);

  background: var(--bg-card);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);

  transition:
    background-color var(--duration) var(--ease),
    border-color 0.3s;
}

.stat-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  background: var(--blue);
}

.stat-card:nth-child(2)::before {
  background: var(--green);
}

.stat-card:nth-child(3)::before {
  background: var(--timber);
}

.stat-card:nth-child(4)::before {
  background: var(--blue);
}

.stat-card:hover {
  border-color: var(--border-alpha-hover);
}

.stat-num {
  margin-bottom: 1.1rem;

  font-family: var(--font-head);
  font-size: clamp(3rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--green);
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   11. PROCESS / TIMELINE
   ========================================================================== */

.timeline {
  position: relative;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;

  margin-top: 5.5rem;
}

.timeline::before {
  content: "";

  position: absolute;
  top: 44px;
  right: 12%;
  left: 12%;
  z-index: 1;

  height: 2px;

  background: linear-gradient(90deg, var(--blue) 60%, transparent 40%);
  background-size: 24px 2px;

  opacity: 0.3;
}

.process-step {
  position: relative;
  z-index: 2;

  min-width: 0;

  text-align: center;
}

.step-num {
  width: 88px;
  height: 88px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 2.25rem;

  border: 2px solid var(--blue);
  border-radius: 50%;

  background: var(--bg-dark);

  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-main);

  box-shadow: 0 0 25px var(--blue-glow);

  transition:
    transform 0.4s var(--ease),
    background-color 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.process-step:hover .step-num {
  transform: scale(1.1);

  background: var(--green);
  border-color: var(--green);
  color: #ffffff;

  box-shadow: 0 0 25px var(--green-glow);
}

.process-step h3 {
  margin-bottom: 1rem;

  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.process-step p {
  padding: 0 0.75rem;

  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   12. FAQ
   ========================================================================== */

.faq-wrap {
  max-width: 860px;
  margin: 4.5rem auto 0;
}

.faq-item {
  margin-bottom: 1.25rem;

  overflow: hidden;

  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-sm);

  background: var(--bg-card);

  transition:
    border-color 0.3s var(--ease),
    background-color var(--duration) var(--ease);
}

.faq-item:hover {
  border-color: var(--border-alpha-hover);
}

.faq-q {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  padding: 1.75rem 2.25rem;

  border: 0;
  outline: none;

  background: none;

  text-align: left;

  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);

  cursor: pointer;
}

.faq-icon {
  flex: 0 0 auto;

  font-size: 1.6rem;
  line-height: 1;
  color: var(--blue);

  transition:
    transform 0.4s var(--ease),
    color 0.4s var(--ease);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--green);
}

.faq-a {
  max-height: 0;

  padding: 0 2.25rem;

  overflow: hidden;

  opacity: 0;

  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);

  transition:
    max-height 0.4s var(--ease),
    padding 0.4s var(--ease),
    opacity 0.4s var(--ease);
}

.faq-item.active .faq-a {
  max-height: 1000px;
  padding-bottom: 1.75rem;
  opacity: 1;
}

/* ==========================================================================
   13. ABOUT PAGE
   ========================================================================== */

.about-story {
  padding: var(--space-lg) 0;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: center;
}

.story-img-wrapper {
  position: relative;

  overflow: hidden;

  border-radius: var(--radius-lg);

  box-shadow: 0 30px 60px var(--shadow-main);
}

.story-img-wrapper img {
  width: 100%;
  height: 100%;

  aspect-ratio: 4 / 5;

  object-fit: cover;
}

.story-img-wrapper::after {
  content: "";

  position: absolute;
  inset: 0;

  border: 1px solid var(--border-alpha-hover);
  border-radius: var(--radius-lg);

  pointer-events: none;
}

.story-content {
  min-width: 0;
}

.story-content h2 {
  margin-bottom: 1.5rem;

  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-main);
}

.story-content p {
  margin-bottom: 1.5rem;

  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;

  margin-top: 3rem;
}

.value-card {
  min-width: 0;

  padding: 2rem;

  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;

  background: var(--bg-card);
}

.value-card h4 {
  margin-bottom: 0.5rem;

  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text-main);
}

.value-card p {
  margin: 0;

  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   14. INNER PAGE HEADER
   ========================================================================== */

#page-header {
  position: relative;

  padding: 12rem 0 6rem;

  border-bottom: 1px solid var(--border-alpha);

  background: var(--bg-base);
}

.header-content {
  max-width: 800px;
  margin: 0 auto;

  text-align: center;
}

/* ==========================================================================
   15. SERVICES INNER PAGE
   ========================================================================== */

.service-showcase {
  padding: var(--space-lg) 0;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 5rem;
  align-items: center;

  margin-bottom: var(--space-xl);
}

.service-row:nth-child(even) {
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  direction: rtl;
}

.service-row:nth-child(even) > * {
  direction: ltr;
}

.service-img-wrapper {
  position: relative;

  overflow: hidden;

  border-radius: var(--radius-lg);

  box-shadow: 0 30px 60px var(--shadow-main);
}

.service-img-wrapper::after {
  content: "";

  position: absolute;
  inset: 0;

  border: 1px solid var(--border-alpha-hover);
  border-radius: var(--radius-lg);

  pointer-events: none;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;

  aspect-ratio: 4 / 3;

  object-fit: cover;

  transition: transform 0.8s var(--ease);
}

.service-row:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-info {
  min-width: 0;
}

.service-info h2 {
  margin-bottom: 1.5rem;

  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.service-info p {
  margin-bottom: 1.5rem;

  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;

  margin-top: 2.5rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;

  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.service-feature-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--blue);
  border-radius: 50%;

  background: var(--blue-glow);
  color: var(--blue);
}

.service-feature-item svg {
  width: 16px;
  height: 16px;

  stroke: currentColor;
  stroke-width: 3;
  fill: none;
}

/* ==========================================================================
   16. SERVICES PROCESS BANNER
   ========================================================================== */

#workflow {
  padding: var(--space-lg) 0;

  border-top: 1px solid var(--border-alpha);
  border-bottom: 1px solid var(--border-alpha);

  background: var(--bg-card);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;

  margin-top: 4rem;
}

.process-card {
  min-width: 0;

  padding: 3rem 2rem;

  text-align: center;

  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);

  background: var(--bg-base);

  box-shadow: 0 15px 35px var(--shadow-main);

  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.process-card:hover {
  transform: translateY(-10px);
  border-color: var(--blue);
}

.process-icon {
  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 1.5rem;

  border: 1px solid var(--green);
  border-radius: 50%;

  background: var(--green-glow);
  color: var(--green);

  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
}

.process-card h3 {
  margin-bottom: 0.75rem;

  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.process-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   17. CONTACT
   ========================================================================== */

#contact {
  position: relative;
  padding: var(--space-lg) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 5.5rem;
  align-items: start;
}

.contact-info {
  min-width: 0;
  padding-right: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.75rem;

  margin-top: 3.5rem;

  min-width: 0;
}

.cm-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--blue);
  color: #ffffff;

  box-shadow: 0 10px 25px var(--blue-glow);
}

.cm-icon svg {
  width: 30px;
  height: 30px;

  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.cm-text {
  min-width: 0;
}

.cm-text h4 {
  margin-bottom: 0.5rem;

  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cm-text a {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  color: var(--text-main);

  overflow-wrap: anywhere;
}

.cm-text a:hover {
  color: var(--green);
}

.form-card {
  min-width: 0;

  padding: 4.5rem;

  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);

  background: var(--bg-card);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  box-shadow: 0 35px 70px var(--shadow-main);

  transition:
    background-color var(--duration) var(--ease),
    border-color 0.4s;
}

.form-card:hover {
  border-color: var(--border-alpha-hover);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;

  margin-bottom: 2.25rem;
}

.form-group {
  min-width: 0;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;

  margin-bottom: 0.9rem;

  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-width: 0;

  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-sm);

  padding: 1.3rem;

  outline: none;

  background: var(--bg-input);
  color: var(--text-main);

  font-family: var(--font-body);
  font-size: 1.1rem;

  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-glow);
}

.form-group select option {
  background: var(--bg-base);
  color: var(--text-main);
}

.form-group textarea {
  min-height: 160px;
  height: 160px;
  resize: vertical;
}

/* ==========================================================================
   18. FOOTER & FLOATING WHATSAPP
   ========================================================================== */

footer {
  padding: var(--space-lg) 0 2.5rem;

  border-top: 1px solid var(--border-alpha);

  background: var(--bg-dark);

  transition:
    border-color 0.3s,
    background-color var(--duration) var(--ease);
}

.footer-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 2fr)
    minmax(0, 1.1fr)
    minmax(0, 1fr)
    minmax(0, 1.1fr);

  gap: 4.5rem;

  margin-bottom: 5rem;
}

.footer-logo {
  margin-bottom: 1.75rem;

  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.footer-logo span {
  color: var(--green);
}

.footer-col {
  min-width: 0;
}

.footer-col h4 {
  margin-bottom: 1.75rem;

  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-links a {
  font-size: 1.02rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  padding-left: 6px;
  color: var(--blue);
}

.footer-bottom {
  padding-top: 2.5rem;

  border-top: 1px solid var(--border-alpha);

  text-align: center;

  font-size: 0.95rem;
  color: var(--text-muted);
}

.floating-wa {
  position: fixed;
  right: 35px;
  bottom: 35px;
  z-index: 9998;

  width: 68px;
  height: 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #25d366;

  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);

  transition: transform 0.4s var(--ease);
}

.floating-wa:hover {
  transform: translateY(-6px) scale(1.08);
}

.floating-wa svg {
  width: 36px;
  height: 36px;

  fill: #ffffff;
}

/* ==========================================================================
   19. SCROLL REVEAL & MOTION
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);

  will-change: transform, opacity;

  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.auth-panel.reveal {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.delay-3 {
  transition-delay: 0.36s;
}

/* ==========================================================================
   20. RESPONSIVE — <= 1140px
   ========================================================================== */

@media (max-width: 1140px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-auto-rows: 300px;
  }

  .pg-item,
  .pg-item.medium,
  .pg-item.wide,
  .pg-item.small {
    grid-column: span 6 !important;
    grid-row: span 1 !important;
  }

  .why-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 5rem;
  }

  .ba-container {
    height: 52vh;
  }

  .story-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;

    margin-bottom: 5rem;

    direction: ltr;
  }

  .service-row:nth-child(even) > * {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 5rem;
  }

  .footer-grid {
    grid-template-columns:
      minmax(0, 1.5fr)
      minmax(0, 1fr);

    gap: 3.5rem;
  }

  .nav-links {
    gap: 1.75rem;
  }

  #navbar {
    padding-inline: 2rem;
  }

  #navbar.scrolled {
    padding-inline: 2rem;
  }
}

/* ==========================================================================
   21. RESPONSIVE — <= 768px
   ========================================================================== */

@media (max-width: 768px) {
  #navbar {
    top: 0;

    width: 100%;

    padding: 1.2rem var(--space-sm);

    border-right: 0;
    border-left: 0;
    border-top: 0;
    border-bottom: 1px solid var(--border-alpha);

    border-radius: 0;

    background: var(--bg-base);
  }

  #navbar.scrolled {
    top: 0;
    padding: 1rem var(--space-sm);
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-actions {
    gap: 0.75rem;
  }

  .nav-logo {
    gap: 10px;
  }

  .nav-logo-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .nav-logo-text {
    font-size: 1.2rem;
  }

  #page-header {
    padding: 9rem 0 4rem;
  }

  .title-huge {
    font-size: 2.8rem;
  }

  .title-section {
    font-size: 2.4rem;
  }

  .hero-ctas {
    gap: 1rem;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .trust-badges {
    gap: 1.5rem 2rem;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    padding: 3rem 2.25rem;
  }

  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.5rem;
    margin-top: 4rem;
  }

  .timeline::before {
    display: none;
  }

  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .stat-card {
    padding: 2.75rem 1.75rem;
  }

  .ba-container {
    height: 42vh;
    min-height: 350px;

    margin-top: 3rem;
  }

  .ba-handle {
    width: 3px;
  }

  .ba-handle-btn {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .ba-handle-btn svg {
    width: 25px;
    height: 25px;
  }

  .ba-badge {
    bottom: 1.25rem;

    padding: 0.45rem 1.2rem;

    font-size: 0.75rem;
  }

  .bb-before {
    left: 1.25rem;
  }

  .bb-after {
    right: 1.25rem;
  }

  .faq-wrap {
    margin-top: 3rem;
  }

  .faq-q {
    padding: 1.5rem var(--space-sm);
    font-size: 1.15rem;
  }

  .faq-a {
    padding-inline: var(--space-sm);
  }

  .faq-item.active .faq-a {
    padding-bottom: 1.5rem;
  }

  .story-img-wrapper img {
    aspect-ratio: 1 / 1;
  }

  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 300px;
    gap: 1.25rem;
  }

  .pg-item,
  .pg-item.medium,
  .pg-item.wide,
  .pg-item.small {
    grid-column: 1 / -1 !important;
    grid-row: span 1 !important;

    height: 300px;
  }

  .pg-overlay {
    padding: 2rem;
  }

  .pg-overlay h4 {
    font-size: 1.5rem;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .form-group.full {
    grid-column: 1 / -1;
  }

  .form-card {
    padding: 2.75rem 2rem;
  }

  .contact-info {
    padding-right: 0;
  }

  .contact-method {
    gap: 1rem;
  }

  .cm-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .cm-icon svg {
    width: 24px;
    height: 24px;
  }

  .cm-text a {
    font-size: 1.45rem;
  }

  .process-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .floating-wa {
    right: 20px;
    bottom: 20px;

    width: 58px;
    height: 58px;
  }

  .floating-wa svg {
    width: 31px;
    height: 31px;
  }
}

/* ==========================================================================
   22. RESPONSIVE — <= 480px
   ========================================================================== */

@media (max-width: 480px) {
  .container {
    width: min(100% - 2rem, 1340px);
  }

  .nav-logo-text {
    font-size: 1.05rem;
  }

  .nav-logo-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .title-huge {
    font-size: 2.35rem;
  }

  .title-section {
    font-size: 2.05rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .hero-ctas .btn {
    padding: 1.05rem 1.5rem;
  }

  .trust-badges {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .service-card {
    padding: 2.25rem 1.5rem;
  }

  .service-icon {
    width: 62px;
    height: 62px;
    flex-basis: 62px;

    margin-bottom: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.35rem;
  }

  .ba-container {
    min-height: 280px;
    height: 48vh;
  }

  .ba-badge {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .bb-before {
    left: 0.75rem;
  }

  .bb-after {
    right: 0.75rem;
  }

  .pg-item,
  .pg-item.medium,
  .pg-item.wide,
  .pg-item.small {
    height: 250px;
  }

  .faq-q {
    padding: 1.25rem 1rem;
    font-size: 1rem;
  }

  .faq-a {
    padding-inline: 1rem;
    font-size: 0.95rem;
  }

  .faq-item.active .faq-a {
    padding-bottom: 1.25rem;
  }

  .form-card {
    padding: 2rem 1.25rem;
  }

  .contact-method {
    align-items: flex-start;
  }

  .cm-text a {
    font-size: 1.25rem;
  }

  .process-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .floating-wa {
    right: 20px;
    bottom: 20px;

    width: 58px;
    height: 58px;
  }

  .floating-wa svg {
    width: 31px;
    height: 31px;
  }
}

/* ==========================================================================
   23. ACCESSIBILITY / REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   24. PROJECT LIGHTBOX & ADMIN DASHBOARD
   ========================================================================== */

.project-trigger {
  padding: 0;
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  text-align: left;
  cursor: pointer;
}

.project-trigger:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 2rem;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.project-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 34, 0.82);
  backdrop-filter: blur(12px);
}

.project-modal-dialog {
  position: relative;
  z-index: 1;

  width: min(1100px, 92vw);
  max-height: 88vh;
  height: min(88vh, 760px);
  overflow: hidden;

  border: 1px solid var(--border-alpha);
  border-radius: 28px;
  background: rgba(9, 24, 43, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.project-modal-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.72fr);
  min-height: 0;
  height: 100%;
}

.project-modal-media {
  min-height: 440px;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
}

.project-modal-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1rem 1rem 1rem;
  overflow-y: auto;
  background: rgba(7, 18, 31, 0.96);
}

.project-modal-content h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  font-family: var(--font-head);
  letter-spacing: -0.01em;
}

.project-modal-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e0e8f0;
  margin: 1rem 0 0.5rem 0;
}

.project-modal-content p {
  font-size: 0.95rem;
  color: #c5d3e0;
  line-height: 1.6;
  margin: 0;
}

.project-modal-content strong,
.project-modal-content b {
  color: #00d4ff;
  font-weight: 700;
}

.project-modal-content label {
  color: #b0c4d6;
  font-weight: 600;
}

.project-modal-content::-webkit-scrollbar,
.project-modal-thumbs::-webkit-scrollbar {
  width: 8px;
}

.project-modal-content::-webkit-scrollbar-track,
.project-modal-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.project-modal-content::-webkit-scrollbar-thumb,
.project-modal-thumbs::-webkit-scrollbar-thumb {
  background: rgba(122, 232, 143, 0.85);
  border-radius: 999px;
}

.project-modal-content,
.project-modal-thumbs {
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 232, 143, 0.85) rgba(255, 255, 255, 0.06);
}

.project-modal-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.project-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  min-height: 72px;
}

.project-thumb img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  display: block;
}

.project-thumb.active {
  border-color: var(--green);
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;

  width: 44px;
  height: 44px;
  border: 2px solid #0078c1;
  border-radius: 50%;
  background: rgba(0, 120, 193, 0.15);
  color: #00d4ff;
  font-size: 1.8rem;
  line-height: 1.2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: bold;
}

.project-modal-close:hover {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.2);
  transform: rotate(90deg);
}

/* ==========================================================================
   25. ADMIN / AUTH PAGES
   ========================================================================== */

.admin-page {
  background: linear-gradient(135deg, #041222 0%, #0a2347 100%);
  min-height: 100vh;
}

.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem 1rem;
}

.auth-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1140px;
  width: 100%;
  overflow: visible;
  
  border: 1px solid rgba(0, 120, 193, 0.25);
  border-radius: 24px;
  background: rgba(9, 22, 38, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  min-height: 600px;
}

.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, rgba(4, 18, 34, 0.85), rgba(7, 32, 58, 0.8));
  overflow: hidden;
  min-height: 600px;
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 18, 34, 0.4), rgba(0, 120, 193, 0.08));
  z-index: 0;
}

.auth-brand-panel > * {
  position: relative;
  z-index: 1;
}

.auth-brand-panel .section-tag {
  color: #00d4ff;
}

.auth-brand-panel h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.auth-brand-panel p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #dce5f0;
  line-height: 1.7;
  opacity: 0.95;
}

@media (max-width: 900px) {
  .project-modal {
    padding: 0.75rem;
  }

  .project-modal-dialog {
    width: min(96vw, 760px);
    max-height: 92vh;
    height: min(92vh, 720px);
    border-radius: 22px;
  }

  .project-modal-main {
    grid-template-columns: 1fr;
  }

  .project-modal-media {
    min-height: 240px;
    max-height: 42vh;
  }

  .project-modal-content {
    padding: 1rem 0.9rem 0.9rem;
  }

  .project-modal-thumbs {
    max-height: 210px;
  }
}

@media (max-width: 640px) {
  .project-modal-dialog {
    width: min(94vw, 640px);
    border-radius: 18px;
  }

  .project-modal-close {
    top: 0.7rem;
    right: 0.7rem;
    width: 36px;
    height: 36px;
    font-size: 1.7rem;
  }

  .project-modal-content h3 {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .project-modal-thumbs {
    max-height: 180px;
  }

  .project-thumb img {
    height: 62px;
  }

  .auth-shell {
    padding: 1rem 0.75rem;
  }

  .auth-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-brand-panel,
  .auth-card {
    padding: 1.4rem 1rem;
  }

  .auth-card {
    border-left: none;
    border-top: 1px solid var(--border-alpha);
  }

  .auth-credentials li {
    flex-direction: column;
    align-items: flex-start;
  }
}

.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  background:
    linear-gradient(135deg, rgba(4, 18, 34, 0.82), rgba(7, 32, 58, 0.75)),
    url("../img/project10/img5.webp") center / cover no-repeat;
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 18, 34, 0.4), rgba(0, 120, 193, 0.08));
}

.auth-brand-panel > * {
  position: relative;
  z-index: 1;
}

.auth-logo-wrap {
  display: inline-flex;
  width: 78px;
  height: 78px;
  padding: 0.8rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand-panel h1 {
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.auth-brand-panel p {
  max-width: 480px;
  font-size: 1.04rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.auth-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.auth-highlights li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #edf8ff;
  font-weight: 600;
}

.auth-highlights li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(96, 163, 37, 0.18);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 900;
}

.auth-card {
  width: 100%;
  min-width: 0;
  padding: clamp(2rem, 4vw, 3rem);
  background: rgba(9, 22, 38, 0.95);
  border-left: 1px solid rgba(0, 120, 193, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 600px;
}

.auth-card-header {
  margin-bottom: 1.5rem;
}

.mini-label {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00d4ff;
}

.auth-card-header h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.4rem);
  color: #f0f4f8;
  margin-bottom: 1rem;
}

.auth-alert {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.auth-alert.error {
  background: rgba(184, 52, 52, 0.15);
  border: 1px solid rgba(255, 94, 94, 0.35);
  color: #ffd6d6;
}

.auth-alert.success {
  background: rgba(75, 132, 52, 0.15);
  border: 1px solid rgba(120, 210, 82, 0.35);
  color: #dafbd2;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.field-group label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #e0e8f0;
  display: block;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1.5px solid rgba(0, 120, 193, 0.4);
  border-radius: 10px;
  background: rgba(11, 32, 59, 0.6);
  color: #f0f4f8;
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-glow);
  outline: none;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #7a94ab;
  opacity: 0.75;
}

.btn-block {
  width: 100%;
}

.auth-credentials {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-alpha);
  color: var(--text-muted);
}

.auth-credentials p {
  margin-bottom: 0.8rem;
  color: #e0e8f0;
  font-weight: 600;
}

.auth-credentials ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-credentials li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 120, 193, 0.3);
  border-radius: 10px;
  background: rgba(0, 120, 193, 0.08);
  color: #f0f4f8;
}

.auth-credentials li span {
  color: #8fa6c1;
  font-size: 0.85rem;
}

.auth-credentials li strong {
  color: #00d4ff;
  font-family: var(--font-body);
}

/* ==========================================================================
   26. ADMIN DASHBOARD & COMPONENTS (MISSING STYLES)
   ========================================================================== */

/* Topbar */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.5rem 0;
  margin-bottom: 3rem;
  background: rgba(4, 18, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-alpha);
}

.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-topbar-inner h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-top: 0.25rem;
}

.admin-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Layouts */
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 5rem;
}

.admin-layout.single-column {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
  margin-inline: auto;
}

/* Cards */
.admin-card {
  background: rgba(9, 22, 38, 0.85);
  border: 1px solid rgba(0, 120, 193, 0.25);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.admin-card-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-alpha);
}

.admin-card-header h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: #ffffff;
}

/* Table */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-alpha);
}

.admin-table td {
  padding: 1.25rem;
  vertical-align: middle;
  color: #e0e8f0;
  border-bottom: 1px solid var(--border-alpha);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.empty-state {
  text-align: center;
  padding: 3rem !important;
  color: var(--text-muted);
  font-style: italic;
}

/* Buttons */
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-alpha-hover);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(220, 53, 69, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(220, 53, 69, 0.3);
  box-shadow: none;
}

.btn-danger:hover {
  background: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
}
 .btn-outline {
            background: rgba(255,255,255,0.02); color: var(--text-main);
            border: 1px solid var(--border-alpha-hover); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        }
        .btn-outline:hover {
            background: var(--text-main); color: var(--bg-dark);
            transform: translateY(-4px); border-color: var(--text-main);
            box-shadow: 0 12px 32px var(--shadow-main);
        }
.action-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Image Upload Grid */
.field-note {
  display: block;
  margin-top: 0.5rem;
  color: #7a94ab;
  font-size: 0.85rem;
}

.existing-images-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-alpha);
}

.existing-images-box h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.existing-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
}

.existing-image-item {
  position: relative;
  border: 1px solid var(--border-alpha);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.existing-image-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.existing-image-item:hover img {
  opacity: 1;
}

.image-checkbox {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(220, 53, 69, 0.9);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.form-actions {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-alpha);
}

/* Admin Responsive */
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-card {
    padding: 1.5rem;
  }
}

.admin-panel.reveal {
  opacity: 1;
  transform: translateY(0);
}