/* =========================
   GLOBAL / RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root{
  --bg: #ffffff;
  --text: #111;
  --muted: #666;
  --border: #e6e6e6;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --shadow-hover: 0 16px 40px rgba(0,0,0,.12);
  --brand: #007BFF;
  --brand-dark: #0b5ed7;
  --radius: 12px;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fafafa;
  color: var(--text);
  line-height: 1.5;
}

img{
  max-width: 100%;
  display: block;
}

a{
  color: inherit;
}

/* container helper (optional) */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   HEADER / NAV
========================= */
header {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo h2::first-letter {
  color: var(--brand);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

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

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

/* Navigation */
.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-menu a:hover {
  background: #f2f6ff;
  border-color: #d7e6ff;
  transform: translateY(-1px);
}

.nav-menu a.cta-button {
  background: var(--brand);
  color: white;
  font-weight: 600;
}

.nav-menu a.cta-button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

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

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding-top: 80px;
  }

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

  .nav-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    width: 100%;
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-menu a.cta-button {
    margin-top: 10px;
    border-radius: 8px;
    border: none;
  }
}

@media (max-width: 480px) {
  .logo h2 {
    font-size: 1.2rem;
  }

  .header-container {
    padding: 0 16px;
  }
}

/* =========================
   MAIN
========================= */
main {
  padding: 24px 0;
}

/* =========================
   INTRO SECTION
========================= */
.intro-section {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 60px 30px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  opacity: 0.3;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

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

.intro-section h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 24px;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.intro-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
  position: relative;
  z-index: 1;
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.intro-text strong {
  font-weight: 700;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .intro-section {
    padding: 40px 24px;
    margin: 0 16px 40px;
    border-radius: 16px;
  }

  .intro-section h1 {
    font-size: 1.8rem;
    margin-bottom: 16px;
  }

  .intro-text {
    font-size: 1rem;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .intro-section {
    padding: 30px 20px;
    margin: 0 12px 30px;
  }

  .intro-section h1 {
    font-size: 1.5rem;
  }

  .intro-text {
    font-size: 0.95rem;
  }
}

/* =========================
   GALLERY (better layout)
========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Gallery Item Animation */
.gallery-item {
  animation: slideInScale 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}

.gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes slideInScale {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .gallery { 
    grid-template-columns: repeat(2, 1fr); 
    padding: 0 16px;
  }
}
@media (max-width: 500px) {
  .gallery { 
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* =========================
   CARD (affiliate-ready)
========================= */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #dcdcdc;
}

/* Make the whole card clickable if <a> wraps it */
.card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card a:focus-visible {
  outline: 3px solid rgba(0,123,255,.25);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.card img {
  width: 100%;
  height: 180px;       /* consistent card height */
  object-fit: cover;   /* crop nicely */
  background: #f2f2f2; /* fallback */
}

/* Content area inside card (add in HTML as .card-body) */
.card-body{
  padding: 14px;
  display: grid;
  gap: 10px;
}

.card-title{
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.card-text{
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* Price + badge row (optional) */
.card-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price{
  font-weight: 800;
}

.badge{
  font-size: .8rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d7e6ff;
  background: #f2f6ff;
  color: #0b3d91;
}

/* CTA button (optional) */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background .2s ease, transform .2s ease;
}

.btn:hover{
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0);
  opacity: .95;
}

/* =========================
   FOOTER
========================= */
footer {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0 20px;
  text-align: center;
  font-size: 0.9em;
  color: var(--muted);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

footer p {
  margin: 0;
}
