/*
Theme Name: ViraRed
Author: the Virapeak team
Author URI: http://virapeak.ir/
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.2
Version: 1.0.0
*/

* {
  scroll-behavior: smooth;
}

h1,h2,h3,h4,h5,h6{
  color:#fff;
}

@font-face {
  font-family: 'YekanBakh';
  src: url('fonts/YekanBakhFaNum-VF.woff2') format('woff2'),
       url('fonts/YekanBakhFaNum-VF.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'YekanBakh', Tahoma, Arial, sans-serif;
  overflow-x: hidden;
}

/* Glass Effects */
.glass {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .08);
}

.glass-dark {
  background: rgba(10, 10, 11, .9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Card Styles */
.soft-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .02) 100%);
  border: 1px solid rgba(255, 255, 255, .08);
}

.soft-card:hover {
  border-color: rgba(237, 27, 36, .3);
  background: linear-gradient(135deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .04) 100%);
}

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

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

/* Mobile Menu */
.menu-open #menuBackdrop {
  opacity: 1;
  pointer-events: auto;
}

.menu-open #mobileMenu {
  transform: translateX(0);
}

.menu-open .bar1 {
  transform: translateY(8px) rotate(45deg);
}

.menu-open .bar2 {
  opacity: 0;
}

.menu-open .bar3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #ED1B24 0%, #FF4D4D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Noise Texture */
.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Parallax Cards */
.parallax-card {
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card Gallery */
.card-gallery {
  perspective: 1500px;
}

.bank-card {
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, opacity;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.bank-card:hover {
  z-index: 100 !important;
}

.bank-card.vertical {
  aspect-ratio: 0.63;
}

.bank-card.horizontal {
  aspect-ratio: 1.586;
}

.bank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

/* Card shine effect */
.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(255, 255, 255, 0.15) 45%,
      rgba(255, 255, 255, 0.05) 50%,
      transparent 55%);
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bank-card:hover .card-shine {
  opacity: 1;
}

/* Glow effect for cards */
@keyframes cardGlow {
  0%, 100% { box-shadow: 0 25px 50px -12px rgba(237, 27, 36, 0.3); }
  50% { box-shadow: 0 30px 60px -12px rgba(237, 27, 36, 0.5); }
}

.card-glow {
  animation: cardGlow 3s ease-in-out infinite;
}

/* Button Shine Effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transition: left .5s ease;
}

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

/* --- Campaign Hero Responsive Background --- */
.campaign-hero {
  min-height: min(860px, 100svh);
  background-image: url('https://virapeak.ir/demo/red/redbank-ui/images/campaign-redbank-mobile.webp');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  isolation: isolate;
}

@media (min-width: 768px) {
  .campaign-hero {
    min-height: min(820px, 100vh);
    background-image: url('images/campaign-redbank-desktop.webp');
    background-position: center center;
  }
}

@media (max-width: 767px) {
  .campaign-hero {
    min-height: 790px;
    padding-top: 94px !important;
    padding-bottom: 0 !important;
    display: block !important;
    background-image: url('images/campaign-redbank-mobile.webp');
    background-size: cover, cover, auto 100%;
    background-position: 0 100px !important;
    background-repeat: no-repeat;
  }

  .campaign-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  .campaign-hero::after {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    bottom: -1px;
    height: 150px;
    z-index: 0;
    pointer-events: none;
  }

  .mobile-hero-card {
    width: calc(100vw - 28px);
    max-width: 390px;
    margin: 0 auto;
    padding: 18px 18px 16px;
    border-radius: 28px;
    text-align: right;
    background: linear-gradient(180deg, rgba(15,15,17,.74), rgba(15,15,17,.42));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 0 55px rgba(237,27,36,.15);
    backdrop-filter: blur(18px);
  }

  .mobile-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(237,27,36,.14);
    border: 1px solid rgba(237,27,36,.28);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-hero-title {
    color: #fff;
    font-size: clamp(30px, 9vw, 39px);
    line-height: 1.22;
    font-weight: 950;
    letter-spacing: -1px;
    margin: 0 0 10px;
  }

  .mobile-hero-title strong {
    display: inline-block;
    color: #ff313b;
    text-shadow: 0 0 24px rgba(237,27,36,.45);
  }

  .mobile-hero-copy {
    margin: 0 0 14px;
    color: rgba(255,255,255,.76);
    font-size: 13px;
    line-height: 2;
    font-weight: 500;
  }

  .mobile-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mobile-hero-cta {
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: linear-gradient(135deg, #ff3942, #ED1B24 62%, #b90f18);
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 16px 38px rgba(237,27,36,.38);
  }

  .mobile-hero-note {
    color: rgba(255,255,255,.48);
    font-size: 11px;
    text-align: center;
  }

  #mobileHeroBtn {
    margin-bottom: 57px !important;
  }

  /* Mobile card adjustments for gallery */
  .card-gallery {
    height: 450px !important;
  }

  .bank-card.horizontal {
    width: 140px !important;
  }

  .bank-card.vertical {
    width: 100px !important;
  }

  #card-0 { left: 2% !important; top: 40% !important; }
  #card-1 { left: 5% !important; top: 8% !important; }
  #card-2 { left: 50% !important; top: 35% !important; }
  #card-3 { right: 2% !important; left: auto !important; top: 5% !important; }
  #card-4 { right: 0% !important; left: auto !important; top: 50% !important; }
}
```