/* KHAT ALTAKAMUL - Creative, Animated & Responsive Corporate Design System */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-surface: #faf9f6;
  --color-background: #faf9f6;
  --color-primary: #11141A;
  --color-secondary: #024A3E; /* Deep Emerald */
  --color-secondary-hover: #01352c;
  --color-secondary-container: #b1efde;
  --color-on-surface: #14171c;
  --color-on-surface-variant: #3a3d42;
  --color-outline-variant: #d5d6da;
  --color-surface-card: #ffffff;
  --color-surface-subtle: #f2f3f2;
  --shadow-sm: 0 4px 12px rgba(17, 20, 26, 0.05);
  --shadow-md: 0 10px 30px rgba(17, 20, 26, 0.08);
  --shadow-lg: 0 20px 40px rgba(2, 74, 62, 0.15);
  --shadow-glow: 0 0 25px rgba(2, 74, 62, 0.25);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-background);
  color: var(--color-on-surface);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* RTL Support for Arabic Pages */
[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}

/* Live Scroll Progress Bar at Header Top */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #024A3E 0%, #00B092 50%, #B1EFDE 100%);
  z-index: 100;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 8px rgba(177, 239, 222, 0.8);
}

[dir="rtl"] #scrollProgressBar {
  left: auto;
  right: 0;
}

/* Creative Glassmorphism Header */
header.header-creative-glass {
  background-color: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(2, 74, 62, 0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.header-creative-glass.scrolled {
  background-color: rgba(250, 249, 246, 0.98);
  box-shadow: 0 10px 30px rgba(17, 20, 26, 0.08);
  border-bottom-color: rgba(2, 74, 62, 0.25);
}

/* Creative Logo Badge Framing */
.logo-brand-pill {
  background: #ffffff;
  padding: 6px 18px;
  border-radius: 9999px;
  border: 1.5px solid rgba(2, 74, 62, 0.2);
  box-shadow: 0 4px 14px rgba(17, 20, 26, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-brand-pill:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: var(--color-secondary);
  box-shadow: 0 8px 24px rgba(2, 74, 62, 0.15);
}

.logo-img {
  height: 44px;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .logo-img {
    height: 50px;
  }
}

.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Creative Nav Pill Items (Prevent Overlap & Line Wrapping) */
.nav-pill-link {
  position: relative;
  color: var(--color-on-surface-variant);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1400px) {
  .nav-pill-link {
    font-size: 13.5px;
    padding: 8px 15px;
  }
}

.nav-pill-link:hover {
  color: var(--color-secondary);
  background-color: rgba(2, 74, 62, 0.08);
  transform: translateY(-1px);
}

.nav-pill-link.active {
  color: #ffffff;
  background-color: var(--color-secondary);
  box-shadow: 0 4px 14px rgba(2, 74, 62, 0.3);
}

/* Animated Pulsing Emerald Node */
.node {
  width: 9px;
  height: 9px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  position: relative;
}

.node::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: rgba(2, 74, 62, 0.4);
  animation: nodePulse 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nodePulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* Primary Button with Shimmer & Glow */
.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #024A3E 0%, #01352c 100%);
  color: #ffffff;
  border-radius: 9999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(2, 74, 62, 0.25);
  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.25), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 74, 62, 0.4);
}

/* Secondary Outline Button */
.btn-secondary {
  background-color: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 9999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Label Caps Styling */
.font-label-caps {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13.5px;
  font-weight: 700;
}

/* Architectural Grid Background Pattern */
.bg-grid-pattern {
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(17, 20, 26, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 20, 26, 0.04) 1px, transparent 1px);
}

/* Creative Card Hover and 3D Elevation */
.card-creative {
  background-color: #ffffff;
  border: 1px solid var(--color-outline-variant);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card-creative::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #024A3E, #B1EFDE);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card-creative:hover {
  transform: translateY(-6px);
  border-color: rgba(2, 74, 62, 0.3);
  box-shadow: 0 16px 36px rgba(2, 74, 62, 0.12);
}

/* Scroll Entrance Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating animation */
@keyframes floatAnim {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: floatAnim 4s ease-in-out infinite;
}
