/* ============================================
   PROVERDE — Red & Gold Theme Design System
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-elevated: #f8f8f8;
  --surface: #f5f5f5;
  --bg-shading: #e8e8e8;
  --text: #1a1a1a;
  --text-muted: #666666;
  
  /* Red - Burgundy */
  --accent-red: #800020;
  --accent-red-dark: #5C0018;
  --accent-red-light: #9D1A3F;
  --red-glow: rgba(128, 0, 32, 0.15);
  
  /* Gold - Metallic Gradient (light gold → warm gold → bronze-gold) */
  --gold-light: #F4E4BC;
  --gold-warm: #D4AF37;
  --gold-bronze: #B8860B;
  --accent-gold: var(--gold-warm);
  --gold-gradient: linear-gradient(135deg, #F4E4BC 0%, #D4AF37 50%, #B8860B 100%);
  --gold-gradient-text: linear-gradient(135deg, #F4E4BC 0%, #D4AF37 50%, #B8860B 100%);
  --accent: var(--gold-warm);
  --accent-dim: rgba(212, 175, 55, 0.1);
  --accent-glow: rgba(212, 175, 55, 0.2);
  
  --border: rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --space: clamp(1rem, 4vw, 2rem);
  --container: min(1200px, 100% - 3rem);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Smooth scroll snap for sections */
@media (min-width: 900px) {
  main {
    scroll-snap-type: y proximity;
  }
  
  .section {
    scroll-snap-align: start;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  cursor: none; /* Custom cursor */
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: normal;
  transition: transform 0.15s ease;
  opacity: 0;
  box-shadow: 0 0 0 2px rgba(128, 0, 32, 0.2);
}

.cursor.active {
  transform: scale(1.3);
  background: var(--gold-warm);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.cursor-follower {
  position: fixed;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold-warm);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s ease, height 0.3s ease;
}

body.has-cursor .cursor,
body.has-cursor .cursor-follower {
  opacity: 1;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red) 0%, var(--gold-warm) 50%, var(--accent-red) 100%);
  background-size: 200% 100%;
  z-index: 10001;
  transition: width 0.1s ease-out;
  animation: progressGradient 3s ease infinite;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

@keyframes progressGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Particles Canvas */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: screen;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space) calc(var(--space) * 1.5);
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
  background: transparent;
  mix-blend-mode: multiply;
  filter: brightness(0.95) contrast(1.1);
  object-fit: contain;
}



.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .proverde {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 1.1em;
  text-transform: capitalize;
}

.logo-text .proverde .p,
.logo-text .proverde .v {
  text-transform: uppercase;
}

.logo-text .goods {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  font-size: 0.75em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav a:hover,
.nav a.active {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(80px + var(--space)) var(--space) var(--space);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  animation: heroBgFloat 25s ease-in-out infinite;
  will-change: transform;
  transform-origin: center;
  z-index: 0;
  /* Ensure smooth video playback */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  background: #000;
  /* Prevent video glitches during loop */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Smooth transitions */
  transition: opacity 0.1s ease;
}

/* Subtle dark overlay for text readability - minimal */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Minimal dark overlay at edges for better contrast */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 80%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 2;
  pointer-events: none;
}

@keyframes heroBgFloat {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-2%, -1%); }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: blob 20s ease-in-out infinite;
  z-index: 0;
}

.blob-1 {
  width: 60vmax;
  height: 60vmax;
  background: var(--accent-glow);
  top: -20%;
  right: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 40vmax;
  height: 40vmax;
  background: rgba(128, 0, 32, 0.08);
  bottom: -10%;
  left: -5%;
  animation-delay: -8s;
}

.blob-3 {
  width: 35vmax;
  height: 35vmax;
  background: rgba(212, 175, 55, 0.1);
  top: 50%;
  left: 50%;
  animation: blobFloat 15s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(-48%, -52%) scale(1.1); }
  66% { transform: translate(-52%, -48%) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  z-index: 2;
  opacity: 0.5;
}

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: heroContentFadeIn 1.2s ease-out;
}

@keyframes heroContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* Brighter hero-label for services page */
body.page-services .hero-label {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 30%, #FFD700 60%, #FFE55C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5)) brightness(1.2);
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.5),
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 0, 0, 0.2);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: heroLineIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  color: #ffffff;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.5),
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-title .line-1 { animation-delay: 0.2s; }
.hero-title .line-2 { animation-delay: 0.45s; }
.hero-title .line-3 { animation-delay: 0.7s; }

@keyframes heroLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title .accent {
  color: #ffffff;
  font-style: italic;
  font-weight: 700;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3);
}


.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: animateIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}

@keyframes animateIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

/* Enhanced hero description for index.html only */
body:not(.page-services):not(.page-about):not(.page-contact):not(.page-products):not(.page-work) .hero-desc {
  font-size: 1.2rem;
  color: #ffffff;
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.8;
  font-weight: 400;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red-light) 0%, var(--accent-red) 50%, var(--accent-red-dark) 100%);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-red-dark) 0%, var(--accent-red) 50%, var(--accent-red-light) 100%);
  transform: translateY(-3px) translateZ(10px) rotateX(5deg) scale(1.05);
  box-shadow: 
    0 15px 45px var(--red-glow),
    0 0 0 1px rgba(128, 0, 32, 0.2),
    0 0 30px rgba(128, 0, 32, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(1);
  transition: transform 0.1s ease;
}

/* Magnetic button effect */
.btn-magnetic {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-magnetic:hover::before {
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold-warm);
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.btn-ghost:active {
  transform: translateY(0) scale(1);
  transition: transform 0.1s ease;
}

.btn-full {
  width: 100%;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 3s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-light) 0%, var(--gold-warm) 50%, var(--gold-bronze) 100%, transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== Scroll reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========== Sections ========== */
.section {
  padding: clamp(2.5rem, 6vw, 4rem) var(--space);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  border-left: 1px solid rgba(212, 175, 55, 0.15);
  border-right: 1px solid rgba(212, 175, 55, 0.15);
  padding-left: calc(var(--space) * 1.25);
  padding-right: calc(var(--space) * 1.25);
  position: relative;
}

.container::before,
.container::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  opacity: 0.5;
}

.container::before {
  top: 0;
}

.container::after {
  bottom: 0;
}

.container.narrow {
  max-width: 640px;
  border-left: 1px solid rgba(212, 175, 55, 0.15);
  border-right: 1px solid rgba(212, 175, 55, 0.15);
}

/* ========== Idea Box – animated container (multi-page) ========== */
.idea-box {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--surface);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
}

.idea-box.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.idea-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-warm) 20%, var(--gold-bronze) 30%, transparent 40%, transparent 60%, var(--accent-red-light) 70%, var(--accent-red) 80%, var(--accent-red-dark) 100%);
  background-size: 200% 200%;
  animation: ideaBorderFlow 6s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.idea-box-inner {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 2rem;
  border: 1px solid var(--border);
}

.idea-box:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.08);
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.idea-box.idea-box-glow::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.idea-box.idea-box-glow:hover::after {
  opacity: 0.15;
}

@keyframes ideaBorderFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.idea-box.idea-box-spin::before {
  background: conic-gradient(from 0deg, var(--accent-red) 0%, var(--gold-light) 15%, var(--gold-warm) 25%, var(--gold-bronze) 35%, var(--accent-red) 50%, var(--gold-light) 65%, var(--gold-warm) 75%, var(--gold-bronze) 85%, var(--accent-red) 100%);
  background-size: auto;
  animation: ideaBorderSpin 8s linear infinite;
}

@keyframes ideaBorderSpin {
  to { transform: rotate(360deg); }
}

.page-wrap {
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 4rem;
  position: relative;
}

/* Page Background Images */
body.page-services {
  background-image: url('assets/service.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body.page-about {
  background-image: url('assets/about.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body.page-contact {
  background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body.page-products {
  background-image: url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body.page-work {
  background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Page Background Overlay */
body.page-services::before,
body.page-about::before,
body.page-contact::before,
body.page-products::before,
body.page-work::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.55) 100%
  );
  z-index: 0;
  pointer-events: none;
  animation: backgroundFade 2s ease-in-out;
}

@keyframes backgroundFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.page-wrap {
  position: relative;
  z-index: 1;
}

/* Advanced Page Animations */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-5deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* Page-specific animation classes */
.page-animate-fade {
  opacity: 0;
  animation: pageFadeIn 0.8s ease-out forwards;
}

.page-animate-slide-left {
  opacity: 0;
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.page-animate-slide-right {
  opacity: 0;
  animation: slideInFromRight 0.8s ease-out forwards;
}

.page-animate-scale {
  opacity: 0;
  animation: scaleIn 0.6s ease-out forwards;
}

.page-animate-rotate {
  opacity: 0;
  animation: rotateIn 0.7s ease-out forwards;
}

/* Intersection Observer will trigger animations */
.page-animate-fade:not(.visible),
.page-animate-slide-left:not(.visible),
.page-animate-slide-right:not(.visible),
.page-animate-scale:not(.visible),
.page-animate-rotate:not(.visible) {
  opacity: 0;
}

.page-animate-fade.visible,
.page-animate-slide-left.visible,
.page-animate-slide-right.visible,
.page-animate-scale.visible,
.page-animate-rotate.visible {
  animation-play-state: running;
}

/* Enhanced container visibility on pages with backgrounds */
body.page-services .container,
body.page-about .container,
body.page-contact .container,
body.page-products .container,
body.page-work .container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

body.page-services .container::before,
body.page-about .container::before,
body.page-contact .container::before,
body.page-products .container::before,
body.page-work .container::before,
body.page-services .container::after,
body.page-about .container::after,
body.page-contact .container::after,
body.page-products .container::after,
body.page-work .container::after {
  display: none;
}

/* Staggered animation delays for better visual flow */
.page-animate-fade:nth-child(1) { animation-delay: 0.1s; }
.page-animate-fade:nth-child(2) { animation-delay: 0.2s; }
.page-animate-fade:nth-child(3) { animation-delay: 0.3s; }
.page-animate-fade:nth-child(4) { animation-delay: 0.4s; }

.page-animate-slide-left:nth-child(odd) { animation-delay: 0.15s; }
.page-animate-slide-right:nth-child(even) { animation-delay: 0.25s; }

.page-hero {
  padding: clamp(2rem, 5vw, 3rem) var(--space) 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.page-hero .section-label {
  margin-bottom: 0.5rem;
  text-align: center;
  display: inline-block;
  width: 100%;
}

.page-hero .section-title {
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 800px;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.content-section {
  padding: 0 var(--space) clamp(2.5rem, 6vw, 3.5rem);
}

.content-section .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Work page – idea cards with image */
.work-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.work-idea-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  min-height: 280px;
  padding: 0;
}

.work-idea-card .idea-box-inner {
  padding: 0;
  background: transparent;
  border: none;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.work-idea-bg {
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--radius-lg) - 2px);
  background-image: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%), var(--img);
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.work-idea-card:hover .work-idea-bg {
  transform: scale(1.06);
}

.work-idea-inner {
  padding: 2rem;
  z-index: 1;
}

.work-idea-inner .work-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 600;
}

.work-idea-inner h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.work-idea-inner p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  display: block;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-align: center;
}

/* ========== Services ========== */
.services {
  background: var(--bg-elevated);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.service-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-8px) translateZ(20px) rotateX(2deg) rotateY(-2deg) scale(1.02);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(212, 175, 55, 0.1),
    0 0 40px rgba(212, 175, 55, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card::after {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card:hover::after {
  transform: translate(50%, 50%) rotate(30deg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover::after {
  opacity: 1;
  animation: cardShimmer 0.8s ease-out;
}

@keyframes cardShimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

.service-num {
  font-size: 0.8rem;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
  margin-bottom: 1rem;
  display: block;
  font-weight: 600;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.card-link {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}

.card-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}

.card-link:hover::after {
  width: 100%;
}

.card-link:hover {
  letter-spacing: 0.02em;
}

/* ========== About ========== */
.about .split {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-frame {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: inherit;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
  filter: brightness(1) contrast(1);
}

.about-frame:hover .about-image {
  transform: scale(1.06) rotate(1deg);
  filter: brightness(1.1) contrast(1.1);
}

.about-frame {
  transition: transform 0.3s ease;
}

.about-frame:hover {
  transform: translateY(-5px);
}

.frame-accent {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 40%;
  height: 40%;
  background: var(--accent);
  opacity: 0.2;
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.about-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.about-stats li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-stats strong {
  display: block;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

/* ========== Work ========== */
.work {
  background: var(--bg);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.work-card:hover {
  transform: scale(1.02);
  border-color: rgba(212, 175, 55, 0.3);
}

.work-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, hsl(var(--hue), 25%, 12%) 0%, hsl(var(--hue), 20%, 6%) 100%);
  opacity: 0.9;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity var(--transition);
}

.work-card-img {
  background-image: linear-gradient(160deg, hsla(var(--hue), 25%, 12%, 0.88) 0%, hsla(var(--hue), 20%, 6%, 0.92) 100%), var(--img);
  background-size: cover;
  background-position: center;
}

.work-card:hover .work-card-bg {
  opacity: 1;
  transform: scale(1.08);
}

.work-tag {
  position: relative;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.work-card h3 {
  position: relative;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.work-card p {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.work-card-large {
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 100%;
}

.work-card-large h3 {
  font-size: 1.75rem;
}

/* ========== Testimonial ========== */
.testimonial {
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(128, 0, 32, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Unique Message Section Design */
.message-section {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.message-content {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(212, 175, 55, 0.1);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.message-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, 
    var(--gold-warm) 0%, 
    var(--accent-red) 50%,
    var(--gold-warm) 100%);
  background-size: 100% 200%;
  animation: gradientShift 4s ease infinite;
}

.message-content::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
  animation: rotateGlow 20s linear infinite;
  pointer-events: none;
}

.message-content:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(212, 175, 55, 0.2),
    0 0 40px rgba(212, 175, 55, 0.1);
  border-color: var(--gold-warm);
}

.message-quote {
  text-align: left;
  border: none;
  padding: 0;
  margin: 0 0 3rem 0;
  position: relative;
}

.message-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -15px;
  font-size: 6rem;
  font-family: var(--font-serif);
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.2;
  line-height: 1;
  z-index: 0;
}

.quote-text {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  margin: 0;
  position: relative;
  z-index: 1;
  padding-left: 2rem;
  letter-spacing: 0.01em;
}

.message-signature {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.signature-wrapper {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  display: inline-block;
  max-width: 220px;
  clip-path: inset(10% 10% 10% 10%);
  -webkit-clip-path: inset(10% 10% 10% 10%);
}

.signature-image {
  max-width: 220px;
  height: auto;
  display: block;
  filter: brightness(0.95) contrast(1.1);
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: contain;
}

.signature-wrapper::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, 
    rgba(212, 175, 55, 0.1) 0%,
    rgba(128, 0, 32, 0.1) 50%,
    rgba(212, 175, 55, 0.1) 100%);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.message-content:hover .signature-wrapper::before {
  opacity: 1;
}

.message-content:hover .signature-image {
  filter: brightness(1) contrast(1.15);
}

.signature-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.signature-name {
  font-style: normal;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text);
  display: block;
  font-family: var(--font-serif);
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: 
    drop-shadow(0 1px 3px rgba(212, 175, 55, 0.4))
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
  opacity: 1;
}

.signature-title {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Message Section */
@media (max-width: 768px) {
  .message-content {
    padding: 3rem 2rem;
  }
  
  .message-signature {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .signature-image {
    max-width: 180px;
  }
  
  .quote-text {
    padding-left: 1.5rem;
    font-size: 1.15rem;
  }
  
  .message-quote::before {
    font-size: 4rem;
    top: -10px;
    left: -10px;
  }
}

/* ========== Contact ========== */
.contact-inner {
  max-width: 560px;
}

.contact .section-label {
  text-align: center;
  display: block;
  width: 100%;
}

.contact .section-title {
  text-align: center;
}

.contact-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-form-wrapper {
  display: flex;
  flex-direction: column;
}

.contact-map-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.contact-map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(212, 175, 55, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-map-container:hover {
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.contact-map {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

.contact-info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Contact Split Layout with Image */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.contact-visual {
  position: relative;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1200px;
}

.contact-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(212, 175, 55, 0.2),
    0 0 40px rgba(212, 175, 55, 0.1);
}

.contact-image-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-warm), var(--accent-red), var(--gold-warm), var(--gold-light));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  opacity: 0.6;
  animation: gradientShift 4s ease infinite;
}

.contact-image-frame:hover {
  transform: translateZ(20px) rotateY(-5deg) rotateX(2deg);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(212, 175, 55, 0.3),
    0 0 60px rgba(212, 175, 55, 0.2);
}

.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  filter: brightness(1) contrast(1.05) saturate(1.1);
}

.contact-image-frame:hover .contact-image {
  transform: translateZ(10px) scale(1.05);
}

.contact-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 50%,
    rgba(128, 0, 32, 0.1) 100%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.contact-image-frame:hover .contact-image-overlay {
  opacity: 0.8;
}

.contact-image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-warm));
  opacity: 0.2;
  filter: blur(30px);
  z-index: -1;
  animation: float3D 8s ease-in-out infinite;
  transform-style: preserve-3d;
}

.contact-image-decoration::before {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red-light), var(--accent-red));
  opacity: 0.15;
  filter: blur(25px);
  animation: float3D 6s ease-in-out infinite reverse;
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Responsive Contact Layout */
@media (max-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-visual {
    min-height: 400px;
    order: -1;
  }
  
  .contact-image-frame:hover {
    transform: translateZ(10px);
  }
  
  .contact-map-wrapper {
    order: -1;
  }
  
  .contact-map-container {
    height: 350px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  position: relative;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all var(--transition);
  position: relative;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-warm);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
  transform: translateY(-10px);
  opacity: 0;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form Error Messages */
.form-error {
  display: block;
  color: var(--accent-red);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-height: 1rem;
}

.form-group.error .form-error {
  opacity: 1;
  transform: translateY(0);
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.15);
}

.form-group.success input,
.form-group.success textarea {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Button Loader */
.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
}

.btn.loading .btn-text {
  opacity: 0.7;
}

.btn.loading .btn-loader {
  display: inline-block;
}

/* Counter Animation */
.counter {
  display: inline-block;
  transition: transform 0.3s ease;
}

.counter.animate {
  animation: counterPulse 0.5s ease;
}

@keyframes counterPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.counter-text {
  display: inline-block;
}

/* ========== Footer ========== */
.footer {
  padding: 2rem var(--space);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a,
.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-bottom a:hover {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: inherit;
  font-family: inherit;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-weight: normal;
}

.pds-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: normal;
  font-family: inherit;
  font-size: inherit;
  transition: color var(--transition);
}

.pds-link:hover {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pds-logo {
  height: 1em;
  width: auto;
  vertical-align: middle;
  display: inline-block;
  margin-left: 0.15rem;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: brightness(0.95) contrast(1.05);
}

.powered-by:hover .pds-logo {
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(1) contrast(1.1);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .about .split {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .work-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .work-card-large {
    grid-column: 1;
    grid-row: auto;
    min-height: 260px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Tablet: Optimize video for smooth playback */
  .hero-bg-video {
    object-fit: cover;
    object-position: center;
    -webkit-transform: translateZ(0) scale(1);
    transform: translateZ(0) scale(1);
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  .logo img {
    height: 45px;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  /* Mobile: Ensure video is optimized for smaller screens */
  .hero-bg-video {
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Reduce animation on mobile for better performance */
    animation: none;
  }

  /* Reduce parallax effect on mobile for smoother performance */
  .hero-bg .parallax {
    transform: none !important;
  }
}

/* ========== Advanced UI Patterns ========== */

/* Parallax elements */
.parallax {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* 3D Card transforms */
.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.card-3d:hover {
  transform: rotateY(8deg) rotateX(-8deg) translateZ(30px) scale(1.02);
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(212, 175, 55, 0.2),
    0 0 50px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Advanced text reveal - split text */
.split-text {
  display: inline-block;
  overflow: hidden;
}

.split-text span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-text.revealed span {
  transform: translateY(0);
}

/* Morphing blob background */
.morph-blob {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  filter: blur(60px);
  opacity: 0.3;
  animation: morphBlob 20s ease-in-out infinite;
}

@keyframes morphBlob {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translate(0, 0); }
  25% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: translate(20px, -20px); }
  50% { border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%; transform: translate(-20px, 20px); }
  75% { border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%; transform: translate(10px, 10px); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10002;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.page-transition.active {
  clip-path: circle(150% at 50% 50%);
  pointer-events: all;
}

/* Loading animation */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--border);
  border-top-color: var(--gold-warm);
  border-right-color: var(--accent-red);
  border-bottom-color: var(--gold-bronze);
  border-left-color: var(--gold-light);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: spin3D 1s linear infinite;
}

@keyframes spin3D {
  0% {
    transform: rotateZ(0deg) rotateY(0deg);
  }
  50% {
    transform: rotateZ(180deg) rotateY(180deg);
  }
  100% {
    transform: rotateZ(360deg) rotateY(360deg);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

/* Sticky elements */
.sticky {
  position: sticky;
  top: 100px;
  z-index: 10;
}

/* Floating animation */
.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Glitch text effect */
.glitch {
  position: relative;
  animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--accent);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(10px, 9999px, 20px, 0); }
  20% { clip: rect(30px, 9999px, 40px, 0); }
  40% { clip: rect(50px, 9999px, 60px, 0); }
  60% { clip: rect(20px, 9999px, 30px, 0); }
  80% { clip: rect(40px, 9999px, 50px, 0); }
  100% { clip: rect(60px, 9999px, 70px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(20px, 9999px, 30px, 0); }
  20% { clip: rect(50px, 9999px, 60px, 0); }
  40% { clip: rect(10px, 9999px, 20px, 0); }
  60% { clip: rect(40px, 9999px, 50px, 0); }
  80% { clip: rect(30px, 9999px, 40px, 0); }
  100% { clip: rect(60px, 9999px, 70px, 0); }
}

/* Gradient text animation */
.gradient-text {
  background: linear-gradient(90deg, var(--accent), #fff, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
  to { background-position: 200% center; }
}

/* Utility classes for gradient text */
.gold-gradient-text {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Core Values h3 - Make visible with solid color */
.timeline-item h3.gold-gradient-text {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  color: var(--accent-red);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.red-gradient-text {
  background: linear-gradient(135deg, var(--accent-red-light) 0%, var(--accent-red) 50%, var(--accent-red-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========== Creative Page Layouts ========== */

/* Timeline layout */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-light) 0%, var(--gold-warm) 50%, var(--gold-bronze) 100%, transparent);
}

.timeline-item {
  position: relative;
  padding-left: 5rem;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-red);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold-warm);
}

/* Creative grid layouts */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.creative-card {
  position: relative;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.creative-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.creative-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.creative-card:hover::before {
  transform: scaleX(1);
}

.creative-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.creative-card-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.creative-card:hover .creative-card-icon::after {
  opacity: 0.3;
}

/* Split layout with image */
.split-creative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 3rem 0;
}

.split-creative.reverse {
  grid-template-columns: 1fr 1fr;
}

.split-creative.reverse .split-content {
  order: 2;
}

.split-creative.reverse .split-visual {
  order: 1;
}

.split-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-creative:hover .split-visual img {
  transform: scale(1.05);
}

/* Product grid with images */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.product-card-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elevated) 100%);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card-image img {
  transform: scale(1.1);
}

.product-card-content {
  padding: 2rem;
  position: relative;
}

.product-card-badge {
  position: absolute;
  top: -12px;
  right: 2rem;
  background: linear-gradient(135deg, var(--accent-red-light) 0%, var(--accent-red) 50%, var(--accent-red-dark) 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 12px rgba(128, 0, 32, 0.3);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--gold-warm);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-red-light) 0%, var(--accent-red) 50%, var(--accent-red-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Value cards with icons */
.value-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(8px);
}

.value-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ISO badges */
.iso-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.iso-badge {
  padding: 0.75rem 1.5rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid;
  border-image: var(--gold-gradient) 1;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.iso-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gold-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

/* Client grid */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.client-item {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
}

.client-item:hover {
  border-color: var(--gold-warm);
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .split-creative {
    grid-template-columns: 1fr;
  }
  
  .split-creative.reverse .split-content,
  .split-creative.reverse .split-visual {
    order: initial;
  }
  
  .timeline::before {
    left: 1rem;
  }
  
  .timeline-item {
    padding-left: 3rem;
  }
  
  .timeline-item::before {
    left: 0.5rem;
  }
}

/* ============================================
   ADVANCED 3D EFFECTS & MODERN STYLING
   ============================================ */

/* Advanced 3D Card Transformations */
.service-card,
.creative-card,
.product-card,
.stat-card,
.value-card,
.client-item,
.idea-box,
.work-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Enhanced 3D Hover Effects */
.service-card:hover,
.creative-card:hover,
.product-card:hover,
.stat-card:hover,
.value-card:hover,
.client-item:hover,
.idea-box:hover,
.work-card:hover {
  transform: translateY(-8px) translateZ(25px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(212, 175, 55, 0.15),
    0 0 50px rgba(212, 175, 55, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Advanced Glassmorphism */
.service-card,
.creative-card,
.idea-box-inner {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* 3D Tilt Effect on Mouse Move */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Advanced Button 3D Effects */
.btn {
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) translateZ(0);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  box-shadow: 
    0 4px 15px rgba(128, 0, 32, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  box-shadow: 
    0 15px 45px var(--red-glow),
    0 0 0 1px rgba(128, 0, 32, 0.2),
    0 0 30px rgba(128, 0, 32, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Advanced Header 3D Effect */
.header {
  transform-style: preserve-3d;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 2px 20px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateZ(0);
}

/* Advanced Container 3D Effect */
.container {
  transform-style: preserve-3d;
  position: relative;
}

.container::before,
.container::after {
  transform: translateZ(-1px);
}

/* Advanced Hero Content 3D */
.hero-content {
  transform-style: preserve-3d;
  perspective: 1200px;
}

.hero-title {
  transform-style: preserve-3d;
}

.hero-title .line {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-title:hover .line {
  transform: translateZ(10px);
}

.hero-title:hover .line-1 {
  transform: translateZ(15px) rotateX(2deg);
}

.hero-title:hover .line-2 {
  transform: translateZ(20px) rotateX(-2deg);
}

.hero-title:hover .line-3 {
  transform: translateZ(25px) rotateX(3deg);
}

/* Advanced Card Shimmer Effect */
.service-card::after,
.creative-card::after,
.product-card::after {
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 70%
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover::after,
.creative-card:hover::after,
.product-card:hover::after {
  transform: translateX(200%) translateY(200%) rotate(45deg);
}

/* Advanced Gradient Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.service-card::before,
.creative-card::before {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Advanced Floating Animation */
@keyframes float3D {
  0%, 100% {
    transform: translateY(0) translateZ(0) rotateX(0deg);
  }
  33% {
    transform: translateY(-10px) translateZ(10px) rotateX(2deg);
  }
  66% {
    transform: translateY(-5px) translateZ(5px) rotateX(-1deg);
  }
}

.service-card,
.creative-card,
.product-card {
  animation: float3D 6s ease-in-out infinite;
}

.service-card:nth-child(2),
.creative-card:nth-child(2),
.product-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3),
.creative-card:nth-child(3),
.product-card:nth-child(3) {
  animation-delay: 0.4s;
}

/* Advanced Parallax Layers */
.parallax {
  will-change: transform;
  transform-style: preserve-3d;
}

/* Advanced Shadow Layers */
.service-card,
.creative-card,
.product-card,
.idea-box {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.07));
}

.service-card:hover,
.creative-card:hover,
.product-card:hover,
.idea-box:hover {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Advanced Border Glow Effect */
.service-card,
.creative-card,
.product-card,
.idea-box {
  position: relative;
}

.service-card::before,
.creative-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-warm), var(--accent-red), var(--gold-warm), var(--gold-light));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: gradientShift 4s ease infinite;
  z-index: -1;
}

.service-card:hover::before,
.creative-card:hover::before,
.product-card:hover::before,
.idea-box:hover::before {
  opacity: 0.6;
}

/* Advanced Text 3D Effect */
.section-title,
.hero-title {
  text-shadow: 
    0 1px 0 rgba(0, 0, 0, 0.1),
    0 2px 0 rgba(0, 0, 0, 0.08),
    0 3px 5px rgba(0, 0, 0, 0.05),
    0 4px 10px rgba(0, 0, 0, 0.03);
  transform-style: preserve-3d;
}

/* Advanced Image 3D Effect */
.split-visual img,
.about-image,
.product-card-image img {
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.split-creative:hover .split-visual img,
.about-frame:hover .about-image,
.product-card:hover .product-card-image img {
  transform: translateZ(20px) scale(1.05) rotateY(2deg);
}

/* Advanced Morphing Background */
@keyframes morphBackground {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(0, 0) scale(1);
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate(20px, -20px) scale(1.1);
  }
  50% {
    border-radius: 70% 30% 50% 50% / 30% 50% 70% 50%;
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    border-radius: 40% 60% 60% 40% / 70% 30% 50% 50%;
    transform: translate(10px, 10px) scale(1.05);
  }
}

.blob,
.morph-blob {
  animation: morphBackground 20s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* Advanced Scroll Reveal 3D */
.reveal {
  transform-style: preserve-3d;
  transform: translateY(40px) translateZ(-50px) rotateX(10deg);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  transform: translateY(0) translateZ(0) rotateX(0deg);
  opacity: 1;
}


/* Advanced Cursor 3D Effect */
.cursor {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
}

.cursor.active {
  transform: scale(1.5) translateZ(10px);
}

.cursor-follower {
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Advanced Form Input 3D */
.contact-form input,
.contact-form textarea {
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-form input:focus,
.contact-form textarea:focus {
  transform: translateY(-2px) translateZ(5px);
  box-shadow: 
    0 0 0 3px rgba(212, 175, 55, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Advanced Stat Card 3D */
.stat-card {
  transform-style: preserve-3d;
}

.stat-number {
  transform-style: preserve-3d;
  display: inline-block;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-number {
  transform: translateZ(15px) scale(1.1);
}

/* Advanced Timeline 3D */
.timeline-item {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(10px) translateZ(5px);
}

.timeline-item::before {
  transform-style: preserve-3d;
  box-shadow: 
    0 0 0 2px var(--gold-warm),
    0 0 20px rgba(212, 175, 55, 0.5),
    inset 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Advanced Value Card Icon 3D */
.value-icon {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.value-card:hover .value-icon {
  transform: translateZ(15px) rotateY(360deg) scale(1.1);
}

/* Advanced Creative Card Icon 3D */
.creative-card-icon {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.creative-card:hover .creative-card-icon {
  transform: translateZ(20px) rotateX(15deg) rotateY(15deg) scale(1.15);
}

/* Advanced Product Card Badge 3D */
.product-card-badge {
  transform-style: preserve-3d;
  transform: translateZ(10px);
  box-shadow: 
    0 4px 12px rgba(128, 0, 32, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.product-card:hover .product-card-badge {
  transform: translateZ(20px) rotateY(5deg);
}

/* Advanced Footer 3D */
.footer {
  transform-style: preserve-3d;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-warm), transparent);
  opacity: 0.3;
  transform: translateZ(-1px);
}

/* Advanced Page Container 3D */
body.page-services .container,
body.page-about .container,
body.page-contact .container,
body.page-products .container,
body.page-work .container {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

body.page-services .container:hover,
body.page-about .container:hover,
body.page-contact .container:hover,
body.page-products .container:hover,
body.page-work .container:hover {
  transform: translateZ(5px);
}

/* Advanced Idea Box 3D Border */
.idea-box::before {
  transform-style: preserve-3d;
  animation: ideaBorderFlow 6s ease-in-out infinite, rotate3D 20s linear infinite;
}

@keyframes rotate3D {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* Advanced Scroll Progress 3D */
.scroll-progress {
  transform-style: preserve-3d;
  box-shadow: 
    0 2px 10px rgba(212, 175, 55, 0.5),
    0 0 20px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Advanced Particle Canvas 3D */
.particles-canvas {
  transform-style: preserve-3d;
  transform: translateZ(-100px);
}

/* Advanced Logo 3D */
.logo {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateZ(10px) rotateY(5deg);
}

.logo img {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: translateZ(5px) scale(1.05);
}

/* Advanced Navigation 3D */
.nav a {
  transform-style: preserve-3d;
  position: relative;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transform: translateZ(5px);
  transition: width 0.3s ease;
}

.nav a:hover {
  transform: translateY(-2px) translateZ(5px);
}

.nav a:hover::before {
  width: 100%;
}

/* Advanced Section Background 3D */
.section {
  transform-style: preserve-3d;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
  transform: translateZ(-10px);
  pointer-events: none;
  z-index: 0;
}

/* Advanced Work Card 3D */
.work-card {
  transform-style: preserve-3d;
}

.work-card-bg {
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-card:hover .work-card-bg {
  transform: translateZ(30px) scale(1.1) rotateY(2deg);
}

/* Advanced Testimonial 3D */
.testimonial-quote {
  transform-style: preserve-3d;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -20px;
  font-size: 6rem;
  font-family: var(--font-serif);
  color: rgba(212, 175, 55, 0.1);
  transform: translateZ(-20px) rotateY(15deg);
  pointer-events: none;
}

/* Advanced ISO Badge 3D */
.iso-badge {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
  display: inline-block;
}

.iso-badge:hover {
  transform: translateY(-4px) translateZ(10px) rotateX(5deg);
  box-shadow: 
    0 8px 25px rgba(212, 175, 55, 0.4),
    0 0 0 1px rgba(212, 175, 55, 0.3);
}

/* Advanced Client Item 3D */
.client-item {
  transform-style: preserve-3d;
}

.client-item:hover {
  transform: scale(1.05) translateZ(15px) rotateY(5deg);
}

/* Advanced Split Creative 3D */
.split-creative {
  transform-style: preserve-3d;
}

.split-visual {
  transform-style: preserve-3d;
}

.split-content {
  transform-style: preserve-3d;
}

.split-creative:hover .split-visual {
  transform: translateZ(10px);
}

.split-creative:hover .split-content {
  transform: translateZ(5px);
}

/* Advanced About Frame 3D */
.about-frame {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.about-frame:hover {
  transform: translateY(-5px) translateZ(15px) rotateY(2deg);
}

.frame-accent {
  transform-style: preserve-3d;
  transform: translateZ(-10px);
}

/* Advanced Hero Label 3D */
.hero-label {
  transform-style: preserve-3d;
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero-label:hover {
  transform: translateZ(5px) rotateX(5deg);
}

/* Advanced Section Label 3D */
.section-label {
  transform-style: preserve-3d;
  display: inline-block;
  transition: transform 0.3s ease;
}

.section-label:hover {
  transform: translateZ(5px) rotateX(5deg);
}

/* Performance Optimization */
.service-card,
.creative-card,
.product-card,
.btn,
.idea-box {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Disable 3D on Mobile for Performance */
@media (max-width: 900px) {
  .service-card:hover,
  .creative-card:hover,
  .product-card:hover,
  .stat-card:hover,
  .value-card:hover,
  .client-item:hover,
  .idea-box:hover,
  .work-card:hover {
    transform: translateY(-4px);
  }
  
  .service-card,
  .creative-card,
  .product-card {
    animation: none;
  }
}

/* ========== Compact & Unique Design Enhancements ========== */

/* Remove extra spacing between sections */
.section + .section {
  margin-top: -1rem;
}

/* Compact section dividers with unique style */
.section:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  display: block;
}

/* Tighter card spacing */
.service-card,
.idea-box,
.creative-card,
.product-card,
.stat-card,
.value-card,
.client-item,
.work-card {
  margin-bottom: 0;
}

/* Compact grid layouts */
.services-grid,
.work-grid,
.work-page-grid {
  margin-bottom: -0.5rem;
}

/* Unique section title spacing */
.section-title {
  line-height: 1.2;
}

/* Compact hero spacing */
.hero {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

/* Efficient footer spacing */
.footer-nav {
  margin-bottom: 1rem;
}

.footer-bottom {
  margin-top: 1rem;
}

/* Compact form spacing */
.form-group {
  margin-bottom: 1.25rem;
}

/* Compact product grid */
.products-grid {
  gap: 1.25rem;
}


/* Unique visual separator for content sections */
.content-section::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-warm);
  margin: 0 auto 1.5rem;
  opacity: 0.4;
}

/* Remove excessive margins from containers */
.container > *:first-child {
  margin-top: 0;
}

.container > *:last-child {
  margin-bottom: 0;
}

/* Compact timeline */
.timeline {
  padding-left: 0;
}

/* Unique spacing for split layouts */
.split > * {
  margin-bottom: 0;
}

/* Efficient use of vertical space */
.page-hero + .content-section {
  margin-top: -1rem;
}

/* Compact header spacing */
.header {
  padding-top: calc(var(--space) * 0.75);
  padding-bottom: calc(var(--space) * 0.75);
}

/* ========== Why Choose Us - Unique Design ========== */
.why-choose-section {
  margin: 3rem 0;
  padding: 0;
}

.why-choose-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space);
}

.why-choose-header {
  text-align: center;
  margin-bottom: 3rem;
}

.why-choose-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
}

.why-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(212, 175, 55, 0.05) 0%, 
    rgba(128, 0, 32, 0.05) 50%,
    rgba(212, 175, 55, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.why-card:hover::before {
  opacity: 1;
}

.why-card-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.15;
  line-height: 1;
  font-family: var(--font-serif);
  transition: all 0.5s ease;
  z-index: 1;
}

.why-card:hover .why-card-number {
  opacity: 0.25;
  transform: scale(1.1) translateY(-5px);
}

.why-card-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  position: relative;
  z-index: 2;
}

.why-card:hover .why-card-icon {
  transform: scale(1.15) rotateY(15deg) translateZ(20px);
  filter: drop-shadow(0 8px 16px rgba(212, 175, 55, 0.3));
}

.why-card-content {
  position: relative;
  z-index: 2;
}

.why-card-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-family: var(--font-serif);
  transition: color 0.3s ease;
}

.why-card:hover .why-card-content h3 {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-card-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

.why-card-glow {
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, 
    rgba(212, 175, 55, 0.2) 0%, 
    rgba(128, 0, 32, 0.1) 50%,
    transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 0;
  filter: blur(30px);
}

.why-card:hover .why-card-glow {
  opacity: 1;
  bottom: -30%;
  width: 300px;
  height: 300px;
}

.why-card:hover {
  border-color: var(--gold-warm);
  transform: translateY(-12px) translateZ(20px) rotateX(2deg);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(212, 175, 55, 0.2),
    0 0 40px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.why-card-featured {
  background: linear-gradient(135deg, 
    var(--surface) 0%, 
    rgba(212, 175, 55, 0.03) 50%,
    var(--surface) 100%);
  border-color: var(--gold-warm);
  border-width: 2.5px;
}

.why-card-featured::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    var(--gold-warm) 0%, 
    var(--accent-red) 50%,
    var(--gold-warm) 100%);
  background-size: 200% 200%;
  border-radius: 24px;
  z-index: -1;
  opacity: 0.3;
  animation: gradientShift 3s ease infinite;
}

/* Staggered animation delays */
.why-card:nth-child(1) {
  animation-delay: 0.1s;
}

.why-card:nth-child(2) {
  animation-delay: 0.2s;
}

.why-card:nth-child(3) {
  animation-delay: 0.3s;
}

.why-card:nth-child(4) {
  animation-delay: 0.4s;
}

.why-card:nth-child(5) {
  animation-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 900px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .why-card {
    padding: 2rem 1.5rem;
  }
  
  .why-card-number {
    font-size: 2.5rem;
  }
  
  .why-card-icon {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .why-choose-header {
    margin-bottom: 2rem;
  }
  
  .why-choose-subtitle {
    font-size: 1rem;
  }
  
  .why-card-content h3 {
    font-size: 1.2rem;
  }
}

/* ========== Floating WhatsApp Button ========== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 12px rgba(37, 211, 102, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: visible;
  animation: whatsappPulse 2s ease-in-out infinite;
  text-decoration: none;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover::before {
  opacity: 1;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 
    0 6px 20px rgba(37, 211, 102, 0.6),
    0 12px 40px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-float img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  display: block;
}

.whatsapp-float:hover img {
  transform: scale(1.1) rotate(5deg);
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 
      0 4px 12px rgba(37, 211, 102, 0.4),
      0 8px 24px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 
      0 4px 12px rgba(37, 211, 102, 0.6),
      0 8px 24px rgba(0, 0, 0, 0.2),
      0 0 0 10px rgba(37, 211, 102, 0.1);
  }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float img {
    width: 32px;
    height: 32px;
  }
}

/* ================= MOBILE NAVBAR FIX ================= */

@media (max-width: 768px) {

  .header {
    padding: 12px 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
  }

  .logo img {
    height: 42px;
  }

  .logo-text .goods {
    font-size: 0.6rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.3s ease;
  }

  .nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    font-size: 1.1rem;
    color: #333;
  }
}

