:root {
  --primary: #0f172a; /* Midnight Navy */
  --primary-hover: #1e293b;
  --gold: #c19b6c; /* Corporate Gold */
  --bg-color: #edf2f7; /* Darker Premium Cool Slate Grey */
  --surface: #ffffff;
  --text-main: #334155; /* Slate */
  --text-muted: #64748b;
  --border: rgba(193, 155, 108, 0.3);
  --glass-shadow: 0 4px 20px 0 rgba(15, 23, 42, 0.05);
  --glass-blur: blur(12px);
  --font-en: 'Outfit', sans-serif;
  --font-ar: 'Cairo', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding: 12px; /* space for frame */
}

/* Global Frame */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 12px solid var(--gold);
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold); /* Make headers gold for elegance */
}

.ar-text {
  font-family: var(--font-ar);
  font-weight: 700 !important;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
  border-radius: 8px; /* Sharper, more official corners */
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 4px; /* More official, less bubbly */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--primary));
  color: white;
  box-shadow: 0 4px 14px 0 rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5); /* pink shadow */
}

.text-gradient {
  background: linear-gradient(to right, var(--gold), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-primary {
  color: var(--primary);
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   EID ANNOUNCEMENT BANNER
   ====================================================== */
@keyframes eid-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes eid-glow {
  0%, 100% { box-shadow: 0 2px 12px rgba(200, 0, 0, 0.4); }
  50%       { box-shadow: 0 2px 24px rgba(255, 80, 80, 0.7); }
}

.eid-banner {
  width: 100%;
  background: linear-gradient(135deg, #c0001a 0%, #8b0000 50%, #c0001a 100%);
  color: #fff;
  overflow: hidden;
  padding: 0;
  height: 42px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 200;
  animation: eid-glow 2.5s ease-in-out infinite;
  border-bottom: 2px solid #ffd700;
}

.eid-banner-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: eid-scroll 18s linear infinite;
  gap: 4rem;
}

.eid-banner-text {
  font-family: var(--font-ar);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  direction: rtl;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.eid-banner-star {
  color: #ffd700;
  font-size: 1.1rem;
  margin: 0 0.5rem;
  display: inline-block;
}

/* Pause scroll on hover */
.eid-banner:hover .eid-banner-track {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .eid-banner {
    height: 36px;
  }
  .eid-banner-text {
    font-size: 1rem;
  }
  .eid-banner-track {
    animation-duration: 14s;
  }
}


/* Button vibrate animation */
@keyframes vibrate {
  0%   { transform: translateX(0) rotate(0); }
  10%  { transform: translateX(-3px) rotate(-1.5deg); }
  20%  { transform: translateX(3px)  rotate(1.5deg); }
  30%  { transform: translateX(-2px) rotate(-1deg); }
  40%  { transform: translateX(2px)  rotate(1deg); }
  50%  { transform: translateX(-1px) rotate(-0.5deg); }
  60%  { transform: translateX(1px)  rotate(0.5deg); }
  70%  { transform: translateX(-1px); }
  80%  { transform: translateX(1px); }
  100% { transform: translateX(0) rotate(0); }
}

/* Button pulse-glow animation */
@keyframes pulse-glow {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(193,155,108,0.5); }
  50%  { transform: scale(1.03); box-shadow: 0 0 18px 6px rgba(193,155,108,0.15); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(193,155,108,0); }
}

/* Shimmer sweep for CTA button */
@keyframes shimmer-sweep {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Bubble float for CTA message */
@keyframes bubble-float {
  0%   { transform: translateX(-50%) translateY(0px) scale(1); }
  40%  { transform: translateX(-50%) translateY(-8px) scale(1.04); }
  60%  { transform: translateX(-50%) translateY(-6px) scale(1.02); }
  100% { transform: translateX(-50%) translateY(0px) scale(1); }
}

/* Constant vibrate for CTA button */
@keyframes btn-vibrate {
  0%,100% { transform: translateX(0) rotate(0); }
  10% { transform: translateX(-3px) rotate(-1deg); }
  20% { transform: translateX(3px)  rotate(1deg); }
  30% { transform: translateX(-2px) rotate(-0.7deg); }
  40% { transform: translateX(2px)  rotate(0.7deg); }
  50% { transform: translateX(-1px); }
  60% { transform: translateX(1px); }
  70% { transform: translateX(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* ======================================================
   GLOBAL BUTTON ANIMATIONS – Desktop & Mobile
   ====================================================== */

/* CTA "Discover Rawaa Factory" — already set inline on the element */

/* Store buttons — alternating vibrate */
.store-btn-1 {
  animation: vibrate 3s ease-in-out infinite;
  animation-delay: 0s;
}
.store-btn-2 {
  animation: vibrate 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Social buttons — colour-matched pulse-glow */
.btn-whatsapp {
  animation: pulse-glow-green 2s ease-in-out infinite !important;
  animation-delay: 0s !important;
}
.btn-tiktok {
  animation: pulse-glow-dark 2s ease-in-out infinite !important;
  animation-delay: 0.7s !important;
}
.btn-facebook {
  animation: pulse-glow-blue 2s ease-in-out infinite !important;
  animation-delay: 1.4s !important;
}

/* Nav Contact button (تواصل معنا) — gold pulse */
.navbar .btn-primary {
  animation: pulse-glow 2.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Pause on hover/touch for all animated buttons */
.btn-high-width:hover,
.store-btn:hover,
.btn-whatsapp:hover,
.btn-tiktok:hover,
.btn-facebook:hover,
.navbar .btn-primary:hover {
  animation-play-state: paused !important;
  transform: scale(1.04) translateY(-2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Colour-specific pulse glows */
@keyframes pulse-glow-green {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  50%  { transform: scale(1.03); box-shadow: 0 0 20px 8px rgba(37,211,102,0.18); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@keyframes pulse-glow-dark {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(80,80,80,0.55); }
  50%  { transform: scale(1.03); box-shadow: 0 0 20px 8px rgba(80,80,80,0.2); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(80,80,80,0); }
}
@keyframes pulse-glow-blue {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(24,119,242,0.55); }
  50%  { transform: scale(1.03); box-shadow: 0 0 20px 8px rgba(24,119,242,0.18); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(24,119,242,0); }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 12px; /* to clear frame */
  z-index: 100;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-logo-img {
  height: 110px;         /* Maximized logo on desktop */
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: height 0.3s ease;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;       /* Bigger desktop text */
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
  padding: 0.4rem 0.6rem;
}

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

/* Bigger Contact Us button in navbar */
.navbar .btn-primary {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 10; /* above the moving background */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand,
.footer-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 1.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-brand:hover,
.footer-section:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.footer-brand .nav-logo-img {
  margin-bottom: 1rem;
  height: 120px; /* Very large footer logo */
  mix-blend-mode: multiply;
}

.footer-brand p {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-section ul { list-style: none; }

.footer-section li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-section i { color: var(--primary); width: 20px; text-align: center; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* Hero Section */
.hero {
  padding: 2rem 0 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.slider-container {
  width: 95%; /* Make photos take bigger width */
  max-width: 1400px;
  height: 600px;
  margin: 0 auto 3rem auto;
  border-radius: 8px; /* sharper corners */
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 4px solid var(--gold);
}

.slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: flex-end;
  padding: 4rem;
}

.slide-media {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: white;
  max-width: 800px;
}

.slide-content h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: 2px solid white;
}

.dot.active {
  background: var(--gold);
  border-color: var(--gold);
}

.btn-high-width {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  padding: 1.6rem 2rem;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 60%, var(--primary-hover) 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 14px 36px -8px rgba(15, 23, 42, 0.55);
  position: relative;           /* needed for bubble */
  overflow: visible;            /* let bubble overflow */
  text-decoration: none;
  letter-spacing: 0.3px;
  border: 2px solid rgba(193,155,108,0.4);
  /* Constant vibrate on all screens */
  animation: btn-vibrate 2.5s ease-in-out infinite;
}

/* Arabic floating bubble */
.btn-ar-bubble {
  position: absolute;
  top: -52px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #d4af37);
  color: white;
  padding: 0.5rem 1.4rem;
  border-radius: 30px;
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(193,155,108,0.45);
  letter-spacing: 0;
  animation: bubble-float 2s ease-in-out infinite;
  z-index: 5;
}

/* Bubble tail arrow */
.btn-ar-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid var(--gold);
}

.btn-high-width:hover {
  background: linear-gradient(135deg, #1e3a5f 0%, var(--primary) 100%);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.6);
  animation-play-state: paused;
}

.btn-whatsapp { background: #25D366 !important; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.5) !important; }
.btn-whatsapp:hover { background: #128C7E !important; }

.btn-facebook { background: #1877F2 !important; box-shadow: 0 10px 30px -10px rgba(24, 119, 242, 0.5) !important; }
.btn-facebook:hover { background: #165eab !important; }

.btn-tiktok { background: #000000 !important; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important; }
.btn-tiktok:hover { background: #333333 !important; }

.social-buttons-inline {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 3rem auto;
}
.social-buttons-inline .btn {
  color: white;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.store-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  padding: 1.5rem 3rem;
  font-size: 1.25rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 250px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.store-btn-logo-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.store-btn-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.store-btn-cottoland {
  background: linear-gradient(135deg, #c31f67, #fb7185);
  color: white !important;
  box-shadow: 0 10px 30px -10px rgba(195, 31, 103, 0.5);
}

.store-btn-queen {
  background: linear-gradient(135deg, #d4af37, #f59e0b);
  color: white !important;
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.5);
}

.store-btn-soon {
  position: relative;
  overflow: hidden;
}

.store-btn-soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.store-btn:hover {
  transform: translateY(-8px) scale(1.03);
}

.store-btn-cottoland:hover {
  box-shadow: 0 20px 40px -10px rgba(195, 31, 103, 0.6);
}

.store-btn-queen:hover {
  box-shadow: 0 20px 40px -10px rgba(212, 175, 55, 0.6);
}

.store-btn:hover .store-btn-logo-container {
  transform: scale(1.1) rotate(5deg);
}

/* Photo Collections (Homepage) */
.collection-section {
  margin: 5rem 0;
}

.collection-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 1rem;
}

.collection-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.collection-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

.collection-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.collection-item:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.collection-item:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.collection-item:nth-child(4) { grid-column: 3 / 4; grid-row: 2 / 3; }
.collection-item:nth-child(5) { grid-column: 4 / 5; grid-row: 2 / 3; }

/* ============================================================
   MOBILE RESPONSIVE – Full Suite
   ============================================================ */

/* --- Tablets & large phones (≤ 768px) --- */
@media (max-width: 768px) {

  body {
    padding: 8px;
    font-size: 16px;
  }

  body::before {
    border-width: 8px;
  }

  .container {
    padding: 0 0.75rem;
  }

  /* --- Navbar: always-visible compact row --- */
  .navbar {
    top: 8px;
    padding: 0.65rem 0;
  }

  /* Hide hamburger completely */
  .nav-toggle {
    display: none !important;
  }

  .nav-container {
    gap: 0.75rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo-img {
    height: 70px;    /* Bigger logo on mobile */
  }

  /* Always show links inline */
  .nav-links {
    display: flex !important;
    flex-direction: row;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: nowrap;
    position: static;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .nav-link {
    font-size: 0.95rem;    /* Bigger nav link text */
    font-weight: 700;
    padding: 0.3rem 0.4rem;
    white-space: nowrap;
  }

  /* Contact button in navbar – visible & bigger */
  .nav-links .btn,
  .navbar .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    letter-spacing: 0;
    white-space: nowrap;
    font-weight: 700;
  }

  /* --- Headings: bigger on mobile for impact --- */
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.15rem !important; }

  .about-header h1,
  .contact-header h1 {
    font-size: 2rem !important;
  }

  /* --- Hero / Slider: full width, taller --- */
  .hero {
    padding: 1rem 0 2.5rem 0;
  }

  .slider-container {
    width: 100%;
    height: 320px;
    margin-bottom: 2rem;
    border-width: 3px;
    border-radius: 8px;
  }

  .slide {
    padding: 1.5rem;
  }

  .slide .slide-content h2,
  .slide-content h2 {
    font-size: 1.6rem !important;
    margin-bottom: 0.5rem;
    line-height: 1.25;
  }

  .slide .slide-content p,
  .slide-content p {
    font-size: 1rem !important;
    line-height: 1.5;
  }

  /* --- Big CTA Button --- */
  .btn-high-width {
    font-size: 1.2rem;
    padding: 1.2rem 1.5rem;
    max-width: 100%;
    margin-top: 1rem;         /* space for the bubble above */
    margin-bottom: 1.5rem;
    border-radius: 10px;
  }

  /* Bubble smaller on mobile */
  .btn-ar-bubble {
    font-size: 0.9rem;
    padding: 0.4rem 1.1rem;
    top: -46px;
  }


  /* --- Store Buttons: SAME ROW on mobile --- */
  .store-buttons {
    flex-direction: row;    /* side by side */
    gap: 0.75rem;
  }

  .store-btn {
    flex: 1;                /* equal width */
    min-width: 0;
    padding: 1.1rem 0.5rem;
    font-size: 0.95rem;
    flex-direction: column; /* icon above text */
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 12px;
    text-align: center;
  }

  .store-btn-logo-container {
    width: 44px;
    height: 44px;
    padding: 0.25rem;
  }

  .store-btn-soon-badge {
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
  }

  /* --- Social Buttons: SAME ROW on mobile --- */
  .social-buttons-inline {
    flex-direction: row !important;   /* all 3 on one line */
    gap: 0.5rem;
    margin: 1.5rem auto;
    flex-wrap: nowrap;
  }

  .social-buttons-inline .btn {
    flex: 1;                          /* equal width, shrinks to fit */
    min-width: 0;
    font-size: 0.8rem;
    padding: 0.85rem 0.25rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  /* Stack icon above text inside social buttons on mobile */
  .social-buttons-inline .btn i {
    font-size: 1.35rem !important;
  }

  /* --- Stats: 2 columns, bigger numbers --- */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  /* --- Collection Grid --- */
  .collection-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0.75rem;
  }

  .collection-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: auto;
    height: 280px;
  }

  .collection-item {
    height: 180px;
  }

  .collection-section {
    margin: 2.5rem 0;
  }

  .collection-section h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem;
  }

  /* --- About page gallery rows --- */
  .row-3 .gallery-img-wrapper { height: 130px; }
  .row-2 .gallery-img-wrapper { height: 190px; }
  .row-1 .gallery-img-wrapper { height: 260px; }

  /* --- Story timeline --- */
  .story-timeline {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .story-card {
    width: 100%;
    max-width: 360px;
  }

  .story-card h3 { font-size: 1.1rem !important; }
  .story-card p  { font-size: 1rem; }

  .story-arrow {
    transform: rotate(90deg);
    font-size: 1.5rem;
  }

  /* --- Team grid --- */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .business-card {
    padding: 1.5rem 1rem;
  }

  .team-photo {
    width: 100px;
    height: 100px;
  }

  .card-info h3 { font-size: 1rem !important; }
  .card-info p  { font-size: 0.85rem; }

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

  .contact-form-container {
    padding: 1.75rem;
  }

  .contact-form-container h2 {
    font-size: 1.5rem !important;
  }

  .contact-header h1 {
    font-size: 2rem !important;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }

  /* --- Footer --- */
  .footer {
    padding: 2.5rem 0 1.5rem;
    margin-top: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-brand .nav-logo-img {
    height: 90px;
  }

  .footer-section h3 {
    font-size: 1.05rem !important;
    margin-bottom: 1rem;
  }

  .footer-section li {
    font-size: 0.9rem;
  }

  /* --- Map --- */
  .map-section {
    margin-top: 2.5rem;
  }

  .map-container,
  .contact-map {
    height: 260px;
  }

  /* --- Data table --- */
  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* --- Small phones (≤ 480px) --- */
@media (max-width: 480px) {

  body {
    padding: 5px;
    font-size: 15px;
  }

  body::before {
    border-width: 5px;
  }

  .navbar {
    top: 5px;
    padding: 0.5rem 0;
  }

  .nav-logo-img {
    height: 40px;
  }

  .nav-links .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .slider-container {
    height: 270px;
  }

  .slide .slide-content h2,
  .slide-content h2 {
    font-size: 1.35rem !important;
    line-height: 1.25;
  }

  .slide .slide-content p,
  .slide-content p {
    font-size: 0.9rem !important;
  }

  .btn-high-width {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }

  .store-btn {
    font-size: 1rem;
    padding: 1.1rem 1.25rem;
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .collection-item:nth-child(1) {
    height: 230px;
  }

  .collection-item {
    height: 150px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .team-photo {
    width: 80px;
    height: 80px;
  }

  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.35rem !important; }
}

/* About Section */
.about-section { padding: 4rem 0; position: relative; z-index: 10; }
.about-header { text-align: center; margin-bottom: 4rem; }
.about-header h1 { font-size: 3rem; margin-bottom: 1rem; }
.about-content { display: grid; grid-template-columns: 1fr; gap: 4rem; }

@media (min-width: 992px) {
  .about-content { grid-template-columns: 1fr 1fr; align-items: center; }
}

.about-text h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--primary); }
.about-text p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Stats & Data section */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* smaller min-width */
  gap: 1rem; /* reduced gap */
  margin: 2rem 0; /* reduced margin */
}

.stat-card {
  text-align: center;
  padding: 1rem; /* reduced padding */
}

.stat-number {
  font-size: 2.25rem; /* reduced size from 3.5rem */
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  display: block;
}

.stat-label {
  font-size: 0.9rem; /* reduced size */
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}

/* Story Timeline */
.story-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  margin-bottom: 5rem;
}

.story-card {
  width: 250px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.story-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
}

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

.story-arrow {
  color: var(--gold);
  font-size: 2rem;
}

@media (max-width: 992px) {
  .story-arrow {
    transform: rotate(90deg); /* Arrow points down on small screens */
  }
}

/* Diamond Gallery */
.gallery-diamond {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 4rem 0;
}

.gallery-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.gallery-img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  border: 2px solid var(--border);
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-img-wrapper:hover img {
  transform: scale(1.05);
}

.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(0,0,0,0.5);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.gallery-img-wrapper:hover .gallery-zoom-icon {
  opacity: 1;
}

.row-3 .gallery-img-wrapper { width: 30%; height: 250px; }
.row-2 .gallery-img-wrapper { width: 45%; height: 350px; }
.row-1 .gallery-img-wrapper { width: 95%; height: 500px; }

@media (max-width: 768px) {
  .row-3 .gallery-img-wrapper { height: 150px; }
  .row-2 .gallery-img-wrapper { height: 200px; }
  .row-1 .gallery-img-wrapper { height: 300px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
}

.lightbox-content {
  max-width: 90%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--gold);
}

.lightbox-caption {
  color: white;
  font-size: 1.75rem;
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 4rem;
  cursor: pointer;
  padding: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  transition: color 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--gold);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }


.data-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

@media (min-width: 992px) {
  .data-section { grid-template-columns: 1fr 1fr; }
}

/* Styled Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.data-table th, .data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background: var(--gold);
  color: white;
  font-weight: 600;
}

.data-table tr:hover {
  background-color: #fafafa;
}

/* Pie Chart Container */
.chart-container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pie-chart {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary) 0% 45%,
    var(--gold) 45% 85%,
    #e5e7eb 85% 100%
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
  border: 4px solid white;
}

.pie-chart::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
}

.chart-legend {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.map-section { margin-top: 5rem; }
.map-section h2 { text-align: center; margin-bottom: 2rem; font-size: 2.5rem; }
.map-container { width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--glass-shadow); }
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }

.team-section { margin-top: 5rem; }
.team-section h2 { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }

.business-card { padding: 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; transition: transform 0.3s ease; }
.business-card:hover { transform: translateY(-5px); }

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.5rem;
  border: 4px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder for team members without a photo */
.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
}

.team-photo-placeholder i {
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.9;
}

.card-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-main); }
.card-info p { color: var(--primary); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Contact Section */
.contact-section { padding: 4rem 0; position: relative; z-index: 10; }
.contact-header { text-align: center; margin-bottom: 4rem; }
.contact-header h1 { font-size: 3rem; margin-bottom: 1rem; }
.contact-content { display: grid; grid-template-columns: 1fr; gap: 3rem; }

@media (min-width: 992px) {
  .contact-content { grid-template-columns: 1fr 1fr; }
}

.contact-info-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.contact-card { display: flex; align-items: flex-start; gap: 1.5rem; padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--glass-shadow); }
.contact-icon { background: rgba(193, 155, 108, 0.1); color: var(--gold); width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.5rem; }
.contact-details h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-main); }
.contact-details p, .contact-details a { color: var(--text-muted); text-decoration: none; font-size: 1rem; display: block; margin-bottom: 0.25rem; transition: color 0.3s ease; }
.contact-details a:hover { color: var(--gold); }
.contact-map { height: 100%; min-height: 400px; border-radius: 8px; overflow: hidden; box-shadow: var(--glass-shadow); border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Contact Form */
.contact-form-container {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--border);
}

.contact-form-container h2 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(193, 155, 108, 0.5); /* subtle gold border */
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(193, 155, 108, 0.2);
}

/* ======================================================
   BRANDS SECTION
   ====================================================== */
.brands-section {
  margin: 5rem auto;
  text-align: center;
}

.brands-subtitle {
  font-size: 1.5rem;
  color: var(--gold);
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.brands-description {
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.brands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .brands-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.brand-card {
  border-radius: 20px;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  transition: all 0.3s ease;
}

.brand-cottoland-card::before {
  background: linear-gradient(90deg, #c31f67, #fb7185);
}

.brand-queen-card::before {
  background: linear-gradient(90deg, #d4af37, #f59e0b);
}

.brand-logo-container {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  transition: transform 0.4s ease;
  border: 2px solid #f1f5f9;
}

.brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-badge {
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge-cottoland {
  background: linear-gradient(135deg, #c31f67, #e11d48);
}

.badge-queen {
  background: linear-gradient(135deg, #f59e0b, #d4af37);
}

.brand-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.brand-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.brand-features span {
  background: rgba(241, 245, 249, 0.6);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.brand-features i {
  font-size: 0.95rem;
}

.brand-cottoland-card .brand-features i {
  color: #c31f67;
}

.brand-queen-card .brand-features i {
  color: #d4af37;
}

/* Card Hover States */
.brand-card:hover {
  transform: translateY(-12px);
}

.brand-cottoland-card:hover {
  border-color: rgba(195, 31, 99, 0.4);
  box-shadow: 0 20px 40px rgba(195, 31, 99, 0.15), var(--glass-shadow);
}

.brand-queen-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15), var(--glass-shadow);
}

.brand-card:hover .brand-logo-container {
  transform: scale(1.08) rotate(3deg);
}

/* Responsive adjustment for brands description */
@media (max-width: 768px) {
  .brands-section {
    margin: 3rem auto;
  }
  .brand-card {
    padding: 2rem 1.5rem;
  }
  .brand-logo-container {
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
  }
  .brands-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

/* ======================================================
   TRILINGUAL CONTENT & TRUST BADGES SYSTEM
   ====================================================== */
.lang-group {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.lang-en {
  display: block;
  font-weight: 700;
  color: inherit;
}

.lang-ar {
  display: block;
  font-family: 'Cairo', sans-serif;
  font-size: 1.15em !important;
  color: var(--gold) !important;
  margin-top: 2px;
  direction: rtl;
  font-weight: 800 !important;
}

.lang-zh {
  display: block;
  font-size: 0.8em;
  color: var(--text-muted);
  margin-top: 1px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Inline text language inline flow (badges, tiny elements) */
.lang-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-inline .lang-en {
  display: inline;
}

.lang-inline .lang-ar {
  display: inline;
  font-size: 1.15em !important;
  color: var(--gold) !important;
  margin-top: 0;
  font-weight: 700 !important;
}

.lang-inline .lang-zh {
  display: inline;
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 0;
}

.lang-divider {
  opacity: 0.4;
  font-size: 0.8em;
  color: var(--gold);
  font-weight: normal;
}

/* Specific styling for Navbar links */
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.15;
}

.nav-link .lang-en {
  font-size: 0.95rem;
}

.nav-link .lang-ar {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
}

.nav-link .lang-zh {
  font-size: 0.7rem;
}

/* Styling for certifications list on About Page */
.certifications-container {
  margin: 5rem 0;
}

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

.cert-card {
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
  transition: all 0.4s ease;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  opacity: 0.6;
}

.cert-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 15px 30px rgba(193, 155, 108, 0.15), var(--glass-shadow);
}

.cert-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(193, 155, 108, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(193, 155, 108, 0.2);
}

.cert-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

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

/* ======================================================
   LANGUAGE SELECTION VISIBILITY LOGIC
   ====================================================== */
html.lang-selected-en .lang-ar,
html.lang-selected-en .lang-zh {
  display: none !important;
}
html.lang-selected-en .lang-en {
  display: block !important;
}
html.lang-selected-en span.lang-en {
  display: inline !important;
}

html.lang-selected-ar .lang-en,
html.lang-selected-ar .lang-zh {
  display: none !important;
}
html.lang-selected-ar .lang-ar {
  display: block !important;
}
html.lang-selected-ar span.lang-ar {
  display: inline !important;
}

html.lang-selected-zh .lang-en,
html.lang-selected-zh .lang-ar {
  display: none !important;
}
html.lang-selected-zh .lang-zh {
  display: block !important;
}
html.lang-selected-zh span.lang-zh {
  display: inline !important;
}

/* Hide separators when a single language is active */
html.lang-selected-en .lang-divider,
html.lang-selected-ar .lang-divider,
html.lang-selected-zh .lang-divider {
  display: none !important;
}

/* ======================================================
   SPLASH LANDING & LANGUAGE SELECTOR
   ====================================================== */
.splash-screen {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #090e1a 0%, #151b2d 100%);
  z-index: 999999;
  display: none; /* Controlled by JS */
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.splash-content {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem 2rem;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  animation: splash-zoom-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes splash-zoom-in {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.splash-main-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.splash-main-logo img {
  height: 120px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 15px rgba(193, 155, 108, 0.3));
  animation: logo-gentle-pulse 3s infinite ease-in-out;
}

@keyframes logo-gentle-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(193, 155, 108, 0.3)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(193, 155, 108, 0.5)); }
}

.splash-main-logo h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.splash-fallback-icon {
  font-size: 4.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(193, 155, 108, 0.4);
}

.splash-brands {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2.5rem;
}

.splash-brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.splash-brand-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  padding: 0.4rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.splash-brand-item:hover img {
  transform: translateY(-5px) scale(1.05);
}

.splash-brand-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
}

.splash-lang-header {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.5px;
}

.splash-lang-header .lang-title-divider {
  opacity: 0.3;
  color: var(--gold);
}

.splash-lang-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.splash-lang-btn {
  flex: 1;
  min-width: 130px;
  max-width: 160px;
  padding: 1rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.splash-lang-btn .btn-lang-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.splash-lang-btn .btn-lang-sub {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.6;
}

.splash-lang-btn:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
}

.splash-lang-btn.btn-en:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.splash-lang-btn.btn-ar:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 25px -5px rgba(193, 155, 108, 0.4);
}

.splash-lang-btn.btn-zh:hover {
  border-color: #c31f67;
  box-shadow: 0 10px 25px -5px rgba(195, 31, 99, 0.4);
}

/* Navbar language changer link */
.nav-lang-changer {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-lang-changer i {
  font-size: 1.1rem;
  color: var(--gold);
}

@media (max-width: 768px) {
  .splash-content {
    padding: 2.5rem 1.5rem;
  }
  .splash-brands {
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
  .splash-brand-item img {
    width: 70px;
    height: 70px;
  }
  .splash-lang-header {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .splash-lang-buttons {
    gap: 0.75rem;
  }
  .splash-lang-btn {
    min-width: 100px;
    padding: 0.85rem 0.25rem;
  }
  .splash-lang-btn .btn-lang-name {
    font-size: 0.95rem;
  }
}


