/*************************************************************
  1) Font Import (Optional)
*************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

/*************************************************************
  2) Base Styles & Resets
*************************************************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  min-height: 100%;
  background: #121212; /* dark background */
  color: #f5f5f5;      /* light text */
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/*************************************************************
  3) Preloader
*************************************************************/
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  background: #000;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s; /* replaced var(--transition-speed) with 0.4s */
}
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f5f5f5;  /* replaced var(--color-text) */
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*************************************************************
  4) Intro Overlay
*************************************************************/
#intro-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-content {
  text-align: center;
  color: #fff;
  max-width: 300px;
  padding: 20px;
}
.intro-content h2 {
  margin-bottom: 15px;
}
.intro-content p {
  margin-bottom: 20px;
}
.btn-intro {
  background: #1db954; /* replaced var(--color-primary) */
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 1rem;
  transition: 0.3s ease;
}
.btn-intro:hover {
  transform: translateY(-3px);
}

/*************************************************************
  5) Header & Nav (Burger Menu)
*************************************************************/
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 70px; /* replaced var(--header-height) */
  background: #1c1c1c; /* replaced var(--color-bg-alt) */
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 1000;
}
.container {
  width: 90%;
  max-width: 1200px; /* replaced var(--max-width) */
  margin: 0 auto;
  position: relative;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 2rem;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
}
.logo span {
  color: #1db954; /* replaced var(--color-primary) */
  margin-left: 6px;
}
/* Nav Toggle & Navigation */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle-label span {
  width: 25px;
  height: 3px;
  background: #f5f5f5; /* replaced var(--color-text) */
  margin: 5px;
  display: block;
  transition: transform 0.4s; /* replaced var(--transition-speed) */
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.4s; /* replaced var(--transition-speed) */
}
.nav-links a:hover {
  color: #1db954; /* replaced var(--color-primary) */
}
/* Burger menu for smaller screens */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;  /* replaced var(--header-height) */
    right: 0;
    width: 180px;
    height: calc(100% - 70px);
    background: #1c1c1c; /* replaced var(--color-bg-alt) */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.4s; /* replaced var(--transition-speed) */
  }
  .nav-toggle-label {
    display: block;
  }
  .nav-toggle:checked + .nav-toggle-label span {
    background: #1db954; /* replaced var(--color-primary) */
    transform: rotate(90deg);
  }
  .nav-toggle:checked ~ .nav-links {
    transform: translateX(0);
  }
}

/*************************************************************
  6) Hero with Video
*************************************************************/
.hero {
  position: relative;
  width: 100%;
  margin-top: 70px; /* replaced var(--header-height) */
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #f5f5f5; /* replaced var(--color-text) */
}
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); 
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
}
.hero-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero-desc {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 30px;
  color: #d2d2d2;
}

/*************************************************************
  7) Section & Layout
*************************************************************/
.section {
  width: 100%;
  padding: 80px 2rem; /* replaced var(--section-padding) with 80px */
  text-align: center;
}
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.section-desc {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #cccccc;
}

/*************************************************************
  8) Buttons & Hover
*************************************************************/
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 50px;
  background: #1db954; /* replaced var(--color-primary) */
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform 0.4s, box-shadow 0.4s; /* replaced var(--transition-speed) */
  position: relative;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.arrow-hover {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
}
.arrow-hover .arrow {
  margin-left: 8px;
  transition: transform 0.4s; /* replaced var(--transition-speed) */
}
.btn:hover .arrow {
  transform: translateX(5px);
}

/*************************************************************
  9) Card / Pricing Grid
*************************************************************/
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 2rem;
  justify-items: center;
}
.card {
  background: #222;
  border-radius: 8px;
  padding: 30px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.4s; /* replaced var(--transition-speed) */
}
.card:hover {
  transform: translateY(-5px);
}
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #1db954; /* replaced var(--color-primary) */
}
.card p {
  color: #cfcfcf;
  margin-bottom: 1rem;
}
.card-price {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: #fff;
}
.card-price span {
  font-size: 0.9rem;
  color: #999;
}
.card ul {
  margin-bottom: 1.5rem;
}
.card ul li {
  margin: 6px 0;
}

/*************************************************************
  10) Footer
*************************************************************/
.footer {
  background: #1c1c1c; /* replaced var(--color-bg-alt) */
  padding: 30px 2rem;
  text-align: center;
}
.footer p {
  font-size: 0.85rem;
  color: #888;
}

/*************************************************************
  11) Animations (Fade In)
*************************************************************/
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards; /* replaced var(--transition-speed) with 0.4s */
  animation-delay: 0.2s; 
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px); /* replaced var(--fade-distance) with 20px */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/*************************************************************
  12) Media Queries
*************************************************************/
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
}
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-desc {
    font-size: 0.9rem;
  }
  .btn {
    width: 100%;
    margin-top: 10px;
  }
  .arrow-hover {
    margin-left: 0;
  }
}

/*************************************************************
  13) FAQ
*************************************************************/
.faq-section {
  padding: 60px 20px;
  color: #f5f5f5; /* Text deschis pentru lizibilitate */
}

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

.faq-section .section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #1db954; /* Accente verzi pentru titlu */
}

.faq-item {
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-5px);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  position: relative;
  font-size: 1.2rem;
  font-weight: 600;
  background-color: #2a2a2a;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #3a3a3a;
}

.faq-question::after {
  content: '\25BC'; /* Simbol sageata jos */
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(180deg); /* Rotirea sage?ii */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #2a2a2a;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Suficient pentru con?inut */
  padding: 20px;
}

.faq-answer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Stil pentru Liste */
.faq-answer ul {
  margin-top: 10px;
  padding-left: 20px;
}

.faq-answer ul li {
  margin-bottom: 8px;
  list-style-type: disc;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .faq-section .section-title {
    font-size: 2rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-answer p {
    font-size: 0.95rem;
  }
}

/*************************************************************
  14) Upgrade
*************************************************************/
/* Upgrade Section Styling */
.upgrade-section {
  padding: 60px 20px;
  color: #f5f5f5;
}
.upgrade-section .container {
  max-width: 600px;
  background-color: #1c1c1c;
  margin: 0 auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.upgrade-section .section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: #1db954;
}
.upgrade-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}
.upgrade-form input[type="text"],
.upgrade-form input[type="password"],
.upgrade-form select {
  width: 100%;
  padding: 14px 20px;
  margin: 8px 0 20px 0;
  display: inline-block;
  border: 1px solid #444;
  border-radius: 25px; /* More oval shape */
  box-sizing: border-box;
  background-color: #2a2a2a;
  color: #f5f5f5;
  font-size: 1rem;
}
.upgrade-form input::placeholder {
  color: #aaa;
}
.upgrade-form button {
  width: 100%;
  background-color: #1db954;
  color: white;
  padding: 14px 20px;
  margin: 8px 0 0 0;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}
.upgrade-form button:hover {
  background-color: #17a44b;
}
/* Message Styling */
.message {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
}
.message.error {
  background-color: #ff4c4c;
  color: white;
}
.message.success {
  background-color: #1db954;
  color: white;
}
/* Password Toggle Icon Styling */
.password-container {
  position: relative;
}
.password-container i {
  position: absolute;
  right: 20px;
  top: 45%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #aaa;
  font-size: 1.2rem;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
  .upgrade-section .section-title {
    font-size: 2rem;
  }
  .upgrade-form label,
  .upgrade-form input[type="text"],
  .upgrade-form input[type="password"],
  .upgrade-form select,
  .upgrade-form button {
    font-size: 1rem;
  }
  .toggle-container {
    flex-direction: column;
  }

  .renew-label {
    margin: 5px 0;
  }
}

/*************************************************************
  15) Down Arrow Button Styling
*************************************************************/
.down-arrow-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(29, 185, 84, 0.8); /* Semi-transparent green */
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 2; /* Ensure it's above other elements */
}

.down-arrow-button:hover {
  background-color: rgba(23, 164, 75, 0.9);
  transform: translateX(-50%) scale(1.1);
}

.down-arrow-button i {
  color: white;
  font-size: 1.5rem;
}

/* Bounce Animation */
.down-arrow-button {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

/*************************************************************
  16) Renew Section
*************************************************************/
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.renew-section {
  padding: 60px 20px;
  color: #f5f5f5;
}

.renew-section .container {
  max-width: 600px;
  background-color: #1c1c1c;
  margin: 0 auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.renew-section .section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: #1db954;
}

.renew-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}

.renew-form input[type="text"],
.renew-form input[type="password"],
.renew-form input[type="email"],
.renew-form select {
  width: 100%;
  padding: 14px 20px;
  margin: 8px 0 20px 0;
  display: inline-block;
  border: 1px solid #444;
  border-radius: 25px; /* More oval shape */
  box-sizing: border-box;
  background-color: #2a2a2a;
  color: #f5f5f5;
  font-size: 1rem;
}

.renew-form input::placeholder {
  color: #aaa;
}

.renew-form button {
  width: 100%;
  background-color: #1db954;
  color: white;
  padding: 14px 20px;
  margin: 8px 0 0 0;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.renew-form button:hover {
  background-color: #17a44b;
  transform: scale(1.05);
}

.renew-label {
  margin: 0 10px;
  font-size: 1rem;
  color: #f5f5f5;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #1db954;
}

input:focus + .slider {
  box-shadow: 0 0 1px #1db954;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .renew-section .section-title {
    font-size: 2rem;
  }
  .renew-form label,
  .renew-form input[type="text"],
  .renew-form input[type="password"],
  .renew-form input[type="email"],
  .renew-form select,
  .renew-form button {
    font-size: 1rem;
  }
  .toggle-container {
    flex-direction: column;
  }

  .renew-label {
    margin: 5px 0;
  }
}

/*************************************************************
  17) Key Check Section
*************************************************************/
.keycheck-section {
    padding: 60px 20px;
    background-color: #121212;
    color: #f5f5f5;
}
.keycheck-section .container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #1c1c1c;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.keycheck-section .section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #1db954;
}
.keycheck-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}
.keycheck-form input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    margin: 8px 0 20px 0;
    display: inline-block;
    border: 1px solid #444;
    border-radius: 25px; /* More oval shape */
    box-sizing: border-box;
    background-color: #2a2a2a;
    color: #f5f5f5;
    font-size: 1rem;
}
.keycheck-form input::placeholder {
    color: #aaa;
}
.keycheck-form button {
    width: 100%;
    background-color: #1db954;
    color: white;
    padding: 14px 20px;
    margin: 8px 0 0 0;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.keycheck-form button:hover {
    background-color: #17a44b;
    transform: scale(1.05);
}

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .keycheck-section .section-title {
        font-size: 2rem;
    }
    .keycheck-form label,
    .keycheck-form input[type="text"],
    .keycheck-form button {
        font-size: 1rem;
    }
}