/* ==========================================================================
   Luxury Architectural Hero Section & Floating Minimalist Executive Navbar
   Portfolio of Eng. Abdullrahman Mayhoub — Senior Civil & BIM Engineer
   Awwwards / Behance Level Dark Mode Architectural Experience
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Floating Minimalist Executive Navbar (شريط علوي عائم ونظيف من طبقة واحدة)
   -------------------------------------------------------------------------- */
.floating-navbar {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
  pointer-events: none; /* Container passes clicks */
}

.navbar-container {
  max-width: 1320px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(10, 15, 24, 0.76);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  pointer-events: auto; /* Nav itself is clickable */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Right (RTL): Brand without Monogram Logo */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: #FFFFFF;
  user-select: none;
  flex-shrink: 0;
  padding-left: 10px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-brand-name {
  font-family: 'Alexandria', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  white-space: nowrap !important;
}

.nav-brand-tag {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  color: #D4AF37;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 1px;
  white-space: nowrap !important;
}

/* Center: Quick Nav Links (الرئيسية، المشاريع الإنشائية، BIM، السجل المهني، التصوير، LinkedIn، التواصل) */
.nav-links-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-links-list {
  display: flex;
  align-items: center;
  gap: clamp(7px, 1.05vw, 12px);
  list-style: none;
  margin: 0;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  flex-wrap: nowrap !important;
}

.nav-links-list li {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-link-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px clamp(10px, 1.1vw, 15px);
  border-radius: 9px;
  font-family: 'Alexandria', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
  line-height: 1 !important;
  flex-shrink: 0;
  position: relative;
}

.nav-link-item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-link-item.active {
  color: #FFFFFF;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.2);
}

.nav-link-linkedin {
  gap: 6px;
}

.nav-link-linkedin svg {
  color: #0A66C2;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-link-linkedin:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px #0A66C2);
}

/* Left: Controls (Language Button EN / AR + Theme Toggle) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', 'Alexandria', sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-control-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.45);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.nav-theme-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.nav-theme-btn .icon-light-sun {
  display: none;
}

[data-theme="light"] .nav-theme-btn .icon-light-sun {
  display: block;
}

[data-theme="light"] .nav-theme-btn .icon-dark-moon {
  display: none;
}

/* Mobile Nav Toggle */
.nav-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   2. Luxury Architectural Hero Section
   -------------------------------------------------------------------------- */
.luxury-hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #080D15;
  color: #FFFFFF;
}

/* Background Carousel Slides Track (Smooth & Seamless Cross-fade) */
.luxury-hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.luxury-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1), transform 9s cubic-bezier(0.1, 0, 0.2, 1);
  pointer-events: none;
  will-change: opacity, transform;
}

.luxury-hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.luxury-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.72) contrast(1.12);
}

/* Architectural Atmospheric Overlays */
.luxury-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    radial-gradient(ellipse at 75% 45%, rgba(10, 16, 26, 0.45) 0%, rgba(8, 13, 21, 0.94) 100%),
    linear-gradient(180deg, rgba(8, 13, 21, 0.82) 0%, transparent 22%, transparent 70%, rgba(8, 13, 21, 0.98) 100%);
  pointer-events: none;
}

/* Blueprint Grid Overlay */
.luxury-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. Main Hero Content (في المنتصف، محاذاة لليمين RTL)
   -------------------------------------------------------------------------- */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: auto;
  padding: 130px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Right-aligned in RTL */
  text-align: right;
  direction: rtl;
}

/* Accreditation Badge (شارة اعتماد علوية واحدة فقط مع نقطة خضراء) */
.hero-accreditation-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(14, 22, 34, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #F5E8C7;
  padding: 6px 18px;
  border-radius: 999px;
  font-family: 'Alexandria', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  animation: fadeInDown 0.8s ease backwards;
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: heroDotPulse 2s infinite ease-in-out;
}

@keyframes heroDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.35); }
}

/* Main Name (العنوان الرئيسي بخط عربي عصري عريض وواضح) */
.hero-title-name {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.18;
  letter-spacing: -1px;
  margin: 16px 0 14px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-title-name .gold-dot {
  color: #D4AF37;
}

/* Specialty Tags (بطاقات تصنيف التخصص: BIM • Technical Office Engineer • Planning) */
.hero-specialty-tags {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(37, 99, 235, 0.1) 100%);
  border: 1px solid rgba(212, 175, 55, 0.32);
  padding: 8px 22px;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-family: 'Plus Jakarta Sans', 'Outfit', 'Alexandria', sans-serif;
  font-weight: 700;
  font-size: clamp(0.92rem, 1.55vw, 1.15rem);
  color: #E5C358;
  letter-spacing: 0.4px;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-specialty-tags .spec-dot {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9em;
}

/* Concise Bio (نص تعريفي موجز ومركّز) */
.hero-brief-bio {
  font-family: 'IBM Plex Sans Arabic', 'Alexandria', sans-serif;
  font-size: clamp(0.95rem, 1.45vw, 1.12rem);
  line-height: 1.85;
  color: #CBD5E1;
  max-width: 720px;
  margin: 16px 0 26px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  animation: fadeInUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Action Buttons (زر الإجراء الأساسي الذهبي + الزر الثانوي الزجاجي) */
.hero-action-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Primary Button: Matte Refined Gold */
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #E5C358 0%, #D4AF37 55%, #B89736 100%);
  color: #0A0F18 !important;
  font-family: 'Alexandria', sans-serif;
  font-weight: 800;
  font-size: 0.94rem;
  padding: 13px 26px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35), 0 2px 0 rgba(255, 255, 255, 0.25) inset;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.hero-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 36px rgba(212, 175, 55, 0.48);
  filter: brightness(1.06);
}

/* Secondary Button: Glassmorphism Transparent */
.hero-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 22, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF !important;
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 13px 24px;
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.hero-btn-glass:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: #D4AF37;
  color: #F5E8C7 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}



/* --------------------------------------------------------------------------
   5. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   6. Responsive Layout Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-tabs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-links-wrap {
    display: none; /* Hide on mobile/tablet until toggled */
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    background: rgba(10, 15, 24, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(24px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }

  .nav-links-wrap.open {
    display: flex;
  }

  .nav-links-list {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .nav-link-item {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-mobile-toggle {
    display: inline-flex;
  }

  .hero-content-wrapper {
    padding-top: 110px;
  }
}

@media (max-width: 640px) {
  .floating-navbar {
    top: 10px;
    padding: 0 12px;
  }

  .navbar-container {
    height: 56px;
    padding: 0 14px;
  }

  .nav-brand-tag {
    display: none;
  }

  .hero-content-wrapper {
    padding-top: 96px;
    padding-bottom: 24px;
  }

  .hero-specialty-tags {
    font-size: 0.85rem;
    padding: 6px 14px;
    gap: 8px;
  }

  .hero-action-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn-primary,
  .hero-btn-glass {
    justify-content: center;
    width: 100%;
  }

  .hero-tabs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-tab-card {
    padding: 10px 14px;
  }
}
