/* ===== RESIN DESIGN PAGE STYLES ===== */

/* Active nav link */
.active-link { color: var(--brown) !important; opacity: 1 !important; }

/* ── HERO ── */
.rd-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.rd-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1615529151169-7b1ff50dc7f2?w=1600&h=900&fit=crop') center/cover no-repeat;
  filter: brightness(.35);
  transform: scale(1.05);
  transition: transform 8s ease;
}
.rd-hero:hover .rd-hero-bg { transform: scale(1.1); }
.rd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,.3) 0%, rgba(15,15,15,.85) 100%);
}
.rd-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
  animation: heroFadeIn .9s ease forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rd-hero-eyebrow {
  font-size: .75rem;
  letter-spacing: 4px;
  color: var(--brown);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.rd-hero-content h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #fff 0%, #f5f1eb 50%, var(--brown) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rd-hero-sub {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.55);
  margin-bottom: 2.5rem;
  letter-spacing: 1.5px;
  font-weight: 300;
}

/* ── ABOUT ── */
.rd-about { padding: 8rem 0; background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%); }
.rd-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.rd-eyebrow { font-size: .75rem; letter-spacing: 4px; color: var(--brown); margin-bottom: .8rem; text-transform: uppercase; }
.rd-about-text h2 { font-family: 'Cinzel', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: .5rem; }
.rd-about-text p { color: rgba(255,255,255,.5); line-height: 1.8; margin-bottom: 1rem; font-size: .95rem; }
.rd-about-stats { display: flex; gap: 2.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); }
.rd-stat { display: flex; flex-direction: column; gap: .3rem; }
.rd-stat-num { font-family: 'Cinzel', serif; font-size: 2rem; color: var(--brown); }
.rd-stat-label { font-size: .75rem; color: rgba(255,255,255,.4); letter-spacing: 1px; text-transform: uppercase; }
.rd-about-img { position: relative; border-radius: 20px; overflow: visible; }
.rd-about-img img { width: 100%; border-radius: 20px; display: block; transition: transform .6s ease; }
.rd-about-img:hover img { transform: scale(1.02); }
.rd-about-badge {
  position: absolute;
  bottom: -1rem;
  left: -1.5rem;
  background: var(--brown);
  color: #fff;
  padding: .8rem 1.5rem;
  border-radius: 50px;
  font-size: .8rem;
  letter-spacing: 1px;
  box-shadow: 0 8px 30px rgba(107,79,59,.4);
}

/* ── PRODUCTS ── */
.rd-products { padding: 8rem 0; background: #0a0a0a; }
.rd-filters { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 3rem; }
.rd-filter {
  padding: .55rem 1.4rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: rgba(255,255,255,.6);
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  cursor: pointer;
  transition: all .3s;
  letter-spacing: .5px;
}
.rd-filter:hover, .rd-filter.active {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}
.rd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.rd-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all .4s ease;
  cursor: pointer;
  position: relative;
}
.rd-card:hover {
  transform: translateY(-8px);
  border-color: rgba(107,79,59,.4);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.rd-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.rd-card:hover .rd-card-img { transform: scale(1.06); }
.rd-card-img-wrap { overflow: hidden; position: relative; }

/* Simple name label on hover */
.rd-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
  font-family: 'Cinzel', serif;
  font-size: .95rem;
  letter-spacing: .5px;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.rd-card:hover .rd-card-label {
  opacity: 1;
  transform: translateY(0);
}


/* ── HORIZONTAL SCROLL ── */
.rd-scroll-section { padding: 6rem 0; background: #0f0f0f; overflow: hidden; }
.rd-scroll-header { margin-bottom: 2.5rem; }
.rd-scroll-header h2 { font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .5rem; }
.rd-scroll-header p { color: rgba(255,255,255,.4); font-size: .9rem; }
.rd-scroll-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 2rem 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brown) transparent;
}
.rd-scroll-track::-webkit-scrollbar { height: 4px; }
.rd-scroll-track::-webkit-scrollbar-thumb { background: var(--brown); border-radius: 4px; }
.rd-scroll-card {
  min-width: 240px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: transform .3s, border-color .3s;
  cursor: pointer;
}
.rd-scroll-card:hover { transform: translateY(-6px); border-color: rgba(107,79,59,.4); }
.rd-scroll-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.rd-scroll-card-body { padding: 1rem; }
.rd-scroll-card-body h4 { font-family: 'Cinzel', serif; font-size: .9rem; margin-bottom: .3rem; }
.rd-scroll-card-body p { font-size: .75rem; color: rgba(255,255,255,.4); }

/* ── FAQ ── */
.rd-faq { padding: 8rem 0; background: #0a0a0a; }
.rd-faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.rd-faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  transition: border-color .3s;
}
.rd-faq-item[open] { border-color: rgba(107,79,59,.4); }
.rd-faq-item summary {
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: .95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.rd-faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--brown); transition: transform .3s; }
.rd-faq-item[open] summary::after { transform: rotate(45deg); }
.rd-faq-item summary::-webkit-details-marker { display: none; }
.rd-faq-item p {
  margin-top: 1rem;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.8;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

/* ── TESTIMONIALS ── */
.rd-testimonials { padding: 8rem 0; background: #0f0f0f; }
.rd-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* ── CTA ── */
.rd-cta {
  padding: 8rem 0;
  background: linear-gradient(135deg, rgba(107,79,59,.25), rgba(31,60,136,.25)),
              url('https://images.unsplash.com/photo-1558618666-fcd25c85f82e?w=1400&h=600&fit=crop') center/cover;
  position: relative;
  text-align: center;
}
.rd-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.75);
}
.rd-cta-inner { position: relative; z-index: 2; }
.rd-cta h2 { font-family: 'Cinzel', serif; font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
.rd-cta p { color: rgba(255,255,255,.55); max-width: 520px; margin: 0 auto 2.5rem; font-size: 1rem; line-height: 1.7; }
.rd-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FADE-UP ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .rd-about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .rd-grid { grid-template-columns: repeat(2, 1fr); }
  .rd-testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .rd-grid { grid-template-columns: 1fr; }
  .rd-testimonials-grid { grid-template-columns: 1fr; }
  .rd-about-stats { flex-direction: column; gap: 1.5rem; }
  .rd-about-badge { left: 0; bottom: -1.5rem; font-size: .7rem; }
}

/* ══════════════════════════════════════════
   ✨ PREMIUM ANIMATIONS
══════════════════════════════════════════ */

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brown), #e8b97a, var(--brown));
  background-size: 200% 100%;
  animation: shimmerBar 2s linear infinite;
  z-index: 9999;
  transition: width .1s linear;
}
@keyframes shimmerBar {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── Floating Particles in Hero ── */
.rd-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,79,59,.6), transparent);
  animation: floatParticle linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes floatParticle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .4; }
  100% { transform: translateY(-20vh) scale(1.2); opacity: 0; }
}

/* ── Hero Eyebrow letter-spacing animate ── */
.rd-hero-eyebrow {
  animation: eyebrowReveal 1.2s cubic-bezier(.22,1,.36,1) .2s both;
}
@keyframes eyebrowReveal {
  from { opacity: 0; letter-spacing: 12px; }
  to   { opacity: 1; letter-spacing: 4px; }
}

/* ── Hero H1 gradient shimmer ── */
.rd-hero-content h1 {
  background-size: 200% auto;
  animation: heroFadeIn .9s ease forwards, gradientShimmer 4s linear 1s infinite;
}
@keyframes gradientShimmer {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ── Enhanced Fade Variants ── */
.fade-left  { opacity: 0; transform: translateX(-40px); transition: opacity .8s ease, transform .8s ease; }
.fade-right { opacity: 0; transform: translateX(40px);  transition: opacity .8s ease, transform .8s ease; }
.zoom-in    { opacity: 0; transform: scale(.88);        transition: opacity .7s ease, transform .7s ease; }
.fade-left.visible, .fade-right.visible, .zoom-in.visible { opacity: 1; transform: none; }

/* ── Staggered Card Delays ── */
.rd-card:nth-child(1) { transition-delay: 0s; }
.rd-card:nth-child(2) { transition-delay: .1s; }
.rd-card:nth-child(3) { transition-delay: .2s; }
.rd-card:nth-child(4) { transition-delay: .3s; }
.rd-card:nth-child(5) { transition-delay: .4s; }
.rd-card:nth-child(6) { transition-delay: .5s; }
.rd-card:nth-child(7) { transition-delay: .6s; }
.rd-card:nth-child(8) { transition-delay: .7s; }

/* ── Animated Glow Border on Card Hover ── */
.rd-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--brown), transparent, var(--brown));
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 0;
  animation: borderRotate 3s linear infinite paused;
}
.rd-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}
@keyframes borderRotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.rd-card-img-wrap { position: relative; z-index: 1; }

/* ── Shimmer Skeleton on Image Load ── */
.rd-card-img {
  animation: imgReveal .6s ease both;
}
@keyframes imgReveal {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Scroll Cards entrance ── */
.rd-scroll-card {
  animation: slideInCard .5s ease both;
}
.rd-scroll-card:nth-child(1) { animation-delay: .0s; }
.rd-scroll-card:nth-child(2) { animation-delay: .1s; }
.rd-scroll-card:nth-child(3) { animation-delay: .2s; }
.rd-scroll-card:nth-child(4) { animation-delay: .3s; }
.rd-scroll-card:nth-child(5) { animation-delay: .4s; }
.rd-scroll-card:nth-child(6) { animation-delay: .5s; }
.rd-scroll-card:nth-child(7) { animation-delay: .6s; }
.rd-scroll-card:nth-child(8) { animation-delay: .7s; }
@keyframes slideInCard {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Stat number roll animation ── */
.rd-stat-num {
  display: inline-block;
  transition: transform .3s ease, color .3s;
}
.rd-stat-num.counting { animation: countBounce .4s ease; }
@keyframes countBounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); color: #e8b97a; }
  100% { transform: scale(1); }
}

/* ── About image parallax float ── */
.rd-about-img img {
  animation: imgFloat 6s ease-in-out infinite;
}
@keyframes imgFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.rd-about-img:hover img {
  animation-play-state: paused;
  transform: scale(1.02);
}

/* ── About badge pulse ── */
.rd-about-badge {
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(107,79,59,.4); }
  50%       { box-shadow: 0 8px 50px rgba(107,79,59,.75); }
}

/* ── Section title line animate ── */
.section-title .line, .rd-about-text .line {
  width: 0;
  transition: width 1s ease .3s;
}
.section-title.visible .line, .rd-about-text.visible .line,
.fade-up.visible ~ .line, .section-title .line {
  width: 80px;
}

/* ── FAQ item hover glow ── */
.rd-faq-item {
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.rd-faq-item:hover {
  transform: translateX(6px);
  box-shadow: -4px 0 20px rgba(107,79,59,.2);
}

/* ── Testimonial card tilt shimmer ── */
.testimonial-card {
  transition: transform .4s ease, box-shadow .4s ease;
}
.testimonial-card:hover {
  transform: translateY(-8px) rotate(.5deg);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* ── CTA section glowing pulse ── */
.rd-cta h2 {
  animation: ctaGlow 3s ease-in-out infinite;
}
@keyframes ctaGlow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 40px rgba(107,79,59,.5); }
}

/* ── Button ripple ── */
.btn-primary, .btn-outline {
  position: relative;
  overflow: hidden;
}
.btn-primary::after, .btn-outline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.btn-primary:hover::after, .btn-outline:hover::after {
  transform: scaleX(1);
}

/* ── Scroll indicator bounce ── */
.scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--brown), transparent);
  margin: .5rem auto 0;
  animation: scrollBounce 1.5s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(.4); opacity: .3; }
}
