:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --background-color: #f8fafc;
  --text-color: #0f172a;
  --card-background: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.background-shapes span {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition: transform 0.3s ease;
  height: 60px;
}

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

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

.logo-small {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-color);
  background: transparent;
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  box-shadow: none;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.logo-small .emoji {
  font-size: 1.5rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  height: 100%;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

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

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

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

.nav-links.active {
  right: 0;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    height: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    z-index: 999;
  }

  .nav-links a {
    width: 100%;
    padding: 0.8rem;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin: 0.3rem 0;
    font-size: 0.95rem;
  }

  .nav-links a:hover {
    background: var(--gradient);
    color: white;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links.active {
    right: 0;
    padding: 1rem;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
}

.hero {
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 60px;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: slideDown 1s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
}

.main-slogan {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .main-slogan {
    font-size: 1.3rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .main-slogan {
    font-size: 1.1rem;
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.hero-btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.hero-btn.primary {
  background: var(--primary-color);
  color: white;
}

.hero-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.hero-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.hero-btn:hover::after {
  opacity: 1;
  transform: rotate(45deg) translateX(-50%) translateY(-50%);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.services {
  position: relative;
  padding: 4rem 0;
  background: url('https://images.unsplash.com/photo-1566576721346-d4a3b4eaeb55?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover fixed;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.93));
  z-index: 1;
}

.services .section-header,
.services-grid {
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  background: var(--gradient);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-description {
  color: #64748b;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

@media (max-width: 768px) {
  .section-description {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem 2rem;
  border-radius: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 768px) {
  .service-card {
    padding: 2rem 1.5rem;
  }
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transition: var(--transition);
}

.service-card:hover::before {
  height: 100%;
  opacity: 0.05;
}

.service-icon {
  background: var(--gradient);
  width: 90px;
  height: 90px;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
  transform: rotate(45deg);
  transition: var(--transition);
  animation: gentleRotate 4s ease-in-out infinite;
}

@keyframes gentleRotate {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(10deg) scale(1.05);
  }
}

.service-icon svg {
  width: 45px;
  height: 45px;
  fill: white;
  transform: rotate(-45deg);
}

.service-card:hover .service-icon {
  animation: bounceAndRotate 1s ease infinite;
}

@keyframes bounceAndRotate {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(180deg);
  }
}

.service-card h3 {
  color: var(--secondary-color);
  font-size: 1.6rem;
  margin: 0;
  position: relative;
}

@media (max-width: 480px) {
  .service-card h3 {
    font-size: 1.4rem;
  }
}

.service-card p {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 480px) {
  .service-card p {
    font-size: 1rem;
  }
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.service-link {
  display: inline-block;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: auto;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
  cursor: pointer;
}

.service-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.contact {
  background: url('https://images.unsplash.com/photo-1534536281715-e28d76689b4d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover fixed;
  padding: 5rem 3rem;
  border-radius: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  margin: 4rem auto;
  max-width: 1200px;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, 
    rgba(255, 255, 255, 0.97), 
    rgba(255, 255, 255, 0.95)
  );
  z-index: 1;
}

.contact .section-header,
.contact-options {
  position: relative;
  z-index: 2;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .contact-options {
    grid-template-columns: 1fr;
  }
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2.5rem;
  border-radius: 1.5rem;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: all 0.4s ease;
  font-size: 1.2rem;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-button {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .contact-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

.contact-button i {
  animation: bounce 2s infinite;
}

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

.contact-button::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: all 0.6s;
}

.contact-button:hover::before {
  left: 100%;
}

.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.phone {
  background: var(--gradient);
}

.contact-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-page {
  padding-top: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.service-hero {
  background: var(--gradient);
  color: white;
  padding: 3rem 2rem;
  border-radius: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.service-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .service-details {
    grid-template-columns: 1fr;
  }
}

.benefits-list {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.benefits-list h3 {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 0.7rem;
}

.benefits-list h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient);
}

.benefits-list ul {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.related-services {
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.related-services h3 {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.related-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-links a {
  text-decoration: none;
  color: var(--text-color);
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  background: white;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.related-links a:hover {
  background: var(--gradient);
  color: white;
  transform: translateX(-5px);
}

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.7rem 1rem;
  background: white;
  border-radius: 0.7rem;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumbs .separator {
  color: #64748b;
}

footer {
  background: var(--gradient);
  color: white;
  padding: 3rem 2rem;
  margin-top: 4rem;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  footer {
    margin-bottom: 120px;
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  animation: glow 2s infinite;
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-top: 3px solid var(--primary-color);
}

@media (max-width: 768px) {
  .info-bar {
    flex-direction: column;
    gap: 1rem;
    padding: 0.8rem;
  }
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .info-item {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .info-item {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

.info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: var(--gradient);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

.scroll-to-top:hover {
  transform: translateY(-5px);
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-ready {
  opacity: 0;
}

.animate-in {
  animation: scaleIn 0.5s ease-out forwards;
}