:root {
  --primary-color: #f39c12;
  --secondary-color: #3498db;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --text-color: #333;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html, body {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: 'Heebo', 'Rubik', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
  overflow-x: hidden;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--dark-color);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav-menu a {
  padding: 0 15px;
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  color: var(--white);
  margin-right: 10px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.icon-button:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.search-button {
  background-color: transparent;
  color: var(--dark-color);
  font-size: 1.2rem;
}

/* Hero Section */
.hero {
  background-color: #000;
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  margin-top: 60px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('comedians-collage.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  font-weight: 700;
}

.counter-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 50px;
  margin-top: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
}

.counter-button:hover {
  background-color: #e67e22;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.edit-button {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow);
  z-index: 5;
}

.edit-button:hover {
  background-color: #2980b9;
  transform: scale(1.1);
}

.title-edit {
  top: 50px;
  left: 50px;
}

.content-edit {
  bottom: 50px;
  right: 50px;
}

/* Category Sections */
.categories {
  padding: 80px 20px;
  background-color: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.category-image {
  height: 200px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-content {
  padding: 20px;
}

.category-content h3 {
  margin-bottom: 10px;
  color: var(--dark-color);
  font-size: 1.4rem;
}

.category-content p {
  color: #666;
  margin-bottom: 15px;
}

.category-link {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.category-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .nav-menu {
    display: none; /* Would need JS for mobile menu toggle */
  }
  
  .edit-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .title-edit {
    top: 20px;
    left: 20px;
  }
  
  .content-edit {
    bottom: 20px;
    right: 20px;
  }
  
  .counter-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
}

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

.hero-content {
  animation: fadeIn 1s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e67e22;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background-color: var(--primary-color);
  bottom: 0;
  right: 20%;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}