/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

/* Basic Layout */
body {
  background-color: #0a0a0a;
  color: #f5f5f7;
  line-height: 1.6;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* Header / Hero */
header {
  text-align: center;
  padding: 80px 20px;
  background-color: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 40px;
  position: relative;
  overflow: visible;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Header text hover effect - improved version */
header h1 span {
  position: relative;
  display: inline-block;
  background-clip: text;
  -webkit-background-clip: text;
  color: white;
  transition: color 0.5s ease;
}

header h1:hover span {
  color: rgba(255, 255, 255, 0); /* Make text transparent on hover */
  background-image: linear-gradient(90deg, #fff, #32d74b, #fff);
  background-size: 200% 100%;
  background-position: -100% 0;
  animation: gradientSwoosh 1.2s ease-in-out forwards;
}

header h1 span::before {
  display: none; /* Remove the before element approach */
}

@keyframes gradientSwoosh {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
    color: #fff;
  }
}

header .tagline {
  font-size: 1.4rem;
  font-weight: 600;
  color: #32d74b;
  margin-bottom: 20px;
}

header .description {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #aaa;
}

.cta {
  display: inline-block;
  background-color: #32d74b;
  color: #000;
  padding: 14px 30px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.cta:hover {
  background-color: #28b33e;
  transform: translateY(-2px);
}

.qr-code {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-code-img {
  width: 180px;
  height: 180px;
  margin-top: 40px;
  margin-bottom: 10px;
  border-radius: 10px;
  background-color: white;
  padding: 5px;
}

.qr-code-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.app-availability {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  font-style: italic;
}

/* Sections */
section {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 30px;
  background-color: #111;
  border-radius: 12px;
}

h2 {
  color: #f5f5f7;
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 600;
}

ul {
  list-style: none;
}

ul li {
  padding: 10px 0;
  border-bottom: 1px solid #222;
}

ul li:last-child {
  border-bottom: none;
}

/* Quote */
.quote {
  text-align: center;
  font-style: italic;
  font-size: 1.4rem;
  background-color: transparent;
  color: #32d74b;
  font-weight: 500;
}

/* FAQ */
.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #222;
  padding-bottom: 15px;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
  transition: opacity 0.2s ease;
}

.faq-question:hover {
  opacity: 0.8;
}

.faq-question:hover .icon svg {
  stroke-width: 2.5;
}

.faq-question strong {
  display: block;
  color: #32d74b;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.faq-question .icon {
  color: #32d74b;
  font-size: 1.2rem;
  transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-question .icon svg {
  width: 14px;
  height: 14px;
  stroke: #32d74b;
  stroke-width: 2;
  transition: transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);
}

.faq-answer {
  height: 0;
  opacity: 0;
  transition: height 0.4s cubic-bezier(0.215, 0.61, 0.355, 1),
              opacity 0.3s cubic-bezier(0.215, 0.61, 0.355, 1),
              margin 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  margin-top: 0;
  padding: 0 10px;
  overflow: hidden;
}

.faq-item.active .faq-answer {
  height: auto;
  opacity: 1;
  margin-top: 10px;
  padding: 0 10px 10px;
}

.faq-item.active .icon svg {
  transform: rotate(180deg);
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  padding: 30px 0;
  border-top: 1px solid #222;
  margin-top: 40px;
}

footer a {
  color: #32d74b;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 60px 20px;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  header .tagline {
    font-size: 1.2rem;
  }
  
  section {
    padding: 25px;
    margin: 0 15px 40px;
  }

  .language-switcher {
    top: 15px;
    width: 120px;
  }

  .lang-btn {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .lang-btn:not(.active) {
    display: none;
  }

  .lang-btn.active {
    display: block;
    position: relative;
  }

  .lang-btn.active::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
  }

  .language-switcher:hover .lang-btn:not(.active) {
    display: block;
  }

  .language-switcher:hover .lang-btn.active::after {
    transform: translateY(-50%) rotate(180deg);
  }
}

.logo-image {
  height: 70px;
  margin-left: 10px;
  vertical-align: middle;
}

/* Language Switcher */
.language-switcher {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.lang-btn {
  background-color: rgba(34, 34, 34, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #f5f5f7;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  width: 100%;
  text-align: left;
  position: relative;
  order: 2; /* Default order for non-active buttons */
}

.lang-btn:not(.active) {
  display: none;
  background-color: rgba(34, 34, 34, 0.95);
}

.lang-btn.active {
  display: block;
  order: 1; /* Active button appears first */
}

.lang-btn.active::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.lang-btn:hover {
  background-color: rgba(51, 51, 51, 0.95);
}

.language-switcher:hover .lang-btn:not(.active) {
  display: block;
  animation: fadeIn 0.2s ease;
}

.language-switcher:hover .lang-btn.active::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Prevent hover effects when no-hover class is present */
.language-switcher.no-hover:hover .lang-btn:not(.active) {
  display: none;
}

.language-switcher.no-hover:hover .lang-btn.active::after {
  transform: translateY(-50%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-media-container {
  max-width: 800px;
  margin: 150px auto 2rem;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

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

.social-icon svg {
  width: 100%;
  height: 100%;
  transition: fill 0.3s ease;
}

.social-icon:hover svg {
  fill: #1a1a1a;
}

.social-media-note {
  font-size: 0.9rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: default;
}

.social-media-note:hover {
  background-color: rgba(50, 215, 75, 0.1);
  color: #32d74b;
  transform: translateY(-2px);
}

@keyframes float {
  0% {
    transform: rotate(-5deg) translateY(15%);
  }
  50% {
    transform: rotate(-5deg) translateY(12%);
  }
  100% {
    transform: rotate(-5deg) translateY(15%);
  }
}

@keyframes floatRight {
  0% {
    transform: rotate(5deg) translateY(15%);
  }
  50% {
    transform: rotate(5deg) translateY(12%);
  }
  100% {
    transform: rotate(5deg) translateY(15%);
  }
}

.app-screenshots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.screenshot {
  position: absolute;
  height: 500px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.screenshot.left {
  left: 5%;
  animation: float 6s ease-in-out infinite;
}

.screenshot.right {
  right: 5%;
  animation: floatRight 6s ease-in-out infinite;
  animation-delay: -3s;
}

.screenshot:hover {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Social media container needs to be below the screenshots but still visible */
.social-media-container {
  max-width: 800px;
  margin: 150px auto 2rem;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  .screenshot {
    height: 400px;
  }
  
  .social-media-container {
    margin-top: 120px;
  }
}

@media (max-width: 992px) {
  .screenshot {
    display: none;
  }
  
  .social-media-container {
    margin-top: 2rem;
  }
}

/* Pressekit specific styles */
.pressekit-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.pressekit-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 24px;
  color: #32d74b;
  padding-top: 60px; /* Add padding to prevent overlap with language picker */
}

@media (max-width: 768px) {
  .pressekit-title {
    padding-top: 70px; /* Increase padding on mobile */
    font-size: 1.8rem; /* Slightly reduce font size on mobile */
  }
  
  .pressekit-container {
    padding: 15px;
  }
}

/* QR Code Modal */
.qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.qr-modal-content {
  position: relative;
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
}

.qr-code-img-expanded {
  width: 300px;
  height: 300px;
  border-radius: 10px;
}

.close-qr-modal {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #32d74b;
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.close-qr-modal:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .qr-code-img-expanded {
    width: 250px;
    height: 250px;
  }
  
  .close-qr-modal {
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    font-size: 16px;
  }
}
