/* Index Page Styles - BestCash Offshore */

/* Variables CSS */
:root {
  --primary-blue: #2563eb;
  --primary-dark: #0f172a;
  --secondary-dark: #1e293b;
  --accent-blue: #60a5fa;
  --text-light: #ffffff;
  --text-gray: #cccccc;
  --text-muted: #999999;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --border-blue: #60a5fa;
  --shadow-blue: 0 0 30px rgba(96, 165, 250, 0.2);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
  --gradient-blue: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  
  /* Couleurs spécifiques pour les cartes (plus vives) */
  --card-blue: #2563eb;
  --card-accent: #3b82f6;
  --card-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.nav-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-text i {
  width: 1.5rem;
  height: 1.5rem;
}

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

.language-selector {
  display: flex;
  gap: 0.5rem;
  margin-right: 1rem;
}

.lang-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-blue);
  border-radius: 0.5rem;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, var(--bg-dark) 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(99,102,241,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Cards Showcase */
.cards-showcase {
  margin: 4rem 0;
  perspective: 1000px;
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.visa-card {
  width: 350px;
  height: 220px;
  background: var(--gradient-dark);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-blue);
  transition: all 0.6s ease;
  transform: rotateY(0deg);
  border: 1px solid rgba(96, 165, 250, 0.3);
  display: block;
}

.visa-card:hover {
  transform: rotateY(10deg) translateY(-10px);
  box-shadow: 0 20px 40px rgba(96, 165, 250, 0.4);
}

.card-front {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.card-back {
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-logo {
  width: 50px;
  height: 50px;
  background: var(--card-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.card-type {
  font-size: 0.875rem;
  color: var(--text-gray);
  font-weight: 600;
  letter-spacing: 1px;
}

.card-chip {
  width: 45px;
  height: 35px;
  background: var(--card-gradient);
  border-radius: 8px;
  margin: 1rem 0 1rem 0;
  margin-left: 0;
  position: relative;
  z-index: 3;
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 20px;
  background: repeating-linear-gradient(
    90deg,
    #0f172a 0px,
    #0f172a 2px,
    transparent 2px,
    transparent 4px
  );
}

.card-number {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 2px;
  position: absolute;
  top: 65%;
  left: 1.5rem;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.card-dots {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.card-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--text-light);
  border-radius: 50%;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  height: 2.5rem;
}

.card-holder {
  font-size: 0.7rem;
  color: var(--text-gray);
  font-weight: 500;
  position: relative;
  z-index: 10;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-expiry {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
  position: relative;
  z-index: 10;
  line-height: 1.2;
  text-align: center;
}

.visa-logo {
  font-size: 0.8rem;
  font-weight: 800;
  color: #1a1f71;
  background: white;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  position: relative;
  z-index: 15;
  flex-shrink: 0;
  min-width: 35px;
  text-align: center;
}

.card-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 60%;
  background: linear-gradient(135deg, transparent 0%, var(--card-accent) 100%);
  border-radius: 0 20px 20px 0;
  opacity: 0.8;
  z-index: 1;
}

.card-accent-dark {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 60%;
  background: linear-gradient(135deg, transparent 0%, #1e40af 100%);
  border-radius: 0 20px 20px 0;
  opacity: 0.6;
  z-index: 1;
}

/* Hero Content */
.hero-description {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 800px;
  margin: 2rem auto;
  line-height: 1.8;
  position: relative;
  z-index: 20;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::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: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  color: white;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-secondary:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-3px);
}

.contact-info {
  margin-top: 2rem;
}

.contact-info p {
  color: var(--text-gray);
  font-size: 1.1rem;
}

.contact-email {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-email:hover {
  color: var(--text-light);
  text-shadow: 0 0 10px var(--accent-blue);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--secondary-dark) 100%);
}

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

.features-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(96, 165, 250, 0.15);
  border-color: var(--accent-blue);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
}

.feature-icon i {
  width: 40px;
  height: 40px;
  color: white;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  border-top: 1px solid rgba(96, 165, 250, 0.15);
  padding: 3rem 0 1rem;
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .logo-text i {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(96, 165, 250, 0.08);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.visa-card.animate {
  animation: fadeInUp 0.8s ease forwards;
}

.feature-card.animate {
  animation: fadeInUp 0.6s ease forwards;
}

.visa-card:nth-child(1) {
  animation-delay: 0.2s;
}

.visa-card:nth-child(2) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .language-selector {
    margin-right: 0;
  }
  
  .hero-container {
    padding: 1rem;
    margin-top: 4rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }
  
  .card-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .visa-card {
    width: 300px;
    height: 190px;
    padding: 1.2rem;
  }
  
  .visa-card .card-number {
    font-size: 1.1rem;
    top: 60%;
    left: 1.2rem;
    right: 1.2rem;
    gap: 1.5rem;
  }
  
  .visa-card .card-number .card-dots {
    gap: 0.3rem;
  }
  
  .visa-card .card-number .card-dots span {
    width: 3px;
    height: 3px;
  }
  
  .visa-card .card-footer {
    bottom: 1rem;
    left: 1.2rem;
    right: 1.2rem;
    height: 2rem;
  }
  
  .visa-card .card-holder {
    font-size: 0.6rem;
  }
  
  .visa-card .card-expiry {
    font-size: 0.8rem;
  }
  
  .visa-card .visa-logo {
    font-size: 0.7rem;
    padding: 0.1rem 0.25rem;
    min-width: 30px;
  }
  
  .visa-card .card-accent,
  .visa-card .card-accent-dark {
    width: 60px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cards-showcase {
    margin: 3rem 0;
  }
  
  .hero-container {
    margin-top: 5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .visa-card {
    width: 270px;
    height: 170px;
    padding: 1rem;
  }
  
  .visa-card .card-number {
    font-size: 1rem;
    top: 75%;
    left: 1rem;
    right: 1rem;
    gap: 1.5rem;
  }
  
  .visa-card .card-number .card-dots {
    gap: 0.25rem;
  }
  
  .visa-card .card-number .card-dots span {
    width: 2.5px;
    height: 2.5px;
  }
  
  .visa-card .card-footer {
    bottom: 0.8rem;
    left: 1rem;
    right: 1rem;
    height: 1.8rem;
  }
  
  .visa-card .card-holder {
    font-size: 0.55rem;
  }
  
  .visa-card .card-expiry {
    font-size: 0.75rem;
  }
  
  .visa-card .visa-logo {
    font-size: 0.65rem;
    padding: 0.1rem 0.2rem;
    min-width: 28px;
  }
  
  .visa-card .card-accent,
  .visa-card .card-accent-dark {
    width: 50px;
  }
  
  .visa-card .card-chip {
    width: 35px;
    height: 28px;
    margin-left: 0;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .features-title {
    font-size: 2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mode sombre amélioré */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-dark: #000000;
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
  }
}

/* Effets de survol avancés */
.visa-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(96, 165, 250, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.visa-card:hover::after {
  opacity: 1;
}

/* Indicateur de scroll */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-blue);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
}