* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Cairo', 'Segoe UI', sans-serif;
}

body {
  background-color: #0d0d0d;
  color: #f0f0f0;
  line-height: 1.8;
  padding: 40px 8%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.container {
  background-color: #1c1c1c;
  border-radius: 16px;
  padding: 50px 40px;
  max-width: 500px;
  box-shadow: 0 0 25px rgba(30, 144, 255, 0.3);
  transition: transform 0.3s ease;
}

.container:hover {
  transform: scale(1.01);
}

.fade-in {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #2196f3;
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(30, 144, 255, 0.4);
}

h2 {
  font-size: 22px;
  color: #1e90ff;
  margin-bottom: 15px;
}

.h {
  font-size: 17px;
  color: #1e90ff;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 25px;
}

.hobbies {
  margin: 15px 0 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hobbies a {
  text-decoration: none;
  background-color: transparent;
  border: 1px solid #2196f3;
  color: #2196f3;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  transition: 0.3s ease;
}

.hobbies a:hover {
  background-color: #2196f3;
  color: #fff;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.social-links a {
  text-decoration: none;
  background-color: #222;
  color: #f0f0f0;
  padding: 10px 18px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  transition: 0.3s;
  width: fit-content;
}

.social-links a:hover {
  background-color: #2196f3;
  color: #fff;
}

.social-links i {
  font-size: 18px;
}

.play, .writing-piece, .programming {
  background-color: #1c1c1c;
  padding: 25px 30px;
  border-right: 5px solid #1e90ff;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 0 25px rgba(30, 144, 255, 0.3);
  text-align: right;
  direction: rtl;
}

.play p, .writing-piece p, .programming {
  font-size: 17px;
  color: #ddd;
  line-height: 1.9;
}

.cast-image, .programming-image {
  margin-top: 30px;
}

.cast-image img, .programming-image img {
  width: 100%;
  border-radius: 10px;
}

.cast-image img{
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 32px;
  color: #1e90ff;
  text-shadow: 0 0 10px rgba(30, 144, 255, 0.4);
}

#blur-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rating-popup {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -40%) scale(0.9);
  background: #1a1a1a;
  padding: 30px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,1);
  z-index: 1000;
  width: 85%; max-width: 350px;
  border: 1px solid #333;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rating-popup.show { display: block; transform: translate(-50%, -50%) scale(1); }
.rating-popup h2 { color: #fff; margin-bottom: 10px; }
.rating-popup input {
  width: 100%; padding: 12px; margin: 15px 0;
  border-radius: 12px; border: 1px solid #444;
  background: #000; color: #fff; text-align: center; font-size: 16px;
}

.stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 10px; margin-bottom: 20px; }
.stars i { font-size: 35px; color: #333; cursor: pointer; transition: 0.3s; }
.stars i:hover, .stars i:hover ~ i, .stars i.active, .stars i.active ~ i { color: #ffd700; }
.close-btn { margin-top: 10px; color: #666; cursor: pointer; font-size: 13px; text-decoration: underline; }

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

@media (max-width: 768px) {
  body { padding: 30px 5%; flex-direction: column; }
  .container { padding: 40px 30px; }
  h1 { font-size: 24px; }
  header h1 { font-size: 26px; }
}
