@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #FF7F00;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: white;
  color: #111827;
  transition: background-color 0.5s, color 0.5s;
}

/* Dark mode */
.dark body {
  background-color: #111827;
  color: #F3F4F6;
}

/* Hero */
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  animation: fadeInUp 1s ease forwards;
}
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  animation: fadeInUp 1.2s ease forwards;
}
.hero-paragraph {
  line-height: 1.8;
  color: #4B5563;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1.4s ease forwards;
}
.dark .hero-paragraph {
  color: #D1D5DB;
}

.badge-paragraph {
  line-height: 1.8;
  animation: fadeInUp 1.4s ease forwards;
  color: #4B5563;
}
.dark .badge-paragraph {
  color: #D1D5DB;
}

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Social buttons */
.social-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f97316; /* orange-500 */
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}
.social-btn:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.5);
}

/* WhatsApp fixed button */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: white;
  padding: 16px 20px;
  border-radius: 9999px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.3s;
  z-index: 50;
}
.whatsapp-btn:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}


/* Navbar */
header {
  transition: background-color 0.5s, color 0.5s;
}
header a {
  transition: color 0.3s;
}
.dark header {
  background-color: #1F2937; /* gray-800 */
  color: #F3F4F6;
}
.dark header a {
  color: #F3F4F6;
}

/* Footer */
footer {
  transition: background-color 0.5s, color 0.5s;
}
.dark footer {
  background-color: #111827;
  color: #F3F4F6;
}
.dark footer a {
  color: #FF7F00; /* Orange primary for links */
}
/* Navbar backdrop + transparency */
header {
  backdrop-filter: blur(10px);
}

/* Mobile menu collapse/expand */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}
#mobile-menu.open {
  max-height: 500px; /* يكفي لعدد العناصر */
  opacity: 1;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 1s ease forwards;
}


/* ===== Premium Stats Section (Dark Mode Fixed) ===== */

.premium-stat {
  position: relative;
  padding: 60px 20px;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(171, 121, 121, 0.4);
  transition: all 0.4s ease;
  overflow: hidden;
}

/* ===== DARK MODE FIX ===== */

.dark .premium-stat {
  background: rgba(17, 24, 39, 0.7); /* deep gray */
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Hover Floating */
.premium-stat:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.dark .premium-stat:hover {
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}

/* Shine effect */
.premium-stat::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  transform: rotate(25deg);
  transition: 0.8s;
}

.dark .premium-stat::before {
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.08),
    transparent
  );
}

/* Number Gradient */
.premium-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #FF7F00, #ffae42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Label */
.premium-label {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #4B5563;
}

.dark .premium-label {
  color: #9CA3AF; /* softer gray */
}


/* ===== Footer Enhancements ===== */

.footer-link {
  position: relative;
  color: #6B7280;
  transition: all 0.3s ease;
}

.dark .footer-link {
  color: #9CA3AF;
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(6px);
}

.footer-icon {
  transition: all 0.3s ease;
}

.footer-link:hover .footer-icon {
  color: var(--primary-color);
  transform: scale(1.15);
}

/* Reveal Animation */
.footer-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.footer-animate.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-link {
  display: block;
  padding: 6px 0;
  border-bottom: 0.2px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.dark .mobile-link {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-link:hover {
  color: var(--primary-color);
  transform: translateX(6px);
}

.feature-card {
  position: relative;
  padding: 3rem; /* مثل premium-stat */
  border-radius: 1.5rem;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(171, 121, 121, 0.4);
  transition: all 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dark .feature-card {
  background: rgba(17,24,39,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.dark .feature-card:hover {
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}

/* Shine effect like premium-stat */
.feature-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(25deg);
  transition: 0.8s;
}

.dark .feature-card::before {
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* Icon adjustments (already centered) */
.feature-icon {
  margin-bottom: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-color), #ff7a18);
  color: white;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(8deg) scale(1.1);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111827;
}

.dark .feature-title {
  color: white;
}

.feature-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
}

.dark .feature-text {
  color: #9ca3af;
}

.portfolio-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(171, 121, 121, 0.4);
  transition: all 0.4s ease;
  overflow: hidden;
}

.dark .portfolio-card {
  background: rgba(17,24,39,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.portfolio-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.dark .portfolio-card:hover {
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}

/* Hover image effect */
.portfolio-card:hover .portfolio-img {
  transform: scale(1.05) rotateY(2deg);
  transition: transform 0.5s ease;
}
.bg-primary {
  background-color: var(--primary-color);
}


.skill-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;
  border-width: 1px;
  transition: all 0.3s ease;
}
.skill-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;
  border-width: 1px;
  transition: all 0.3s ease;
}
.badge:hover {
  transform: scale(1.05);
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-weight: 500;
  border-radius: 14px;
  border-width: 1px;
  transition: all 0.3s ease;
}
.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.delay-200 { animation-delay: .2s; }
.delay-400 { animation-delay: .4s; }
.delay-600 { animation-delay: .6s; }
.delay-800 { animation-delay: .8s; }