/* Modern CSS with responsive layouts */
:root {
  --primary-color: #2c5738;
  --secondary-color: #d4af37;
  --text-color: #333;
  --light-text: #fff;
  --dark-bg: #1a1a1a;
  --light-bg: #f5f5f5;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --header-height: 70px;
}

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

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

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--light-bg);
  direction: rtl;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* Layout */
.wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--light-bg);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: var(--header-height);
}

.navigation.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navigation .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navigation-logo {
  display: flex;
  align-items: center;
}

.navigation-logo img {
  height: 50px;
  width: auto;
}

.navigation-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

/* Store Button */
.btn-store {
  background-color: var(--primary-color);
  color: var(--light-text) !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.btn-store:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-store i {
  font-size: 1.1em;
}

/* Mobile Menu */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

.mobile-menu-button span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 991px) {
  .mobile-menu-button {
    display: block;
  }

  .navigation-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--light-bg);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
  }

  .navigation-links.active {
    right: 0;
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

section:first-of-type {
  margin-top: var(--header-height);
}

.dark-bg {
  background: var(--dark-bg);
  color: var(--light-text);
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
}

/* Service Cards */
.service-card {
  text-align: center;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* Portfolio Grid */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.single-project {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.single-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--light-text);
  transform: translateY(100%);
  transition: var(--transition);
}

.single-project:hover .project-details {
  transform: translateY(0);
}

.single-project:hover img {
  transform: scale(1.1);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children > *:nth-child(1) { animation: fadeIn 0.6s ease forwards 0.1s; }
.stagger-children > *:nth-child(2) { animation: fadeIn 0.6s ease forwards 0.2s; }
.stagger-children > *:nth-child(3) { animation: fadeIn 0.6s ease forwards 0.3s; }
.stagger-children > *:nth-child(4) { animation: fadeIn 0.6s ease forwards 0.4s; }

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--light-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.preloader.fade-out {
  opacity: 0;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.single-member {
  text-align: center;
}

.single-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
}

.social-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navigation-links {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.6s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
} 