/* Custom properties for the Luxury Corporate palette */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --primary-color: #0B2447; /* Deep Navy Blue */
  --primary-light: #19376D;
  --accent-color: #A5D7E8; /* Light Accent */
  --gold-color: #D4AF37; /* Gold/Champagne */
  --gold-light: #F3E5AB;
  --text-dark: #333333;
  --text-light: #F8F9FA;
  --bg-light: #FFFFFF;
  --bg-gray: #F5F7FA;
  
  --font-main: 'Tajawal', sans-serif;
  --transition: all 0.3s ease;
}

/* Theme Options */
[data-theme="theme-2"] {
  --primary-color: #2D3748; /* Charcoal Grey */
  --primary-light: #4A5568;
  --accent-color: #E2E8F0;
  --gold-color: #38A169; /* Emerald Green */
  --gold-light: #9AE6B4;
}

[data-theme="theme-3"] {
  --primary-color: #1A202C; /* Midnight Black */
  --primary-light: #2D3748;
  --accent-color: #CBD5E0;
  --gold-color: #9B2C2C; /* Rich Burgundy */
  --gold-light: #FEB2B2;
}

/* Theme Switcher Styles */
.theme-switcher {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: var(--bg-light);
  padding: 10px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: flex;
  gap: 10px;
  z-index: 9999;
  border: 1px solid rgba(0,0,0,0.05);
}
.theme-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s;
}
.theme-btn:hover {
  transform: scale(1.1);
}
.theme-btn.active {
  border-color: var(--text-dark);
}
.theme-btn[data-set="theme-1"] { background: linear-gradient(135deg, #0B2447 50%, #D4AF37 50%); }
.theme-btn[data-set="theme-2"] { background: linear-gradient(135deg, #2D3748 50%, #38A169 50%); }
.theme-btn[data-set="theme-3"] { background: linear-gradient(135deg, #1A202C 50%, #9B2C2C 50%); }

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  direction: rtl; /* Arabic RTL */
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.glass-dark {
  background: rgba(11, 36, 71, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 36, 71, 0.3);
  color: var(--text-light);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 10px 50px;
}
header.scrolled .logo, header.scrolled nav ul li a {
    color: var(--primary-color);
}
/* By default on hero, header text is white */
header:not(.scrolled) .logo, header:not(.scrolled) nav ul li a {
    color: var(--text-light);
}
header:not(.scrolled) .logo span {
    color: var(--gold-color);
}
header.scrolled .logo span {
    color: var(--gold-color);
}

.logo {
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav ul li a {
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  right: 0;
  background-color: var(--gold-color);
  transition: var(--transition);
}

nav ul li a:hover::after, nav ul li a.active::after {
  width: 100%;
}

.btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--gold-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11,36,71,0.95) 0%, rgba(11,36,71,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: var(--text-light);
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 800;
}
.hero-content h1 span {
  color: var(--gold-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  padding: 40px 20px;
  background-color: var(--bg-light);
  box-shadow: 0 -10px 20px rgba(0,0,0,0.02);
  position: relative;
  z-index: 2;
  margin-top: -30px;
  border-radius: 20px 20px 0 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}
.trust-item i {
  font-size: 2rem;
  color: var(--gold-color);
}

/* Sections */
section {
  padding: 80px 10%;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 60px;
  position: relative;
  font-weight: 800;
}
.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--gold-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* Services */
.services {
    background-color: var(--bg-gray);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.service-card {
  background: var(--bg-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.02);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(11,36,71,0.1);
}
.service-img {
  height: 250px;
  background-color: var(--primary-light);
  background-size: cover;
  background-position: center;
}
.service-content {
  padding: 30px;
  text-align: center;
}
.service-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.service-content p {
    color: #666;
    margin-bottom: 20px;
}
.service-link {
    color: var(--gold-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.service-link i {
    transition: var(--transition);
}
.service-link:hover i {
    transform: translateX(-5px); /* RTL */
}

/* About Snippet */
.about-snippet {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-img {
  flex: 1;
  height: 500px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: 20px 20px 0px var(--gold-color);
}
.about-text {
  flex: 1;
}
.about-text h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}
.features-list {
    list-style: none;
    margin-top: 30px;
    margin-bottom: 40px;
}
.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--primary-color);
}
.features-list li i {
    color: var(--gold-color);
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 100px 10%;
}
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--gold-color);
}
.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
  background: #061429;
  color: var(--text-light);
  padding: 70px 10% 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h3 {
  color: var(--gold-color);
  margin-bottom: 25px;
  font-size: 1.5rem;
}
.footer-col p {
    opacity: 0.8;
    margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 15px;
}
.footer-col ul li a {
  opacity: 0.8;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-col ul li a:hover {
  opacity: 1;
  color: var(--gold-color);
  transform: translateX(-5px);
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--gold-color);
    color: var(--primary-color);
}
.copyright {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.6;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .about-snippet { flex-direction: column; }
  .about-img { width: 100%; height: 350px; }
}
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  nav ul { display: none; } /* Add hamburger menu later */
  header { padding: 15px 20px; }
  .trust-bar { margin-top: 0; border-radius: 0; }
  section { padding: 60px 5%; }
}
