/* ============================
   Global Variables & Reset
============================ */
:root {
  /* Fire Red Gradient Colors */
  --primary-red: #ff0000;
  --fire-red: #ff4500;
  --orange-red: #ff6347;
  --coral: #ff7f50;
  --light-coral: #ffa07a;

  /* Neutral Colors */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --gray: #6c757d;
  --dark-gray: #343a40;
  --black: #000000;

  /* Background */
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: rgba(20, 20, 20, 0.95);

  /* Fonts */
  --font-primary: "Cairo", sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max-width: 1200px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(255, 69, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(255, 69, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(255, 69, 0, 0.3);
  --glow: 0 0 20px rgba(255, 69, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: linear-gradient(
    135deg,
    var(--bg-darker) 0%,
    var(--bg-dark) 50%,
    #1a0000 100%
  );
  color: var(--off-white);
  line-height: 1.8;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================
   Header & Navigation
============================ */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 69, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: all 0.3s ease;
}

.logo-icon {
  font-size: 2rem;
}

.logo a:hover {
  color: var(--fire-red);
  transform: translateY(-2px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--light-gray);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fire-red), var(--orange-red));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--fire-red);
}

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

.lang-switcher {
  background: linear-gradient(135deg, var(--fire-red), var(--orange-red));
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.lang-switcher:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* ============================
   Hero Section
============================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 69, 0, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 99, 71, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
}

.highlight {
  background: linear-gradient(
    135deg,
    var(--fire-red),
    var(--orange-red),
    var(--coral)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--light-coral);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--fire-red), var(--orange-red));
  margin: 30px 0;
  border-radius: 2px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--light-gray);
  margin-bottom: 15px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fire-red), var(--orange-red));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.btn-secondary {
  background: transparent;
  color: var(--fire-red);
  border: 2px solid var(--fire-red);
}

.btn-secondary:hover {
  background: var(--fire-red);
  color: var(--white);
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--fire-red);
}

.image-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, var(--fire-red), var(--orange-red));
  border-radius: var(--radius-lg);
  opacity: 0.3;
  filter: blur(30px);
  z-index: -1;
  animation: pulse 3s infinite;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--fire-red);
  animation: bounce 2s infinite;
}

/* ============================
   Section Titles
============================ */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    var(--fire-red),
    var(--orange-red),
    var(--coral)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 60px;
}

/* ============================
   About Section
============================ */
.about-section {
  padding: var(--section-padding);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 69, 0, 0.05),
    transparent
  );
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-bottom: 20px;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 69, 0, 0.2);
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  border-color: var(--fire-red);
  box-shadow: var(--glow);
}

.skill-item i {
  font-size: 3rem;
  color: var(--fire-red);
}

.skill-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

/* ============================
   Services Section
============================ */
.services-section {
  padding: var(--section-padding);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.service-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 69, 0, 0.2);
  transition: all 0.4s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--fire-red);
  box-shadow: var(--glow);
}

.service-icon {
  font-size: 3.5rem;
  color: var(--fire-red);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================
   Packages Section
============================ */
.packages-section {
  padding: var(--section-padding);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 69, 0, 0.05),
    transparent
  );
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.package-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 69, 0, 0.3);
  padding: 40px 30px;
  position: relative;
  transition: all 0.4s ease;
}

.package-card:hover {
  transform: translateY(-10px);
  border-color: var(--fire-red);
  box-shadow: var(--glow);
}

.package-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: linear-gradient(135deg, var(--fire-red), var(--orange-red));
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.package-header h3 {
  font-size: 1.8rem;
  color: var(--fire-red);
  margin-bottom: 10px;
}

.package-subtitle {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.package-features {
  list-style: none;
  margin: 30px 0;
}

.package-features li {
  padding: 12px 0;
  color: var(--light-gray);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.package-features i {
  color: var(--fire-red);
  font-size: 1.2rem;
}

.package-pricing {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 69, 0, 0.2);
}

.price-option {
  text-align: center;
  margin-bottom: 15px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fire-red);
}

.period {
  display: block;
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 5px;
}

.price-divider {
  text-align: center;
  color: var(--gray);
  margin: 15px 0;
  font-size: 0.9rem;
}

.discount-note {
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 15px;
  font-style: italic;
}

/* ============================
   Projects Section
============================ */
.projects-section {
  padding: var(--section-padding);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.project-card {
  background: var(--bg-card);
  padding: 35px 25px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 69, 0, 0.2);
  transition: all 0.4s ease;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--fire-red);
  box-shadow: var(--glow);
}

.project-icon {
  font-size: 3rem;
  color: var(--fire-red);
  margin-bottom: 20px;
}

.project-card h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 15px;
}

.project-card p {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fire-red);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--orange-red);
  gap: 12px;
}

/* ============================
   Portfolio Section
============================ */
.portfolio-section {
  padding: var(--section-padding);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 69, 0, 0.05),
    transparent
  );
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.portfolio-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 69, 0, 0.2);
  transition: all 0.4s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(
    135deg,
    rgba(255, 69, 0, 0.2),
    rgba(255, 99, 71, 0.2)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-placeholder {
  font-size: 5rem;
  color: var(--fire-red);
  opacity: 0.5;
}

.portfolio-content {
  padding: 30px;
}

.portfolio-content h3 {
  font-size: 1.6rem;
  color: var(--fire-red);
  margin-bottom: 15px;
}

.portfolio-content p {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fire-red);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.portfolio-link:hover {
  color: var(--orange-red);
  gap: 12px;
}

.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gray), var(--dark-gray));
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================
   Payment Section
============================ */
.payment-section {
  padding: var(--section-padding);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 30px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 69, 0, 0.2);
  transition: all 0.3s ease;
}

.payment-item:hover {
  transform: translateY(-5px);
  border-color: var(--fire-red);
  box-shadow: var(--shadow-md);
}

.payment-item i {
  font-size: 3rem;
  color: var(--fire-red);
}

.payment-item span {
  color: var(--light-gray);
  font-size: 1rem;
  font-weight: 600;
}

/* ============================
   Why Me Section
============================ */
.why-me-section {
  padding: var(--section-padding);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 69, 0, 0.05),
    transparent
  );
}

.why-me-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.why-me-card {
  background: var(--bg-card);
  padding: 35px 25px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 69, 0, 0.2);
  text-align: center;
  transition: all 0.4s ease;
}

.why-me-card:hover {
  transform: translateY(-8px);
  border-color: var(--fire-red);
  box-shadow: var(--glow);
}

.why-me-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.why-me-card h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 15px;
}

.why-me-card p {
  color: var(--gray);
  font-size: 1rem;
}

/* ============================
   Special Offer Section
============================ */
.special-offer-section {
  padding: 80px 0;
}

.special-offer-content {
  background: linear-gradient(
    135deg,
    rgba(255, 69, 0, 0.1),
    rgba(255, 99, 71, 0.1)
  );
  border: 2px solid var(--fire-red);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}

.offer-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.special-offer-content h2 {
  font-size: 2.5rem;
  color: var(--fire-red);
  margin-bottom: 20px;
}

.special-offer-content p {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-bottom: 15px;
  line-height: 1.8;
}

.special-offer-content strong {
  color: var(--fire-red);
}

.special-offer-content .btn {
  margin-top: 30px;
}

/* ============================
   Contact Section
============================ */
.contact-section {
  padding: var(--section-padding);
  background: linear-gradient(180deg, rgba(255, 69, 0, 0.05), transparent);
}

.contact-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 35px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 69, 0, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: var(--fire-red);
  box-shadow: var(--glow);
}

.contact-card i {
  font-size: 3rem;
  color: var(--fire-red);
}

.contact-card span {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 69, 0, 0.2);
}

.copyright {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.made-with {
  color: var(--gray);
  font-size: 0.95rem;
}

.heart {
  color: var(--fire-red);
  animation: heartbeat 1.5s infinite;
}

/* ============================
   Scroll to Top Button
============================ */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--fire-red), var(--orange-red));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

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

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

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* ============================
   Responsive Design
============================ */
@media (max-width: 968px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid,
  .packages-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-section {
    padding-top: 60px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Menu Styles */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px;
    gap: 25px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    border-left: 2px solid rgba(255, 69, 0, 0.3);
    z-index: 999;
  }

  .nav-menu.mobile-active {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 69, 0, 0.1);
  }

  .lang-switcher {
    width: 100%;
    padding: 12px 20px;
    margin-top: 20px;
  }
}

html[dir="ltr"] .nav-menu {
  right: auto;
  left: -100%;
  border-left: none;
  border-right: 2px solid rgba(255, 69, 0, 0.3);
}

html[dir="ltr"] .nav-menu.mobile-active {
  left: 0;
}
