@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

:root {
  --bg-color: #050505;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #ff6b9e;
  --accent-light: #ffa6c9;
  --glass-bg: rgba(25, 25, 25, 0.6);
  --glass-border: rgba(255, 107, 158, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.header-scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  padding: 10px 5%;
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 2px;
}

.logo span {
  color: var(--accent-color);
}

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

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-color);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: -2;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 1;
  animation: fadeIn 2s ease-out;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(45deg, var(--text-primary), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 158, 0.4);
}

.btn:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 158, 0.6);
}

/* Sections */
section {
  padding: 100px 5%;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--accent-color);
}

/* Biography & Career */
.bio-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.bio-image {
  flex: 1;
  min-width: 300px;
}

.bio-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
}

.bio-text {
  flex: 1;
  min-width: 300px;
  padding: 30px;
}

.bio-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--accent-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg-color);
  border: 4px solid var(--accent-color);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px;
}

.timeline-content h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  aspect-ratio: 3/4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background-color: #0a0a0a;
  border-top: 1px solid var(--glass-border);
}

footer p {
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RTL Specific adjustments for timeline */
[dir="rtl"] .timeline::after {
  right: 50%;
  left: auto;
  margin-right: -1px;
}

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

[dir="rtl"] .right {
  right: 50%;
  left: auto;
}

[dir="rtl"] .timeline-item.left::after {
  left: -10px;
  right: auto;
}

[dir="rtl"] .timeline-item.right::after {
  right: -10px;
  left: auto;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .timeline::after { left: 31px; right: auto; }
  [dir="rtl"] .timeline::after { right: 31px; left: auto; }
  
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  [dir="rtl"] .timeline-item { padding-right: 70px; padding-left: 25px; }
  
  .right { left: 0; }
  [dir="rtl"] .right { right: 0; }
  
  .timeline-item::after { left: 21px; right: auto; }
  [dir="rtl"] .timeline-item::after { right: 21px; left: auto; }
}
