/* =============================================
   RHAUAN PERSONAL — STYLES.CSS (REDESIGN)
   ============================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #034AD9;
  --blue-dark:  #0238a8;
  --blue-glow:  rgba(3, 74, 217, 0.55);
  --white:      #ffffff;
  --off-white:  #f4f5f8;
  --gray-light: #e8eaf0;
  --gray:       #6b7280;
  --dark:       #0a0c12;
  --card-bg:    #ffffff;
  --bg:         #ffffff;
  --text:       #111827;
  --text-muted: #6b7280;
  --border:     #e2e6f0;
  --nav-bg:     rgba(255,255,255,0.92);
  --section-alt:#f4f6fc;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Nunito', sans-serif;
  --shadow-card: 0 4px 24px rgba(3,74,217,.10);
  --shadow-glow: 0 0 30px 4px rgba(3,74,217,.35);
  --radius:     14px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

body.dark-mode {
  --bg:         #0d0f18;
  --text:       #e8eaf0;
  --text-muted: #9ca3af;
  --card-bg:    #161927;
  --border:     #252840;
  --nav-bg:     rgba(13,15,24,0.95);
  --section-alt:#111323;
  --off-white:  #161927;
  --shadow-card: 0 4px 24px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 24px rgba(3,74,217,.08);
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color var(--transition);
}

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

.nav-links .nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
}

.nav-links .nav-cta:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

#dark-mode-button {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 50px;
  cursor: pointer;
  font-size: .9rem;
  transition: background var(--transition);
}
#dark-mode-button:hover { background: var(--gray-light); }

.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger-menu .bar {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  gap: 36px;
  z-index: 999;
}
.nav-links.open a { font-size: 1.8rem; color: #fff; }
.nav-links.open .nav-cta { padding: 14px 36px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px var(--blue-glow);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--blue-glow);
}
.btn-primary.btn-large { padding: 18px 42px; font-size: 1.1rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.6);
  transition: border-color var(--transition), background var(--transition);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* =============================================
   HERO
   ============================================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.background-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  transform: scale(1.05);
}
.background-img.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(3,56,168,.82) 0%,
    rgba(3,74,217,.72) 50%,
    rgba(2,20,70,.88) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  animation: heroEnter .9s ease-out both;
}

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  height: 90px;
  width: auto;
  margin-bottom: 18px;
  animation: pulse 4.6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.4));
}

.hero-tag {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 16px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.25);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: .95;
  color: #fff;
  letter-spacing: .03em;
  margin-bottom: 18px;
  text-shadow: 0 2px 40px rgba(0,0,0,.4);
}

.hero-highlight {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
}

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.82);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}
.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%,100% { opacity: 1; top: 6px; }
  50%      { opacity: .3; top: 20px; }
}

/* =============================================
   STATS
   ============================================= */
.stats-section {
  background: var(--blue);
  padding: 56px 20px;
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item p {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-top: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: #fff;
  line-height: 1;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: rgba(255,255,255,.8);
  vertical-align: super;
}

/* =============================================
   SECTION COMMONS
   ============================================= */
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(3,74,217,.1);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
}
.section-header h2 strong {
  font-weight: 900;
  color: var(--blue);
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* =============================================
   ABOUT
   ============================================= */
.about-section {
  padding: 100px 20px;
  background: var(--bg);
}

.about-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.trainer-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-glow);
  display: block;
  transition: transform .6s ease;
}
.trainer-img:hover { transform: scale(1.03); }

.about-img-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--blue);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
  font-size: .85rem;
  line-height: 1.3;
  box-shadow: 0 4px 20px rgba(3,74,217,.4);
}
.about-img-badge span { display: block; }

.about-text .section-label { display: inline-block; margin-bottom: 16px; }

.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 28px;
}
.about-text h2 strong { font-weight: 900; color: var(--blue); }

.about-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.about-text p strong { color: var(--text); font-weight: 700; }
.about-text .btn-primary { margin-top: 16px; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section {
  background: var(--section-alt);
  padding: 100px 20px;
  overflow: hidden;
}

.testimonials-track-wrap {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.testimonial-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  flex: 0 0 calc(33.33% - 16px);
  min-width: 280px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.tcard-quote {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: .8;
  color: var(--blue);
  opacity: .25;
  position: absolute;
  top: 20px;
  left: 26px;
}

.testimonial-card p {
  font-size: .97rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tcard-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue);
  box-shadow: 0 0 12px var(--blue-glow);
}
.tcard-author strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.tcard-author span {
  font-size: .8rem;
  color: var(--text-muted);
}

.tcard-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.tcard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.tcard-dot.active {
  background: var(--blue);
  transform: scale(1.4);
}

/* =============================================
   PLANS
   ============================================= */
.plans-section {
  padding: 100px 20px;
  background: var(--bg);
}

.plans-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.plan-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 44px 32px 36px;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}
.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
}
.plan-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue), var(--shadow-glow);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
}

.plan-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.plan-card h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: .05em;
  color: var(--blue);
  margin-bottom: 28px;
}

.plan-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.plan-card ul li {
  font-size: .95rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.plan-card ul li:last-child { border-bottom: none; }
.plan-card ul li:not([style]):first-child { color: var(--text); }

.btn-plan {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px var(--blue-glow);
}
.btn-plan:hover { background: var(--blue-dark); transform: translateY(-2px); }
.plan-card.featured .btn-plan { padding: 16px 38px; font-size: 1rem; }

/* =============================================
   INSTAGRAM
   ============================================= */
.instagram-section {
  background: var(--section-alt);
  padding: 100px 20px;
}

.ig-placeholder {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 10px;
  margin-bottom: 36px;
}

.ig-tile--large {
  grid-row: span 2;
  grid-column: span 1;
}

.ig-tile { border-radius: 10px; overflow: hidden; }

.ig-tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ig-tile-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.ig-tile:hover .ig-tile-inner img { transform: scale(1.08); }

.ig-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3,74,217,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}
.ig-tile:hover .ig-tile-overlay { opacity: 1; }

.ig-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: #fff;
  padding: 15px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(220,39,67,.4);
}
.ig-follow-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(220,39,67,.5); }

/* =============================================
   CTA STRIP
   ============================================= */
.cta-strip {
  background: var(--blue);
  padding: 80px 20px;
  text-align: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: .05em;
  color: #fff;
  margin-bottom: 14px;
}
.cta-strip p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
}
.cta-strip .btn-primary {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.cta-strip .btn-primary:hover {
  background: #e8f0ff;
  color: var(--blue-dark);
}

/* =============================================
   FLOATING BUTTONS
   ============================================= */
.float-btn {
  position: fixed;
  right: 20px;
  z-index: 200;
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  animation: bounce 2.4s ease-in-out infinite;
  transition: transform var(--transition);
}
.float-btn:hover { animation-play-state: paused; transform: scale(1.12); }
.float-btn img { width: 100%; height: 100%; }

.whatsapp-float { bottom: 22px; }
.instagram-float { bottom: 94px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--dark);
  padding: 60px 20px 32px;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  height: 52px;
  margin-bottom: 28px;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 6px;
}
.footer-dev {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-dev a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-dev a:hover { color: #fff; }

/* =============================================
   SCROLL REVEAL HELPERS
   ============================================= */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-up { opacity: 0; transform: translateY(24px); animation: revealUp .6s ease both; }
@keyframes revealUp {
  to { opacity: 1; transform: none; }
}

/* =============================================
   KEYFRAMES
   ============================================= */
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 420px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { max-width: 340px; margin: 0 auto; }
  .testimonial-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 768px) {
  .navbar { padding: 12px 20px; }
  .nav-links { display: none; }
  .hamburger-menu { display: flex; }
  .hero-title { font-size: clamp(3.2rem, 14vw, 7rem); }
  .hero-btns { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ig-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; }
  .ig-tile--large { grid-row: span 1; }
  .testimonial-card { flex: 0 0 calc(100% - 0px); }
  .about-section { padding: 72px 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .ig-grid { grid-template-columns: repeat(2,1fr); height: auto; }
  .ig-grid .ig-tile { height: 140px; }
  .footer-links { gap: 16px; }
}
