/* ===============================================
   INDEX PAGE SPECIFIC STYLES - KYC Kuwait
   Styles exclusively for the main homepage
   =============================================== */

/* ============ MAIN HERO SECTION STYLES ============ */
/* خلفية منطقة Main Hero - تطابق تصميم صفحة المقارنة */
.main-hero {
  background: 
      linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 102, 204, 0.9) 100%);
  color: white;
  min-height: 350px;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.main-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: floating 15s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
}

.hero-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 800px;
  padding: 2rem;
  text-align: center;
}

/* تطبيق نفس نمط النصوص من صفحة المقارنة */
.hero-title {
  color: #dfbb00 !important; /* لون ذهبي للعنوان مع !important */
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* ظل للنص لتحسين الوضوح */
}

/* تأكيد اللون الذهبي لجميع عناصر العنوان */
.hero-title,
.hero-title *,
.title-line,
.title-main {
  color: #dfbb00 !important;
}

.hero-description {
  color: white;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

/* ============ RESPONSIVE STYLES FOR HERO ============ */
@media (max-width: 900px) {
  .main-hero, .hero-container {
    min-height: 280px;
  }
  
  .hero-content {
    max-width: 100%;
    padding: 1.5rem;
  }
  
  /* تحسينات الجوال */
  .hero-actions .primary-cta,
  .hero-actions .secondary-cta {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 1.1em;
  }
  .nav-links {
    gap: 1rem;
  }
  .section-header {
    padding: 0 1rem;
  }
}

@media (max-width: 600px) {
  .main-hero, .hero-container {
    min-height: 240px;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  /* تحسينات شاشات صغيرة */
  .hero-actions .primary-cta,
  .hero-actions .secondary-cta {
    min-height: 52px;
    padding: 16px 32px;
    font-size: 1.2em;
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .container {
    padding: 0 1rem;
  }
  .section-header {
    margin-bottom: 1.5rem;
  }
}

/* ============ ABOUT SECTION ENHANCEMENTS ============ */
/* زيادة عرض عنصر النقاط في قسم الرؤية وجعل كل نقطة في سطر واحد */
.about-content .feature-list {
  max-width: 900px;
  width: 100%;
  margin: 0 auto 2rem auto;
  font-size: 1.13em;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}

.about-content .feature-list li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  gap: 0;
}

.about-content .feature-list li strong {
  min-width: 0;
  display: inline-block;
  margin-left: 0.2em;
  margin-right: 0.2em;
}

@media (max-width: 600px) {
  .about-content .feature-list {
    max-width: 100%;
    font-size: 1em;
  }
  .about-content .feature-list li strong {
    min-width: 120px;
  }
}

/* Improve wrapping on extra-small screens to avoid overflow */
@media (max-width: 480px) {
  .about-content .feature-list li {
    white-space: normal;
  }
}

/* ============ IMAGE ROTATION IN ABOUT SECTION ============ */
/* تدوير الصور في قسم من نحن */
.about-visual {
  position: relative;
  min-height: 350px;
  max-height: 450px;
  overflow: hidden;
  border-radius: 25px;
  background-color: #f8fafc;
}

.about-visual img {
  transition: opacity 1s ease-in-out;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 25px;
  background-color: #f8fafc;
}

.rotating-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.rotating-image.active {
  opacity: 1;
}

.rotating-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 25px;
  background-color: #f8fafc;
}

/* ============ ACCESSIBILITY IMPROVEMENTS ============ */
/* تحسينات الوصولية (Accessibility) */
*:focus {
  outline: 2px solid #003366;
  outline-offset: 2px;
}

.btn:focus,
.nav-link:focus,
.login-btn:focus {
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.3);
}

/* تحسين التباين */
.btn.btn-primary {
  background-color: #003366;
  border-color: #003366;
  color: #ffffff;
  font-weight: 600;
}

.btn.btn-primary:hover {
  background-color: #002244;
  border-color: #002244;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

/* ============ SUCCESS FEEDBACK STYLES ============ */
.success-feedback {
  background-color: #10b981;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 10px;
  display: none;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============ LOADING STATES ============ */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============ LANGUAGE SWITCHER ENHANCEMENTS ============ */
.language-switcher {
  position: relative;
}

.language-toggle {
  background: none;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-toggle:hover {
  border-color: #003366;
  background-color: #f8fafc;
}

.flag-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.flag-kuwait {
  background-image: url('../img/kuwait-flag-round-circle-icon.png');
}

.flag-uk {
  background-image: url('../img/uk-flag-round-circle-icon.png');
}

/* ============ MOBILE MENU HAMBURGER ============ */
.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  z-index: 1002;
  position: relative;
  outline: none;
}

/* إظهار زر الهمبرجر على الشاشات الصغيرة */
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #003366;
  transition: all 0.3s ease;
  transform-origin: center;
  display: block;
  border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* تحسينات إضافية للجوال */
@media (max-width: 600px) {
  .mobile-menu-toggle {
    padding: 10px;
  }
  
  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .brand-identity .brand-text {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
  
  .login-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  .login-btn .btn-text {
    display: none; /* إخفاء النص وإظهار الأيقونة فقط */
  }
}

/* ============ ANIMATED STATISTICS ============ */
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #dfbb00 !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: countUp 2s ease-out;
}

.stat-label {
  font-size: 0.9rem;
  color: #dfbb00 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
