/* ═══════════════════════════════════════════════════════════════
   ELdeep الوميتال — Premium Aluminum Craftsmanship Website
   style.css — Full Design System
═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --clr-black:       #0a0a0a;
  --clr-charcoal:    #111318;
  --clr-dark:        #1a1d23;
  --clr-card:        #1e2128;
  --clr-card-hover:  #242832;
  --clr-border:      rgba(255,255,255,0.07);
  --clr-border-s:    rgba(214,106,31,0.25);

  --clr-copper:      #D66A1F;
  --clr-copper-l:    #e87d31;
  --clr-copper-d:    #b5561a;
  --clr-copper-glow: rgba(214,106,31,0.15);

  --clr-white:       #ffffff;
  --clr-gray-l:      #f0f0f0;
  --clr-gray:        #8a8e99;
  --clr-gray-d:      #4a4e5a;

  --font-ar:         'Cairo', sans-serif;
  --font-en:         'Outfit', sans-serif;

  --r-sm:    6px;
  --r-md:    12px;
  --r-lg:    20px;
  --r-xl:    28px;
  --r-full:  9999px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.6);
  --shadow-cu:   0 0 32px rgba(214,106,31,0.15);

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: 0.18s cubic-bezier(0.4,0,0.2,1);

  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--clr-black);
  color: var(--clr-white);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

body.lang-en {
  direction: ltr;
  font-family: var(--font-en);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-dark); }
::-webkit-scrollbar-thumb { background: var(--clr-copper); border-radius: var(--r-full); }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10,10,10,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.logo:hover { opacity: 0.85; }

.logo-icon-wrap {
  width: 40px; height: 40px;
  flex-shrink: 0;
}
.logo-icon-wrap svg { width: 100%; height: 100%; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 17px;
  color: var(--clr-white);
  letter-spacing: 1px;
}
.logo-ar {
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 13px;
  color: var(--clr-copper);
  letter-spacing: 0;
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-gray);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--clr-white);
  background: rgba(255,255,255,0.06);
}
.nav-link.active { color: var(--clr-copper); }

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--clr-border-s);
  border-radius: var(--r-full);
  padding: 4px 10px;
  flex-shrink: 0;
}
.lang-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-gray);
  padding: 2px 6px;
  border-radius: var(--r-full);
  transition: var(--transition-fast);
  font-family: inherit;
}
.lang-btn.active,
.lang-btn:hover { color: var(--clr-copper); }
.lang-divider { color: var(--clr-border-s); font-size: 13px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  margin-inline-start: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: var(--transition-fast);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--clr-border);
  background: rgba(10,10,10,0.98);
}
.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 12px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--clr-gray);
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition-fast);
}
.mobile-link:last-of-type { border-bottom: none; }
.mobile-link:hover { color: var(--clr-copper); padding-inline-start: 8px; }

.mobile-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;   /* fallback for older browsers */
  min-height: 100dvh;  /* real viewport height on mobile — avoids the
                           address-bar show/hide jump that cuts off or
                           leaves a gap under the hero on phones */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: hero-ken-burns 20s ease-in-out infinite alternate;
}
@keyframes hero-ken-burns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.92) 0%,
    rgba(10,10,10,0.75) 50%,
    rgba(26,29,35,0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 100px;
  max-width: 740px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(214,106,31,0.12);
  border: 1px solid rgba(214,106,31,0.3);
  border-radius: var(--r-full);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-copper-l);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  animation: fade-up 0.8s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clr-copper);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fade-up 0.9s ease both 0.1s;
}
.hero-brand {
  font-family: var(--font-en);
  background: linear-gradient(135deg, #ffffff 40%, #D66A1F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-ar {
  font-style: normal;
  font-family: var(--font-ar);
  background: linear-gradient(135deg, #D66A1F 0%, #f09040 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-owner {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--clr-gray-l);
  margin-bottom: 12px;
  animation: fade-up 1s ease both 0.2s;
}

.hero-tagline {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--clr-gray);
  margin-bottom: 40px;
  font-weight: 400;
  animation: fade-up 1s ease both 0.3s;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
  animation: fade-up 1s ease both 0.4s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--clr-copper) 0%, var(--clr-copper-l) 100%);
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(214,106,31,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--clr-copper-l) 0%, #f5a050 100%);
  box-shadow: 0 6px 30px rgba(214,106,31,0.5);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--clr-copper);
  color: var(--clr-copper);
  background: rgba(214,106,31,0.06);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  animation: fade-up 1s ease both 0.5s;
}
.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
}
.stat:first-child { padding-inline-start: 0; }
.stat-icon { font-size: 18px; }
.stat-label { font-size: 13px; color: var(--clr-gray); font-weight: 500; }
.stat-div {
  width: 1px; height: 28px;
  background: var(--clr-border);
}

/* Scroll indicator */
.scroll-ind {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.scroll-dot {
  width: 6px; height: 28px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 6px;
  background: var(--clr-copper);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { top: 4px; opacity: 1; }
  80%  { top: 16px; opacity: 0; }
  100% { top: 4px; opacity: 0; }
}

/* ══════════════════════════════════════
   SECTION COMMONS
══════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header--left { text-align: start; }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-copper);
  background: rgba(214,106,31,0.1);
  border: 1px solid rgba(214,106,31,0.2);
  border-radius: var(--r-full);
  padding: 4px 14px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-sub {
  font-size: 16px;
  color: var(--clr-gray);
  max-width: 600px;
  margin: 0 auto;
}
.section-header--left .section-sub { margin: 0; }

/* Fade-in animation on scroll */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-up 0.7s ease both; }

/* ══════════════════════════════════════
   OUR WORK
══════════════════════════════════════ */
.work-section { background: var(--clr-charcoal); }

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-gray);
  border: 1px solid var(--clr-border);
  background: transparent;
  transition: var(--transition-fast);
  font-family: inherit;
}
.filter-btn:hover {
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}
.filter-btn.active {
  background: var(--clr-copper);
  border-color: var(--clr-copper);
  color: var(--clr-white);
  box-shadow: 0 4px 16px rgba(214,106,31,0.3);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.portfolio-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
  will-change: transform;
}
.portfolio-item:hover {
  transform: translateY(-6px);
  border-color: var(--clr-border-s);
  box-shadow: var(--shadow-md), var(--shadow-cu);
}
.portfolio-item.hidden { display: none; }

.portfolio-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--clr-dark);
}
.portfolio-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.portfolio-thumb:hover img { transform: scale(1.08); }

/* Placeholder cards */
.ph-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #141720 0%, #1c2030 100%);
}
.ph-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}
.portfolio-thumb:hover .ph-inner { opacity: 1; }
.ph-icon { width: 64px; height: 64px; }
.ph-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-copper);
  letter-spacing: 0.5px;
}

/* Overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(214,106,31,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  backdrop-filter: blur(2px);
}
.portfolio-thumb:hover .portfolio-overlay { opacity: 1; }
.ov-icon {
  width: 48px; height: 48px;
  background: var(--clr-copper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.7);
  transition: transform var(--transition-fast);
}
.portfolio-thumb:hover .ov-icon { transform: scale(1); }
.ov-icon svg { width: 20px; height: 20px; color: white; }

.portfolio-cat {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--clr-border-s);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  color: var(--clr-copper);
  letter-spacing: 0.3px;
}

.portfolio-info {
  padding: 16px 20px 20px;
}
.portfolio-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 6px;
}
.portfolio-desc {
  font-size: 13px;
  color: var(--clr-gray);
  line-height: 1.6;
}

/* Add photos note */
.add-photos-note {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.add-note-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(214,106,31,0.06);
  border: 1px dashed rgba(214,106,31,0.25);
  border-radius: var(--r-lg);
  padding: 16px 24px;
  max-width: 700px;
}
.add-note-inner svg { width: 22px; height: 22px; color: var(--clr-copper); flex-shrink: 0; margin-top: 2px; }
.add-note-inner p { font-size: 13px; color: var(--clr-gray); line-height: 1.7; }

/* ══════════════════════════════════════
   SERVICES
══════════════════════════════════════ */
.services-section {
  background: linear-gradient(180deg, var(--clr-black) 0%, var(--clr-charcoal) 100%);
}

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

.service-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--clr-copper), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-border-s);
  box-shadow: var(--shadow-md), var(--shadow-cu);
  background: var(--clr-card-hover);
}
.service-card:hover::before { opacity: 1; }

.service-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr 3fr;
  align-items: start;
  gap: 24px;
}

.svc-icon-wrap {
  width: 60px; height: 60px;
  background: rgba(214,106,31,0.1);
  border: 1px solid rgba(214,106,31,0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.service-card:hover .svc-icon-wrap {
  background: rgba(214,106,31,0.18);
  border-color: rgba(214,106,31,0.4);
}
.svc-icon { width: 30px; height: 30px; color: var(--clr-copper); }

.svc-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 4px;
  margin-top: 16px;
}
.service-card--wide .svc-title { margin-top: 0; }

.svc-sub {
  font-size: 12px;
  color: var(--clr-copper);
  font-family: var(--font-en);
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
}
.lang-en .svc-sub { font-family: var(--font-ar); }

.svc-desc {
  font-size: 14px;
  color: var(--clr-gray);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about-section {
  background: var(--clr-charcoal);
  overflow: hidden;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

/* Visual / Geo */
.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.about-geo-wrap {
  position: relative;
  width: 280px; height: 280px;
}

.geo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(214,106,31,0.2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.geo-ring-1 { width: 280px; height: 280px; animation: rotate-ring 30s linear infinite; }
.geo-ring-2 { width: 200px; height: 200px; border-style: dashed; animation: rotate-ring 20s linear infinite reverse; border-color: rgba(214,106,31,0.15); }
@keyframes rotate-ring {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

.geo-hex {
  position: absolute;
  inset: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.geo-hex svg { width: 100%; height: 100%; animation: rotate-ring 60s linear infinite; }

.about-badge-e {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--clr-copper), var(--clr-copper-l));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 900;
  color: white;
  box-shadow: 0 0 40px rgba(214,106,31,0.4);
}

.about-mini-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.mini-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-gray-l);
}
.mini-stat span:first-child { font-size: 20px; }

/* Content */
.about-content { display: flex; flex-direction: column; gap: 20px; }
.about-content .section-tag { align-self: flex-start; }
.about-content .section-title { margin-bottom: 0; }
.about-brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-copper);
  margin-top: -12px;
}

.about-quote {
  background: rgba(214,106,31,0.06);
  border-inline-start: 4px solid var(--clr-copper);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  font-size: 16px;
  font-style: italic;
  color: var(--clr-gray-l);
  line-height: 1.75;
  position: relative;
}
.lang-en .about-quote {
  border-inline-start: 4px solid var(--clr-copper);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.about-text {
  font-size: 15px;
  color: var(--clr-gray);
  line-height: 1.8;
}
.about-content .btn { align-self: flex-start; }

/* ══════════════════════════════════════
   WHY US
══════════════════════════════════════ */
.why-section {
  background: linear-gradient(180deg, var(--clr-charcoal) 0%, var(--clr-dark) 100%);
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(214,106,31,0.05) 0%, transparent 70%);
  pointer-events: none;
}

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

.why-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-copper), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-border-s);
  box-shadow: var(--shadow-md), var(--shadow-cu);
  background: var(--clr-card-hover);
}
.why-card:hover::after { opacity: 1; }

.why-icon-wrap {
  width: 64px; height: 64px;
  background: rgba(214,106,31,0.1);
  border: 1px solid rgba(214,106,31,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition-fast);
}
.why-card:hover .why-icon-wrap {
  background: rgba(214,106,31,0.2);
  border-color: var(--clr-copper);
  transform: scale(1.08);
}
.why-icon { width: 28px; height: 28px; color: var(--clr-copper); }

.why-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 10px;
}
.why-desc {
  font-size: 14px;
  color: var(--clr-gray);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-section {
  background: var(--clr-dark);
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(214,106,31,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.contact-card:hover::before { opacity: 1; }

.contact-card--wa { border-color: rgba(37,211,102,0.2); }
.contact-card--wa::before { background: rgba(37,211,102,0.04); }
.contact-card--wa:hover { border-color: rgba(37,211,102,0.5); box-shadow: var(--shadow-md), 0 0 30px rgba(37,211,102,0.1); }

.contact-card--phone { border-color: var(--clr-border-s); }
.contact-card--phone::before { background: var(--clr-copper-glow); }
.contact-card--phone:hover { border-color: var(--clr-copper); box-shadow: var(--shadow-md), var(--shadow-cu); }

.contact-card--fb { border-color: rgba(66,103,178,0.2); }
.contact-card--fb::before { background: rgba(66,103,178,0.04); }
.contact-card--fb:hover { border-color: rgba(66,103,178,0.5); box-shadow: var(--shadow-md), 0 0 30px rgba(66,103,178,0.1); }

.contact-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card--wa  .contact-icon-wrap { background: rgba(37,211,102,0.12); }
.contact-card--phone .contact-icon-wrap { background: rgba(214,106,31,0.12); }
.contact-card--fb  .contact-icon-wrap { background: rgba(66,103,178,0.12); }

.contact-icon { width: 28px; height: 28px; position: relative; z-index: 1; }
.contact-card--wa    .contact-icon { color: #25d366; }
.contact-card--phone .contact-icon { color: var(--clr-copper); }
.contact-card--fb    .contact-icon { color: #4267b2; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--clr-gray);
}
.contact-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-white);
  font-family: var(--font-en);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-hint {
  font-size: 12px;
  color: var(--clr-gray);
}
.contact-arr {
  width: 20px; height: 20px;
  color: var(--clr-gray);
  flex-shrink: 0;
  transition: var(--transition-fast);
  position: relative;
  z-index: 1;
}
.contact-card:hover .contact-arr {
  color: var(--clr-white);
  transform: translateX(4px);
}
.lang-ar .contact-card:hover .contact-arr { transform: translateX(-4px); }

.contact-note {
  text-align: center;
  font-size: 14px;
  color: var(--clr-gray);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--clr-black);
  border-top: 1px solid var(--clr-border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.footer-logo-icon svg { width: 100%; height: 100%; }
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-name {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 800;
  color: var(--clr-white);
}
.footer-name em {
  font-style: normal;
  font-family: var(--font-ar);
  font-size: 14px;
  color: var(--clr-copper);
}
.footer-owner-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-gray);
}
.footer-tagline {
  font-size: 12px;
  color: var(--clr-gray-d);
}

.footer-social {
  display: flex;
  gap: 10px;
}
.fsoc-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  border: 1px solid var(--clr-border);
}
.fsoc-btn svg { width: 20px; height: 20px; }
.fsoc-wa    { color: #25d366; background: rgba(37,211,102,0.08); }
.fsoc-phone { color: var(--clr-copper); background: rgba(214,106,31,0.08); }
.fsoc-fb    { color: #4267b2; background: rgba(66,103,178,0.08); }
.fsoc-btn:hover { transform: scale(1.12); border-color: currentColor; }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--clr-gray-d);
  padding-top: 16px;
  border-top: 1px solid var(--clr-border);
}

/* ══════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
}
.lb-container {
  position: relative;
  z-index: 1;
  width: min(90vw, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.lb-img-wrap {
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.lb-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}
.lb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px;
  color: var(--clr-gray);
  font-size: 15px;
}
.lb-placeholder svg { width: 64px; height: 64px; }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(30,33,40,0.85);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  transition: var(--transition-fast);
}
.lb-close { top: -56px; right: 0; }
.lb-prev  { top: 50%; left: -56px; transform: translateY(-50%); }
.lb-next  { top: 50%; right: -56px; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--clr-copper);
  border-color: var(--clr-copper);
}
.lb-close svg, .lb-prev svg, .lb-next svg { width: 18px; height: 18px; }

.lb-caption {
  width: 100%;
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.lb-title { font-size: 18px; font-weight: 700; color: var(--clr-white); }
.lb-desc  { font-size: 14px; color: var(--clr-gray); }

/* ══════════════════════════════════════
   FLOATING WHATSAPP
══════════════════════════════════════ */
.float-wa {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 999;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: var(--transition-fast);
}
.float-wa svg { width: 30px; height: 30px; }
.float-wa:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,0.6); }

.float-wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.4);
  animation: float-pulse 2.5s ease-in-out infinite;
}
@keyframes float-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ══════════════════════════════════════
   FLOATING COMMENTS BUTTON + MODAL
══════════════════════════════════════ */
.float-comments {
  position: fixed;
  bottom: 28px;
  inset-inline-start: 28px;
  z-index: 999;
  width: 60px; height: 60px;
  background: var(--clr-copper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  box-shadow: 0 4px 24px rgba(214,106,31,0.4);
  transition: var(--transition-fast);
}
.float-comments svg { width: 26px; height: 26px; }
.float-comments:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(214,106,31,0.6); }

.comments-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  align-items: flex-end;
  justify-content: center;
}
.comments-modal.open { display: flex; }
.comments-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(2px);
}
.comments-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 82vh;
  background: var(--clr-charcoal);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 14px;
  animation: slideUpPanel 0.3s ease;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) {
  .comments-modal { align-items: center; }
  .comments-panel { border-radius: var(--r-lg); max-height: 78vh; }
}
@keyframes slideUpPanel {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.comments-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.comments-panel-head h3 { font-size: 18px; font-weight: 700; }
.comments-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--clr-card);
  color: var(--clr-gray);
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.comments-close:hover { background: var(--clr-copper); color: var(--clr-white); }
.comments-close svg { width: 16px; height: 16px; }

.comments-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-inline-end: 4px;
  min-height: 0;
}
.comments-loading, .comments-error {
  text-align: center;
  color: var(--clr-gray);
  font-size: 14px;
  padding: 16px 0;
}
.comments-empty {
  text-align: center;
  color: var(--clr-gray);
  font-size: 14px;
  display: none;
}

.comment-item {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  flex-shrink: 0;
}
.comment-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}
.comment-name { font-weight: 700; font-size: 14px; }
.comment-stars { display: flex; gap: 1px; flex-shrink: 0; }
.comment-msg { font-size: 13.5px; color: var(--clr-gray-l); line-height: 1.6; margin-bottom: 6px; word-break: break-word; }
.comment-date { font-size: 11px; color: var(--clr-gray); }

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--clr-border);
  padding-top: 14px;
  flex-shrink: 0;
}
.star-rating { display: flex; gap: 4px; font-size: 22px; line-height: 1; }
.star-input { color: var(--clr-gray-d); cursor: pointer; transition: color var(--transition-fast); user-select: none; }
.star-input.active { color: var(--clr-copper); }

.comment-input {
  width: 100%;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  color: var(--clr-white);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}
.comment-input:focus { outline: none; border-color: var(--clr-copper); }

.hp-field {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.comment-submit-btn {
  background: var(--clr-copper);
  color: var(--clr-white);
  font-weight: 700;
  padding: 11px;
  border-radius: var(--r-sm);
  transition: var(--transition-fast);
}
.comment-submit-btn:hover { background: var(--clr-copper-l); }
.comment-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.comments-form-status { font-size: 13px; text-align: center; min-height: 16px; }
.comments-form-status.success { color: #3ddc84; }
.comments-form-status.error { color: #ff6b6b; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .service-card--wide { grid-column: 1 / -1; grid-template-columns: auto 1fr; }
  .service-card--wide .svc-desc { grid-column: 1 / -1; }
  .why-grid       { grid-template-columns: repeat(2, 1fr); }
  .about-inner    { grid-template-columns: 1fr; gap: 48px; }
  .about-visual   { order: -1; }
  .contact-grid   { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 72px 0; }

  .nav-desktop  { display: none; }
  .lang-switcher { display: none; }
  .hamburger    { display: flex; }

  .hero-content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; }
  .hero-stats   { flex-direction: column; gap: 8px; }
  .stat-div     { display: none; }
  .stat         { padding: 0; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .services-grid  { grid-template-columns: 1fr; }
  .service-card--wide { display: block; }
  .why-grid       { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }

  .about-geo-wrap { width: 200px; height: 200px; }
  .geo-ring-1     { width: 200px; height: 200px; }
  .geo-ring-2     { width: 140px; height: 140px; }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: -48px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; }

  .filter-bar { gap: 6px; }
  .filter-btn { font-size: 13px; padding: 6px 14px; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }
  .hero-content { padding-top: calc(var(--header-h) + 28px); padding-bottom: 64px; }
  .hero-title { font-size: clamp(36px, 11vw, 52px); }
  .hero-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 20px; }
  .hero-owner { margin-bottom: 8px; }
  .hero-tagline { margin-bottom: 28px; }
  .hero-cta { margin-bottom: 36px; }
  .contact-card { flex-direction: column; text-align: center; }
  .contact-info { align-items: center; }
  .contact-arr { display: none; }
  .float-wa { bottom: 20px; inset-inline-end: 20px; width: 54px; height: 54px; }
  .float-comments { bottom: 20px; inset-inline-start: 20px; width: 54px; height: 54px; }
  .float-comments svg { width: 22px; height: 22px; }
  .comments-panel { max-height: 88vh; }
}

/* ── English LTR overrides ── */
.lang-en body,
body.lang-en {
  font-family: var(--font-en);
  direction: ltr;
}
body.lang-en .about-quote {
  border-inline-start: 4px solid var(--clr-copper);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
body.lang-en .section-sub { margin: 0 auto; }
body.lang-en .section-header--left .section-sub { margin: 0; }

/* ══════════════════════════════════════
   STATS DASHBOARD & ANALYTICS (MODERN & RESPONSIVE)
══════════════════════════════════════ */
.stats-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding: 14px 22px;
  background: rgba(30, 33, 40, 0.6);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  backdrop-filter: blur(10px);
}

.stats-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #34d399;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 50%;
  border: 2px solid #10b981;
  opacity: 0.8;
  animation: pulsePing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulsePing {
  0% { transform: scale(0.9); opacity: 0.9; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}

.stats-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--clr-border);
  color: var(--clr-white);
  padding: 7px 18px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-fast);
}
.stats-refresh-btn:hover {
  background: rgba(214, 106, 31, 0.15);
  border-color: var(--clr-copper);
  color: var(--clr-copper);
}
.stats-refresh-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.6s ease;
}
.stats-refresh-btn.loading svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stats-timestamp {
  font-size: 12.5px;
  color: var(--clr-gray);
}

.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stat-dash-card {
  background: linear-gradient(180deg, rgba(30, 33, 40, 0.9) 0%, rgba(20, 22, 28, 0.95) 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.stat-dash-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--clr-copper), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.stat-dash-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 106, 31, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(214, 106, 31, 0.12);
}
.stat-dash-card:hover::before { opacity: 1; }

.stat-dash-card--main {
  background: linear-gradient(160deg, rgba(30, 33, 40, 0.95) 0%, rgba(214, 106, 31, 0.09) 100%);
  border-color: rgba(214, 106, 31, 0.35);
}
.stat-dash-card--main:hover {
  border-color: var(--clr-copper);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 35px rgba(214, 106, 31, 0.22);
}

.sdc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sdc-icon {
  width: 58px;
  height: 58px;
  background: rgba(214, 106, 31, 0.1);
  border: 1px solid rgba(214, 106, 31, 0.25);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-copper);
  transition: transform var(--transition-fast);
}
.stat-dash-card:hover .sdc-icon {
  transform: scale(1.08) rotate(4deg);
  background: rgba(214, 106, 31, 0.18);
  box-shadow: 0 0 18px rgba(214, 106, 31, 0.3);
}
.sdc-icon svg { width: 28px; height: 28px; }

.sdc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--clr-gray);
  border: 1px solid var(--clr-border);
}
.sdc-badge--copper {
  background: rgba(214, 106, 31, 0.15);
  color: var(--clr-copper-l);
  border-color: rgba(214, 106, 31, 0.3);
}

.sdc-body {
  margin-top: 8px;
}
.sdc-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-gray);
  margin-bottom: 8px;
}
.sdc-num {
  font-size: 42px;
  font-weight: 900;
  color: var(--clr-white);
  font-family: var(--font-en);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.text-copper { color: var(--clr-copper) !important; }

.sdc-footer {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  color: var(--clr-gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Secondary Panels Grid */
.stats-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.stats-panel-card {
  background: linear-gradient(180deg, rgba(30, 33, 40, 0.75) 0%, rgba(20, 22, 28, 0.9) 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.spc-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 22px;
}
.spc-title svg {
  color: var(--clr-copper);
}

/* Device Breakdown Rows */
.device-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.device-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.device-item-head span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--clr-white);
}
.device-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-full);
  overflow: hidden;
}
.device-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-copper), var(--clr-copper-l));
  border-radius: var(--r-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smart Metrics 2x2 Grid */
.insights-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.insight-metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition-fast);
}
.insight-metric-box:hover {
  background: rgba(214, 106, 31, 0.06);
  border-color: rgba(214, 106, 31, 0.2);
}
.imb-label {
  font-size: 12.5px;
  color: var(--clr-gray);
  font-weight: 500;
}
.imb-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--clr-white);
  font-family: var(--font-en);
}

/* Activity Histogram Chart */
.stats-chart-card {
  margin-top: 32px;
  background: linear-gradient(180deg, rgba(30, 33, 40, 0.7) 0%, rgba(18, 20, 25, 0.9) 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 30px;
}
.histogram-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 140px;
  padding-top: 20px;
  border-bottom: 1px solid var(--clr-border);
}
.hist-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  justify-content: flex-end;
}
.hist-bar {
  width: 100%;
  max-width: 38px;
  background: rgba(214, 106, 31, 0.25);
  border: 1px solid rgba(214, 106, 31, 0.4);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: all 0.4s ease;
  position: relative;
}
.hist-col:hover .hist-bar {
  background: var(--clr-copper);
  box-shadow: 0 0 16px rgba(214, 106, 31, 0.5);
  transform: scaleY(1.05);
}
.hist-col.active .hist-bar {
  background: linear-gradient(180deg, var(--clr-copper-l) 0%, var(--clr-copper) 100%);
  border-color: var(--clr-copper-l);
  box-shadow: 0 0 18px rgba(214, 106, 31, 0.4);
}
.hist-day {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-gray);
  margin-top: 8px;
}

/* Responsiveness on all devices */
@media (max-width: 1024px) {
  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-dash-card:last-child {
    grid-column: span 2;
  }
  .stats-secondary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stats-header-bar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--r-lg);
    padding: 16px;
  }
  .stats-dashboard {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stat-dash-card:last-child {
    grid-column: auto;
  }
  .stat-dash-card {
    padding: 24px 20px;
  }
  .sdc-num {
    font-size: 34px;
  }
  .stats-panel-card, .stats-chart-card {
    padding: 22px 18px;
  }
  .insights-subgrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .sdc-icon {
    width: 48px;
    height: 48px;
  }
  .sdc-icon svg {
    width: 24px;
    height: 24px;
  }
  .sdc-num {
    font-size: 30px;
  }
}

/* ══════════════════════════════════════
   OWNER IMAGE STYLING
══════════════════════════════════════ */
.about-owner-wrap {
  position: relative;
  width: 280px; height: 280px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-owner-img {
  width: 220px; height: 220px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 4px solid var(--clr-card);
  box-shadow: 0 0 40px rgba(214,106,31,0.2);
  transition: transform 0.4s ease;
}
.about-owner-wrap:hover .about-owner-img {
  transform: scale(1.05);
}
.about-owner-placeholder {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: rgba(214,106,31,0.08);
  border: 1px dashed var(--clr-copper);
  display: none; /* Shown via JS onerror */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--clr-copper);
  z-index: 1;
}
.about-owner-placeholder svg { width: 42px; height: 42px; }
.about-owner-placeholder span { font-size: 13px; font-weight: 600; text-align: center; padding: 0 10px; line-height: 1.4; }

@media (max-width: 768px) {
  .about-owner-wrap { width: 220px; height: 220px; }
  .about-owner-img { width: 170px; height: 170px; }
  .about-owner-placeholder { inset: 20px; }
}

/* ══════════════════════════════════════
   TOPBAR
══════════════════════════════════════ */
.topbar {
  background: var(--clr-copper);
  color: var(--clr-white);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}
.header.scrolled .topbar {
  display: none; /* Hide topbar when scrolled down to save space */
}


/* ── Portfolio Groups (Tabs + Grid) ── */
.portfolio-groups-wrapper {
  width: 100%;
}

.groups-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.group-tab {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid rgba(214,106,31,0.25);
  background: transparent;
  color: #8a909e;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.group-tab:hover {
  background: rgba(214,106,31,0.15);
  color: #D66A1F;
  border-color: #D66A1F;
}

.group-tab.active {
  background: #D66A1F;
  color: #fff;
  border-color: #D66A1F;
  font-weight: 700;
}

.portfolio-group {
  display: none;
}

.portfolio-group.active {
  display: block;
  animation: fadeIn 0.3s ease;
}


/* ── Lightbox ── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lb-overlay.open {
  display: flex;
}
.lb-img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
  transition: opacity 0.2s;
}
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(214,106,31,0.85);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
.lb-arrow:hover { background: #D66A1F; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
}
.lb-counter {
  position: fixed;
  bottom: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  letter-spacing: 1px;
}
