:root {
  --primary-color: #ffc300;
  --secondary-color: #1a1a1a;
  --text-color: #e0e0e0;
  --dark-bg: #0a0a0a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --header-blur-bg: rgba(18, 18, 18, 0.8);
  --btn-hover-bg: #ffc300;
  --btn-hover-text: #121212;
  --glass-blur: blur(15px);
  --light-text: #aaaaaa;
  --border-color: rgba(212, 175, 55, 0.2);
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

body {
  -webkit-tap-highlight-color: transparent;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Verdana", Geneva, Tahoma, sans-serif;
  outline: none !important;
  box-shadow: none !important;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles */
header {
  background: var(--header-blur-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
}

.logo {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo span {
  color: var(--text-color);
}

/* Offer Bar */
.offer-bar {
  flex: 1;
  overflow: hidden;
  background: transparent;
  padding: 0 20px;
  margin-left: 20px;
  border: none;
  box-shadow: none;
}

.offer-item {
  color: var(--primary-color);
  font-weight: 600;
}

.offer-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 10s linear infinite;
  padding-left: 100%;
}

.offer-item {
  display: inline-flex;
  align-items: center;
  margin-right: 30px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-color);
}

/* Product Detail Section */
.product-detail {
  padding: 13.5rem 0;
}

.product-container {
  display: flex;
  gap: 5rem;
  align-items: flex-start;
  margin-top: 10rem;
}

.main-image {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  margin-top: 3rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img {
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.main-image:hover img {
  transform: scale(1.03);
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: 3.5rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.product-title span {
  color: var(--primary-color);
}

.product-subtitle {
  font-size: 1.8rem;
  color: var(--light-text);
  margin-bottom: 3rem;
}

.product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
  width: 100%;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
}

.discounted-price {
  font-size: 3rem;
  color: var(--primary-color);
  font-weight: 600;
}

.original-price {
  font-size: 2rem;
  color: var(--light-text);
  text-decoration: line-through;
}

.price-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.price-actions .btn {
  min-width: 120px;
  padding: 1rem 1.5rem;
  font-size: 1.4rem;
  white-space: nowrap;
}

.price-actions .btn .fa-whatsapp {
  font-size: 1.8rem;
}

.price-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.product-meta {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.6rem;
  color: var(--light-text);
}

.meta-item i {
  color: var(--primary-color);
}

.product-description {
  margin-bottom: 4rem;
}

.description-title span {
  color: var(--primary-color);
}

.description-title {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.description-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 5rem;
  height: 2px;
  background-color: var(--primary-color);
}

.description-content {
  font-size: 1.6rem;
  color: var(--light-text);
  line-height: 1.8;
}

.custom-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.custom-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 5px;
  font-size: 1.6rem;
  color: var(--text-color);
}

.custom-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: var(--border-radius);
  font-size: 1.6rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  color: var(--btn-hover-text);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Mobile: Disable transform on hover */
@media (max-width: 768px) {
  .btn:hover {
    transform: none;
  }
}

/* Footer */
.footer {
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #eee;
  padding: 2rem 0;
  font-family: "Segoe UI", sans-serif;
  font-size: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer .container p {
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

/* Animation for offer bar */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .product-container {
    flex-direction: column;
    gap: 2rem;
    margin: 0;
  }

  .product-info {
    padding-top: 0;
    width: 100%;
  }

  .product-detail {
    padding: 7rem 0 0;
  }

  .products-section {
    padding: 0 0 4rem;
  }

  .hero {
    display: none;
  }

  .section-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .product-title {
    font-size: 2.8rem;
  }

  .product-subtitle {
    font-size: 1.6rem;
  }

  .product-price {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .price-display {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    order: 1;
  }

  .price-actions {
    flex-direction: row;
    order: 2;
    width: auto;
    gap: 1rem;
  }

  .product-container .btn {
    width: auto;
    padding: 1.2rem 2rem;
    font-size: 1.4rem;
  }

  .offer-bar {
    margin-left: 10px;
    padding: 6px 10px;
    border-radius: 30px;
    min-width: 150px;
    overflow: hidden;
  }

  .offer-item {
    font-size: 18px;
    margin-right: 20px;
  }

  .logo {
    font-size: 24px;
  }

  .product-description {
    margin-bottom: 0rem;
  }

  .product-info {
    padding-top: 0 !important;
  }

  .preview-section {
    padding-bottom: 0 !important;
  }

  .course-caption {
    font-size: 1.2rem;
  }

  .cta-section {
    padding: 5rem 1rem;
  }

  .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .cta-content p {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
  }

  .cta-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    min-width: 0;
    padding: 1.2rem 0.5rem;
    font-size: 1.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .discounted-price {
    font-size: 2.5rem;
  }

  .original-price {
    font-size: 1.8rem;
  }

  .cta-divider:first-child .divider-line {
    max-width: 200px;
  }

  .cta-divider:last-child .divider-line {
    max-width: 125px;
  }

  .divider-icon {
    margin: 0 1rem;
    font-size: 1.5rem;
  }

  .preview-cta-content h3 {
    font-size: 2rem;
  }

  .preview-cta-content p {
    font-size: 1.4rem;
  }

  .preview-cta .cta-button {
    padding: 1.5rem;
    font-size: 1.6rem;
    width: 60%;
  }
}

@media (max-width: 576px) {
  .product-title {
    font-size: 2.4rem;
  }

  .product-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .price-display {
    width: 100%;
    justify-content: flex-start;
  }

  .offer-bar {
    min-width: 120px;
    padding: 5px 8px;
  }

  .offer-item {
    font-size: 16px;
    margin-right: 15px;
  }

  .logo {
    font-size: 20px;
  }

  .button-container {
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .cta-button {
    width: 50%;
    font-size: 1.6rem;
    padding: 1.4rem 2rem;
    max-width: none;
  }

  .preview-cta-content h3 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2.6rem;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--secondary-color);
  padding: 1.2rem;
  border-radius: 50%;
  box-shadow: var(--box-shadow);
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
}

.whatsapp-float img {
  width: 3rem;
  height: 3rem;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.product-info {
  padding: 2rem;
}

.product-info h3 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.product-info p {
  font-size: 1.4rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

.file-info {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.file-info span {
  font-size: 1.4rem;
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-info i {
  color: var(--primary-color);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 2.4rem;
  cursor: pointer;
  margin-left: auto;
  z-index: 1001;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  margin-left: auto;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-color);
  font-size: 1.6rem;
  font-weight: 500;
  padding: 0.5rem 0;
  /* Changed from 1rem to 0 to make underline precise */
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  /* Added for pseudo-element positioning */
}

.nav-menu a:hover {
  color: var(--primary-color);
  background: transparent;
  /* Removed the background hover */
}

/* New underline effect */
.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--header-blur-bg);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    padding: 8rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 1px solid var(--border-color);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .preview-cta-container {
    padding-bottom: 7rem;
  }
}

.menu-toggle {
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.menu-toggle:active,
.menu-toggle:hover,
.menu-toggle:focus {
  background-color: transparent;
  box-shadow: none;
}

/* Active navigation link style */
.nav-menu a.active-nav {
  color: var(--primary-color);
}

.nav-menu a.active-nav::after {
  width: 100%;
  background-color: var(--primary-color);
}

/* preview Section */
.preview-section {
  background: #0a0a0a;
  text-align: center;
  padding-bottom: 13.5rem;
}

#mainImage {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Course Container */
.course-container {
  max-width: 100%;
  margin: 3rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(18, 18, 18, 0.7);
}

.course-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.golden-course {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: brightness(0.95) contrast(1.1);
  transition: all 0.3s ease;
}

.golden-course:hover {
  filter: brightness(1) contrast(1.2);
}

.course-caption {
  padding: 1.2rem;
  text-align: center;
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.1),
    rgba(212, 175, 55, 0.05)
  );
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 500;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.course-caption a {
  color: #ffc300;
  text-decoration: none; /* optional */
}

#preview {
  scroll-margin-top: 170px;
}

/* Proof Container */
.proof-container {
  max-width: 100%;
  margin: 3rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(18, 18, 18, 0.7);
}

.proof-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.golden-proof {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: brightness(0.95) contrast(1.1);
  transition: all 0.3s ease;
}

.golden-proof:hover {
  filter: brightness(1) contrast(1.2);
}

.proof-caption {
  padding: 1.2rem;
  text-align: center;
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.1),
    rgba(212, 175, 55, 0.05)
  );
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 500;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

#preview {
  scroll-margin-top: 170px;
}

.footer-link {
  color: var(--primary-color);
}

.price-display span .highlight-gift {
  color: white;
}

/* --- Invoice Generator Styles --- */
.invoice-tool {
    padding: 13.5rem 0 5rem;
}

.tool-title {
    font-size: 4rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.tool-subtitle {
    font-size: 1.8rem;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 5rem;
}

.invoice-form-container {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    margin-bottom: 4rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.6rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 195, 0, 0.5);
}

.two-col-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.item-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.item-list-table th,
.item-list-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.item-list-table th {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.03);
}

.item-list-table td input {
    /* Override global input style for table cells */
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.add-item-btn {
    /* Inherits btn style */
    padding: 1rem 2rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.total-summary {
    text-align: right;
    font-size: 1.8rem;
    color: var(--text-color);
    margin-top: 2rem;
}

.total-summary p {
    margin-bottom: 0.5rem;
}

.total-summary .grand-total {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 3rem;
}

.action-buttons .btn {
    flex: 1;
    max-width: 250px;
    padding: 1.5rem 3rem;
}


/* Media Queries for Invoice Tool */
@media (max-width: 768px) {
    .invoice-tool {
        padding: 7rem 0 3rem;
    }

    .tool-title {
        font-size: 3rem;
        margin-top: 2rem;
    }

    .tool-subtitle {
        font-size: 1.6rem;
    }

    .invoice-form-container {
        padding: 2rem 1.5rem;
    }

    .two-col-group {
        grid-template-columns: 1fr;
    }

    .item-list-table {
        font-size: 1.4rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}