/* Modern CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom Properties */
:root {
  --primary-color: #2a2a2a;
  --secondary-color: #f5f5f5;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --background-color: #ffffff;
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --transition: all 0.3s ease;
}

/* Base Styles */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 2rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

h3 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

p {
  color: var(--text-color);
  margin-bottom: 1.6rem;
}

article p {
  color: var(--text-color);
}

section p {
  color: var(--text-color);
}

.content p {
  color: var(--text-color);
}

.trend-card p {
  color: var(--text-color);
}

.highlight-content p {
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-color);
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  border-radius: 3px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    opacity 0.3s ease-in-out;
}

/* Hero Section */
.hero {
  padding: 12rem 2rem 6rem;
  text-align: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-image {
  margin-top: 4rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Sections */
section {
  padding: 6rem 2rem;
  max-width: 120rem;
  margin: 0 auto;
}

.intro {
  text-align: center;
  position: relative;
}

/* Feature Cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
  padding: 4rem 2rem;
}

.feature-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-details {
  margin: 2rem 0;
  flex-grow: 1;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  margin-top: auto;
  transition: var(--transition);
  align-self: center;
}

.btn:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 120rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 4rem;
  margin-top: 4rem;
  color: var(--secondary-color) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 3rem;
    transform-origin: left;
    transform: rotateY(90deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
      left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    perspective: 1000px;
  }

  .nav-links.active {
    left: 0;
    transform: rotateY(0deg);
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, 2px);
    transform-origin: center;
  }

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

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, -2px);
    transform-origin: center;
  }

  .nav-links a {
    font-size: 2.4rem;
    font-weight: 600;
    transform: translateX(-50px) rotateY(-90deg);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .nav-links.active a {
    transform: translateX(0) rotateY(0);
    opacity: 1;
  }

  .nav-links.active a:nth-child(1) {
    transition-delay: 0.3s;
  }
  .nav-links.active a:nth-child(2) {
    transition-delay: 0.4s;
  }
  .nav-links.active a:nth-child(3) {
    transition-delay: 0.5s;
  }
  .nav-links.active a:nth-child(4) {
    transition-delay: 0.6s;
  }

  .nav-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    padding: 10rem 2rem 4rem;
  }
}

/* Ring Features */
.ring-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

/* Gift Categories */
.gift-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.gift-category {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.gift-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gift-category ul {
  list-style: none;
  margin-top: 2rem;
}

.gift-category li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.gift-category li:last-child {
  border-bottom: none;
}

/* Gift Finder Tool */
.gift-finder-tool {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 4rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filters select {
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: white;
  font-size: 1.6rem;
}

.suggestions {
  padding: 2rem;
  background: var(--secondary-color);
  border-radius: 10px;
}

.suggestions ul {
  list-style: none;
  margin-top: 2rem;
}

.suggestions li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.suggestions li:last-child {
  border-bottom: none;
}

/* Wedding Calculator */
.wedding-calculator {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 4rem;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calculator-form label {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calculator-form input[type="number"] {
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 15rem;
}

.calculator-form input[type="checkbox"] {
  width: 2rem;
  height: 2rem;
}

.estimate {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  padding: 2rem;
  background: var(--secondary-color);
  border-radius: 10px;
  text-align: center;
}

/* Eco Features */
.eco-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.eco-feature {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.eco-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.eco-feature ul {
  list-style: none;
  margin-top: 2rem;
}

.eco-feature li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.eco-feature li:last-child {
  border-bottom: none;
}

/* Relationship Facts */
.relationship-facts {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 4rem;
}

.relationship-facts ul {
  list-style: none;
  margin-top: 2rem;
}

.relationship-facts li {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 3rem;
}

.relationship-facts li:before {
  content: "💝";
  position: absolute;
  left: 0;
  top: 1.5rem;
}

.relationship-facts li:last-child {
  border-bottom: none;
}

.trend-card.visible,
.gift-category.visible,
.eco-feature.visible,
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .calculator-form label {
    flex-direction: column;
    align-items: flex-start;
  }

  .calculator-form input[type="number"] {
    width: 100%;
  }

  .estimate {
    font-size: 1.8rem;
  }
}

/* Print Styles */
@media print {
  .gift-finder-tool,
  .wedding-calculator {
    display: none;
  }

  .trend-card,
  .gift-category,
  .eco-feature,
  .feature-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Feature Cards Enhancements */
.feature-icon {
  font-size: 4rem;
  margin: 2rem 0;
  text-align: center;
}

.feature-image {
  width: 120px;
  height: 120px;
  margin: 2rem auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.feature-card:hover .feature-image {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card:hover .feature-image img {
  transform: scale(1.1);
}

.feature-details {
  margin: 2rem 0;
}

.feature-details ul {
  list-style: none;
  padding: 0;
}

.feature-details li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 2.5rem;
}

.feature-details li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.feature-details li:last-child {
  border-bottom: none;
}

/* Category Highlights */
.category-highlights {
  background: var(--secondary-color);
  padding: 8rem 2rem;
  margin-top: 4rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.highlight-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.highlight-content {
  padding: 3rem;
}

.highlight-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
}

.stat-label {
  font-size: 1.4rem;
  color: var(--text-color);
  opacity: 0.8;
}

.highlight-features,
.highlight-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.feature-icon,
.benefit-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .highlight-features,
  .highlight-benefits {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .highlight-stats {
    grid-template-columns: 1fr;
  }
}

/* Animation Enhancements */
.highlight-card {
  opacity: 0;
  transform: translateY(20px);
}

.highlight-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Print Styles */
@media print {
  .category-highlights {
    background: none;
    padding: 4rem 2rem;
  }

  .highlight-card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Wedding Trends Grid */
.trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.trend-card {
  background: var(--background-color);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  color: var(--text-color);
}

.trend-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.trend-card h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.trend-card p {
  color: var(--text-color);
}

/* Modern Gifts Section */
.modern-gifts {
  padding: 6rem 2rem;
  background: var(--background-color);
}

.modern-gifts h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 4rem;
}

.modern-gifts p {
  color: var(--text-color);
  text-align: center;
  max-width: 80rem;
  margin: 0 auto 4rem;
}

@media (max-width: 768px) {
  .trends-grid {
    grid-template-columns: 1fr;
  }
}
