/* Custom Properties */
:root {
  --primary-black: #000000;
  --secondary-black: #1a1a1a;
  --dark-gray: #2d2d2d;
  --medium-gray: #4a4a4a;
  --light-gray: #6b6b6b;
  --lighter-gray: #9a9a9a;
  --lightest-gray: #e5e5e5;
  --white: #ffffff;
  --accent-gold: #ffd700;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --premium-gradient: linear-gradient(135deg, #000000 0%, #434343 100%);
  --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
  
}

body[dir="rtl"] {
  font-family: "Cairo", "Poppins", sans-serif;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Premium Navbar */
.premium-navbar {
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.premium-navbar .navbar-brand {
  font-size: 2rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.premium-navbar .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  margin: 0 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.premium-navbar .nav-link:hover {
  color: var(--white) !important;
  transform: translateY(-2px);
}

.premium-navbar .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--accent-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.premium-navbar .nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: var(--premium-gradient);
  color: var(--white);
  position: relative;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("hero-bg.jpg?height=1080&width=1920&text=Modern+Office+Technology") center / cover;
  opacity: 0.15;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgb(26 26 26 / 33%) 50%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  z-index: 4;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-1 {
  top: 15%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.floating-2 {
  top: 25%;
  right: 15%;
  animation: float 10s ease-in-out infinite reverse;
}

.floating-3 {
  bottom: 30%;
  left: 15%;
  animation: float 12s ease-in-out infinite;
}

.floating-4 {
  bottom: 20%;
  right: 20%;
  animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
  75% {
    transform: translateY(-30px) rotate(270deg);
  }
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.btn-premium {
  background: var(--accent-gradient);
  border: none;
  color: var(--white);
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
  color: var(--white);
}

.btn-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-premium:hover::before {
  left: 100%;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
}

.scroll-mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  position: relative;
  margin: 0 auto;
}

.scroll-wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

.scroll-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

/* Services Section */
.services-section {
  background: var(--white);
  padding: 120px 0;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-black);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--light-gray);
  max-width: 600px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--lightest-gray);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-premium);
}

.service-card.featured {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box, var(--accent-gradient) border-box;
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-gradient);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.service-icon-wrapper {
  margin-bottom: 2rem;
}

.service-icon {
  width: 100px;
  height: 100px;
  background: var(--premium-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::before {
  opacity: 1;
}

.service-icon i {
  color: var(--white);
  z-index: 2;
  position: relative;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--light-gray);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--medium-gray);
  display: flex;
  align-items: center;
}

.service-features li i {
  color: var(--accent-gold);
  margin-right: 0.5rem;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover .service-overlay {
  opacity: 0.05;
}

/* About Section */
.about-section {
  background: var(--lightest-gray);
  padding: 120px 0;
}

.about-content {
  padding-right: 2rem;
}

body[dir="rtl"] .about-content {
  padding-right: 0;
  padding-left: 2rem;
}

.about-text {
  font-size: 1.1rem;
  color: var(--medium-gray);
  line-height: 1.8;
}

.stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-black);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--light-gray);
  font-weight: 500;
}

.about-image {
  position: relative;
}

.about-image-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 1rem;
  z-index: -1;
}

/* Contact Section */
.contact-section {
  background: var(--white);
  padding: 120px 0;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--lightest-gray);
}

.form-floating > .form-control {
  border: 2px solid var(--lightest-gray);
  border-radius: 10px;
  padding: 1.5rem 1rem 0.5rem;
  transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
  border-color: var(--primary-black);
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.form-floating > label {
  color: var(--light-gray);
  font-weight: 500;
  display: flex;
  align-items: center;
}

#form-status {
  padding: 1rem;
  border-radius: 10px;
  font-weight: 500;
  text-align: center;
}

/* Footer */
.footer-section {
  background: var(--primary-black);
  color: var(--lighter-gray);
  padding: 2rem 0;
  text-align: center;
}

/* Scroll to Top */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

body[dir="rtl"] .scroll-to-top-btn {
  right: auto;
  left: 30px;
}

.scroll-to-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .stats-row {
    flex-direction: column;
    gap: 1rem;
  }

  .about-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  body[dir="rtl"] .about-content {
    padding-left: 0;
  }

  .floating-element {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .floating-element {
    display: none;
  }

  .stats-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1 1 50%;
    margin-bottom: 1rem;
  }
}

/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}
