:root {
  --transition-speed: 0.3s;
  --kurdish-red: #a52a2a;
  --kurdish-blue: #3a7ca5;
  --kurdish-gold: #d4af37;
  --text-dark: #2d3748;
  --text-light: #f7fafc;
  --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
  --btn-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
  --kurdish-red: #c44e4e;
  --kurdish-blue: #3d7cb6;
  --kurdish-gold: #e8c252;
  --card-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #f8f4e9;
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  line-height: 1.6;
}

.content-card {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  margin: 20px auto;
  box-shadow: var(--card-shadow);
}

.top-section {
  background: #f8f4f0;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(165, 42, 42, 0.1);
  text-align: center;
}

.photo-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 20px;
  margin-bottom: 1rem;
}

.photo-container {
  width: min(280px, 75vw);
  height: min(280px, 75vw);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--kurdish-gold);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name Slider - Fixed Positioning */
.name-slider {
  position: relative;
  height: 4rem;
  margin: 0.5rem 0;
}

.hero-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(10px);
  width: 100%;
  opacity: 0;
  transition: all 0.5s ease;
  text-align: center;
  font-family: 'Playfair Display', 'Noto Sans Arabic', serif;
  color: var(--kurdish-red);
  font-size: clamp(1.5rem, 6vw, 1.8rem);
  margin: 0;
  padding: 0 1rem;
  font-weight: 600;
  pointer-events: none;
}

.hero-name.active {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.kurdish-motif {
  height: 3px;
  width: min(100px, 30vw);
  background: linear-gradient(to right, 
    transparent, 
    var(--kurdish-red), 
    var(--kurdish-gold), 
    var(--kurdish-blue), 
    transparent);
  margin: 0 auto 1.5rem;
  border-radius: 3px;
}

/* Quote Slider */
.quote-slider {
  position: relative;
  max-width: 80%;
  margin: 0 auto 2rem;
}

.quote-slides {
  position: relative;
  min-height: 140px;
}

.quote {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
  text-align: center;
}

.quote.active {
  opacity: 1;
  transform: translateY(0);
}

.quote-content {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  padding: 0 2rem;
  font-style: italic;
}

.quote-content::before,
.quote-content::after {
  position: absolute;
  font-family: serif;
  font-size: 3rem;
  color: var(--kurdish-gold);
  line-height: 1;
}

.quote-content::before {
  content: "“";
  left: 0;
  top: -0.5rem;
}

.quote-content::after {
  content: "”";
  right: 0;
  bottom: -1.5rem;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--kurdish-blue);
  transform: scale(1.3);
}

/* Language Buttons */
.language-options {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.language-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  background: var(--kurdish-blue);
  color: white;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  box-shadow: var(--btn-shadow);
  font-size: clamp(0.9rem, 3.5vw, 1rem);
}

.language-btn:hover {
  transform: translateY(-3px);
  background: var(--kurdish-red);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--kurdish-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 100;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* Dark Mode Styles */
[data-theme="dark"] body {
  background-color: #121212;
  color: #f1f1f1;
}

[data-theme="dark"] .content-card,
[data-theme="dark"] .bottom-section {
  background: #1e1e1e;
}

[data-theme="dark"] .top-section {
  background: #1a1a1a;
}

[data-theme="dark"] .quote-content,
[data-theme="dark"] .hero-name {
  color: rgba(255,255,255,0.9);
}

[data-theme="dark"] .theme-toggle {
  background: #1e1e1e;
}

[data-theme="dark"] .dot {
  background: #555;
}

[data-theme="dark"] .dot.active {
  background: var(--kurdish-gold);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .content-card {
    margin-top: 60px;
  }
  
  .photo-container {
    width: min(240px, 65vw);
    height: min(240px, 65vw);
  }
  
  .name-slider {
    height: 3.5rem;
  }
  
  .quote-slider {
    max-width: 90%;
  }
  
  .quote-content {
    font-size: 1rem;
    padding: 0 1.5rem;
  }
  
  .quote-content::before,
  .quote-content::after {
    font-size: 2.5rem;
  }
  
  .slider-dots {
    margin-top: 1rem;
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
}
