/* ===========================================
 * OPTIMIZED DARK ELEGANCE THEME - DC NOTES
 * Mobile-first optimization with reduced file size
 * =========================================== */

:root {
  --primary-black: #0a0a0a;
  --secondary-black: #1a1a1a;
  --grey-dark: #2a2a2a;
  --grey-medium: #404040;
  --grey-light: #6a6a6a;
  --yellow-accent: #ffa500;
  --gold-accent: #ff8c00;
  --white: #ffffff;
  --white-muted: #f5f5f5;
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 8px 40px rgba(255, 165, 0, 0.15);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--primary-black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Navigation */
.elegant-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  transition: background var(--transition);
  will-change: background;
}

.elegant-nav.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: var(--shadow);
}

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

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-accent);
  letter-spacing: -0.02em;
  transition: text-shadow var(--transition);
}

.brand-text:hover {
  text-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--grey-light);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: -0.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: all var(--transition);
}

.nav-link {
  color: var(--white-muted);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.3rem;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-accent);
  transition: width var(--transition);
}

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

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

.nav-link-cta {
  background: linear-gradient(135deg, var(--gold-accent), var(--yellow-accent));
  color: var(--primary-black);
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 10px rgba(255, 165, 0, 0.2);
}

.nav-link-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--yellow-accent), var(--gold-accent));
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--gold-accent);
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
  width: 30px;
  height: 30px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--gold-accent);
  transition: all var(--transition);
  border-radius: 1px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Container */
.main-container {
  padding-top: 80px;
}

/* Hero Section */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 215, 0, 0.05) 0%,
    transparent 50%
  );
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFA500' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  color: var(--yellow-accent);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.9;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.title-line {
  display: block;
}

.gold-accent {
  background: linear-gradient(135deg, var(--gold-accent), var(--yellow-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--grey-light);
  margin-bottom: 3rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.price-highlight {
  color: var(--yellow-accent);
  font-weight: 500;
  display: block;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 165, 0, 0.1);
  border-radius: 0.5rem;
  border-left: 4px solid var(--yellow-accent);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.8s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-accent), var(--yellow-accent));
  color: var(--primary-black);
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--yellow-accent), var(--gold-accent));
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--grey-medium);
}

.btn-secondary:hover {
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  background: rgba(255, 165, 0, 0.1);
}

.btn-primary-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--gold-accent), var(--yellow-accent));
  color: var(--primary-black);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

.btn-primary-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 165, 0, 0.5);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInScale 1s ease forwards 1s;
}

.geometric-shape {
  width: 300px;
  height: 300px;
  position: relative;
  transform: rotate(-15deg);
  transition: transform 0.5s ease;
}

.geometric-shape:hover {
  transform: rotate(-10deg) scale(1.05);
}

.shape-inner {
  width: 100%;
  height: 100%;
  background: var(--secondary-black);
  border: 2px solid var(--gold-accent);
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 165, 0, 0.2);
}

.golden-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    var(--gold-accent) 41%,
    var(--gold-accent) 43%,
    transparent 44%
  );
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}

.floating-elements {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  padding: 2rem;
}

.element {
  color: var(--gold-accent);
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

.element:nth-child(2) {
  animation-delay: 1s;
}

.element:nth-child(3) {
  animation-delay: 2s;
}

/* Products Section */
.products-section {
  padding: 6rem 2rem;
  background: var(--secondary-black);
  position: relative;
}

.products-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-accent),
    transparent
  );
  opacity: 0.3;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.title-accent {
  color: var(--gold-accent);
}

.section-subtitle {
  color: var(--grey-light);
  font-size: 1.1rem;
  line-height: 1.6;
}

.products-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Product Cards */
.product-card {
  background: var(--primary-black);
  border: 1px solid var(--grey-dark);
  border-radius: 1rem;
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-accent), var(--yellow-accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-accent);
  box-shadow: var(--shadow);
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.original-price {
  font-size: 1rem;
  color: var(--grey-light);
  text-decoration: line-through;
  font-weight: 400;
}

.discount-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.difficulty-badge,
.time-badge {
  background: rgba(255, 165, 0, 0.1);
  color: var(--yellow-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 165, 0, 0.2);
}

.difficulty-badge {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border-color: rgba(76, 175, 80, 0.2);
}

.product-description {
  color: var(--grey-light);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.product-features {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-dark);
}

.product-features strong {
  color: var(--white);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.product-features ul {
  list-style: none;
  padding: 0;
}

.product-features li {
  color: var(--grey-light);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  padding-left: 1rem;
  position: relative;
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-accent);
  font-weight: bold;
}

/* Contact Section */
.contact-section {
  padding: 6rem 2rem;
  background: var(--primary-black);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  color: var(--white);
}

.contact-description {
  max-width: 900px;
  margin: 0 auto 4rem auto;
  text-align: left;
}

.contact-description p {
  color: var(--grey-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-description em {
  color: var(--gold-accent);
  font-style: italic;
  font-weight: 500;
}

.contact-description strong {
  color: var(--white);
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  padding: 6rem 2rem;
  background: var(--secondary-black);
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-accent),
    transparent
  );
  opacity: 0.3;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-description {
  font-size: 1.2rem;
  color: var(--grey-light);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Footer */
.elegant-footer {
  background: var(--primary-black);
  border-top: 1px solid var(--grey-dark);
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--grey-light);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-section h4 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-link {
  display: block;
  color: var(--grey-light);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: color var(--transition);
  cursor: pointer;
}

.footer-link:hover {
  color: var(--gold-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-dark);
  color: var(--grey-light);
  font-size: 0.85rem;
}

/* Notifications */
.notification {
  position: fixed;
  top: 100px;
  right: 2rem;
  background: var(--gold-accent);
  color: var(--primary-black);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  z-index: 10000;
  font-weight: 500;
  font-size: 0.9rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.notification__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification__text {
  flex: 1;
}

.notification__close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.notification__close:hover {
  opacity: 1;
}

.notification--info {
  background: var(--grey-dark) !important;
  color: var(--white) !important;
  border-left: 4px solid var(--gold-accent) !important;
}

.notification--error {
  background: #e74c3c !important;
  color: var(--white) !important;
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .geometric-shape {
    width: 200px;
    height: 200px;
  }

  .contact-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-links.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }

  .nav-link-cta {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .hero-section {
    padding: 2rem 1rem;
    min-height: 80vh;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }

  .products-section,
  .contact-section,
  .cta-section {
    padding: 4rem 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-description {
    margin-bottom: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 2rem;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .notification {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    align-items: flex-start;
  }

  .brand-text {
    font-size: 1.5rem;
  }

  .hero-section {
    padding: 1.5rem 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .product-card {
    padding: 1.5rem;
  }

  .contact-description {
    margin-bottom: 2rem;
  }

  .elegant-footer {
    padding: 2rem 1rem 1rem;
  }

  .hero-actions {
    gap: 1rem;
  }

  .btn {
    padding: 0.9rem;
    font-size: 0.9rem;
  }
}

/* Performance & Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.nav-link:focus,
.btn:focus,
.footer-link:focus,
.mobile-menu-btn:focus {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  .product-card {
    border-width: 2px;
  }

  .btn {
    border-width: 2px;
  }
}

@media print {
  .elegant-nav,
  .hero-visual,
  .geometric-shape,
  .notification {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  body {
    background: white;
    color: black;
  }
}



   /* Critical above-the-fold styles */
        .skip-link:focus {
            position: static !important;
            width: auto !important;
            height: auto !important;
            background: var(--gold-accent);
            color: var(--primary-black);
            padding: 0.5rem 1rem;
            z-index: 10000;
            text-decoration: none;
            font-weight: bold;
        }

        /* Ensure proper focus indicators */
        .nav-link:focus,
        .btn:focus,
        .footer-link:focus,
        button:focus {
            outline: 2px solid var(--gold-accent);
            outline-offset: 2px;
        }

        /* Reduce motion for users who prefer it */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* High contrast support */
        @media (prefers-contrast: high) {

            .product-card,
            .btn {
                border-width: 2px !important;
            }
        }