/* ══════════════════════════════════════════
   PURE LIFE — Design System & Global Styles
   ══════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --cream:       #FBF7F0;
  --beige:       #F3EADA;
  --gold:        #B9924F;
  --gold-soft:   #D8BD8C;
  --dark:        #16110B;
  --white:       #FFFFFF;
  --gray:        #8C8070;
  --gold-glow:   rgba(185, 146, 79, 0.25);
  --glass-bg:    rgba(251, 247, 240, 0.55);
  --glass-border: rgba(185, 146, 79, 0.15);

  --font-heading: 'Bodoni Moda', 'Almarai', serif;
  --font-body:    'IBM Plex Sans Arabic', sans-serif;

  --nav-height: 80px;
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition-fast: 0.25s cubic-bezier(.4, 0, .2, 1);
  --transition-smooth: 0.5s cubic-bezier(.4, 0, .2, 1);
  --transition-bounce: 0.6s cubic-bezier(.34, 1.56, .64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold);
}

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

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
}

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.ltr-text {
  direction: ltr;
  unicode-bidi: embed;
}

/* ── Glass Morphism ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* ── 3D Canvas ── */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ══════════════════════════════
   PRELOADER
   ══════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

.preloader-bar-track {
  width: 200px;
  height: 3px;
  background: var(--beige);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 20px;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.preloader-text {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--gray);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════
   NAVIGATION
   ══════════════════════════════ */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), backdrop-filter var(--transition-fast);
}

#main-nav.scrolled {
  background: rgba(251, 247, 240, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 30px rgba(22, 17, 11, 0.06);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold-soft);
  transition: transform var(--transition-bounce);
}

.nav-logo-img:hover {
  transform: scale(1.1) rotate(-5deg);
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--dark);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 1px;
  transition: width var(--transition-smooth);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
}

.lang-toggle:hover {
  background: var(--gold);
  color: var(--white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5px) translateX(5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(251, 247, 240, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--dark);
  transition: color var(--transition-fast);
  transform: translateY(20px);
  opacity: 0;
}

.mobile-overlay.active .mobile-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-link:hover {
  color: var(--gold);
}

/* Stagger mobile links */
.mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-link:nth-child(7) { transition-delay: 0.4s; }

/* ══════════════════════════════
   SECTIONS — Generic
   ══════════════════════════════ */
.section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  padding: 6px 20px;
  border: 1px solid var(--gold-soft);
  border-radius: 100px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ══════════════════════════════
   HERO SECTION — Split Layout
   ══════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-height) + 20px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial gradient overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
  z-index: 1;
}

/* Elegant slowly rotating watermark */
.hero-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: 70vw;
  max-width: 700px;
  max-height: 700px;
  background: url('assets/company-logo.png') no-repeat center;
  background-size: contain;
  opacity: 0.022;
  pointer-events: none;
  z-index: 1;
  animation: watermarkRotate 60s linear infinite;
}

@keyframes watermarkRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Moving golden aura mesh */
.hero-aura {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 35%, rgba(185, 146, 79, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 80% 65%, rgba(216, 189, 140, 0.07) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: auraDrift 20s ease-in-out infinite alternate;
}

@keyframes auraDrift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(30px, -30px); }
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(-40px, 30px) scale(1.1); opacity: 0.8; }
}

.hero-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 5vw, 80px);
  max-width: 1400px;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 60px);
  position: relative;
  z-index: 2;
}

/* ── Particle Logo Side ── */
.hero-logo-side {
  flex: 1;
  max-width: 550px;
  min-width: 300px;
}

.particle-logo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* Subtle glass frame */
  background: rgba(251, 247, 240, 0.3);
  border: 1px solid rgba(185, 146, 79, 0.1);
  box-shadow:
    0 20px 80px rgba(185, 146, 79, 0.08),
    inset 0 0 60px rgba(251, 247, 240, 0.2);
  cursor: none;
}

#logo-particle-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--gold-soft);
  background: rgba(251, 247, 240, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(185, 146, 79, 0.15);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
  pointer-events: none;
  white-space: nowrap;
  animation: hintFloat 3s ease-in-out infinite;
}

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

.particle-logo-container:hover .logo-hint {
  opacity: 0;
}

/* ── Hero Text Side ── */
.hero-text-content {
  flex: 1;
  max-width: 600px;
  text-align: right;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8125rem;
  color: var(--gray);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.hero-title-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft), var(--gold));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s ease-in-out infinite;
}

@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--gray);
  margin-bottom: 36px;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--white);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow);
  color: var(--white);
}

.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--gold);
  display: inline;
}

.stat-plus {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--gold);
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--beige);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.75rem;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════════════════════════
   ABOUT SECTION
   ══════════════════════════════ */
.about-section {
  background: var(--white);
}

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

.about-card {
  padding: 40px 32px;
  text-align: center;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(185, 146, 79, 0.1);
}

.about-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
}

.about-card-icon svg {
  width: 100%;
  height: 100%;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ══════════════════════════════
   TIMELINE SECTION
   ══════════════════════════════ */
.timeline-section {
  background: var(--cream);
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Vertical timeline line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--beige);
  transform: translateX(-50%);
  border-radius: 2px;
  overflow: hidden;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; /* updated by JS scroll */
  background: linear-gradient(to bottom, var(--gold-soft), var(--gold));
  transition: height 0.1s ease-out;
}

/* Timeline items */
.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 60px;
  z-index: 2;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: auto;
}

.timeline-item:nth-child(odd) {
  align-self: flex-start;
  margin-right: auto;
}

/* Glowing gold dots */
.timeline-dot {
  position: absolute;
  top: 32px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--beige);
  z-index: 10;
  transition: all var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -9px;
}

/* Dot activated state (glow) */
.timeline-item.animated .timeline-dot {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 6px var(--gold-glow);
}

/* Timeline content card */
.timeline-content {
  padding: 30px;
  position: relative;
  width: calc(100% - 40px);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  overflow: hidden;
}

.timeline-image {
  margin: -30px -30px 20px -30px;
  width: calc(100% + 60px);
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--glass-border);
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-smooth);
}

.timeline-content:hover .timeline-image img {
  transform: scale(1.06);
}

.timeline-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(251, 247, 240, 0.35) 100%);
  pointer-events: none;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(185, 146, 79, 0.08);
  border-color: var(--gold-soft);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
}

/* Responsive timeline */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
    transform: none;
  }
  
  .timeline-item {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 45px;
    margin-bottom: 40px;
  }
  
  .timeline-dot {
    left: 11px !important;
    right: auto !important;
  }
  
  .timeline-content {
    width: 100%;
  }
}

/* ══════════════════════════════
   BRANDS SECTION — 3D Cards
   ══════════════════════════════ */
.brands-section {
  background: var(--cream);
  overflow: hidden;
}

.brands-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.brand-card {
  perspective: 600px;
}

.brand-card-inner {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 40px 24px 24px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(.03,.98,.52,.99);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

/* Top gold accent bar */
.brand-card-inner::before {
  display: none;
}

/* 3D Shine overlay — positioned by JS */
.brand-card-shine {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
}

/* Depth shadow on hover */
.brand-card:hover .brand-card-inner {
  box-shadow: none;
  border-color: transparent;
}

.brand-logo-wrap {
  width: 140px;
  height: 90px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.brand-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(.03,.98,.52,.99);
  transform-style: preserve-3d;
  /* Subtle drop shadow for 3D depth */
  filter: drop-shadow(0 4px 8px rgba(22, 17, 11, 0.08));
}

.brand-card:hover .brand-logo-wrap img {
  filter: drop-shadow(0 8px 16px rgba(185, 146, 79, 0.2));
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray);
  letter-spacing: 0.03em;
  transition: transform 0.4s cubic-bezier(.03,.98,.52,.99), color 0.3s ease;
  transform-style: preserve-3d;
}

.brand-card:hover .brand-name {
  color: var(--gold);
}

/* ══════════════════════════════
   SERVICES SECTION
   ══════════════════════════════ */
.services-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(185, 146, 79, 0.08), transparent 70%);
  pointer-events: none;
}

.services-section .section-tag {
  color: var(--gold-soft);
  border-color: rgba(185, 146, 79, 0.3);
}

.services-section .section-title {
  color: var(--white);
}

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

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(185, 146, 79, 0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  border-color: rgba(185, 146, 79, 0.3);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  color: rgba(185, 146, 79, 0.12);
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

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

.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════
   CHANNELS SECTION
   ══════════════════════════════ */
.channels-section {
  background: var(--white);
}

.channels-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.channel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--beige);
  transition: all var(--transition-smooth);
  background: var(--cream);
}

.channel-item:hover {
  border-color: var(--gold-soft);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(185, 146, 79, 0.1);
}

.channel-icon-wrap {
  width: 120px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.03));
  transition: transform var(--transition-smooth);
}

.channel-item:hover .channel-logo-img {
  transform: scale(1.08);
}

.channel-info h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.channel-info p {
  font-size: 0.8125rem;
  color: var(--gray);
}

/* ══════════════════════════════
   CERTIFICATIONS SECTION
   ══════════════════════════════ */
.certifications-section {
  background: var(--cream);
}

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

.cert-card {
  padding: 48px 32px;
  text-align: center;
  transition: all var(--transition-smooth);
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(185, 146, 79, 0.1);
}

.cert-logo-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(25, 118, 210, 0.12));
  transition: transform var(--transition-smooth);
}

.cert-card:hover .cert-logo-img {
  transform: scale(1.08) rotate(2deg);
}

.cert-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.cert-card p {
  font-size: 0.9375rem;
  color: var(--gray);
}

/* ══════════════════════════════
   CLIENTS SECTION — 3D Showcase
   ══════════════════════════════ */
.clients-section {
  background: var(--cream);
  overflow: hidden;
}

.clients-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  justify-content: center;
}

.client-card {
  perspective: 600px;
}

.client-card-inner {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 30px 20px 20px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(.03,.98,.52,.99);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.client-logo-wrap {
  width: 140px;
  height: 90px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.client-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(.03,.98,.52,.99);
  transform-style: preserve-3d;
  filter: drop-shadow(0 4px 8px rgba(22, 17, 11, 0.08));
}

.client-card:hover .client-logo-wrap img {
  filter: drop-shadow(0 8px 16px rgba(185, 146, 79, 0.2));
}

.client-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray);
  letter-spacing: 0.03em;
  transition: transform 0.4s cubic-bezier(.03,.98,.52,.99), color 0.3s ease;
  transform-style: preserve-3d;
  display: block;
}

.client-card:hover .client-name {
  color: var(--gold);
}

/* ══════════════════════════════
   CONTACT SECTION
   ══════════════════════════════ */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Contact Map styling */
.contact-map-side {
  display: flex;
  flex-direction: column;
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
  position: relative;
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(185, 146, 79, 0.06);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
  filter: grayscale(10%) contrast(90%);
}

/* Contact Info cards */
.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.info-mini-card {
  padding: 20px 16px;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.info-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(185, 146, 79, 0.05);
}

.info-card-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
}

.info-card-icon svg {
  width: 100%;
  height: 100%;
}

.info-mini-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.info-mini-card p {
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.4;
  word-break: break-word;
}

.info-mini-card a {
  color: var(--gold);
}
.info-mini-card a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */
.footer {
  background: var(--dark);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 16px;
  background: var(--cream);
  padding: 6px;
  border: 2.5px solid var(--gold-soft);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-bounce), border-color var(--transition-fast);
}

.footer-logo:hover {
  transform: scale(1.08);
  border-color: var(--gold);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-soft);
}

.footer-links-group h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links-group a,
.footer-links-group p {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.footer-links-group a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  padding-top: 28px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ══════════════════════════════
   WHATSAPP FAB
   ══════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px var(--gold-glow);
  z-index: 900;
  transition: all var(--transition-fast);
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  color: var(--gold);
}

.whatsapp-fab.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-2px);
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 12px 40px var(--gold-glow);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

/* ══════════════════════════════
   ANIMATION CLASSES
   ══════════════════════════════ */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-down"] {
  transform: translateY(-40px);
}

[data-animate="fade-right"] {
  transform: translateX(40px);
}

[data-animate="fade-left"] {
  transform: translateX(-40px);
}

[data-animate="zoom-in"] {
  transform: scale(0.9);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */
@media (max-width: 1024px) {
  .hero-split {
    flex-direction: column;
    gap: 40px;
  }

  .hero-logo-side {
    max-width: 400px;
    min-width: 260px;
  }

  .hero-text-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .channels-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .certs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-logo-side {
    max-width: 320px;
    min-width: 220px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

  .brands-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .channels-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-logo-side {
    max-width: 280px;
    min-width: 200px;
  }

  .btn {
    width: 100%;
  }

  .brands-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .brand-card-inner {
    padding: 24px 16px 16px;
  }

  .brand-logo-wrap {
    width: 100px;
    height: 60px;
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════
   ENGLISH MODE (LTR override)
   ══════════════════════════════ */
body.en-mode {
  direction: ltr;
}

body.en-mode .hero-text-content {
  text-align: left;
}

body.en-mode .nav-link::after {
  right: auto;
  left: 0;
}

body.en-mode .whatsapp-fab {
  left: auto;
  right: 28px;
}

/* In English (LTR) the icon sits top-left, so move the faint number to the right to avoid overlap */
body.en-mode .service-number {
  left: auto;
  right: 24px;
}

/* ══════════════════════════════
   CUSTOM SCROLLBAR
   ══════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-soft);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ══════════════════════════════
   SELECTION STYLE
   ══════════════════════════════ */
::selection {
  background: var(--gold);
  color: var(--white);
}

::-moz-selection {
  background: var(--gold);
  color: var(--white);
}
