/* ==========================================
   LANDING PAGE STYLING (css/landing.css)
   ========================================== */

/* Navbar Glassmorphism */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 8%;
  background: rgba(10, 13, 16, 0.7);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: var(--border-glass);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 12px 8%;
  background: var(--color-bg-dark-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 3px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-accent);
  color: var(--color-text-dark-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-gold-300);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 8% 80px 8%;
  background: var(--gradient-gold-overlay), radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, var(--color-bg-dark) 70%);
  overflow: hidden;
}

/* Background animated elements */
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
  animation: rotateGlow 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.hero-tag {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-gold-300);
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 2px;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease-out;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
}

.hero-desc {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: var(--color-text-dark-secondary);
  animation: fadeInUp 1.2s ease-out;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  animation: fadeInUp 1.4s ease-out;
}

@media (max-width: 576px) {
  .hero-btns { flex-direction: column; align-items: center; gap: 15px; }
}

/* Elegant Invitation Floating Mockup */
.mockup-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  animation: floatMockup 6s ease-in-out infinite;
  z-index: 5;
}

@keyframes floatMockup {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.02); }
}

.premium-mockup {
  background: var(--color-bg-dark-card);
  border: var(--border-gold);
  border-radius: var(--radius-premium);
  padding: 24px;
  box-shadow: var(--shadow-premium), var(--shadow-gold-soft);
  position: relative;
  overflow: hidden;
}

.premium-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-gold);
}

.mockup-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: inline-block;
  position: relative;
}

.mockup-dot::after, .mockup-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  position: absolute;
}

.mockup-dot::before { left: 15px; }
.mockup-dot::after { left: 30px; }

.mockup-title {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  color: var(--color-text-dark-secondary);
  letter-spacing: 1.5px;
}

.mockup-body {
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 30px;
  background: rgba(10, 13, 16, 0.5);
  text-align: center;
  position: relative;
}

.mockup-ornament {
  width: 80px;
  height: auto;
  opacity: 0.7;
  margin-bottom: 15px;
}

.mockup-names {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 15px 0;
  letter-spacing: 2px;
}

.mockup-btn {
  display: inline-block;
  margin-top: 25px;
  background: transparent;
  border: var(--border-gold);
  color: var(--color-gold-300);
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.mockup-btn:hover {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: var(--shadow-gold-soft);
}

/* Sections Base */
section {
  padding: 100px 8%;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--color-gold-300);
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.section-header p {
  color: var(--color-text-dark-secondary);
  font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--color-bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: var(--radius-premium);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), var(--shadow-gold-soft);
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--color-gold-300);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--color-text-dark-secondary);
  font-size: 0.95rem;
}

/* Premium Templates Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.template-card {
  background: var(--color-bg-dark-card);
  border-radius: var(--radius-premium);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.template-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.template-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1c2229 0%, #12161a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-gold-300);
  transition: var(--transition-smooth);
}

.template-card:hover .template-img-placeholder {
  transform: scale(1.05);
}

.template-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-gold);
  color: #000;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: var(--radius-button);
  text-transform: uppercase;
}

.template-info {
  padding: 25px;
}

.template-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.template-info p {
  color: var(--color-text-dark-secondary);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.template-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.template-price {
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--color-gold-300);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-premium);
  padding: 40px;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.premium {
  border: var(--border-gold);
  box-shadow: var(--shadow-gold-soft);
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .pricing-card.premium { transform: scale(1); }
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-gold);
  color: #000;
  padding: 6px 16px;
  border-radius: var(--radius-button);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
}

.pricing-desc {
  color: var(--color-text-dark-secondary);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 25px;
}

.pricing-price {
  text-align: center;
  font-family: var(--font-accent);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 30px;
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-dark-secondary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 35px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--color-text-dark-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li svg {
  color: var(--color-gold-300);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Footer styling */
footer {
  background: #06080a;
  padding: 60px 8% 30px 8%;
  border-top: var(--border-glass);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 4px;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-links a {
  color: var(--color-text-dark-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-gold-300);
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

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

/* ==========================================
   MOBILE & TABLET RESPONSIVE STYLING
   ========================================== */

/* Hamburger Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  outline: none;
}

.menu-toggle span {
  width: 100%;
  height: 2.5px;
  background: var(--color-gold-300);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center;
}

/* Active Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: #fff;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: #fff;
}

/* Media Queries */
@media (max-width: 992px) {
  header {
    padding: 15px 6%;
  }

  header.scrolled {
    padding: 12px 6%;
  }

  .menu-toggle {
    display: flex;
  }

  /* Slide-out Off-canvas Menu Drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 13, 16, 0.96);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-left: var(--border-gold-light);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 80px 40px;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    font-size: 1rem;
    display: block;
    padding: 10px 0;
    color: #fff;
  }

  .btn-nav-demo {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  section {
    padding: 80px 6%;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }

  .templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .hero-btns {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-header h2 {
    font-size: 2.1rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card.premium {
    transform: scale(1);
    border-width: 1.5px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }

  .hero {
    padding: 100px 5% 60px 5%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-tag {
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    margin-bottom: 15px;
  }

  .btn-premium, .btn-premium-outline {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 12px 24px;
  }

  .premium-mockup {
    padding: 16px;
  }

  .mockup-body {
    padding: 20px 15px;
  }

  .mockup-names {
    font-size: 1.45rem;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .pricing-card {
    padding: 30px 20px;
  }
}

/* ==========================================
   ADDED: THEME MODE TOGGLE & LIGHT TONE OVERRIDES
   ========================================== */

/* Premium Switch Toggle */
.switch-premium {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch-premium input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-premium {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.05);
  border: var(--border-glass);
  transition: .4s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 34px;
}

.slider-premium:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: var(--gradient-gold);
  transition: .4s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

input:checked + .slider-premium {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(163, 124, 63, 0.2);
}

input:checked + .slider-premium:before {
  transform: translateX(22px);
  background: linear-gradient(135deg, #7d5924 0%, #c49d5c 100%);
}

/* Light Velvet Mode CSS Overrides */
body.light-tone {
  --color-bg-dark: #f5f7fa;
  --color-bg-dark-card: #ffffff;
  --color-bg-dark-glass: rgba(255, 255, 255, 0.95);
  --color-text-dark-primary: #0f172a;
  --color-text-dark-secondary: #334155;
  --border-glass: 1px solid rgba(0, 0, 0, 0.08);
  --shadow-premium: 0 10px 30px rgba(15, 23, 42, 0.04);
  --shadow-gold-soft: 0 4px 20px rgba(163, 124, 63, 0.08);
  --border-gold: 1px solid rgba(163, 124, 63, 0.2);
  --border-gold-light: 1px solid rgba(163, 124, 63, 0.15);
}

body.light-tone {
  background-color: #f5f7fa;
  color: #0f172a;
}

body.light-tone header {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

body.light-tone header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 25px rgba(15, 23, 42, 0.04);
}

body.light-tone .nav-links a {
  color: #334155;
}

body.light-tone .nav-links a:hover {
  color: #7d5924;
}

body.light-tone .logo {
  background: linear-gradient(135deg, #7d5924 0%, #c49d5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-tone .hero {
  background: linear-gradient(to bottom, rgba(245, 247, 250, 0.5), rgba(245, 247, 250, 0.98)), radial-gradient(circle at center, rgba(163, 124, 63, 0.1) 0%, #f5f7fa 75%);
}

body.light-tone .hero h1 {
  color: #0f172a;
}

body.light-tone .hero-desc {
  color: #334155;
}

body.light-tone .premium-mockup {
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05), 0 4px 15px rgba(163, 124, 63, 0.06);
}

body.light-tone .mockup-header {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-tone .mockup-header .mockup-title {
  color: #64748b;
}

body.light-tone .mockup-body {
  background: #f8fafc;
  border-color: rgba(163, 124, 63, 0.15);
}

body.light-tone .mockup-names {
  background: linear-gradient(135deg, #7d5924 0%, #c49d5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-tone .section-header h2 {
  color: #0f172a;
}

body.light-tone .section-header p {
  color: #334155;
}

body.light-tone .section-tag {
  color: #7d5924;
}

body.light-tone .feature-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-tone .feature-card:hover {
  border-color: rgba(163, 124, 63, 0.2);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04), var(--shadow-gold-soft);
}

body.light-tone .feature-card h3 {
  color: #0f172a;
}

body.light-tone .feature-card p {
  color: #334155;
}

body.light-tone .feature-icon {
  background: rgba(163, 124, 63, 0.06);
  color: #7d5924;
}

body.light-tone .template-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03); /* Soft elegant shadow */
}

body.light-tone .template-card:hover {
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06), var(--shadow-gold-soft);
  transform: translateY(-8px);
}

body.light-tone .template-img-placeholder {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important; /* Force override inline backgrounds! */
  color: #7d5924 !important; /* Force override inline text colors! */
}

body.light-tone .template-img-placeholder svg {
  color: #7d5924 !important;
}

body.light-tone .template-info h3 {
  color: #0f172a;
}

body.light-tone .template-info p {
  color: #334155;
  line-height: 1.4;
}

body.light-tone .template-price {
  color: #7d5924;
  font-weight: 600;
}

body.light-tone .pricing-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-tone .pricing-card.premium {
  border-color: #7d5924;
  box-shadow: 0 15px 35px rgba(163, 124, 63, 0.06), var(--shadow-gold-soft);
}

body.light-tone .pricing-price {
  color: #0f172a;
}

body.light-tone .pricing-price span {
  color: #64748b;
}

body.light-tone .pricing-features li {
  color: #334155;
}

body.light-tone .pricing-card h3 {
  color: #0f172a;
}

body.light-tone .pricing-desc {
  color: #64748b;
}

body.light-tone footer {
  background: #0b0e12;
  border-top-color: rgba(255, 255, 255, 0.05);
}

body.light-tone .footer-logo {
  color: #ffffff;
}

body.light-tone .footer-links a {
  color: #a0aec0;
}

body.light-tone .footer-links a:hover {
  color: #e6c15c;
}

body.light-tone .copyright {
  color: rgba(255, 255, 255, 0.35);
}

/* Off-canvas Nav Drawer mobile overrides */
@media (max-width: 992px) {
  body.light-tone .nav-links {
    background: rgba(255, 255, 255, 0.98) !important;
    border-left-color: rgba(0, 0, 0, 0.06);
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.05);
  }
  
  body.light-tone .nav-links li a {
    color: #0f172a !important;
  }
  
  body.light-tone .theme-toggle-li {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    justify-content: center;
  }
}
