:root {
  --burgundy: #7B1524;
  --burgundy-dark: #5c0f1a;
  --burgundy-light: #9a1f30;
  --gray: #DADADA;
  --gray-dark: #999999;
  --gray-light: #F5F5F5;
  --white: #FFFFFF;
  --text-dark: #2c2c2c;
  --text-light: #666666;
  --shadow: rgba(123, 21, 36, 0.1);
  --shadow-hover: rgba(123, 21, 36, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body[dir="ltr"] {
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 16px;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--burgundy), var(--gray));
  margin: 0 auto;
  border-radius: 2px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 20px var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px var(--shadow-hover);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-shape {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.logo-shape::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid rgba(218, 218, 218, 0.3);
  top: 2px;
  left: 0;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 1px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--burgundy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--burgundy);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-light);
  border: 2px solid var(--gray);
  border-radius: 24px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  border-color: var(--burgundy);
}

.lang-option {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-option.active {
  color: var(--burgundy);
  font-weight: 700;
}

.lang-divider {
  color: var(--gray-dark);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
  z-index: -1;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.hero-bg::before {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
  top: -300px;
  right: -200px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.hero-bg::after {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--gray) 0%, var(--gray-dark) 100%);
  bottom: -200px;
  left: -100px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
  color: var(--white);
  padding: 16px 48px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-hover);
}

.cta-button:hover::before {
  left: 100%;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-left: 3px solid var(--burgundy);
  border-bottom: 3px solid var(--burgundy);
  transform: rotate(-45deg);
}

.about {
  background: var(--white);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  text-align: center;
  font-size: 1.25rem;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.stat-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow-hover);
  border-color: var(--burgundy);
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--burgundy);
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-light);
}

.services {
  background: var(--gray-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--burgundy), var(--burgundy-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--burgundy);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 16px;
}

.service-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.portfolio {
  background: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease;
  aspect-ratio: 4 / 3;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow-hover);
}

.portfolio-image {
  width: 100%;
  height: 100%;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(123, 21, 36, 0.95), transparent);
  color: var(--white);
  padding: 32px 24px;
  transform: translateY(60%);
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-desc {
  font-size: 1rem;
  opacity: 0.9;
}

.contact {
  background: var(--gray-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(-8px);
  box-shadow: 0 8px 30px var(--shadow-hover);
}

body[dir="ltr"] .contact-item:hover {
  transform: translateX(8px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  color: var(--burgundy);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 8px;
}

.contact-item p {
  color: var(--text-light);
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
  border-radius: 12px;
  color: var(--burgundy);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-4px);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
}

.form-group {
  position: relative;
  margin-bottom: 32px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--gray);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--burgundy);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -12px;
  font-size: 0.85rem;
  color: var(--burgundy);
  background: var(--white);
  padding: 0 8px;
}

.form-group label {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

body[dir="ltr"] .form-group label {
  right: auto;
  left: 16px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--shadow);
}

.submit-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-hover);
}

.submit-button:active {
  transform: translateY(-2px);
}

.footer {
  background: var(--burgundy);
  color: var(--white);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo .logo-shape {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray) 100%);
}

.footer-logo .logo-shape::before {
  border-bottom-color: rgba(123, 21, 36, 0.3);
}

.footer-logo .logo-text {
  color: var(--white);
}

.footer-copyright {
  font-size: 1rem;
  opacity: 0.9;
}

.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 968px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stats-grid,
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .social-links {
    justify-content: center;
  }
}

.fade-in {
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
