/* ═══════════════════════════════════════════
   LUMIS STUDIO — CSS
   Premium Creative Agency Portfolio
═══════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

:root {
  --white: #f7f6f2;
  --off-white: #eae6dc;
  --black: #0d0c0a;
  --dark: #171613;
  --mid: #66635a;
  --border: rgba(13,12,10,0.1);
  --accent: #ff4e20; /* High-performance industrial hydraulic orange-red */
  --accent2: #ffb900; /* Safety gold/amber */

  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-xl: 60px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);

  --section-pad: clamp(80px, 10vw, 140px);
  --container-pad: clamp(20px, 5vw, 80px);
}

/* ─── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  width: 100%;
}

body.menu-open { overflow: hidden; }
body.loading { overflow: hidden; }

a { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; }

/* Hide custom cursor elements */
.cursor-outer, .cursor-inner, .cursor-text { display: none !important; }
input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ─── Noise Texture ──────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ─── Loader ──────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  overflow: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.15em;
}

.loader-bar-wrap {
  width: 200px;
  height: 1px;
  background: rgba(245,244,240,0.15);
  overflow: hidden;
  border-radius: 2px;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.loader-count {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--mid);
  font-weight: 500;
}

.loader-reveal {
  position: absolute;
  inset: 0;
  background: var(--black);
  transform-origin: bottom;
}

/* ─── Custom Cursor ───────────────────────── */
.cursor-outer {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(14,13,11,0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s var(--ease-out), border-color 0.3s, width 0.3s var(--ease-out), height 0.3s var(--ease-out);
  mix-blend-mode: normal;
}

.cursor-inner {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.05s;
}

.cursor-text {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.cursor-outer.cursor-hover {
  width: 80px;
  height: 80px;
  background: var(--black);
  border-color: transparent;
}

.cursor-outer.cursor-hover .cursor-text { opacity: 1; }

.cursor-outer.cursor-active {
  transform: translate(-50%, -50%) scale(0.85);
}

/* ─── Navigation ──────────────────────────── */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 48px;
  background: rgba(13, 12, 10, 0.92); /* Sleek premium dark pill background */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08); /* Elegant dark border */
  border-radius: 100px;
  padding: 12px 20px 12px 28px;
  width: calc(100% - 48px);
  max-width: 1100px;
  opacity: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(245, 244, 240, 0.65); /* Soft light-grey navigation links */
  transition: color 0.2s;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover { color: var(--white); }

/* Nav Dropdown Wrapper */
.nav-item.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Caret Arrow Element */
.arrow-down {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 4px solid rgba(245, 244, 240, 0.6);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform 0.3s var(--ease-out), border-top-color 0.25s;
}

.nav-item.dropdown.open .arrow-down {
  transform: rotate(180deg);
  border-top-color: var(--white);
}

/* Dropdown Menu Container (Sleek Opaque Glassmorphism matching the Navbar) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 320px;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  background: rgba(13, 12, 10, 0.96); /* Matches navbar dark overlay */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1010;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
}

/* Custom Scrollbar for Dropdown Menu */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #03c4fe;
}

/* Hover bridge wrapper prevents cursor leaving drop area */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -30px;
  right: -30px;
  height: 45px;
  z-index: -1;
}

.nav-item.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(10px) scale(1);
}

/* Dropdown Links Symmetrical Padding & Transition */
.dropdown-menu a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 244, 240, 0.7);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.25s, color 0.25s, padding-left 0.25s var(--ease-out);
  text-align: left;
  line-height: 1.4;
}

.dropdown-menu a:hover {
  background: #03c4fe;

  color: var(--white);
  padding-left: 20px; /* High-end visual indentation swipe */
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white); /* White high-contrast button */
  color: var(--black); /* Black text */
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.3s, color 0.3s;
  flex-shrink: 0;
}

.nav-cta svg { width: 16px; height: 16px; }
.nav-cta:hover { background: var(--accent); color: var(--white); }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  margin-left: auto;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white); /* Toggle lines in high-contrast white */
  transition: transform 0.3s, opacity 0.3s;
}

.nav.menu-open .nav-menu-btn span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav.menu-open .nav-menu-btn span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ─── Menu Overlay ────────────────────────── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
}

.menu-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.7s var(--ease-out);
}

.menu-overlay.open .menu-bg { transform: scaleY(1); }
.menu-overlay.open { pointer-events: all; }

.menu-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--container-pad) 60px;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-nav-item {
  display: flex;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
}

.menu-nav-link {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 90px); /* Slightly refined base for ultra-small screens */
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(40px);
  transition: color 0.3s;
  position: relative;
  display: inline-block;
}

.menu-nav-link::before {
  content: attr(data-index);
  position: absolute;
  left: -40px;
  top: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mid);
}

.menu-nav-link:hover { color: var(--accent); }

.menu-overlay.open .menu-nav-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s;
}

/* Mobile Submenu Dropdown & Caret Toggle */
.menu-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  opacity: 0;
  transform: translateY(40px);
}

.menu-overlay.open .menu-dropdown-toggle {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.3s, background 0.3s;
  transition-delay: 0.2s; /* Aligns visually with index 02 link */
}

.menu-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.menu-dropdown-toggle .arrow-down {
  border-top-color: var(--white);
  margin-left: 0;
  transition: transform 0.3s var(--ease-out);
}

.menu-dropdown-toggle.active .arrow-down {
  transform: rotate(180deg);
}

.menu-submenu {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), margin 0.3s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 40px;
}

.menu-submenu.open {
  margin-top: 12px;
  margin-bottom: 12px;
}

.menu-submenu a {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 500;
  color: rgba(245, 244, 240, 0.6);
  transition: color 0.2s, padding-left 0.25s var(--ease-out);
  padding: 6px 0;
  border-bottom: none;
}

.menu-submenu a:hover {
  color: var(--white);
  padding-left: 8px;
}

.menu-overlay.open .menu-nav-link:nth-child(1) { transition-delay: 0.15s; }
.menu-overlay.open .menu-nav-link:nth-child(2) { transition-delay: 0.2s; }
.menu-overlay.open .menu-nav-link:nth-child(3) { transition-delay: 0.25s; }
.menu-overlay.open .menu-nav-link:nth-child(4) { transition-delay: 0.3s; }
.menu-overlay.open .menu-nav-link:nth-child(5) { transition-delay: 0.35s; }
.menu-overlay.open .menu-nav-link:nth-child(6) { transition-delay: 0.4s; }

.menu-footer {
  margin-top: auto;
  display: flex;
  gap: 40px;
  color: var(--mid);
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s 0.5s, transform 0.5s 0.5s;
}

.menu-overlay.open .menu-footer {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Container ──────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── Sections ───────────────────────────── */
.section {
  padding: 50px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--mid);
}

.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--mid);
}

/* ─── Reveal Animations ──────────────────── */
.reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

/* ─── Glass Card ────────────────────────── */
.glass-card {
  background: rgba(245,244,240,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 40px rgba(14,13,11,0.08), 0 2px 0 rgba(255,255,255,0.8) inset;
}

/* ─── Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn span { position: relative; z-index: 1; }
.btn svg { width: 18px; height: 18px; position: relative; z-index: 1; }

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover::before { transform: scaleX(1); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--black);
  border: 1.5px solid rgba(14,13,11,0.2);
}

.btn-outline::before { background: var(--black); }
.btn-outline:hover { color: var(--white); border-color: var(--black); }

.btn-full { width: 100%; justify-content: center; }

/* ─── Magnetic ───────────────────────────── */
.magnetic { display: inline-block; }

/* ─── HERO ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 120px var(--container-pad) 15px; /* Pushed further down to show more video space */
  background: var(--white);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8  8; /* Soft ambient opacity to ensure high readability of overlay titles */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  /* margin: 0 auto; */
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* background: rgba(255,255,255,0.8); */
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px 6px 10px;
  font-size: 12px;
  font-weight: 500;
  background: #0000;
  letter-spacing: 0.04em;
  margin-bottom: 16px; /* Reduced from 32px to push elements down */
  opacity: 0;
  color: #ffffff;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 7.5vw, 95px); /* Slightly reduced max-size to show more of the background video */
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 10px; /* Reduced from 24px to move title even closer to the bottom */
  overflow: hidden;
  color: #ffffff;
}

.hero-line {
  display: block;
  overflow: hidden;
  transform: translateY(110%);
}

.hero-line.italic { font-style: italic; color: #04b9ef; }

.hero-sub-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  color:white;
  line-height: 1.7;
  max-width: 360px;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Hero Slider */
.hero-slider-wrap {
  position: absolute;
  right: clamp(15px, 2.5vw, 35px); /* Shifted further to the right */
  top: 58%; /* Shifted down from 50% */
  transform: translateY(-50%);
  z-index: 3;
  width: min(320px, 28vw);
  opacity: 0;
}

.hero-swiper {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-slide-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.slide-label {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 100px;
}

.hero-slider-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 4px;
}

.slider-prev, .slider-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.slider-prev svg, .slider-next svg { width: 16px; height: 16px; }
.slider-prev:hover, .slider-next:hover { background: var(--black); color: var(--white); }

.hero-pagination {
  display: flex !important;
  gap: 4px;
  align-items: center;
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
}
.hero-pagination .swiper-pagination-bullet {
  width: 6px; height: 6px;
  background: #000000;
  border-radius: 50%;
  opacity: 0.4;
  transition: all 0.3s;
}
.hero-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: #ffffff;
  width: 20px;
  border-radius: 3px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 4;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--black), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--mid);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ─── Marquee ────────────────────────────── */
.marquee-section {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}

.marquee-track { display: flex; }

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--dark);
  animation: marquee-scroll 25s linear infinite;
  flex-shrink: 0;
}

.dot {
  color: var(--accent);
  font-size: 14px;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── About ──────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  margin-bottom: clamp(60px, 8vw, 100px);
}
.about-handtool-wrap {
  margin-top: 40px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1.35; /* Refined aspect ratio to perfectly fit vertical elements */
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(13,12,10,0.06);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  background: #ffffff; /* Solid white background for clean catalog presentation */
}

.about-handtool-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(13,12,10,0.1);
}

.about-handtool-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain; /* Full hoses standing vertically without any cropped boundaries */
  transition: transform 0.8s var(--ease-out);
  padding: 16px; /* Elegant breathing gap around the edges */
}

.about-handtool-wrap:hover .about-handtool-img {
  transform: translate(-50%, -50%) scale(1.05);
}

.about-desc {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 24px;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.stat-item { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 0.05em;
}

.about-badges {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.about-badge-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.35s var(--ease-out);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.about-badge-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(255, 78, 32, 0.08);
}

.about-badge-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 78, 32, 0.08);
  color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.35s var(--ease-out);
}

.about-badge-card:hover .about-badge-icon {
  background: var(--accent);
  color: var(--white);
}

.about-badge-icon svg {
  width: 16px;
  height: 16px;
}

.about-badge-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
}

.about-visual {
  position: relative;
  height: clamp(320px, 45vw, 560px);
}

.about-img-card {
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-img-inner {
  height: 100%;
  position: relative;
}

.about-img-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #533483 50%, #e96c4c 100%);
}

.about-img-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
}

.overlay-text {
  background: #03c4fe;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 10px 18px;
  border-radius: 100px;
}

.about-float-card {
  position: absolute;
  bottom: 40px;
  right: -30px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 140px;
}

.float-card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--mid);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.float-card-val {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.float-card-sub {
  font-size: 12px;
  color: var(--mid);
  margin-top: 4px;
}

/* ─── Services ───────────────────────────── */
.services {
  position: relative;
  background: var(--off-white);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3vh 0; /* Minimized padding to comfortably allocate maximum viewport height to the large scattered card grid */
}

.services .section-header {
  margin-bottom: clamp(24px, 3.5vw, 42px); /* Tightened bottom margin inside services section to optimize vertical viewport space */
}

/* Background blueprint grid for technical engineering aesthetic */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(13, 12, 10, 0.08) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.services-glow-1 {
  position: absolute;
  top: -15%;
  left: -10%;
  width: 45%;
  height: 45%;
  background: radial-gradient(circle, rgba(255, 78, 32, 0.07) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 1;
}

.services-glow-2 {
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 45%;
  height: 45%;
  background: radial-gradient(circle, rgba(255, 185, 0, 0.07) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 1;
}

/* Services 3D Stacking Deck Container */
.services-stack-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 400px; /* Shrunk from 440px to ensure the stacked deck sits perfectly centered and fully visible on all viewports without cutoff */
  margin-top: 25px;
  z-index: 5;
}

.services-card-stack {
  width: 310px;
  height: 375px; /* Shrunk slightly from 410px to guarantee 100% visibility on all viewports */
  position: relative;
  perspective: 1500px;
  will-change: transform;
}

.service-card-3d {
  width: 310px;
  height: 375px; /* Matches stack height */
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--radius-md);
  transform-style: preserve-3d;
  cursor: pointer;
  will-change: transform, opacity, filter;
  transition: filter 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

.service-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 3D Y-axis flip when clicked (.flipped) */
.service-card-3d.flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front, .service-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 20px; /* Reduced from 24px to free up vertical space for larger images */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Front Face: Premium Solid White Skin (blocks underlying card text from bleeding through, maintaining physical stacked deck layers) */
.service-card-front {
  background: #ffffff;
  border: 1px solid rgba(13, 12, 10, 0.08);
  box-shadow: 0 12px 32px rgba(13, 12, 10, 0.05), inset 0 2px 0 rgba(255, 255, 255, 0.9);
  z-index: 2;
  transform: rotateY(0deg);
}

/* Light Reflective Spotlight Border Glow */
.service-card-front::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(110px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 78, 32, 0.45), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: 10;
}

.service-card-3d:hover .service-card-front::after {
  opacity: 1;
}

/* Back Face: Solid Deep-Dark Engineering Specs Sheet */
.service-card-back {
  transform: rotateY(180deg);
  background: rgba(13, 12, 10, 0.98);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.service-card-front .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-card-front .card-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.service-card-front .card-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mid);
  text-transform: uppercase;
  border: 1px solid rgba(13, 12, 10, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
}

.service-card-front .card-img-wrap {
  width: 100%;
  height: 185px; /* Increased height to make product images significantly larger */
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 8px 0; /* Reduced margin to optimize space */
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
  background: rgba(13, 12, 10, 0.02) !important;
  border: 1px solid rgba(13, 12, 10, 0.08) !important;
  display: block !important; /* Fill container completely */
  padding: 0 !important; /* Edge to edge image display */
}

.service-card-front .card-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.service-card-front .card-title {
  font-family: var(--font-display);
  font-size: 18px; /* Balanced title size for standard laptops */
  font-weight: 800;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 4px;
}

.service-card-front .service-desc {
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: rgba(13, 12, 10, 0.65) !important; /* Premium dark-charcoal gray with 100% legibility on white card face */
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  font-family: var(--font-body) !important;
}

/* Dynamic Depth Layering and Blur back interaction */
.services-card-stack.has-hovered .service-card-3d:not(.is-hovered) {
  filter: blur(5px) grayscale(0.2);
  opacity: 0.35;
}

.service-card-3d.is-hovered {
  z-index: 99 !important; /* Force interactive card to float over others */
}

/* Responsive Mobile Layout Stack Override */
@media (max-width: 900px) {
  .services {
    min-height: auto;
    padding: 80px 0;
  }
  .services-stack-container {
    height: auto !important;
    padding: 0 var(--container-pad);
    margin-top: 30px;
  }
  .services-card-stack {
    width: 100%;
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    perspective: none;
  }
  .service-card-3d {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 310px;
    height: 375px;
  }
  /* Disable deck blur back filter on mobile for normal scrolling usability */
  .services-card-stack.has-hovered .service-card-3d:not(.is-hovered) {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ─── Projects ───────────────────────────── */
.work {
  overflow: hidden;
}

.work .section-header { 
  padding: 0 var(--container-pad); 
  margin-bottom: 30px !important; /* Reduced margin to free up vertical viewport space */
}

@media (min-width: 901px) {
  .work.section {
    padding: 100px 0 20px; /* Reduced bottom padding to minimize blank white space */
  }
}

.products-grid-container {
  padding: 0 var(--container-pad);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.products-card-grid {
  position: relative;
  width: 100%;
  height: 580px; /* Increased from 440px to tightly fit the new larger card sizes */
  display: flex;
  justify-content: center;
  align-items: center;
}

.products-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 36px);
  width: 100%;
  position: absolute;
  top: 0;
  height: 100%;
  align-items: center; /* Centered vertically without translateY */
  left: 0;
  will-change: transform, opacity;
}

@media (min-width: 901px) {
  .center-grid-item {
    grid-column: 2;
  }
}

.product-card-new {
  position: relative;
  width: 100%;
  max-width: 420px; /* Increased from 360px to make cards bigger */
  margin: 0 auto;
  aspect-ratio: 4 / 5.2; /* Elegant responsive vertical layout ratio */
  background: var(--dark); /* Solid premium opaque background (No transparency) */
  border: 1px solid rgba(255, 255, 255, 0.08); /* Clean subtle border glow */
  border-radius: var(--radius-md); /* Sleek rounded corners matching smaller card footprint */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.5vw, 28px); /* Tighter, cleaner interior padding */
  will-change: transform, opacity, filter;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-shadow: 0 15px 45px rgba(13,12,10,0.3);
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out) !important;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.card-cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(245, 244, 240, 0.4);
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
}

.card-img-wrap {
  width: 100%;
  height: 290px; /* Increased from 220px to make images bigger */
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-sm); /* Tightened radius for sleek tech window frame */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #ffffff; /* High-contrast white backdrop for clear visibility */
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Clear and fully visible without cropping machine parts */
  padding: 16px; /* Breathing gap for professional catalog presentation */
  transition: transform 0.6s var(--ease-out);
}

.card-bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 16px; /* High-end breathing gap between title and arrow button */
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  letter-spacing: -0.01em;
  margin: 0;
  text-align: center;
  width: 100%;
}

.product-card-new .project-arrow {
  position: relative; /* Change from absolute to relative to naturally sit in the center of the card bottom flex column */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out);
  flex-shrink: 0;
  margin: 0 auto; /* Force horizontal centering */
}

.product-card-new .project-arrow svg {
  width: 18px;
  height: 18px;
}

/* Hover States */
.product-card-new:hover {
  border-color: rgba(255, 78, 32, 0.35);
  background: rgba(23, 22, 19, 0.8);
  box-shadow: 0 30px 60px rgba(13,12,10,0.5), 0 0 40px rgba(255, 78, 32, 0.12);
}

.product-card-new:hover .service-desc {
  color: rgba(245, 244, 240, 0.92) !important;
}

.product-card-new:hover .card-img {
  transform: scale(1.06) translateY(-4px);
  filter: drop-shadow(0 20px 45px rgba(255, 78, 32, 0.15));
}

.product-card-new:hover .project-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: rotate(45deg);
}

/* ─── Gallery ────────────────────────────── */
.gallery {
  padding-top: 20px !important; /* Reduced top padding to close the gap from the products section */
}

.gallery .section-title {
  padding: 0 var(--container-pad);
  max-width: 1200px;
}

.gallery .section-tag {
  margin-left: var(--container-pad);
  margin-right: var(--container-pad);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 40px var(--container-pad) 0;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.gallery-item:nth-child(1) { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; min-height: 420px; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 4; }
.gallery-item:nth-child(4) { grid-column: span 4; aspect-ratio: auto; }
.gallery-item:nth-child(5) { grid-column: span 4; }

.gallery-img {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.7s var(--ease-out);
}

.gallery-item:hover .gallery-img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,13,11,0);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background 0.4s;
}

.gallery-item:hover .gallery-overlay { background: rgba(14,13,11,0.4); }

.gallery-overlay span {
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s 0.1s;
}

.gallery-item:hover .gallery-overlay span {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Testimonials ───────────────────────── */
.testimonials { background: var(--off-white); }

.testimonial-swiper { max-width: 800px; margin: 0 auto; }

.testimonial-card {
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-xl);
  margin: 20px 4px;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.8;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 32px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 15px;
}

.author-role {
  font-size: 13px;
  color: var(--mid);
  margin-top: 2px;
}

.testimonial-pagination { margin-top: 24px !important; }
.testimonial-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--mid);
  opacity: 0.3;
}
.testimonial-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--black);
}

/* ─── Team ───────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  border: 1px solid var(--border);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(14,13,11,0.1);
}

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
}

.team-info h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-info span {
  font-size: 13px;
  color: var(--mid);
  letter-spacing: 0.04em;
}

/* ─── Stats Section ──────────────────────── */
.stats-section { background: var(--black); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.stat-block {
  padding: clamp(40px, 4vw, 56px) clamp(16px, 2.2vw, 28px);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
}

.stat-block:last-child { border-right: none; }

.stat-big {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 76px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--white), rgba(245,244,240,0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-desc {
  font-size: 13px;
  color: rgba(245,244,240,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── FAQ ─────────────────────────────────── */
.faq { background: var(--off-white); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  text-align: left;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  gap: 20px;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
}

.faq-icon span {
  position: absolute;
  display: block;
  width: 10px;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}

.faq-icon span:last-child { transform: rotate(90deg); }

.faq-item.open .faq-icon { background: var(--black); border-color: var(--black); }
.faq-item.open .faq-icon span { background: var(--white); }
.faq-item.open .faq-icon span:last-child { transform: rotate(0deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mid);
}

/* ─── Contact ────────────────────────────── */
.contact-inner {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}

.contact-title {
  font-family: var(--font-display);
  font-size: 30px;

  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.contact-title em {
  font-style: italic;
  color: var(--mid);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.contact-link {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  color: var(--dark);
  transition: color 0.2s, letter-spacing 0.3s;
}

.contact-link:hover { color: var(--accent); letter-spacing: 0.02em; }

.contact-socials {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.social-link:hover { color: var(--black); border-color: var(--black); }

.contact-form-wrap {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--black);
  transition: border-color 0.2s;
  outline: none;
  resize: none;
}

.form-input:focus { border-color: var(--black); }

select.form-input { appearance: none; }

/* ─── Footer ─────────────────────────────── */
.footer { background: var(--black); overflow: hidden; }

.footer-top {
  padding: clamp(60px, 8vw, 100px) var(--container-pad) 0;
  overflow: hidden;
}

.footer-big-text {
  font-family: var(--font-display);
  font-size: clamp(40px, 9.5vw, 150px);
  font-weight: 800;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.footer-big-text .brand-atal {
  -webkit-text-stroke: 1.5px #03c4fe; /* Permanent bright cyan stroke matching logo */
}

.footer-big-text .brand-hose {
  -webkit-text-stroke: 1.5px #ffffff; /* Permanent bright white stroke matching logo */
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
}

.footer-left p {
  font-size: 13px;
  color: rgba(245, 244, 240, 0.8); /* Make copyright text clearly visible */
  line-height: 1.6;
}

.footer-left a {
  color: #03c4fe; /* Clean cyan accent for links */
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-left a:hover {
  color: #ffffff;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 13px;
  color: rgba(245, 244, 240, 0.7); /* Make footer links clearly visible */
  transition: color 0.2s;
}

.footer-right a:hover { color: var(--white); }

/* ─── Responsive ─────────────────────────── */
@media (max-width: 1100px) {
  .hero-slider-wrap { width: 240px; }
  .about-float-card { right: 0; }
  /* Services and Products gap configurations */
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(2) { border-right: none; }
  .stat-block:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-menu-btn { display: flex; }
  .nav { padding: 12px 16px 12px 24px; }
  .hero-slider-wrap { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-left { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  
  /* Fix: Reset gallery layout columns and spans to prevent grid spill */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { 
    grid-column: span 1 !important; 
    grid-row: span 1 !important; 
    aspect-ratio: 1 !important; 
    min-height: auto !important; 
  }
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) {
    grid-column: span 2 !important;
    min-height: 280px !important;
    aspect-ratio: auto !important;
  }

  .project-meta { min-width: auto; }
  .project-cat, .project-year { display: none; }
  .work.section {
    padding: 80px 0 60px; /* Comfortable safe padding on mobile viewports to prevent layout bleeding */
  }
  .products-grid-container, .services-grid-container {
    height: auto !important;
    margin-bottom: 20px;
  }
  .products-card-grid, .services-card-grid {
    height: auto !important;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .products-page, .services-page {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    opacity: 1 !important;
  }
  .product-card-new {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 290px !important; /* Shrunk on mobile as well for high-end boutique mobile styling */
    margin: 0 auto !important;
    aspect-ratio: 4 / 5.2 !important;
    padding: 16px !important;
    border-radius: var(--radius-md) !important;
  }
  .card-img-wrap {
    height: 155px !important; /* Perfectly fits the compact card structure without overflow */
  }
  .product-card-new .card-title {
    font-size: 14px;
    margin-right: 32px;
  }
  .product-card-new .project-arrow {
    width: 36px;
    height: 36px;
  }
  .product-card-new .project-arrow svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 640px) {
  .hero-sub-row { flex-direction: column; align-items: flex-start; }
  /* Mobile services layout override handled by general responsive stacks */
  .service-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 24px;
  }
  .service-card-left {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 20px;
  }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 24px; align-items: flex-start; }
  .footer-right { flex-wrap: wrap; gap: 12px 24px; } /* Fix: wrap policy links on mobile */
  .project-content { flex-wrap: wrap; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { grid-column: span 1 !important; }
  .about-float-card { right: 20px; }
}

/* Extra Mobile Safety breakpoint */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-block { 
    border-right: none; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
  }
  .stat-block:last-child { border-bottom: none; }
  .about-stats { gap: 20px 30px; }
  .stat-item { flex: 1 1 calc(50% - 15px); min-width: 100px; }
  .about-float-card {
    right: 16px;
    bottom: 20px;
    padding: 12px 18px;
    min-width: 110px;
  }
  .float-card-val { font-size: 28px; }
  
  /* Fix client marquee logo squishing on small mobile viewports */
  #clients img {
    flex-shrink: 0 !important;
    margin: 0 16px !important;
  }
}

/* ─── Scrollbar ─────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 4px; }

/* ─── Selection ─────────────────────────── */
/* ::selection { background: var(--accent); color: var(--white); } */

/* ─── Map & Floating Actions ────────────── */
.map-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(14,13,11,0.05);
  margin-top: 40px;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.1);
  transition: filter 0.3s;
}

.map-wrap:hover iframe {
  filter: grayscale(0);
}

/* Floating Actions Bar (Sleek Glassmorphic - Bottom Right) */
.floating-actions-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-action-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(245,244,240,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 8px 24px rgba(14,13,11,0.1), 0 2px 0 rgba(255,255,255,0.8) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s var(--ease-out);
}

.float-action-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.3s;
}

.float-action-btn:hover {
  background: var(--black);
  transform: translateY(-4px) scale(1.05);
  border-color: var(--black);
}

.float-action-btn:hover img {
  transform: scale(1.1);
  filter: invert(1);
}

/* Floating Social Links (Sleek Glassmorphic - Bottom Left) */
.floating-socials-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Premium Responsive adjustments for floating actions & social icons */
@media (max-width: 900px) {
  .floating-actions-container, .floating-socials-container {
    bottom: 20px;
    gap: 10px;
  }
  .floating-actions-container {
    right: 20px;
  }
  .floating-socials-container {
    left: 20px;
  }
  .float-action-btn {
    width: 44px;
    height: 44px;
  }
  .float-action-btn img {
    width: 20px;
    height: 20px;
  }
}