/* styles.css */
:root {
  --accent-color: #f6ad55; /* Soft orange for emphasis */
  --accent-hover: #dd6b20;
  --surface-color: #f8fafc; /* Softer background */
  --border-color: #e2e8f0;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --primary-color: #2f855a;
  /* Natural green */
  --primary-hover: #276749;
  --text-color: #2d3748;
  /* Dark grey */
  --text-light: #718096;
  --bg-color: #fafafa;
  /* Off-white */
  --card-bg: #ffffff;
  --border-radius: 12px;
  --transition: 0.3s ease;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 25px rgba(0, 0, 0, 0.15);
}

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Outfit", sans-serif;
  background-color: var(--surface-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

/* Navbar & Dropdown */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: padding var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
  line-height: 1.1;
}

.logo span {
  color: var(--text-color);
}

.logo .duck-icon {
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 250px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  z-index: 1001; /* Fix z-index issue */
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.95);
  flex-direction: column;
  padding: 0.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 400px;
  overflow-y: auto;
}

/* Custom scrollbar for dropdown */
.dropdown-content::-webkit-scrollbar {
  width: 6px;
}
.dropdown-content::-webkit-scrollbar-track {
  background: transparent;
}
.dropdown-content::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background-color: var(--surface-color);
  color: var(--primary-color);
  transform: translateX(4px);
}

.dropdown:hover .dropdown-content {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Buttons */

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: all var(--transition-bounce);
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(47, 133, 90, 0.39);
}

.btn-primary:hover {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(47, 133, 90, 0.23);
}

.btn-secondary {
  background-color: #e2e8f0;
  color: var(--text-color);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Hero Section */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  margin-top: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.05);
  animation: slowZoom 25s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite
    alternate;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  100% {
    transform: scale(1.1);
    filter: brightness(0.9);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(47, 133, 90, 0.3) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  color: white;
  padding: 2rem;
  backdrop-filter: blur(2px);
  border-radius: 20px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-color); /* Highlight color */
  display: inline-block;
  position: relative;
}

.hero-content h1 span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--primary-color);
  z-index: -1;
  opacity: 0.6;
  border-radius: 4px;
}

/* Products Section */
.products {
  padding: 6rem 5%;
  background-color: var(--surface-color);
}

.marketplace-strip {
  background: linear-gradient(135deg, #ffffff 0%, #f6fbf8 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.marketplace-strip p {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
}

.marketplace-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-bounce);
  border: 1px solid var(--border-color);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-color);
  z-index: 1;
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #edf2f7;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.price-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

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

/* Split Section: About & Testimonials */
.about-testi {
  padding: 4rem 5% 6rem;
  background-color: white;
}

.container-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Give about section more space */
  gap: 5rem;
  margin-bottom: 5rem;
  align-items: center;
}

.about-us .about-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.avatar-large {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: -10px 10px 0 var(--accent-color);
  flex-shrink: 0;
  transition: transform var(--transition-bounce);
}

.avatar-large:hover {
  transform: translate(5px, -5px);
}

.about-content p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testi-card {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  align-items: center;
  transition: all var(--transition-bounce);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.testi-card:hover {
  transform: translateX(10px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.avatar-small {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

.testi-text h4 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.testi-text .role {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.testi-text blockquote {
  font-style: italic;
  color: #4a5568;
}

.explore-btn-container {
  text-align: center;
  margin-top: 2rem;
}

/* SEO Articles */
.seo-articles {
  padding: 4rem 5% 6rem;
  background-color: var(--surface-color);
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.article-header h2 {
  margin-bottom: 1rem;
}

.article-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.article-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all var(--transition-bounce);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.article-card h3 a {
  background-image: linear-gradient(var(--primary-color), var(--primary-color));
  background-size: 0% 2px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s cubic-bezier(0.2, 0.85, 0.4, 1);
  padding-bottom: 2px;
}

.article-card:hover h3 a {
  background-size: 100% 2px;
}

.article-card h3 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.article-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto; /* Pushes to bottom of flex card */
  padding: 0.5rem 0;
}

.read-more::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.read-more:hover {
  transform: none;
  color: var(--primary-hover);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* Footer */
footer {
  background-color: #1a202c; /* Dark modern footer */
  color: white;
  padding: 5rem 5% 3rem;
  border-top: none;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-info p {
  color: #a0aec0;
  margin-top: 0.75rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-info .logo span {
  color: white;
}

.footer-social span {
  display: block;
  color: #a0aec0;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-left: 0.75rem;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-bounce);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px) rotate(5deg);
  border-color: transparent;
}

/* Utilities for JS */
/* Utilities for JS */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition:
    opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, visibility, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .container-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    /* simple hidden for mobile, can add a burger menu later */
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .marketplace-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .about-us .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
