/* ===== CSS Variables & Reset ===== */
:root {
  --navy-900: #0a1628;
  --navy-800: #111d35;
  --navy-700: #1a2a4a;
  --navy-600: #243660;
  --gold-400: #d4a74a;
  --gold-500: #c9952e;
  --gold-600: #b8861f;
  --gold-300: #e0be70;
  --gold-200: #f0d9a0;
  --text-primary: #f0f0f5;
  --text-secondary: #b0b8cc;
  --text-muted: #7888a5;
  --glass-bg: rgba(17, 29, 53, 0.65);
  --glass-border: rgba(212, 167, 74, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Heebo', sans-serif;
  background-color: var(--navy-900);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb {
  background: var(--gold-500);
  border-radius: 4px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  background: transparent;
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.5px;
}

.nav-logo span {
  color: var(--text-primary);
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
  transition: var(--transition);
}

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

.nav-links a:hover {
  color: var(--gold-400);
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900) !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  transition: var(--transition);
}

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

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 167, 74, 0.4);
  color: var(--navy-900) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--gold-400);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) { opacity: 0; }

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(212, 167, 74, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(26, 42, 74, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-400);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s infinite;
}

@keyframes float-particle {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.particle:nth-child(1) { right: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { right: 25%; animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(3) { right: 40%; animation-delay: 3s; animation-duration: 6s; }
.particle:nth-child(4) { right: 55%; animation-delay: 0.5s; animation-duration: 8s; }
.particle:nth-child(5) { right: 70%; animation-delay: 2s; animation-duration: 10s; }
.particle:nth-child(6) { right: 85%; animation-delay: 4s; animation-duration: 7.5s; }
.particle:nth-child(7) { right: 15%; animation-delay: 1s; animation-duration: 8.5s; }
.particle:nth-child(8) { right: 60%; animation-delay: 3.5s; animation-duration: 6.5s; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(212, 167, 74, 0.1);
  border: 1px solid rgba(212, 167, 74, 0.3);
  border-radius: 50px;
  color: var(--gold-400);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 .gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Heebo', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 167, 74, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--gold-400);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold-400);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Heebo', sans-serif;
}

.btn-secondary:hover {
  background: rgba(212, 167, 74, 0.1);
  transform: translateY(-3px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-left: 2px solid var(--gold-400);
  border-bottom: 2px solid var(--gold-400);
  transform: rotate(-45deg);
  opacity: 0.5;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Sections Common ===== */
section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* ===== About Section ===== */
.about {
  background: var(--navy-800);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 167, 74, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image-frame {
  width: 320px;
  height: 400px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--gold-400), transparent, var(--gold-600));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
}

.about-icon-large {
  font-size: 8rem;
  opacity: 0.15;
  color: var(--gold-400);
}

.about-text h3 {
  font-size: 1.6rem;
  color: var(--gold-400);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.9;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(212, 167, 74, 0.08);
  border: 1px solid rgba(212, 167, 74, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-300);
  font-weight: 500;
}

/* ===== Expertise Section ===== */
.expertise {
  background: var(--navy-900);
}

.expertise-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.expertise-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
  opacity: 0;
  transition: var(--transition);
}

.expertise-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 167, 74, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.expertise-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.expertise-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.expertise-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Stats Section ===== */
.stats {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(212, 167, 74, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(212, 167, 74, 0.05) 0%, transparent 60%);
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.stat-plus {
  font-size: 0.7em;
}

/* ===== Books Section ===== */
.books {
  background: var(--navy-900);
}

.books-content {
  max-width: 900px;
  margin: 0 auto;
}

.books-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.books-visual {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.book-spine {
  width: 40px;
  height: 200px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.book-spine:nth-child(2) {
  height: 190px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  transform: translateY(5px);
}

.book-spine:nth-child(3) {
  height: 195px;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
  transform: translateY(2px);
}

.book-spine:nth-child(4) {
  height: 185px;
  background: linear-gradient(180deg, var(--gold-200), var(--gold-400));
  transform: translateY(8px);
}

.books-text h3 {
  font-size: 1.5rem;
  color: var(--gold-400);
  margin-bottom: 1rem;
  font-weight: 700;
}

.books-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.books-text .highlight {
  color: var(--gold-300);
  font-weight: 600;
}

/* ===== Contact Section ===== */
.contact {
  background: var(--navy-800);
  position: relative;
}

.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  padding: 2rem 0;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 167, 74, 0.1);
  border: 1px solid rgba(212, 167, 74, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-detail-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(212, 167, 74, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Heebo', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  direction: rtl;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(212, 167, 74, 0.1);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b0b8cc' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
}

.form-group select option {
  background: var(--navy-800);
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Heebo', sans-serif;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 167, 74, 0.35);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.show {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  color: var(--gold-400);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-secondary);
}

/* ===== Map ===== */
.map-container {
  max-width: 1100px;
  margin: 3rem auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.5) brightness(0.7) contrast(1.1);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-900);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(212, 167, 74, 0.1);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer .gold { color: var(--gold-400); }

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-text { text-align: right; }
  
  .about-badges { justify-content: flex-start; }
  
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .books-card {
    flex-direction: column;
    text-align: center;
  }
  
  .books-text { text-align: right; }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger { display: flex; }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  section { padding: 4rem 1.5rem; }
  
  .hero { padding: 1.5rem; }
  
  .contact-form-container { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar { padding: 0.75rem 1rem; }
  
  .hero-buttons { flex-direction: column; align-items: center; }
  
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* Mobile menu overlay */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.menu-overlay.active {
  display: block;
}
