:root {
  --primary-color: #1877f2; /* Facebook Blue */
  --light-bg-color: #f0f2f5;
  --light-text-color: #1c1e21;
  --light-card-bg: #ffffff;
  --dark-bg-color: #1c1e21;
  --dark-text-color: #e4e6eb;
  --dark-card-bg: #242526;
  --header-bg: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("assets/header.jpg");
}

[data-theme="light"] {
  background-color: var(--light-bg-color);
  color: var(--light-text-color);
}

[data-theme="dark"] {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", "Inter", sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.footer_copy span a {
  position: relative;
  display: inline-block;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
  background: linear-gradient(
    90deg,
    #ff6b6b,
    #feca57,
    #1dd1a1,
    #54a0ff,
    #5f27cd
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 5s linear infinite;
  transition: transform 0.3s ease;
}

/* عند تمرير الماوس */
.footer_copy span a:hover {
  transform: scale(1.1);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
.header {
  position: relative;
  height: 600px;
  background-image: var(--header-bg);
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: white;
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header p {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Controls */
.controls {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 1rem;
  z-index: 1000;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background-color: #1562d2;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-item {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--light-card-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

[data-theme="dark"] .product-item {
  background-color: var(--dark-card-bg);
}

.product-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-item:hover img {
  transform: scale(1.05);
}

.product-item h3 {
  padding: 1rem;
  color: var(--primary-color);
}

/* Product Details */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  align-items: center;
}

.details-grid img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.details-grid img.visible {
  opacity: 1;
  transform: translateY(0);
}

.details-text {
  line-height: 1.8;
  transition: opacity 0.5s ease;
  opacity: 0;
  transform: translateY(20px);
}

.details-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.details-text h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Contact Section */
.contact-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: inherit;
  font-size: 2rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .header {
    height: 400px;
  }
  .header h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}
