/* ============================
   TIGER GYM — GLOBAL RESET & VARS
   ============================ */
:root {
  --red:       #ff2e00;
  --red-dark:  #cc2400;
  --orange:    #ff6a00;
  --gold:      #ffcc00;
  --bg:        #080808;
  --bg2:       #111111;
  --bg3:       #181818;
  --border:    #2a2a2a;
  --text:      #f0f0f0;
  --muted:     #888;
  --font-disp: 'Bebas Neue', sans-serif;
  --font-body: 'Cairo', sans-serif;
  --radius:    14px;
  --shadow:    0 8px 40px rgba(255,46,0,0.15);
  --transition: 0.3s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
}

/* ============================
   UTILITIES
   ============================ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(255,46,0,0.1);
  border: 1px solid rgba(255,46,0,0.3);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-label.center {
  display: block;
  text-align: center;
}

.section-title {
  font-family: var(--font-disp);
  font-size: 3rem;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 50px;
}

.section-title.center {
  text-align: center;
}

/* ============================
   HEADER
   ============================ */
#hdr {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transition: var(--transition);
}

#hdr .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--red);
}

.logo-name {
  font-family: var(--font-disp);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--red);
  line-height: 1;
}

.logo-name span {
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

nav a:hover {
  color: var(--red);
  background: rgba(255,46,0,0.08);
}

nav a.nav-cta {
  background: var(--red);
  color: #fff;
  border-radius: 8px;
}

nav a.nav-cta:hover {
  background: var(--red-dark);
  color: #fff;
}

/* ============================
   HERO
   ============================ */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 40%, rgba(255,46,0,0.25) 100%),
              url('gymdesign_render_Two_collumn_grid_cb1b5850-fa8e-4a7b-a2b3-190c2e45facd.webp') center/cover no-repeat;
  overflow: hidden;
}

/* animated grain overlay */
#home::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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,46,0,0.15);
  border: 1px solid rgba(255,46,0,0.4);
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  animation: fadeDown 0.7s ease both;
}

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(255,46,0,0.4);
  animation: fadeDown 0.8s ease 0.1s both;
}

.hero-sub {
  font-size: 1.15rem;
  color: #ccc;
  max-width: 520px;
  margin: 20px 0 30px;
  animation: fadeDown 0.8s ease 0.2s both;
}

.hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeDown 0.8s ease 0.3s both;
}

.hero-tags span {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #ddd;
  backdrop-filter: blur(4px);
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 0 24px rgba(255,46,0,0.4);
  animation: fadeDown 0.8s ease 0.4s both;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,46,0,0.6);
}

.btn:hover::after {
  opacity: 1;
}

/* scroll hint dot */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, var(--red), transparent);
  margin: 0 auto;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   ABOUT
   ============================ */
#about {
  padding: 110px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-text h2.about-tiger {
  font-family: var(--font-disp);
  font-size: 4rem;
  letter-spacing: 3px;
  color: #fff;
  line-height: 1;
  margin-bottom: 20px;
}

.about-text > p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
  line-height: 1.9;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: var(--transition);
}

.feature:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255,46,0,0.1);
}

.feature i {
  color: var(--red);
  font-size: 1.2rem;
}

.feature span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.about-img {
  display: flex;
  justify-content: center;
}

.img-frame {
  position: relative;
  display: inline-block;
}

.img-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid var(--red);
  border-radius: 18px;
  opacity: 0.4;
  z-index: 0;
}

.img-frame img {
  width: 100%;
  max-width: 420px;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
  display: block;
  filter: brightness(0.9);
}

.img-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* ============================
   SUBSCRIPTION
   ============================ */
#subscription {
  padding: 110px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.cards-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.flip-state {
  display: none;
}

.card {
  width: 320px;
  height: 440px;
  perspective: 1200px;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-state:checked + .card-inner {
  transform: rotateY(180deg);
}

.front, .back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* FRONT */
.front {
  position: relative;
}

.front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  transition: filter 0.4s ease;
}

.card:hover .front img {
  filter: brightness(0.6);
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.overlay-icon {
  font-size: 2.8rem;
}

.overlay-title {
  font-family: var(--font-disp);
  font-size: 3rem;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

/* BACK */
.back {
  background: var(--bg3);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 28px 24px;
  border-color: rgba(255,46,0,0.3);
}

.back-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.back-icon {
  font-size: 2rem;
}

.back-header h3 {
  color: var(--red);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 6px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}

.price-label {
  font-size: 0.88rem;
  color: #bbb;
}

.price-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-disp);
  letter-spacing: 1px;
}

.price-val.green {
  color: #2ecc71;
}

.price-section-title {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 4px;
}

.scroll-content {
  flex: 1;
  overflow-y: auto;
  padding-left: 4px;
  padding-right: 2px;
}

.scroll-content::-webkit-scrollbar {
  width: 4px;
}

.scroll-content::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 4px;
}

/* Flip Buttons */
.btn-flip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  padding: 9px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255,46,0,0.35);
}

.btn-flip:hover {
  background: var(--red-dark);
  transform: translateX(-50%) scale(1.05);
}

.back-btn {
  position: static;
  transform: none;
  margin-top: 16px;
  align-self: center;
  width: fit-content;
}

.back-btn:hover {
  transform: scale(1.05);
}
/* ============================
   FOOTER
   ============================ */
footer {
  background: #050505;
  padding: 70px 0 0;
  border-top: 2px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
  padding-bottom: 50px;
}

.footer-box h4 {
  font-family: var(--font-disp);
  font-size: 1.6rem;
  color: var(--red);
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.footer-box h4 span {
  color: #fff;
}

.footer-box p,
.footer-box ul li a {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
  text-decoration: none;
  transition: var(--transition);
}

.footer-box ul {
  list-style: none;
}

.footer-box ul li {
  margin-bottom: 8px;
}

.footer-box ul li a:hover {
  color: var(--red);
  padding-right: 6px;
}

.footer-box ul li a i {
  font-size: 0.7rem;
  margin-left: 6px;
  color: var(--red);
}

.contact p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact p i {
  color: var(--red);
  font-size: 1rem;
  width: 18px;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 1.1rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-bottom span {
  color: var(--red);
  font-weight: 700;
}

/* ============================
   WHATSAPP FLOAT
   ============================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}

.whatsapp-float i {
  font-size: 1.6rem;
  color: #fff;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr 1fr;
  }

  .img-frame img {
    height: 360px;
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .section-title { font-size: 2.2rem; }

  #hdr .container {
    flex-direction: column;
    gap: 12px;
  }

  nav ul {
    gap: 4px;
  }

  nav a {
    font-size: 0.82rem;
    padding: 6px 10px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-tags {
    gap: 8px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .cards-wrapper {
    gap: 20px;
  }

  .card {
    width: 290px;
    height: 400px;
  }

  .sign-wrapper {
    padding: 28px 20px;
  }

  .footer-grid {
    text-align: center;
    gap: 30px;
  }

  .social-links {
    justify-content: center;
  }

  .contact p {
    justify-content: center;
  }

  .footer-box ul li a {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero-tags span {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .logo-name {
    font-size: 1.4rem;
  }
}
/* التعديل الأساسي لضمان ثبات الأبعاد */
.card {
  width: 320px;
  height: 480px; /* زودنا الطول شوية عشان يشيل المحتوى مستريح */
  perspective: 1200px;
  position: relative;
  z-index: 1;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* لضمان إن الكارت اللي بيتقلب ميتداخلش مع اللي جنبه */
.flip-state:checked + .card-inner {
  transform: rotateY(180deg);
  z-index: 10; 
}

.front, .back {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

/* تعديل الـ Back ليكون مرن ويشيل كل الأسعار */
.back {
  background: var(--bg3);
  transform: rotateY(180deg);
  padding: 20px;
  border-color: rgba(255,46,0,0.3);
  justify-content: space-between; /* بيخلي زرار الرجوع دايمًا تحت */
}

.scroll-content {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-left: 5px;
}
.developer {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #aaa;
}

.developer a {
    color: #ff0404;
    text-decoration: none;
}

.developer a:hover {
    text-decoration: underline;
}
.developer-social {
    margin-top: 10px;
}

.dev-title {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1rem;
}