/* ============================================================
   Absher Qatar — Custom Styles
   Premium Light Blue & White Brand Identity
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --color-primary:      #0284c7;
  --color-secondary:    #0ea5e9;
  --color-accent:       #38bdf8;
  --color-dark:         #0f172a;
  --color-light:        #f0f9ff;
  --color-button:       #0284c7;
  --color-button-hover: #0369a1;
  --transition-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 999px; }

/* ---- Selection ---- */
::selection { background: var(--color-secondary); color: #fff; }

/* ---- Smooth Scroll ---- */
html { scroll-behavior: smooth; }

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 24px rgba(0,0,0,.25);
}

/* Initial state — overlay on hero */
#navbar:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(2,6,23,0.7) 0%, transparent 100%);
}

.nav-link { position: relative; }
.nav-active {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0c4a6e 0%, #075985 30%, #0284c7 60%, #0ea5e9 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
  top: -100px; right: -100px;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  bottom: -150px; left: -50px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Hero Image Cards */
.hero-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative;
}

.hero-img-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.4s var(--transition-smooth);
}

.hero-img-card:hover { transform: translateY(-6px) scale(1.02); }
.hero-img-card:nth-child(1) { grid-row: span 2; min-height: 320px; }
.hero-img-card:nth-child(2) { min-height: 150px; }
.hero-img-card:nth-child(3) { min-height: 150px; }

.hero-img-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}

.hero-img-card:hover img { transform: scale(1.08); }

/* Placeholder image backgrounds for hero */
.img-placeholder-1 { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #0ea5e9 100%); }
.img-placeholder-2 { background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 100%); }
.img-placeholder-3 { background: linear-gradient(135deg, #164e63 0%, #06b6d4 100%); }
.img-placeholder-4 { background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%); }

.img-icon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
}

/* ============================================================
   STATS COUNTER
   ============================================================ */
.stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s var(--transition-smooth);
}

.stat-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid #bae6fd;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  border-radius: inherit;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(2,132,199,0.2);
  border-color: var(--color-primary);
}

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

.service-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition-smooth);
}

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

.service-icon-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(2,132,199,0.4);
  z-index: 2;
  border: 3px solid #fff;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon-badge {
  transform: translateX(-50%) scale(1.1) rotate(5deg);
}

/* ============================================================
   WHY US CARDS
   ============================================================ */
.why-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid #e2e8f0;
  transition: all 0.35s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(2,132,199,0.15);
  border-color: #bae6fd;
}

.why-card:hover::after { transform: scaleX(1); }

.why-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  transform: rotate(5deg) scale(1.1);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 50%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  font-size: 15px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(2,132,199,0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(2,132,199,0.5);
}

.btn-primary:hover::before { background: rgba(255,255,255,0.1); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  font-size: 15px;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  color: #0f172a;
  transition: all 0.25s ease;
  outline: none;
  font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.1);
}

.form-input::placeholder, .form-textarea::placeholder { color: #94a3b8; }

.form-textarea { min-height: 130px; resize: vertical; }

.file-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.file-upload-zone:hover, .file-upload-zone.drag-over {
  border-color: var(--color-primary);
  background: #e0f2fe;
}

/* ============================================================
   TRUST / TEAM CARDS
   ============================================================ */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  box-shadow: 0 8px 28px rgba(2,132,199,0.12);
  border-color: #bae6fd;
  transform: translateY(-3px);
}

/* Team card */
.team-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.35s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(2,132,199,0.12);
  border-color: #bae6fd;
}

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(2,132,199,0.3);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.value-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
}

.value-card:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(2,132,199,0.3);
}

.value-card:hover .value-icon,
.value-card:hover h3,
.value-card:hover p { color: #fff !important; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #0c4a6e 0%, #075985 40%, #0284c7 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  clip-path: ellipse(60% 100% at 50% 100%);
}

/* ============================================================
   ADMIN PANEL (minimal reset — admin uses its own stylesheet)
   ============================================================ */

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.animate-fade-up    { animation: fadeInUp  0.7s ease forwards; }
.animate-fade-left  { animation: fadeInLeft  0.7s ease forwards; }
.animate-fade-right { animation: fadeInRight 0.7s ease forwards; }
.animate-scale-in   { animation: scaleIn  0.5s ease forwards; }

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ============================================================
   RTL OVERRIDES
   ============================================================ */
[dir="rtl"] .why-card::after { transform-origin: right; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-section { min-height: 100svh; }
  .hero-img-grid { display: none; }

  .section-title { font-size: 1.7rem; }

  .btn-primary, .btn-outline, .btn-white {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
}

.divider-gradient {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  border: none;
}

/* Logo text */
.logo-text {
  background: linear-gradient(to right, #fff, #bae6fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Notification / Flash */
.flash-message {
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info    { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
