/* ==========================================================================
   رواق للعمارة والبناء - RAWAQ ARCHITECTURE & CONSTRUCTION
   Hyper-Luxury World-Class Architectural Portfolio System
   Lead Architect: Eng. Hussein Ammar (م. حسين عمار)
   ========================================================================== */

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

:root {
  /* Hyper-Luxury Color System */
  --bg-dark: #040507;
  --bg-card: #0A0C10;
  --bg-card-hover: #12151D;
  --bg-glass: rgba(10, 12, 16, 0.82);
  
  --gold-primary: #D4AF37;
  --gold-light: #F7E7B4;
  --gold-dark: #8A6D2B;
  --gold-gradient: linear-gradient(135deg, #F7E7B4 0%, #D4AF37 50%, #8A6D2B 100%);
  --gold-glow: rgba(212, 175, 55, 0.35);
  
  --insta-gradient: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F56040 100%);
  
  --text-main: #FFFFFF;
  --text-muted: #A0ABC0;
  --text-dim: #505B6E;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.4);
  
  --shadow-lux: 0 30px 60px -15px rgba(0, 0, 0, 0.95);
  --shadow-gold: 0 10px 35px -5px rgba(212, 175, 55, 0.3);
  
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  
  --nav-height: 72px;
  --font-family: 'Cairo', 'Tajawal', sans-serif;
  --font-display: 'Cinzel', serif;
}

/* Background Subtle CAD Grid */
body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 0),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px, 80px 80px;
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + 24px);
  direction: rtl;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Tajawal', var(--font-family);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.sub-title {
  color: var(--gold-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-title::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  display: inline-block;
}

/* Glass Header */
.top-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 72px;
  z-index: 100;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--gold-glow) 0%, transparent 70%);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #FFF;
  line-height: 1;
}

.brand-tagline {
  font-size: 0.65rem;
  color: var(--gold-primary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-nav {
  display: none;
}

.insta-badge {
  background: rgba(225, 48, 108, 0.15);
  border: 1px solid rgba(225, 48, 108, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #FF758F;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.insta-badge:active {
  transform: scale(0.95);
}

/* Mobile Floating Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 14px;
  right: 16px;
  left: 16px;
  height: var(--nav-height);
  background: rgba(6, 8, 12, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95), var(--shadow-gold);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex: 1;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.nav-item.active {
  color: var(--gold-light);
}

.nav-item.active svg {
  transform: translateY(-2px) scale(1.15);
  stroke: var(--gold-primary);
  filter: drop-shadow(0 2px 10px var(--gold-glow));
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 16px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--gold-primary);
}

/* Main Sections */
main {
  padding-top: 72px;
}

.section {
  padding: 48px 20px;
  position: relative;
}

.section-header {
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.95rem;
  font-weight: 900;
  margin-top: 4px;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px 48px 20px;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-gold);
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: hero-zoom 22s infinite alternate cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.14); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 5, 7, 0.25) 0%,
    rgba(4, 5, 7, 0.72) 50%,
    rgba(4, 5, 7, 0.98) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: var(--shadow-gold);
}

.hero-title {
  font-size: 2.45rem;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.hero-description {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: #040507;
  font-weight: 800;
  font-size: 1rem;
  padding: 17px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-insta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--insta-gradient);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1rem;
  padding: 17px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(225, 48, 108, 0.4);
  transition: all 0.3s ease;
}

.btn-insta:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
  position: relative;
  z-index: 3;
}

.stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 8px;
  text-align: center;
}

.stat-number {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--gold-light);
  font-family: 'Tajawal', sans-serif;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Interactive Blueprint Slider Section */
.blueprint-showcase {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  overflow: hidden;
  padding: 24px 20px;
  box-shadow: var(--shadow-lux);
}

.comparison-slider-wrapper {
  position: relative;
  width: 100%;
  height: 290px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lux);
  touch-action: pan-y;
  user-select: none;
  margin: 20px 0 14px 0;
  border: 1px solid var(--border-gold);
}

.comparison-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.img-blueprint {
  z-index: 1;
  filter: contrast(1.15) brightness(1.15);
}

.img-render {
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path 0.05s ease-out;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--gold-light);
  z-index: 3;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 16px var(--gold-primary);
}

.handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #040507;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.95), 0 0 18px var(--gold-glow);
}

.slider-label {
  position: absolute;
  bottom: 14px;
  padding: 5px 16px;
  background: rgba(4, 5, 7, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  z-index: 4;
  pointer-events: none;
  border: 1px solid var(--border-gold);
}

.label-left {
  right: 14px;
  color: var(--gold-light);
}

.label-right {
  left: 14px;
  color: var(--text-main);
}

/* Portfolio Projects Gallery */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 22px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 22px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: #040507;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  cursor: pointer;
}

.project-card:active {
  transform: scale(0.98);
}

.project-thumb-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-thumb {
  transform: scale(1.08);
}

.project-category-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(4, 5, 7, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
}

.project-info {
  padding: 22px;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-bottom: 14px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-primary);
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 18px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Architect Profile */
.architect-profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-lux);
}

.architect-avatar {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  margin: 0 auto 18px auto;
  box-shadow: var(--shadow-gold);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.architect-name {
  font-size: 1.45rem;
  font-weight: 900;
}

.architect-role {
  font-size: 0.84rem;
  color: var(--gold-primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.architect-quote {
  font-size: 0.96rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
}

/* Contact Section */
.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 26px 20px;
}

.contact-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.quick-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.quick-contact-btn:active {
  transform: scale(0.96);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFF;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.3);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.form-select, .form-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 15px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-select:focus, .form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px var(--gold-glow);
}

/* Floating Action Button */
.floating-whatsapp {
  position: fixed;
  bottom: 100px;
  left: 20px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  z-index: 990;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.floating-whatsapp:active {
  transform: scale(0.9);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 7, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-sheet {
  width: 100%;
  max-height: 90vh;
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid var(--border-gold);
  overflow-y: auto;
  padding: 26px 20px 40px 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-drag-indicator {
  width: 44px;
  height: 5px;
  background: var(--text-dim);
  border-radius: 3px;
  margin: 0 auto 20px auto;
}

/* Responsive Desktop */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
  .bottom-nav {
    display: none;
  }
  .desktop-nav {
    display: flex;
    gap: 26px;
  }
  .desktop-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.25s;
  }
  .desktop-nav a:hover {
    color: var(--gold-light);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-section {
    min-height: 88vh;
    padding: 60px 80px;
  }
  .hero-title {
    font-size: 3.8rem;
  }
  .hero-cta-group {
    flex-direction: row;
  }
  .section {
    padding: 80px 80px;
    max-width: 1280px;
    margin: 0 auto;
  }
}
