@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --card: #141414;
  --accent: #ffd60e;
  --accent-rgb: 255, 214, 14;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-dim: #8a8a8a;
  --success: #4caf50;
  --error: #cf6679;
  --glow-subtle: rgba(var(--accent-rgb), 0.18);
  --glow: rgba(var(--accent-rgb), 0.35);
  --glow-strong: rgba(var(--accent-rgb), 0.55);
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 150px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--card);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p {
  color: var(--text-secondary);
}

.glow-text {
  text-shadow: 0 0 20px var(--glow);
}

.accent-text {
  color: var(--accent);
}

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

section {
  padding: 100px 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav.scrolled {
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.95);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 80px; /* Base height */
  width: 240px;  /* Base width */
  overflow: hidden;
  transition: var(--transition);
}

.logo img {
  height: 300%; /* Scale up the image to zoom past the black padding/whitespace */
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

nav.scrolled .logo {
  height: 50px;
  width: 150px;
}

nav.scrolled .logo img {
  height: 300%; /* Maintain zoom when scrolled */
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center; /* Perfectly centering text links and buttons */
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}

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

@media (max-width: 968px) {
  .logo {
    width: 130px !important;
    height: 45px !important;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: 0; /* Align to the window edge */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #000 !important; /* Absolute black for the menu */
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%); /* Hide off-screen initially */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 1000 !important;
  }
  
  .nav-links.active {
    transform: translateX(0) !important; /* Slide in smoothly */
  }

  .nav-links .btn {
      width: 80%;
      text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent) !important;
  color: #000000 !important;
  box-shadow: 0 0 15px var(--glow-subtle);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--glow-subtle);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  background: radial-gradient(circle at 75% 50%, var(--glow-subtle) 0%, transparent 80%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
  z-index: 5;
}

.subpage-hero {
  min-height: 40vh; /* Give it more room as on index */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height); /* Match index proportions exactly */
  padding-bottom: 80px;
  text-align: center;
  background: radial-gradient(circle at center, var(--glow-subtle) 0%, transparent 70%);
}

.subpage-hero h1 {
  font-size: 5rem; /* Match index hero title size */
  margin-bottom: 1.5rem;
  line-height: 1.1;
}


.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
  z-index: 5;
}

.hero-content {
  text-align: left;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  position: relative !important; /* Force override if it was absolute */
  top: auto !important;
  right: auto !important;
  transform: rotate(-5deg) !important;
  z-index: 5;
}

.mock-app-screen {
  width: 310px;
  height: clamp(500px, 78vh, 640px);
  background: var(--surface);
  border: 10px solid #1a1a1a;
  border-radius: 44px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 40px rgba(var(--accent-rgb), 0.1);
  padding: 15px;
  position: relative;
  overflow: hidden;
  animation: breathe 5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Status Bar */
.status-bar {
  height: 15px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

/* Mobile Responsiveness for Hero */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero p {
    margin: 0 auto 2.5rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero-visual {
    justify-content: center;
    transform: rotate(0) scale(0.9);
  }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent);
}

.stat-item p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Features */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--card);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px var(--glow-subtle);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--surface);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1.5rem;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* FitCheck / Gamification */
.fitcheck {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border-radius: var(--border-radius-xl);
  padding: 5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list {
  list-style: none;
  margin: 2rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.feature-list i {
  color: var(--accent);
  font-size: 1.2rem;
}

/* Video Vizitka Mockup */
.video-card {
  width: 260px;
  aspect-ratio: 9/16;
  background: var(--surface);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,214,14,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Info Box */
.info-box {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--accent);
}

.fitcheck::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, var(--glow-subtle) 0%, transparent 50%);
  top: -25%;
  right: -25%;
}

.fitcheck-content {
  flex: 1;
}

.fitcheck-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.streak-badge {
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* For Trainers Section */
.trainers {
  text-align: center;
}

.trainer-cta {
  background: var(--card);
  padding: 4rem;
  border-radius: var(--border-radius-lg);
  max-width: 800px;
  margin: 2rem auto;
  border: 1px solid var(--accent);
}

/* Footer */
footer {
  padding: 180px 0 40px; /* Strong top spacing */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-top: 60px; /* NEW: Ensuring margin between line and text */
  margin-bottom: 2rem;
}

.footer-about .logo {
  height: 80px;
  width: 220px;
  justify-content: flex-start; /* Footers usually align left */
}

.footer-about .logo img {
  height: 220px;
}

.footer-about p {
  margin-top: 0.5rem;
  max-width: 300px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  text-decoration: none;
  color: var(--text-dim);
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Animations */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 968px) {
  .hero h1 { font-size: 3.5rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .fitcheck { flex-direction: column; padding: 3rem; text-align: center; }
  .hero-visual { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-content { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; text-align: center; }
}
