/* css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
  /* Dark Mode Defaults (Obsidian Sapphire Blue & Gold) */
  --bg-primary: #050B14;       /* Deep Obsidian Blue */
  --bg-secondary: #0A1324;     /* Midnight Blue */
  --bg-tertiary: #0F1B35;      /* Sapphire Card background */
  --text-primary: #F1F5F9;     /* Warm off-white */
  --text-secondary: #94A3B8;   /* Slate gray */
  --text-muted: #64748B;       /* Muted gray */
  
  --gold: #D4AF37;             /* Matte Champagne Gold */
  --gold-dark: #A67C52;        /* Metallic gold-bronze */
  --gold-light: #F1D279;       /* Bright gold highlight */
  --border-gold: #c8a541;      /* Border Gold */
  
  --gold-gradient: linear-gradient(135deg, #F1D279 0%, #A67C52 100%);
  --gold-hover-gradient: linear-gradient(135deg, #A67C52 0%, #F1D279 100%);
  --dark-gradient: linear-gradient(180deg, #0A1324 0%, #050B14 100%);
  --btn-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Outfit', 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #F8FAFC;       /* Very light slate */
  --bg-secondary: #F1F5F9;     /* Soft slate */
  --bg-tertiary: #E2E8F0;      /* Darker silver-slate */
  --text-primary: #0F172A;     /* Dark navy */
  --text-secondary: #475569;   /* Slate */
  --text-muted: #64748B;       
  --dark-gradient: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 100%);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
  overflow-x: hidden;
}

/* Language styling */
html[lang="ar"] body {
  font-family: var(--font-ar);
}
html[lang="en"] body {
  font-family: var(--font-en);
}

/* Premium Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gold-gradient-bg {
  background: var(--gold-gradient);
}
.gold-text {
  color: var(--gold);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.border-gold-glow {
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 10px rgba(197, 155, 108, 0.2);
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}
p {
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Button & interactive states */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-gold {
  background: var(--gold-gradient);
  color: #121212 !important;
  box-shadow: var(--btn-shadow);
}
.btn-gold:hover {
  background: var(--gold-hover-gradient);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}
.btn-outline {
  border: 2px solid var(--border-gold);
  background: transparent;
  color: var(--text-primary);
}
.btn-outline:hover {
  background: var(--gold-gradient);
  color: #121212 !important;
  transform: translateY(-2px);
}

/* Header styling */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 155, 108, 0.2);
  transition: var(--transition);
}
[data-theme="light"] header {
  background-color: rgba(250, 248, 245, 0.85);
  border-bottom: 1px solid rgba(197, 155, 108, 0.15);
}

/* Shared Layout and animations */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}
.logo span {
  color: var(--gold);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a.active-nav-link {
  color: var(--gold) !important;
}
.nav-links a.active-nav-link::after {
  width: 100% !important;
}
html[lang="ar"] .nav-links a::after {
  left: auto;
  right: 0;
}

/* Micro-animations */
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}
.animate-kenburns {
  animation: kenburns 20s infinite ease-in-out;
}

/* Floating CTAs */
.floating-ctas {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}
html[lang="ar"] .floating-ctas {
  left: auto;
  right: 2rem;
}
.btn-floating {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  color: #fff !important;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-floating:hover {
  transform: scale(1.1) rotate(5deg);
}
.btn-wa-floating {
  background-color: #25d366;
}
.btn-call-floating {
  background-color: var(--gold);
  background-image: var(--gold-gradient);
}

/* Hamburger Toggle Button */
.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.6rem;
  height: 1.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 0;
  outline: none;
}
.menu-toggle-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
  transform-origin: center;
}

/* Active Hamburger Transformation */
.menu-toggle-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
.menu-toggle-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* MEDIA QUERIES FOR MOBILE AND TABLET RESPONSIVENESS */

/* Tablet Screens (1024px and below) */
@media (max-width: 1024px) {
  .nav-container {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    height: auto !important;
    padding: 0.5rem 1.5rem !important;
    row-gap: 0.5rem;
  }
  
  .logo {
    font-size: 1.3rem !important;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  
  .nav-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .menu-toggle-btn {
    display: none !important;
  }
  
  #nav-menu {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 100%;
  }

  .nav-links {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    background-color: transparent !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border-bottom: none !important;
    padding: 0.25rem 0 !important;
    margin: 0 !important;
    z-index: 1 !important;
    flex-wrap: wrap !important;
  }

  .nav-links a {
    font-size: 0.85rem !important;
  }
  
  /* Responsive Hero Text */
  .hero h1, [style*="font-size: 3rem"] {
    font-size: 2.25rem !important;
  }
  
  .hero p, [style*="font-size: 1.25rem"] {
    font-size: 1.05rem !important;
  }
  
  /* Section Font-Sizes & Padding */
  section {
    padding: 4rem 0 !important;
  }
  
  [style*="font-size: 2.25rem"] {
    font-size: 1.85rem !important;
  }
  
  [style*="font-size: 2rem"] {
    font-size: 1.65rem !important;
  }
  
  /* Featured Profile Custom Spacing */
  div[style*="padding: 3rem"] {
    padding: 2rem !important;
  }
}

/* Mobile Screens (768px and below) */
@media (max-width: 768px) {
  /* Hide desktop header CTA quote button */
  header .btn-gold {
    display: none !important;
  }

  /* Responsive Hero Text */
  .hero h1, [style*="font-size: 3rem"] {
    font-size: 1.85rem !important;
  }
  
  .hero p, [style*="font-size: 1.25rem"] {
    font-size: 0.95rem !important;
  }
  
  /* Section font sizes */
  [style*="font-size: 2.25rem"] {
    font-size: 1.5rem !important;
  }
  
  [style*="font-size: 2rem"] {
    font-size: 1.35rem !important;
  }
  
  [style*="font-size: 2.5rem"] {
    font-size: 1.85rem !important;
  }

  /* Grid layout overrides for column stacking */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Reset Featured Grid templates */
  .border-gold-glow[style*="display: grid"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Section headings */
  h2 {
    font-size: 1.5rem !important;
    margin-bottom: 2rem !important;
  }
  
  /* Footer responsive text centering and layout */
  footer div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }
  
  footer div[style*="text-align: start"] {
    text-align: center !important;
  }
  
  footer h3 {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  
  /* Adjusting CTAs position and sizes */
  .floating-ctas {
    bottom: 1rem;
    left: 1rem;
  }
  
  html[lang="ar"] .floating-ctas {
    right: 1rem;
    left: auto;
  }
  
  .btn-floating {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

