/* === AZR Innovation Studio — Base Styles === */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--azr-navy);
  color: var(--azr-white);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

/* === Selection === */
::selection {
  background: var(--azr-teal);
  color: var(--azr-white);
}

/* === Links === */
a {
  color: var(--azr-teal-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--azr-gold);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-black);
  line-height: 1.2;
}

h1 { font-size: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: clamp(18px, 2vw, 24px); }

p {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(16px, 1.2vw, 18px);
}

/* === Container === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

/* === Section === */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

/* Gold divider between sections — matching AZR brand */
.section + .section::before {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background: var(--gradient-gold);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.section-header {
  text-align: right;
  margin-bottom: var(--space-2xl);
  border-right: 4px solid var(--azr-gold);
  padding-right: var(--space-lg);
}

.section-badge {
  display: inline-block;
  padding: 6px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--azr-gold);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(10px);
}

.section-title {
  margin-bottom: var(--space-md);
}

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

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 22px;
  font-weight: var(--font-weight-black);
  color: var(--azr-white);
}

.nav-logo .logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-black);
  font-size: 16px;
}

/* SVG Logo */
.nav-logo-svg {
  display: flex;
  align-items: center;
  color: var(--azr-white);
}

.nav-logo-svg img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.95;
}

.nav-logo-svg:hover img {
  opacity: 1;
}

.footer-logo-svg img {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--font-weight-medium);
  font-size: 15px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--azr-teal);
  transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--azr-white);
}

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

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  color: var(--azr-white) !important;
  font-weight: var(--font-weight-bold) !important;
  font-size: 14px !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-teal);
}

.nav-cta::after { display: none !important; }

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--azr-white);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* === Footer === */
.footer {
  background: #060E1A;
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  margin-top: var(--space-md);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

.footer-col h4 {
  color: var(--azr-white);
  margin-bottom: var(--space-md);
  font-size: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--azr-teal-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--azr-teal);
  color: var(--azr-white);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    text-align: center;
  }

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

  .nav-links a {
    font-size: 22px;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}
