@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800&family=Cinzel:wght@500;700&display=swap');

:root {
  /* Ultra-Lux Dark Theme (Matte Slate-Navy & Warm Champagne-Gold) */
  --bg-deep: #070b14;         /* Matte Deep Slate-Navy */
  --bg-main: #0b1120;         /* Soft Dark Slate Backdrop */
  --bg-card: rgba(15, 23, 42, 0.65);   /* Frosted Dark Slate Card */
  --bg-card-hover: rgba(22, 33, 58, 0.85);
  --border-color: rgba(212, 175, 55, 0.18); /* Champagne Gold Accent Border */
  --border-hover: rgba(212, 175, 55, 0.55);
  
  /* Gold Accents - Muted Champagne Tone */
  --gold-primary: #d4af37;    /* Rich warm gold */
  --gold-light: #f3e5ab;      /* Soft champagne light */
  --gold-dark: #a28122;       /* Antique gold shadow */
  --gold-glow: rgba(212, 175, 55, 0.2);
  
  /* Text Colors */
  --text-main: #f1f5f9;       /* Crisp off-white */
  --text-muted: #94a3b8;      /* Soft Slate Gray */
  --text-dark: #070b14;       /* Deep slate */
  
  /* Typography - Modern Alexandria & Cinzel */
  --font-title: 'Alexandria', sans-serif;
  --font-body: 'Alexandria', sans-serif;
  --font-en-serif: 'Cinzel', serif;
  --font-en-sans: 'Alexandria', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* Muted Ambient Glow Blobs */
.glow-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.08; /* Highly softened opacity for comfort */
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.blob-1 {
  width: 450px;
  height: 450px;
  background: var(--gold-primary);
  top: -10%;
  left: -5%;
  animation: floatBlob1 28s infinite alternate ease-in-out;
}
.blob-2 {
  width: 550px;
  height: 550px;
  background: #1e3a8a;
  bottom: 10%;
  right: -10%;
  animation: floatBlob2 35s infinite alternate ease-in-out;
}
.blob-3 {
  width: 350px;
  height: 350px;
  background: #0ea5e9;
  top: 40%;
  left: 30%;
  animation: floatBlob1 22s infinite alternate-reverse ease-in-out;
}

@keyframes floatBlob1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(60px, 80px) scale(1.15) rotate(90deg); }
  100% { transform: translate(-30px, 140px) scale(0.9) rotate(180deg); }
}
@keyframes floatBlob2 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-80px, -60px) scale(0.85) rotate(-90deg); }
  100% { transform: translate(40px, 50px) scale(1.1) rotate(-180deg); }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

::selection {
  background: var(--gold-primary);
  color: var(--bg-deep);
}

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

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

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 15px var(--gold-primary);
}

/* Interactive Background Canvas */
#particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Luxury Divider */
.luxury-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 60px 0;
  opacity: 0.5;
}
.luxury-divider .line {
  height: 1px;
  width: 100px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}
.luxury-divider .diamond {
  color: var(--gold-primary);
  font-size: 0.9rem;
}

/* ========================================================
   HEADER & NAVIGATION
   ======================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 14, 26, 0.75);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
header.scrolled {
  background: rgba(9, 14, 26, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(205, 169, 60, 0.25);
}

/* Topbar */
.topbar {
  background: rgba(9, 14, 26, 0.85);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.topbar .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  direction: ltr; /* contacts left, registry right */
}
.topbar .contacts {
  display: flex;
  gap: 20px;
  direction: rtl; /* text right inside contacts */
}
.topbar .contacts a, .topbar .contacts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar .contacts a:hover {
  color: var(--gold-primary);
}
.topbar .gold-accent {
  color: var(--gold-primary);
  font-weight: 500;
}

/* Branding Header */
.branding {
  padding: 16px 24px;
}
.branding .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  direction: ltr; /* logo left, navmenu right */
}
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  direction: rtl; /* keep logo text RTL */
}
.logo .logo-container {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  padding: 2px;
  background: rgba(205, 169, 60, 0.05);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(205, 169, 60, 0.2);
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: var(--transition-smooth);
}
.logo:hover img {
  transform: scale(1.1) rotate(8deg);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.brand-text .ar {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.brand-text .en {
  font-family: var(--font-en-serif);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Nav Menu */
.navmenu {
  position: relative;
  direction: rtl; /* keep menu items RTL */
}
.navmenu ul {
  display: flex;
  list-style: none;
  gap: 6px;
}
.navmenu button.nav-link {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 4px;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}
.navmenu button.nav-link:hover {
  color: var(--text-main);
}
.navmenu button.nav-link.active {
  color: var(--bg-deep);
  font-weight: 700;
}

/* Sliding nav pill */
#nav-pill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  border-radius: 4px;
  z-index: 1;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(205, 169, 60, 0.4);
  pointer-events: none;
  opacity: 0;
}

.mobile-nav-toggle {
  display: none;
  color: var(--gold-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: rgba(205, 169, 60, 0.05);
  transition: var(--transition-fast);
}

/* ========================================================
   HERO SECTION (AfterNow Full-Width Layout)
   ======================================================== */
/* Kinetic Masked Text Reveal (AfterNow Signature Style) */
.mask-text-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 4px;
}
.mask-text-line {
  display: inline-block;
  transform: translateY(0%);
  opacity: 1;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.mask-text-delay-1 { transition-delay: 0.1s; }
.mask-text-delay-2 { transition-delay: 0.25s; }
.mask-text-delay-3 { transition-delay: 0.4s; }

.afternow-hero {
  padding: 80px 0 100px;
}
.afternow-hero-head {
  text-align: right;
  margin-bottom: 30px;
}
.afternow-hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  text-shadow: 0 10px 30px rgba(0,0,0,0.7);
  letter-spacing: -0.02em;
}
.afternow-hero-title .gold-gradient {
  background: linear-gradient(95deg, var(--gold-dark), var(--gold-light) 30%, var(--gold-primary) 70%, var(--gold-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShimmer 6s linear infinite;
}
.afternow-hero-subrow {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.afternow-hero-subrow p.hero-lead {
  max-width: 680px;
  font-size: 1.15rem;
  line-height: 1.95;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* AfterNow Large Media Showcase Container */
.afternow-showcase-wrapper {
  position: relative;
  width: 100%;
  margin-top: 20px;
}
.showcase-echo {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.25), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.afternow-media-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 520px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 30px 70px rgba(0,0,0,0.8), 0 0 35px rgba(212, 175, 55, 0.2);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.afternow-media-card:hover {
  transform: scale(1.01);
  border-color: var(--gold-light);
}
.afternow-media-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.95) contrast(1.05);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.afternow-media-card:hover img {
  transform: scale(1.04);
}

/* Floating Overlay Tags (AfterNow Style) */
.media-overlay-tags {
  position: absolute;
  top: 25px;
  right: 25px;
  display: flex;
  gap: 12px;
  z-index: 4;
}
.media-pill-tag {
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid var(--border-hover);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.media-pill-tag.highlight {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #070b14;
  border: none;
}

/* Bottom Showcase Floating Metrics Bar */
.media-floating-stats {
  position: absolute;
  bottom: 16px;
  right: 24px;
  left: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 25px;
  background: rgba(7, 11, 20, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 12px 28px;
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}
.media-floating-stats .stat-box {
  display: flex;
  flex-direction: column;
}
.media-floating-stats .stat-num {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
}
.media-floating-stats .stat-lbl {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.media-floating-stats .stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(212, 175, 55, 0.25);
}

/* Luxury Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.hero-badge .badge-icon {
  color: var(--gold-primary);
  font-size: 0.95rem;
  animation: spinStar 8s linear infinite;
}
.hero-badge .badge-text {
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@keyframes spinStar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-content .content p.hero-lead {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.95;
  margin-bottom: 38px;
  font-weight: 400;
}
.cta-group {
  display: flex;
  gap: 20px;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 1.02rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #070b14 !important;
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.7s ease;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
  border-color: var(--gold-light);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  transition: var(--transition-fast);
}
.btn-secondary:hover {
  color: var(--text-main);
  transform: scale(1.05);
}
.btn-secondary svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Hero Right Side: Image and Floating stats card */
.hero-image {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 10px;
  background: rgba(205, 169, 60, 0.03);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  overflow: visible;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  min-height: 400px;
}
.floating-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(205, 169, 60, 0.1);
  z-index: 5;
  animation: floatCard 4s infinite alternate ease-in-out;
}
@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}
.floating-card .card-content {
  display: flex;
  gap: 30px;
}
.floating-card .metric {
  display: flex;
  flex-direction: column;
}
.floating-card .metric .number {
  font-family: var(--font-en-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1.1;
}
.floating-card .metric .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Hero Features (4 columns cards grid below main hero) */
.hero-features {
  margin-top: 70px;
}
.hero-features .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 30px 24px;
  transition: var(--transition-smooth);
}
.feature-item:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.feature-item .icon {
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 16px;
  display: inline-block;
}
.feature-item h4 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================================
   FEATURED SERVICES (Marugame Seimen Editorial Story Layout)
   ======================================================== */
.marugame-section {
  padding: 100px 0;
  position: relative;
}
.marugame-title {
  text-align: right;
  margin-bottom: 60px;
}
.marugame-subtag {
  font-family: var(--font-en-serif);
  color: var(--gold-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
}
.marugame-story-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.marugame-story-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
}
.marugame-story-card.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}
.marugame-story-card.reverse .story-image-wrap {
  order: 2;
}
.marugame-story-card.reverse .story-text-wrap {
  order: 1;
}

/* Marugame Story Image Container */
.story-image-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transition: transform 0.6s ease;
}
.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.story-image-wrap:hover img {
  transform: scale(1.05);
}

/* Marugame Stamp Seal (Japanese Craftsmanship Seal) */
.marugame-seal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: rgba(186, 24, 48, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transform: rotate(-12deg);
  transition: transform 0.4s ease;
}
.marugame-seal.gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  color: #070b14;
}
.marugame-seal span {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.marugame-seal.gold span {
  color: #070b14;
}
.story-image-wrap:hover .marugame-seal {
  transform: rotate(0deg) scale(1.1);
}

/* Marugame Overlapping Story Text Container */
.story-text-wrap {
  background: rgba(11, 17, 32, 0.92);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  padding: 45px 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.7), 0 0 25px rgba(212, 175, 55, 0.15);
  margin-right: -40px;
  position: relative;
  z-index: 3;
}
.marugame-story-card.reverse .story-text-wrap {
  margin-right: 0;
  margin-left: -40px;
}
.story-text-wrap .story-num {
  font-family: var(--font-en-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-primary);
  display: block;
  margin-bottom: 12px;
}
.story-text-wrap h3 {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 18px;
  line-height: 1.35;
}
.story-text-wrap p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 28px;
}
.marugame-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-color);
  color: var(--gold-light);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}
.marugame-btn:hover {
  background: var(--gold-primary);
  color: #070b14;
  border-color: var(--gold-light);
  transform: translateX(-5px);
}
.featured-services .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

/* 3D Holographic Card Spotlight Glare */
.portfolio-card, .feature-item, .service-item, .hero-image, .info-row, .legal-block, .achievement-badge {
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.portfolio-card::after, .feature-item::after, .service-item::after, .hero-image::after, .info-row::after, .legal-block::after, .achievement-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}
.portfolio-card:hover::after, .feature-item:hover::after, .service-item:hover::after, .hero-image:hover::after, .info-row:hover::after, .legal-block:hover::after, .achievement-badge:hover::after {
  opacity: 1;
}
.service-item:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 12px rgba(205, 169, 60, 0.1);
}
.service-item .service-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(205, 169, 60, 0.08);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--gold-primary);
  transition: var(--transition-smooth);
}
.service-item:hover .service-icon {
  background: var(--gold-primary);
  color: var(--bg-deep);
  transform: scale(1.1) rotate(-3deg);
}
.service-item h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.service-item p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}
.service-item .service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-primary);
  transition: var(--transition-fast);
  margin-top: auto;
}
.service-item:hover .service-link {
  color: var(--text-main);
  transform: translateX(-6px);
}

/* ========================================================
   ABOUT SECTION
   ======================================================== */
.about {
  padding: 100px 0;
  position: relative;
}
.section-title {
  text-align: center;
  margin-bottom: 70px;
}
.section-title h2 {
  font-family: var(--font-title);
  font-size: 2.4rem;
  color: var(--text-main);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gold-primary);
}
.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 10px;
}

.about .row {
  display: flex;
  align-items: center;
  gap: 50px;
}
.about .col-lg-6 {
  flex: 1;
}
.about .content h2 {
  font-family: var(--font-title);
  font-size: 1.85rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 700;
}
.about .content .lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 24px;
}
.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}
.about .stat-item {
  display: flex;
  flex-direction: column;
}
.about .stat-number {
  font-family: var(--font-en-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1.1;
}
.about .stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 6px;
}

.about .image-container {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 10px;
  background: rgba(205, 169, 60, 0.03);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
}
.about .image-container img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ========================================================
   STATS SECTION
   ======================================================== */
.stats {
  padding: 100px 0;
  background: rgba(5, 10, 24, 0.45);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.stats-grid {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}
.stats-container .stat-item {
  padding: 40px 30px;
  border-right: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition-smooth);
}
.stats-container .stat-item:last-child {
  border-right: none;
}
.stats-container .stat-item:hover {
  background: var(--bg-card-hover);
  box-shadow: inset 0 0 20px rgba(205, 169, 60, 0.08);
}
.stats-container .stat-number {
  font-family: var(--font-en-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-container .stat-divider {
  width: 40px;
  height: 2px;
  background: var(--gold-primary);
  margin: 0 auto 16px;
}
.stats-container .stat-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.stats-container .stat-description {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.achievement-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 700px;
  margin: 40px auto 0;
  text-align: right;
  transition: var(--transition-smooth);
}
.achievement-badge:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.achievement-badge .badge-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(205, 169, 60, 0.1);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.6rem;
  flex-shrink: 0;
}
.achievement-badge .badge-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.achievement-badge .badge-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ========================================================
   CLIENTS / BRAND PARTNERS (Luxury Grid Showcase)
   ======================================================== */
.clients {
  padding: 90px 0;
  background: rgba(3, 7, 18, 0.65);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.brands-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
}
.client-item {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  height: 110px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.client-item:hover {
  background: #ffffff;
  border-color: var(--gold-primary);
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.4);
}
.client-item img {
  max-width: 80%;
  max-height: 46px;
  object-fit: contain;
  filter: none !important;
  mix-blend-mode: normal !important;
  transition: var(--transition-fast);
}
.client-item:hover img {
  transform: scale(1.08);
}
.client-item .brand-name {
  font-family: var(--font-en-serif);
  font-size: 0.75rem;
  font-weight: 800;
  color: #070b14;
  letter-spacing: 0.12em;
  opacity: 0.85;
}
.client-item:hover .brand-name {
  color: var(--gold-dark);
  opacity: 1;
}
  color: var(--gold-light);
  letter-spacing: 0.15em;
  opacity: 0.7;
  transition: var(--transition-fast);
}
.client-item:hover .brand-name {
  opacity: 1;
  color: #ffffff;
}

@media (max-width: 991px) {
  .brands-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 576px) {
  .brands-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.client-item:hover img {
  filter: none;
}

/* ========================================================
   MAPS AND BRANCHES
   ======================================================== */
.services-section {
  padding: 100px 0;
  position: relative;
}
.branches-map-wrap {
  margin-top: 40px;
}
.map-title-bar {
  text-align: center;
  font-family: var(--font-title);
  color: var(--gold-light);
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 700;
}

/* ========================================================
   PORTFOLIO / CATALOG GRID
   ======================================================== */
.portfolio {
  padding: 100px 0;
  position: relative;
}
.portfolio-filters-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 45px;
}
.portfolio-filters {
  display: flex;
  list-style: none;
  gap: 10px;
  background: rgba(11, 22, 54, 0.3);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 30px;
}
.portfolio-filters li {
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}
.portfolio-filters li:hover,
.portfolio-filters li.filter-active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: var(--bg-deep) !important;
  box-shadow: 0 4px 10px rgba(205, 169, 60, 0.25);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  transition: height 0.5s ease;
}
.portfolio-item {
  width: 100%;
}
/* AfterNow-Style Portfolio Category Tag */
.portfolio-card .image-container {
  position: relative;
}
.portfolio-card .portfolio-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 4;
  background: rgba(7, 11, 20, 0.88);
  border: 1px solid var(--border-hover);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: var(--transition-fast);
}
.portfolio-card:hover .portfolio-tag {
  background: var(--gold-primary);
  color: #070b14;
  border-color: var(--gold-light);
}
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 15px rgba(205, 169, 60, 0.12);
}
.portfolio-card .image-container {
  height: 250px;
  position: relative;
  overflow: hidden;
  background: #000;
}
.portfolio-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: var(--transition-smooth);
}
.portfolio-card:hover .image-container img {
  transform: scale(1.1) rotate(1deg);
  opacity: 0.95;
}
.portfolio-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 2;
}
.portfolio-card:hover .overlay {
  opacity: 1;
}
.portfolio-card .zoom-link {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition-fast);
  box-shadow: 0 0 15px rgba(205, 169, 60, 0.4);
}
.portfolio-card .zoom-link:hover {
  background: var(--gold-light);
  transform: scale(1.15);
}
.portfolio-card .content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.portfolio-card .content h3 {
  font-family: var(--font-title);
  color: var(--gold-light);
  font-size: 1.35rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.portfolio-card .content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================================
   CONTACT SECTION
   ======================================================== */
.contact {
  padding: 100px 0;
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: start;
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.info-row {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 26px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  transition: var(--transition-smooth);
}
.info-row:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
}
.info-row .icon-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(205, 169, 60, 0.08);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}
.info-row:hover .icon-box {
  background: var(--gold-primary);
  color: var(--bg-deep);
}
.info-row .icon-box svg {
  width: 26px;
  height: 26px;
}
.info-row h4 {
  font-family: var(--font-title);
  color: var(--gold-light);
  font-size: 1.25rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.info-row p, .info-row a {
  color: var(--text-muted);
  font-size: 1.02rem;
  direction: ltr;
  text-align: right;
  unicode-bidi: plaintext;
}

form.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 45px;
  display: grid;
  gap: 22px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
form.contact-form label {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 8px;
}
form.contact-form input, form.contact-form textarea {
  width: 100%;
  background: rgba(3, 7, 18, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 18px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  transition: var(--transition-fast);
}
form.contact-form input:focus, form.contact-form textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(205, 169, 60, 0.2);
  background: rgba(3, 7, 18, 0.85);
}
form.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}
form.contact-form button {
  justify-self: start;
  margin-top: 10px;
}
.form-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========================================================
   TERMS PAGE SECTION
   ======================================================== */
.terms-privacy {
  padding: 100px 0;
  position: relative;
}
.legal-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.legal-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 45px;
  margin-bottom: 40px;
  backdrop-filter: blur(12px);
}
.legal-block h2 {
  font-family: var(--font-title);
  color: var(--gold-light);
  font-size: 1.8rem;
  margin-bottom: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
}
.clause {
  display: flex;
  gap: 22px;
  margin-bottom: 26px;
  align-items: flex-start;
}
.clause .idx {
  font-family: var(--font-en-serif);
  color: var(--gold-primary);
  font-size: 1.35rem;
  font-weight: 700;
  background: rgba(205, 169, 60, 0.08);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}
.clause p {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.85;
}
.clause strong {
  color: var(--text-main);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

/* ========================================================
   FOOTER SECTION
   ======================================================== */
footer {
  background: #060912;
  border-top: 1px solid var(--border-color);
  padding: 90px 0 40px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}
.footer-brand .ar {
  font-family: var(--font-title);
  color: var(--gold-light);
  font-size: 1.7rem;
  font-weight: 700;
}
.footer-brand .en {
  font-family: var(--font-en-serif);
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 6px;
  letter-spacing: 0.1em;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 22px;
  max-width: 400px;
  line-height: 1.75;
}
footer h5 {
  font-family: var(--font-body);
  color: var(--gold-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 26px;
  position: relative;
  display: inline-block;
}
footer h5::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 35px;
  height: 2px;
  background: var(--gold-primary);
}
footer ul {
  list-style: none;
}
footer li {
  margin-bottom: 14px;
}
footer a {
  color: var(--text-muted);
  font-size: 1rem;
}
footer a:hover {
  color: var(--gold-light);
  transform: translateX(-4px);
  display: inline-block;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ========================================================
   ARTISTIC TOUCHES: CUSTOM CURSOR & GOLDEN THREADS
   ======================================================== */
#cursor-dot, #cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease, width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
}
#cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--gold-primary);
}
#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold-primary);
  background-color: transparent;
  box-shadow: 0 0 10px rgba(205, 169, 60, 0.15);
}

#cursor-ring.hover {
  width: 60px;
  height: 60px;
  background-color: rgba(205, 169, 60, 0.08);
  border-color: var(--gold-light);
  box-shadow: 0 0 25px rgba(205, 169, 60, 0.5);
}
#cursor-dot.hover {
  width: 8px;
  height: 8px;
  background-color: var(--gold-light);
}
#cursor-ring.clicking {
  width: 24px;
  height: 24px;
  background-color: rgba(205, 169, 60, 0.2);
}

@media (min-width: 992px) {
  body, a, button, .portfolio-filters li, .service-item, .portfolio-card, .logo, .info-row, footer a {
    cursor: none !important;
  }
}

.golden-thread {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}
.thread-left {
  left: 1%;
}
.thread-right {
  right: 1%;
}

/* ========================================================
   INTRO PRELOADER
   ======================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 1.2s ease;
  will-change: transform, opacity;
}
#preloader.loaded {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.preloader-logo-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 24px;
  animation: preloaderPulse 2.5s infinite ease-in-out;
}
.preloader-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  padding: 3px;
  background: rgba(205, 169, 60, 0.05);
}
.preloader-logo-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 30px var(--gold-glow);
  animation: logoGlowPulse 2.5s infinite ease-in-out;
}
.preloader-title {
  font-family: var(--font-title);
  color: var(--gold-light);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: preloaderTextIn 0.8s 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.preloader-subtitle {
  font-family: var(--font-en-serif);
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: preloaderTextIn 0.8s 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
.preloader-line-wrap {
  width: 150px;
  height: 2px;
  background: rgba(205, 169, 60, 0.1);
  overflow: hidden;
  border-radius: 1px;
}
.preloader-line {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  transform: translateX(-100%);
  animation: preloaderLineFill 1.8s 0.2s infinite ease-in-out;
}

@keyframes preloaderPulse {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
  100% { transform: scale(0.95); }
}
@keyframes logoGlowPulse {
  0% { box-shadow: 0 0 15px var(--gold-glow); opacity: 0.5; }
  50% { box-shadow: 0 0 35px var(--gold-primary); opacity: 0.9; }
  100% { box-shadow: 0 0 15px var(--gold-glow); opacity: 0.5; }
}
@keyframes preloaderTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes preloaderLineFill {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Scroll Transitions (Default Visible) */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 1;
  transition: opacity 0.8s ease, transform 0.8s ease;
  filter: none;
}
.reveal-up { transform: none; }
.reveal-left { transform: none; }
.reveal-right { transform: none; }
.reveal-scale { transform: none; }

.reveal-up.in-view, .reveal-left.in-view, .reveal-right.in-view, .reveal-scale.in-view {
  opacity: 1;
  transform: translate(0) scale(1);
  filter: blur(0);
}

.reveal-stagger > * {
  opacity: 1;
  transition: opacity 0.8s ease, transform 0.8s ease;
  filter: none;
  transform: none;
}
.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translate(0) scale(1);
  filter: blur(0);
}

/* Hero opening entrance states */
body.page-ready #home .hero-content .col-lg-6:first-child {
  animation: heroEntranceRight 1.5s 0.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
body.page-ready #home .hero-content .col-lg-6:last-child {
  animation: heroEntranceLeft 1.5s 0.4s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroEntranceRight {
  0% { opacity: 0; transform: translateX(80px); filter: blur(10px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}
@keyframes heroEntranceLeft {
  0% { opacity: 0; transform: translateX(-80px); filter: blur(10px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}

/* Leaflet Map Custom Overrides (Dark Theme) */
#leaflet-map {
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
}
.leaflet-container {
  background: var(--bg-deep) !important;
}
.leaflet-popup-content-wrapper {
  background: rgba(15, 23, 42, 0.95) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}
.leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.95) !important;
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: none !important;
}
.leaflet-gold-logo-icon {
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background: var(--bg-deep);
  box-shadow: 0 0 12px var(--gold-glow);
  object-fit: cover;
  transition: transform 0.3s ease;
}
.leaflet-gold-logo-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 0 18px var(--gold-primary);
}
.leaflet-bar {
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  border-radius: 6px !important;
  overflow: hidden;
}
.leaflet-bar a {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid var(--border-color) !important;
  transition: var(--transition-fast) !important;
}
.leaflet-bar a:hover {
  background-color: var(--gold-primary) !important;
  color: var(--bg-deep) !important;
}
.leaflet-bar a.leaflet-disabled {
  background-color: rgba(3, 7, 18, 0.5) !important;
  color: var(--text-muted) !important;
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */
@media (max-width: 991px) {
  .hero-content .row {
    flex-direction: column;
    gap: 50px;
  }
  .hero-features .row {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-services .row {
    grid-template-columns: repeat(2, 1fr);
  }
  .about .row {
    flex-direction: column;
    gap: 40px;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-container .stat-item {
    border-bottom: 1px solid var(--border-color);
  }
  .stats-container .stat-item:nth-child(even) {
    border-right: none;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .footer-grid > *:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .topbar .wrap {
    justify-content: center;
    text-align: center;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .navmenu ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: -24px;
    left: -24px;
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    gap: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    z-index: 99;
  }
  .navmenu ul.open {
    display: flex;
  }
  #nav-pill {
    display: none;
  }
  .navmenu button.nav-link {
    width: 100%;
    text-align: right;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
  }
  .navmenu button.nav-link.active {
    background: var(--gold-primary);
    color: var(--bg-deep);
  }
  .hero-features .row, 
  .featured-services .row,
  .stats-container,
  .portfolio-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .stats-container .stat-item {
    border-right: none !important;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ========================================================
   AFTERNOW-INSPIRED SIGNATURE COMPONENTS
   ======================================================== */

/* 1. AfterNow Cursor Label Badge */
#cursor-ring {
  display: flex;
  align-items: center;
  justify-content: center;
}
#cursor-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
#cursor-ring.has-badge {
  width: 75px !important;
  height: 75px !important;
  background: rgba(212, 175, 55, 0.2) !important;
  border-color: var(--gold-light) !important;
  backdrop-filter: blur(8px);
}
#cursor-ring.has-badge #cursor-text {
  opacity: 1;
}

/* 2. Floating Top Announcement Bar */
.announcement-bar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(11, 17, 32, 0.9);
  border: 1px solid var(--border-hover);
  border-radius: 40px;
  padding: 8px 24px;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(212, 175, 55, 0.2);
  transition: var(--transition-smooth);
}
.announcement-content {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
}
.announcement-badge {
  background: var(--gold-primary);
  color: #070b14;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
}
.announcement-text {
  color: var(--text-main);
}
.announcement-cta {
  color: var(--gold-light);
  font-weight: 700;
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition-fast);
}
.announcement-cta:hover {
  color: #fff;
  transform: translateX(-3px);
}
.announcement-close {
  color: var(--text-muted);
  border: none;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
}
.announcement-close:hover {
  color: var(--gold-primary);
}

/* 3. Full Navigation Overlay */
.full-navigation {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.full-navigation.open {
  opacity: 1;
  pointer-events: auto;
}
.full-nav-content {
  width: 90%;
  max-width: 1100px;
  position: relative;
  padding: 40px;
}
.full-nav-close {
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 2.2rem;
  color: var(--gold-light);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.full-nav-close:hover {
  transform: rotate(90deg) scale(1.2);
  color: var(--gold-primary);
}
.full-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.nav-featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(15px);
}
.nav-featured-card .featured-tag {
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}
.nav-featured-card h3 {
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.nav-featured-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.full-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.full-nav-menu a {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.full-nav-menu a:hover {
  color: var(--gold-light);
  transform: translateX(-10px);
}
