/* ==========================================================================
   RespiraLab Berlin - Main Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #0E1316;
  color: #E8F6F3;
  overflow-x: hidden;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(14, 19, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(102, 221, 209, 0.3);
}

/* Glow Effects */
.glow-teal {
  box-shadow: 0 0 20px rgba(102, 221, 209, 0.3);
}

.glow-teal-strong {
  box-shadow: 0 0 40px rgba(102, 221, 209, 0.5);
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #66DDD1, #2FB5A9);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Sticky Navbar */
nav {
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(14, 19, 22, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax Container */
.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateY(0);
  transition: transform 0.1s ease-out;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #66DDD1, #2FB5A9);
  color: #0E1316;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(102, 221, 209, 0.4);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 221, 209, 0.6);
}

.btn-primary:focus {
  outline: 2px solid #66DDD1;
  outline-offset: 2px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #66DDD1;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  border: 2px solid #66DDD1;
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: rgba(102, 221, 209, 0.2);
  transform: translateY(-2px);
}

.btn-secondary:focus {
  outline: 2px solid #66DDD1;
  outline-offset: 2px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-btn {
  background: transparent;
  color: #E8F6F3;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.lang-btn.active {
  background: #66DDD1;
  color: #0E1316;
}

.lang-btn:hover {
  background: rgba(102, 221, 209, 0.2);
}

.lang-btn:focus {
  outline: 2px solid #66DDD1;
  outline-offset: 2px;
}

/* Breathing Logo Animation */
.breathing-logo {
  animation: breathe 10s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(102, 221, 209, 0.4));
  text-shadow: 0 0 30px rgba(102, 221, 209, 0.3);
  transition: filter 0.3s ease;
  letter-spacing: 0.05em;
}

.breathing-logo:hover {
  filter: drop-shadow(0 0 30px rgba(102, 221, 209, 0.7));
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  60% {
    transform: scale(1.08);
  }
}

/* Breathing Circle Animation */
#breathing-canvas {
  filter: drop-shadow(0 0 30px rgba(102, 221, 209, 0.6));
}

/* Gallery Hover Effects */
.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.3s ease;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 221, 209, 0.15);
  pointer-events: none;
  z-index: 1;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(102, 221, 209, 0.2);
  padding: 1.5rem 0;
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #66DDD1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(232, 246, 243, 0.8);
  line-height: 1.7;
}

.faq-answer.open {
  max-height: 500px;
  padding-top: 1rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.open {
  transform: rotate(180deg);
}

/* Form Styles */
input, textarea, select {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(102, 221, 209, 0.2);
  color: #E8F6F3;
  padding: 1.25rem 2rem !important;
  border-radius: 0.5rem !important;
  width: 100%;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 3.5rem !important;
}

input:hover, textarea:hover, select:hover {
  border-color: rgba(102, 221, 209, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #66DDD1;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(102, 221, 209, 0.15);
  transform: translateY(-1px);
}

input::placeholder, textarea::placeholder {
  color: rgba(232, 246, 243, 0.4);
}

label {
  font-weight: 500;
  color: #E8F6F3;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2366DDD1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
}

select option {
  background-color: #0E1316;
  color: #E8F6F3;
  padding: 0.75rem;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input[type="checkbox"] {
  width: auto;
  cursor: pointer;
  accent-color: #66DDD1;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 5rem;
  right: 2rem;
  background: #66DDD1;
  color: #0E1316;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  z-index: 10000;
  font-weight: 600;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.error {
  background: #ef4444;
  color: white;
}

/* KPI Cards */
.kpi-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(102, 221, 209, 0.1);
  border: 1px solid rgba(102, 221, 209, 0.3);
  transition: all 0.3s ease;
}

.kpi-card:hover {
  background: rgba(102, 221, 209, 0.15);
  transform: translateY(-4px);
}

/* Testimonial Cards */
.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(102, 221, 209, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 221, 209, 0.4);
  transform: translateY(-4px);
}

/* Step Cards */
.step-card {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(102, 221, 209, 0.2);
  transition: all 0.3s ease;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 221, 209, 0.4);
}

/* Section Padding */
.section-padding {
  padding: 6rem 1.5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 1.5rem;
  }
}
