/* 
  Vibrant & Modern Luxury Design System
  Brand: مؤسسة صرح الشرقية للمقاولات العامة
  Colors: Deep Midnight Navy, Electric Royal Gold, Vivid Cyan Accent & Glassmorphism
*/

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

:root {
  --bg-dark: #080d1a;
  --bg-section: #0e1628;
  --bg-card: rgba(16, 26, 48, 0.75);
  --bg-card-hover: rgba(24, 38, 70, 0.9);
  
  --gold-primary: #f5af19;
  --gold-light: #ffe066;
  --gold-dark: #e65c00;
  --gold-gradient: linear-gradient(135deg, #ffe066 0%, #f5af19 50%, #e65c00 100%);
  --gold-glow: 0 0 25px rgba(245, 175, 25, 0.45);

  --cyan-primary: #00f2fe;
  --cyan-dark: #4facfe;
  --cyan-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --cyan-glow: 0 0 25px rgba(0, 242, 254, 0.45);

  --emerald-accent: #00ffab;
  --emerald-gradient: linear-gradient(135deg, #00ffab 0%, #00e5ff 100%);

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-gold: #ffe066;
  
  --border-gold: rgba(245, 175, 25, 0.3);
  --border-cyan: rgba(0, 242, 254, 0.3);
  --border-glass: rgba(255, 255, 255, 0.1);
  
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  line-height: 1.7;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-gradient);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-gradient);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Effect */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Gradient Text Effects */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

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

/* Vibrant Badges */
.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 175, 25, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--gold-glow);
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(245, 175, 25, 0.3); }
  100% { box-shadow: 0 0 30px rgba(0, 242, 254, 0.5); border-color: var(--cyan-primary); color: #fff; }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  padding: 16px 0;
  background: rgba(8, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 175, 25, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

.logo-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: var(--gold-glow);
  object-fit: cover;
  transition: var(--transition-fast);
}

.logo-link:hover .logo-img {
  transform: scale(1.08) rotate(5deg);
  border-color: var(--cyan-primary);
  box-shadow: var(--cyan-glow);
}

.logo-text h1 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.logo-text span {
  font-size: 0.82rem;
  color: var(--gold-light);
  display: block;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold-light);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
  transition: var(--transition-fast);
}

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

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

/* Dynamic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #080d1a;
  box-shadow: 0 6px 20px rgba(245, 175, 25, 0.4);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(245, 175, 25, 0.6);
  color: #000;
}

.btn-cyan {
  background: var(--cyan-gradient);
  color: #080d1a;
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn-cyan:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.6);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
  background: rgba(245, 175, 25, 0.15);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  transform: translateY(-3px);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 1.6rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  background: rgba(245, 175, 25, 0.2);
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.float-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: var(--transition-normal);
  position: relative;
}

.float-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  animation: floatPulse 2.5s infinite;
}

.float-phone {
  background: var(--gold-gradient);
  color: #080d1a;
  animation: floatPulse 2.5s infinite 1.25s;
}

.float-btn:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.6);
}

.float-tooltip {
  position: absolute;
  left: 75px;
  background: rgba(8, 13, 26, 0.95);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  border: 1px solid var(--border-gold);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
}

@keyframes floatPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(0, 255, 171, 0.6); }
  100% { transform: scale(1); }
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  position: relative;
  background: radial-gradient(circle at 70% 30%, rgba(0, 242, 254, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(245, 175, 25, 0.15) 0%, transparent 60%),
              var(--bg-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 20px 0;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 35px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h4 {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 16px;
  transition: var(--transition-normal);
}

.hero-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan-primary);
  box-shadow: 0 20px 45px rgba(0, 242, 254, 0.3);
}

/* Main Sections */
.section {
  padding: 90px 0;
  position: relative;
}

.section-bg-alt {
  background-color: var(--bg-section);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

.section-header h3 {
  font-size: 2.3rem;
  font-weight: 900;
  margin: 15px 0;
  color: #ffffff;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--cyan-primary);
  box-shadow: var(--cyan-glow);
}

.service-img-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.1);
}

.service-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(8, 13, 26, 0.85);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.service-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.kw-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cyan-primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.service-card-footer {
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-more {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-more:hover {
  color: var(--cyan-primary);
  transform: translateX(-5px);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-normal);
}

.feature-box:hover {
  border-color: var(--gold-primary);
  transform: translateY(-6px);
  box-shadow: var(--gold-glow);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(245, 175, 25, 0.12);
  border: 2px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition-fast);
}

.feature-box:hover .feature-icon {
  background: var(--gold-gradient);
  color: #080d1a;
  transform: rotateY(180deg);
}

.feature-box h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

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

/* Map Section */
.map-container {
  height: 440px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* Page Header for subpages */
.page-header {
  padding: 160px 0 70px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.18) 0%, transparent 70%), var(--bg-section);
  text-align: center;
  border-bottom: 1px solid rgba(245, 175, 25, 0.2);
}

.page-header h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin: 20px 0;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 30px;
}

/* Photo Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: var(--transition-normal);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 13, 26, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}

.gallery-overlay-btn {
  background: var(--gold-gradient);
  color: #080d1a;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--gold-glow);
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--cyan-primary);
  box-shadow: var(--cyan-glow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.95);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  left: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--gold-light);
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.lightbox-arrow {
  pointer-events: auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(16, 26, 48, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-arrow:hover {
  background: var(--gold-gradient);
  color: #080d1a;
  transform: scale(1.15);
}

.lightbox-counter {
  margin-top: 15px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* SEO Tags Section */
.seo-section {
  padding: 60px 0;
  background: var(--bg-section);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 25px;
}

.seo-keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seo-tag {
  background: rgba(16, 26, 48, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.seo-tag:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  transform: translateY(-2px);
}

/* Footer */
footer {
  padding: 40px 0;
  background: #05080f;
  border-top: 1px solid rgba(245, 175, 25, 0.2);
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 30px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .nav-menu {
    position: fixed;
    top: 90px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 90px);
    background: rgba(8, 13, 26, 0.98);
    flex-direction: column;
    padding: 40px 30px;
    align-items: flex-start;
    transition: var(--transition-normal);
    border-left: 1px solid var(--border-gold);
    backdrop-filter: blur(20px);
  }
  .nav-menu.mobile-open {
    right: 0;
  }
  .mobile-toggle {
    display: block;
  }
  .header-cta {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  .section-header h3 {
    font-size: 1.8rem;
  }
  .float-btn {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
  .floating-actions {
    bottom: 20px;
    left: 20px;
  }
}
