@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* CSS Reset & Variables */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #140808;
  --bg-card: #1f1115;
  --bg-card-hover: #2e181f;

  --accent-blue: #3b82f6;
  --accent-purple: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --border-color: rgba(239, 68, 68, 0.22);

  --gradient: linear-gradient(
    135deg,
    #ef4444 0%,
    #2563eb 50%,
    #3b82f6 100%
  );

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  direction: rtl;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image:
  radial-gradient(
    ellipse at 15% 15%,
    rgba(239, 68, 68, 0.15) 0%,
    transparent 42%
  ),
  radial-gradient(
    ellipse at 85% 65%,
    rgba(59, 130, 246, 0.13) 0%,
    transparent 42%
  );
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5%;
  background-color: rgba(10, 4, 4, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 11800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

.clock-widget {
  font-family: 'Plus Jakarta Sans', monospace;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--accent-blue);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: 12rem 5% 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 1.75rem;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
}

.hero-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(239, 68, 68, 0.4));
}

/* MediaKit.jpg Hero Integration */
.hero-media-kit {
  width: 100%;
  max-width: 1000px;
  margin: 2.5rem auto 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(239, 68, 68, 0.15);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.hero-media-kit:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(59, 130, 246, 0.2);
}

.hero-media-kit img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.hero-media-kit:hover img {
  transform: scale(1.02);
}

/* Replaced lightning icon styling with hero.png harmony */
.feature-icon img[src*="hero.png"],
.hero-badge img[src*="hero.png"] {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 8px;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 850px;
  margin-bottom: 1.75rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-3px);
}

/* Dedicated Image Section */
.image-section {
  padding: 5rem 5%;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.image-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.image-container:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 25px rgba(59, 130, 246, 0.1);
}

.responsive-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: var(--transition);
}

.image-caption {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.6;
}

/* Products Section */
.products-section {
  padding: 7rem 5%;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.25rem;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-8px);
  background-color: var(--bg-card-hover);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow:
  0 24px 50px rgba(0, 0, 0, 0.4),
  0 0 25px rgba(59, 130, 246, 0.08);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.product-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-blue);
}

/* Products Screen Overlay / View */
.products-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  z-index: 2000;
  overflow-y: auto;
  padding: 6rem 5% 4rem;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.products-screen.active {
  display: block;
  opacity: 1;
}

.products-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.products-screen-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

.close-products-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.close-products-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Features Section */
.features {
  padding: 7rem 5%;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 550px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.25rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 2.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  background-color: var(--bg-card-hover);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow:
  0 24px 50px rgba(0, 0, 0, 0.4),
  0 0 25px rgba(59, 130, 246, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
  color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
  overflow: hidden;
}

.feature-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(239, 68, 68, 0.3));
  transition: var(--transition);
}

.feature-card:hover .feature-icon img {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 3rem 5%;
  background-color: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-main);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer logo image styling */
.footer img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 77px;
    right: 0;
    width: 100%;
    background-color: var(--bg-card);
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hero {
    padding: 9rem 5% 5rem;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
  
  .image-section {
    padding: 3rem 5%;
  }

  .image-container {
    padding: 1rem;
  }
}

/* Quick Task Items */
.quick-task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.quick-task-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.quick-task-complete,
.quick-task-remove {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-task-complete:hover {
    background: #16a34a;
    color: white;
}

.quick-task-remove:hover {
    background: #dc2626;
    color: white;
}

.quick-task-item.completed .quick-task-text {
    text-decoration: line-through;
    opacity: 0.55;
}

.quick-task-item.completed {
    border-color: rgba(22, 163, 74, 0.4);
}

/* Light Theme */
body.light-theme {
    --bg-dark: #fbf4f4;
    --bg-card: #ffffff;
    --bg-card-hover: #f8eaea;
    --text-main: #172033;
    --text-muted: #64748b;
    --border-color: rgba(239, 68, 68, 0.15);

    background-color: var(--bg-dark);
    color: var(--text-main);
}

body.light-theme .feature-card,
body.light-theme .product-card,
body.light-theme .navbar,
body.light-theme .image-container,
body.light-theme .products-screen,
body.light-theme .hero-media-kit {
    background-color: var(--bg-card);
    color: var(--text-main);
}

body.light-theme .quick-task-item {
    background: rgba(239, 68, 68, 0.04);
}

body.light-theme .quick-task-complete,
body.light-theme .quick-task-remove {
    color: var(--text-main);
}
.test-section {
    max-width: 600px;
    margin: 48px auto;
    padding: 24px;
    border: 1px solid #444;
    border-radius: 16px;
}

.test-section form {
    display: grid;
    gap: 12px;
}

.test-section input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #888;
    border-radius: 8px;
    font: inherit;
}

.test-section button {
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

#form-result {
    overflow-wrap: anywhere;
}
.navigation-test {
    --test-bg: #ffffff;
    --test-text: #222222;
    --test-border: #dddddd;

    color: var(--test-text);
    background: var(--test-bg);
    border: 1px solid var(--test-border);
    border-radius: 16px;
    padding: 24px;
    margin: 48px auto;
    max-width: 760px;
}

.navigation-test,
.navigation-test * {
    box-sizing: border-box;
}

.test-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.test-nav button {
    padding: 10px 14px;
    border: 1px solid var(--test-border);
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

.test-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.test-menu a {
    color: inherit;
    padding: 8px;
}

.test-panel {
    padding: 20px;
    margin: 16px 0;
    border: 1px solid var(--test-border);
    border-radius: 12px;
    scroll-margin-top: 24px;
}

.navigation-test.theme-dark {
    --test-bg: #171717;
    --test-text: #f5f5f5;
    --test-border: #444444;
}

#navigation-result {
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .test-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .test-menu {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .test-panel {
        scroll-behavior: smooth;
    }
}
#test-menu[hidden] {
    display: none !important;
}

/* Products Loader Section Styling */
.products-loader-section {
  padding: 4rem 5%;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.load-products-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  margin-bottom: 2rem;
}

.load-products-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
}

.loaded-products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  text-align: right;
}