/* ==========================================
   GymFroog - Modern Static Website Styles
   ========================================== */

/* === CSS Variables === */
:root {
  /* Colors */
  --primary-color: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --secondary-color: #0d9488;
  --accent-color: #f59e0b;

  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --text-light: #9ca3af;

  --bg-white: #ffffff;
  --bg-gray-50: #f9fafb;
  --bg-gray-100: #f3f4f6;
  --bg-gray-900: #111827;

  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* === Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-base);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  color: var(--text-gray);
  line-height: 1.7;
}

/* === Container === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* === Navigation === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-dark);
  transition: transform var(--transition-base);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.navbar-brand span {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-link {
  color: var(--text-gray);
  font-weight: 500;
  font-size: var(--font-size-base);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--bg-gray-50);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #0d9488 100%);
  color: white;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(52, 211, 153, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(13, 148, 136, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-md);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: white;
}

.hero h1 .highlight {
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(17, 24, 39, 1);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.btn-download:hover {
  background-color: rgba(31, 41, 55, 1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-download-alt {
  background-color: white;
  color: var(--text-dark);
}

.btn-download-alt:hover {
  background-color: var(--bg-gray-100);
}

.download-icon {
  width: 32px;
  height: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: #fbbf24;
  display: block;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
}

.hero-image {
  position: relative;
  animation: fadeInRight 0.8s ease-out;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

/* === Features Section === */
.features {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #dbeafe;
  color: #1e40af;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.section-title {
  margin-bottom: var(--spacing-md);
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--text-gray);
  max-width: 800px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  background-color: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-color);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  transition: transform var(--transition-base);
}

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

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

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

/* === How It Works === */
.how-it-works {
  padding: 6rem 0;
  background: linear-gradient(to bottom, var(--bg-gray-50), white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2xl);
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  box-shadow: var(--shadow-lg);
}

.step h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-sm);
}

.step p {
  font-size: var(--font-size-lg);
  color: var(--text-gray);
}

/* === CTA Section === */
.cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #0d9488 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.cta h2 {
  font-size: var(--font-size-5xl);
  color: white;
  margin-bottom: var(--spacing-md);
}

.cta p {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.cta-features {
  display: flex;
  gap: var(--spacing-xl);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* === Footer === */
.footer {
  background: linear-gradient(to bottom, #111827, #1f2937);
  color: #9ca3af;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

.footer-description {
  color: #9ca3af;
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #9ca3af;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background-color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: white;
}

.footer-section h4 {
  color: white;
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.footer-links a {
  color: #9ca3af;
  transition: color var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: var(--spacing-lg);
  text-align: center;
  color: #6b7280;
}

/* === Content Pages === */
.page-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #0d9488 100%);
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
  position: relative;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-md);
}

.page-header h1 {
  font-size: var(--font-size-5xl);
  color: white;
  margin-bottom: var(--spacing-sm);
}

.page-meta {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.8);
}

.page-content {
  padding: 4rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-xl);
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.content-section h2 {
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 3px solid var(--primary-color);
}

.content-section h3 {
  color: var(--text-dark);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.content-section ul {
  margin-left: var(--spacing-lg);
  color: var(--text-gray);
}

.content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* === Contact Form === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.info-card {
  padding: var(--spacing-lg);
  background-color: white;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-color);
  transition: all var(--transition-base);
}

.info-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
}

.info-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.contact-form {
  background-color: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

/* === Responsive Design === */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .language-switcher {
    justify-content: center;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }

  .cta h2 {
    font-size: 2.5rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .content-section {
    padding: var(--spacing-lg);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }
}


@media (min-width: 769px) {
  [dir="rtl"] .nav-menu {
      flex-direction: row-reverse;
  }
}

[dir="rtl"] .hero-content {
    direction: rtl;
}

[dir="rtl"] .navbar .container {
  flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-link {
  text-align: right;
}
