/* ============================================
   FITBLOOM - Brutalist Sci-Fi Wellness
   Резкий геометричний стиль з неоновими акцентами
   ============================================ */

/* CSS Variables - Неонова палітра */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #121214;
  --bg-card: #161618;
  --bg-glass: rgba(22, 22, 24, 0.9);
  
  --accent-primary: #84cc16;
  --accent-secondary: #22d3ee;
  --accent-tertiary: #a855f7;
  --accent-gradient: linear-gradient(135deg, #84cc16 0%, #22d3ee 50%, #a855f7 100%);
  --accent-gradient-vertical: linear-gradient(180deg, #84cc16 0%, #22d3ee 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(132, 204, 22, 0.15) 0%, rgba(34, 211, 238, 0.15) 100%);
  
  --lime: #84cc16;
  --cyan: #22d3ee;
  --purple: #a855f7;
  --neon-glow: 0 0 30px rgba(132, 204, 22, 0.4);
  --cyan-glow: 0 0 30px rgba(34, 211, 238, 0.4);
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-light: #ffffff;
  
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px rgba(132, 204, 22, 0.25);
  --shadow-colorful: 0 0 40px rgba(34, 211, 238, 0.2);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 0;
  --radius-round: 0;
  --radius-organic: 0;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(132, 204, 22, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: glitchText 5s infinite;
}

@keyframes glitchText {
  0%, 90%, 100% { opacity: 1; filter: none; }
  92% { opacity: 0.9; filter: translate(-2px, 2px); }
  94% { opacity: 1; filter: translate(2px, -2px); }
  96% { opacity: 0.9; filter: translate(-2px, -2px); }
  98% { opacity: 1; filter: none; }
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--lime);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--cyan);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.85;
}

a {
  color: var(--lime);
  text-decoration: none;
  transition: var(--transition-normal);
  position: relative;
}

a:hover {
  color: var(--cyan);
  text-shadow: var(--cyan-glow);
}

/* Header - Brutalist */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--lime);
  box-shadow: 0 0 20px rgba(132, 204, 22, 0.1);
  transition: var(--transition-normal);
}

.header.scrolled {
  padding: 1rem 0;
  box-shadow: 0 0 30px rgba(132, 204, 22, 0.15);
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--lime);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: var(--neon-glow);
  padding: 0.5rem 1rem;
  border: 2px solid var(--lime);
  transition: var(--transition-normal);
}

.logo:hover {
  color: var(--bg-primary);
  background: var(--lime);
  box-shadow: var(--neon-glow);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: var(--transition-normal);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-normal);
}

.nav-link:hover {
  color: var(--lime);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 0.75rem;
  transition: var(--transition-normal);
}

.mobile-menu-toggle:hover {
  background: rgba(132, 204, 22, 0.1);
}

.mobile-menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--lime);
  transition: var(--transition-normal);
}

/* Hero - Sci-Fi */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, transparent 49%, rgba(132, 204, 22, 0.03) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(34, 211, 238, 0.02) 50%, transparent 51%);
  background-size: 60px 60px;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero[style*="background-image"]::before {
  background: 
    linear-gradient(rgba(10, 10, 11, 0.85), rgba(10, 10, 11, 0.9)),
    linear-gradient(90deg, transparent 49%, rgba(132, 204, 22, 0.05) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(34, 211, 238, 0.03) 50%, transparent 51%);
  background-size: cover, 80px 80px, 80px 80px;
}

.hero-content {
  max-width: 1200px;
  text-align: center;
  padding: 4rem 3rem;
  position: relative;
  z-index: 1;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 2px solid var(--lime);
  margin: 3rem;
  box-shadow: var(--neon-glow), inset 0 0 60px rgba(132, 204, 22, 0.05);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

.hero-content::before {
  content: '▶';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 0.8rem;
  color: var(--lime);
  animation: blink 1.5s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-title {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.2s both;
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid var(--lime);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 1;
  font-family: inherit;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--lime);
  transition: var(--transition-normal);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: transparent;
  color: var(--lime);
  box-shadow: 0 0 20px rgba(132, 204, 22, 0.2);
}

.btn-primary:hover {
  color: var(--bg-primary);
  box-shadow: var(--neon-glow);
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn-secondary:hover {
  color: var(--bg-primary);
  border-color: var(--cyan);
}

.btn-secondary::before {
  background: var(--cyan);
}

/* Sections */
.section {
  padding: 8rem 2rem;
  position: relative;
}

.section-container {
  max-width: 1600px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  animation: pulseWidth 2s ease-in-out infinite;
}

@keyframes pulseWidth {
  0%, 100% { width: 60px; opacity: 0.8; }
  50% { width: 100px; opacity: 1; }
}

/* Cards - Geometric */
.card {
  background: var(--bg-card);
  border: 2px solid rgba(132, 204, 22, 0.2);
  padding: 2.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-gradient);
  transition: var(--transition-slow);
}

.card:hover {
  border-color: var(--lime);
  box-shadow: var(--neon-glow), inset 0 0 40px rgba(132, 204, 22, 0.05);
  transform: translateX(8px);
}

.card:hover::before {
  height: 100%;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Image Cards */
.image-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
  border: 2px solid rgba(132, 204, 22, 0.2);
  transition: var(--transition-normal);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.image-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--cyan-glow);
  transform: scale(1.02);
}

.image-card:hover img {
  transform: scale(1.1);
}

.image-card[style*="background-image"],
.card[style*="background-image"] {
  transition: var(--transition-normal);
  background-repeat: no-repeat;
}

.image-card[style*="background-image"]:hover,
.card[style*="background-image"]:hover {
  transform: scale(1.03);
  box-shadow: var(--cyan-glow);
}

.card[style*="background-image"] {
  position: relative;
}

.card[style*="background-image"]:not([style*="linear-gradient"])::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 0;
}

.card[style*="background-image"] > * {
  position: relative;
  z-index: 1;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border: 2px solid rgba(132, 204, 22, 0.3);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-normal);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Contact Section */
#contact {
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 11, 0.7);
  z-index: 0;
}

#contact .section-container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 2px solid rgba(132, 204, 22, 0.2);
  transition: var(--transition-normal);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.contact-item:hover {
  border-color: var(--lime);
  box-shadow: var(--neon-glow);
  transform: translateY(-5px);
}

.contact-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: var(--transition-normal);
}

.contact-item:hover .contact-icon {
  background: var(--lime);
  color: var(--bg-primary);
  box-shadow: var(--neon-glow);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 4rem 2rem 2rem;
  border-top: 2px solid var(--lime);
  margin-top: 6rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.5;
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  transition: var(--transition-normal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link:hover {
  color: var(--lime);
  text-shadow: var(--neon-glow);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease both;
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(132, 204, 22, 0.1);
  z-index: 9999;
}

.scroll-indicator-bar {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: var(--neon-glow);
}

/* Decorative - Geometric blobs */
.decorative-leaf {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.06;
  border: 1px solid var(--lime);
  animation: floatGeometric 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatGeometric {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -30px) rotate(90deg); }
  66% { transform: translate(-15px, 20px) rotate(180deg); }
}

/* Beauty accent - minimal */
.beauty-accent {
  position: relative;
  display: inline-block;
}

.beauty-accent::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -15px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--lime);
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.beauty-accent::after {
  display: none;
}

/* Gradient accent */
.gradient-accent {
  position: relative;
  display: inline-block;
}

.gradient-accent::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-normal);
}

/* Organic shape - geometric override */
.organic-shape {
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
  transition: var(--transition-normal);
}

.organic-shape:hover {
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  transform: translateY(-5px);
}

/* Card overrides */
.card:nth-child(odd),
.card:nth-child(even) {
  transform: none;
}

.card:hover {
  transform: translateX(8px) !important;
}

.contact-item:nth-child(1),
.contact-item:nth-child(2),
.contact-item:nth-child(3) {
  transform: none;
}

.contact-item:hover {
  transform: translateY(-5px) !important;
}

/* Hero animation */
.hero-content {
  animation: heroFadeIn 1s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(-100%);
    transition: var(--transition-normal);
    border-bottom: 2px solid var(--lime);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

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

  .section {
    padding: 6rem 1.5rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding-top: 120px;
    background-attachment: scroll !important;
  }
  
  #contact {
    background-attachment: scroll !important;
  }
  
  .hero-content {
    margin: 1.5rem;
    padding: 2.5rem 2rem;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  }
  
  .section-container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  .product-images-grid {
    grid-template-columns: 1fr !important;
  }
  
  .product-images-grid > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  
  #modal-form > div {
    grid-template-columns: 1fr !important;
  }
  
  #modal-form > div > div:first-child {
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .header-container {
    padding: 0 1.5rem;
  }

  .logo {
    font-size: 1.25rem;
    letter-spacing: 0.1em;
  }

  .hero-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .btn {
    padding: 0.875rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }
  
  .section {
    padding: 5rem 1rem;
  }
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3rem;
}

.u-body,
.u-container-style,
.u-sheet {
  background: transparent !important;
}
