/* ============================================================
   DESIGN TOKENS & VARIABLES (2026 Modern Style)
============================================================ */
:root {
  --bg-dark: #0a0a0f;
  --bg-glass: rgba(18, 18, 25, 0.6);
  --bg-glass-hover: rgba(28, 28, 40, 0.8);
  --primary: #7b61ff;
  --primary-glow: rgba(123, 97, 255, 0.6);
  --secondary: #00d2ff;
  --text-main: #ffffff;
  --text-muted: #a0a0b5;
  --border-glass: rgba(255, 255, 255, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Syne', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============================================================
   RESET & BASE
============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-ar);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 120px 0; position: relative; z-index: 2; }
.glass-section { background: linear-gradient(to bottom, transparent, rgba(123,97,255,0.03), transparent); }

/* ============================================================
   DECORATIVE & BACKGROUND BLOBS (Glassmorphism & Glow)
============================================================ */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.blob-1 {
  width: 400px; height: 400px;
  background: var(--primary);
  top: -100px; right: -100px;
}
.blob-2 {
  width: 500px; height: 500px;
  background: var(--secondary);
  bottom: 20%; left: -200px;
}

/* Floating 3D Shapes */
.floating-shape {
  position: absolute;
  border-radius: 20px;
  opacity: 0.3;
  z-index: 0;
  filter: blur(2px) grayscale(50%);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.shape-1 { top: 15%; left: 10%; width: 120px; }
.shape-2 { top: 50%; right: 5%; width: 180px; animation-delay: 2s; }
.shape-3 { bottom: 10%; left: 20%; width: 150px; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================================
   GLASSMORPHISM UTILITY
============================================================ */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ============================================================
   TYPOGRAPHY & BUTTONS
============================================================ */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(123, 97, 255, 0.1);
  color: var(--secondary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(123, 97, 255, 0.3);
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  background: linear-gradient(90deg, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.highlight {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5a3cf5);
  color: #fff;
  border: none;
  box-shadow: 0 10px 20px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px var(--primary-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(123, 97, 255, 0.1);
}

/* ============================================================
   NAVBAR
============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-top: none;
  border-left: none;
  border-right: none;
  transition: var(--transition);
}
nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-logo {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
}
.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-main); text-shadow: 0 0 10px var(--primary-glow); }
.nav-cta {
  background: rgba(255,255,255,0.1);
  padding: 8px 24px !important;
  border-radius: 50px;
  border: 1px solid var(--border-glass);
}
.nav-cta:hover { background: var(--primary) !important; color: #fff !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 30px; height: 2px;
  background: #fff;
  transition: var(--transition);
}
.mobile-menu {
  position: fixed;
  top: 90px; left: 5%; right: 5%;
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: var(--transition);
  z-index: 999;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}
.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-image-wrap {
  position: relative;
  margin-bottom: 2rem;
}
.profile-img {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 40px var(--primary-glow);
}
.status-badge {
  position: absolute;
  bottom: 10px; right: -10px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.pulse-dot {
  width: 10px; height: 10px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
.hero-name { margin-bottom: 1.5rem; }
.hero-bio {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.hero-actions { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 4rem; }

.hero-stats {
  display: flex;
  gap: 3rem;
  padding: 1.5rem 3rem;
  border-radius: var(--radius-lg);
}
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--secondary); line-height: 1.2; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   ABOUT
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text .lead { font-size: 1.2rem; color: var(--text-main); margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); margin-bottom: 2rem; }
.skills-wrapper { display: flex; flex-wrap: wrap; gap: 10px; }
.skills-wrapper img { height: 30px; border-radius: 4px; }

.about-images { position: relative; }
.about-img-main {
  width: 80%;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.about-img-sub {
  position: absolute;
  width: 60%;
  bottom: -10%;
  right: -5%;
  border-radius: var(--radius-md);
  z-index: 3;
  border: 4px solid var(--bg-dark);
}

/* ============================================================
   FEATURES (SVGs instead of FA)
============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.feature-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-align: right;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-10px);
  background: var(--bg-glass-hover);
  border-color: rgba(123, 97, 255, 0.4);
}
.feature-svg {
  width: 60px; height: 60px;
  background: rgba(123, 97, 255, 0.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}
.feature-svg svg { width: 32px; height: 32px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   PRODUCTS
============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}
.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  border-color: rgba(123, 97, 255, 0.3);
}
.product-img { position: relative; overflow: hidden; height: 220px; }
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-img img { transform: scale(1.1); }
.product-badge {
  position: absolute;
  top: 15px; right: 15px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.glow-effect { box-shadow: 0 0 15px var(--primary-glow); }
.product-info { padding: 2rem; }
.product-info .cat { color: var(--secondary); font-size: 0.85rem; font-weight: 700; display: block; margin-bottom: 0.5rem; }
.product-info h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.product-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-glass); padding-top: 1.5rem; }
.price { font-size: 1.5rem; font-weight: 900; color: #fff; }
.btn-buy {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  padding: 8px 20px;
  border-radius: 20px;
  transition: var(--transition);
  font-weight: 700;
}
.btn-buy:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   GALLERY (Hover & Zoom Effects)
============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-overlay span {
  background: var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  transform: translateY(20px);
  transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay span { transform: translateY(0); }

/* Lightbox */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox-modal.active { display: flex; }
.lightbox-content {
  max-width: 90%; max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
  animation: zoomIn 0.3s ease;
}
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close {
  position: absolute;
  top: 30px; right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.lightbox-close:hover { color: var(--primary); }

/* ============================================================
   FOOTER & CONTACT
============================================================ */
.footer-box {
  padding: 4rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 4rem;
}
.footer-box p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.social-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}
.footer-bottom p { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .about-img-main { width: 100%; }
  .about-img-sub { display: none; }
  .hero-stats { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-actions { flex-direction: column; }
  .section-title { font-size: 2.2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
