/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
  scroll-behavior: smooth;
}

:root {
  /* Takaful Colors - Minsk Theme */
  --takaful-primary: #2c2e83;
  --takaful-light: #eef3ff;
  --takaful-dark: #1a1a4c;
  --takaful-gradient: linear-gradient(135deg, #2c2e83 0%, #606cf4 100%);

  /* Mostakbal Colors - Brown/Gold Theme */
  --mostakbal-primary: #d4af37;
  --mostakbal-light: #fff9e8;
  --mostakbal-dark: #2a1c08;
  --mostakbal-gradient: linear-gradient(135deg, #d4af37 0%, #f0be4e 100%);

  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #6c757d;
  --text-dark: #343a40;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-normal: 0.3s ease;
}

body {
  font-family: "Cairo", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  min-height: 100vh;
  direction: rtl;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  /* position: fixed; */
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container a {
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo .logo-img {
  height: 50px;
  width: auto;
  border-radius: 8px;
  /* object-fit: contain; */
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--takaful-primary),
    var(--mostakbal-primary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  padding: 8rem 1.5rem 5rem;
  background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  color: #94a3b8;
  max-width: 90%;
}

.hero-image {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn-hero {
  background: var(--mostakbal-gradient);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.hero-image {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(108, 92, 231, 0.1),
    rgba(212, 175, 55, 0.1)
  );
}

.shape1 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 10%;
  animation: pulse 4s infinite;
}

.shape2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 10%;
  animation: pulse 5s infinite 1s;
}

.shape3 {
  width: 80px;
  height: 80px;
  top: 40%;
  left: 20%;
  animation: pulse 6s infinite 2s;
}

/* Services Section */
.services {
  padding: 6rem 1.5rem;
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 4px;
  background: var(--mostakbal-gradient);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--dark-gray);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* Centered Card Layout */
.service-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  position: relative;
  border-top: 5px solid transparent;
  padding: 3rem 2rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.takaful-card {
  border-top-color: var(--takaful-primary);
}

.mostakbal-card {
  border-top-color: var(--mostakbal-primary);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1.5rem;
}

.card-logo {
  width: 160px;
  height: 160px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  border: 3px solid transparent;
}

.service-card:hover .card-logo {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.takaful-card .card-logo {
  background: linear-gradient(135deg, var(--takaful-light), #dfe9ff);
  border-color: rgba(44, 46, 131, 0.1);
}

.mostakbal-card .card-logo {
  background: linear-gradient(135deg, var(--mostakbal-light), #fdefc5);
  border-color: rgba(212, 175, 55, 0.1);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--text-dark);
}

.card-subtitle {
  color: var(--dark-gray);
  font-size: 1rem;
  margin: 0;
  max-width: 90%;
}

.btn-card {
  width: 100%;
  max-width: 250px;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-card:hover {
  transform: translateY(-3px);
}

.btn-takaful {
  background: var(--takaful-gradient);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(44, 46, 131, 0.25);
}

.btn-takaful:hover {
  background: linear-gradient(135deg, #363684 0%, #4042b9 100%);
  box-shadow: 0 10px 25px rgba(44, 46, 131, 0.35);
}

.btn-mostakbal {
  background: var(--mostakbal-gradient);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.btn-mostakbal:hover {
  background: linear-gradient(135deg, #b48822 0%, #d4af37 100%);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
}

.card-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.takaful-card .card-badge {
  color: var(--takaful-primary);
  border: 2px solid var(--takaful-primary);
}

.mostakbal-card .card-badge {
  color: var(--mostakbal-primary);
  border: 2px solid var(--mostakbal-primary);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--white);
  padding: 4rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo-img {
  height: 80px;
  border-radius: 10px;
  object-fit: contain;
}

.footer-logo h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fbbc60;
}

.footer-logo p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fbbc60;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition-normal);
  display: block;
}

.footer-links a:hover {
  color: var(--mostakbal-primary);
  transform: translateX(-5px);
}

.footer-contact p {
  color: #94a3b8;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact i {
  color: var(--mostakbal-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--mostakbal-primary);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-normal);
}

.social-link:hover {
  background: var(--mostakbal-primary);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 1rem 4rem;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .service-card {
    min-height: 350px;
    padding: 3rem 1.5rem 2rem;
  }

  .card-logo {
    width: 150px;
    height: 150px;
    border-radius: 15px;
  }

  .card-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn-hero,
  .btn-card {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .service-card {
    min-height: 350px;
    padding: 2rem 1.5rem;
  }

  .card-logo {
    width: 130px;
    height: 130px;
    border-radius: 15px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-badge {
    display: none;
  }
}
