:root {
  --primary: #8B1D1D;
  --primary-rgb: 139, 29, 29;
  --secondary: #D97706;
  --secondary-rgb: 217, 119, 6;
  --accent: #FBBF24;
  --bg-main: #FFFBF2;
  --bg-card: #FFFFFF;
  --text-main: #1A202C;
  --text-muted: #4A5568;
  --white: #FFFFFF;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'Tajawal', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

[dir="rtl"] {
  font-family: 'Tajawal', sans-serif;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(139, 29, 29, 0.1);
  transition: transform 0.4s ease-in-out, background 0.4s;
}

header.hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-container img {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.logo-container img:hover {
  transform: rotate(10deg) scale(1.1);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

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

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background: #A32424;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Contact Button */
.floating-contact {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: var(--transition);
  cursor: pointer;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(var(--secondary-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0); }
}

.float-btn:hover {
  transform: scale(1.1) translateY(-5px);
}

.float-whatsapp { background: #25D366; }
.float-phone { background: var(--primary); }

/* Sections */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
}

.section {
  padding: 120px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
  border-left: 5px solid var(--secondary);
}

.card:hover {
  transform: translateY(-10px);
  background: white;
  border-left-width: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Utils */
.hidden { display: none !important; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2.7rem; }
  .grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .floating-contact { bottom: 1.5rem; left: 1.5rem; }
}
