/* Kelvino Base Styles (Step 1: minimal scaffold) */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --color-bg: #0A1A0F;
  --color-surface: #0F2418;
  --color-glass: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.15);
  --color-text: #E6F0E8;
  --color-muted: #A8C0B0;
  --color-accent: #FF7A1A;
  --gradient-accent: linear-gradient(135deg, #FF8A00, #FF4D00);

  --radius-pill: 9999px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-inset: inset 4px 4px 12px rgba(0, 0, 0, 0.4), inset -4px -4px 12px rgba(255, 255, 255, 0.05);

  --container-max: 1200px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;


}

/* Wood texture utilities (soft vignette blur at edges) */
.wood-bg-soft,
.wood-bg-alt {
  position: relative;
  overflow: hidden;
}

/* Base sharp layer (visible in center, fades at edges) */
.wood-bg-soft::before,
.wood-bg-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 60%, rgba(0,0,0,0.7) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 60%, rgba(0,0,0,0.7) 78%, transparent 100%);
}

/* Blurred edge layer (only edges visible) */
.wood-bg-soft::after,
.wood-bg-alt::after {
  content: "";
  position: absolute;
  inset: -16px; /* slight overscan for nicer feather */
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(10px) brightness(0.95);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 62%, #000 80%, #000 100%);
  mask-image: radial-gradient(ellipse at center, transparent 62%, #000 80%, #000 100%);
}

.wood-bg-soft::before,
.wood-bg-soft::after {
  background:
    linear-gradient(rgba(10,26,15,0.92), rgba(10,26,15,0.92)),
    url('../Interior-Photos/wood-pattern1.jpg');
}

.wood-bg-alt::before,
.wood-bg-alt::after {
  background:
    linear-gradient(rgba(10,26,15,0.92), rgba(10,26,15,0.92)),
    url('../Interior-Photos/wood-pattern2.jpg');
}

/* Reduce zoom level for the second wood pattern */
.wood-bg-alt::before,
.wood-bg-alt::after {
  background-size: 100% 100%, 1400px auto; /* full gradient, fixed texture scale */
  background-position: center, center 35%;
  background-repeat: no-repeat, no-repeat;
}

@media (max-width: 768px) {
  .wood-bg-alt::before,
  .wood-bg-alt::after {
    background-size: 100% 100%, 900px auto; /* smaller scale on mobile */
    background-position: center, center 40%;
  }
}

.wood-bg-soft > *,
.wood-bg-alt > * {
  position: relative;
  z-index: 2; /* keep above transition overlays */
}

/* Section edge blend helpers */
.blend-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 1; /* above wood bg, below content */
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--color-bg) 0%,
    rgba(10, 26, 15, 0.96) 45%,
    rgba(10, 26, 15, 0.86) 65%,
    transparent 100%
  );
}

.blend-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 1; /* above wood bg, below content */
  pointer-events: none;
  background: linear-gradient(
    0deg,
    var(--color-bg) 0%,
    rgba(10, 26, 15, 0.96) 45%,
    rgba(10, 26, 15, 0.86) 65%,
    transparent 100%
  );
}

/* Reset / Base */
* { box-sizing: border-box; }
html, body { height: 100%; }

/* Ensure proper viewport constraints */
html {
  overflow-x: hidden; /* Prevent horizontal scrolling at root level */
  width: 100%;
  max-width: 100vw;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Mobile body padding for fixed header */
@media (max-width: 1024px) {
  body {
    padding-top: 120px; /* Account for fixed mobile header height */
  }
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Focus styles */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.nav a:focus-visible, .btn:focus-visible, .menu-toggle:focus-visible, .chip:focus-visible, .input:focus-visible, .textarea:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.container { 
  width: min(var(--container-max), 88%); /* Match header width */
  max-width: 92vw; /* Consistent with header */
  margin: 0 auto; 
  padding: 0; /* Ensure no extra padding */
}

.glass {
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
}

/* Glass cards */
.glass-card { background: var(--color-glass); border: 1px solid var(--color-border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 16px; box-shadow: var(--shadow-soft); }
.glass-grid { display: grid; gap: var(--space-3); }
@media (min-width: 769px) { .glass-grid { grid-template-columns: repeat(3, 1fr); } }

/* About page boxes */
.about-cards .card-title { margin: 0 0 6px; font-family: "Space Grotesk", Manrope, system-ui; font-weight: 700; }
.about-cards .card-text { margin: 0; color: var(--color-muted); }
.about-cards .glass-card { padding: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #0A0A0A;
  box-shadow: 0 6px 18px rgba(255, 122, 26, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  box-shadow: var(--shadow-inset);
}
.btn-secondary[aria-disabled="true"] { opacity: .65; pointer-events: none; }

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-animate { background-size: 200% 200%; animation: gradientShift 6s ease-in-out infinite; }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Mobile header improvements */
@media (max-width: 1024px) {
  .header {
    justify-content: space-between; /* Keep consistent with desktop */
    gap: 16px;
    padding: 10px 16px;
    width: min(var(--container-max), 88%); /* Match desktop width */
    max-width: 92vw; /* Match desktop max-width */
  }
  
  .header .btn-primary {
    display: none; /* Hide contact button on mobile */
  }
  
  /* Ensure proper spacing on mobile */
  .brand {
    flex-shrink: 0; /* Prevent brand from shrinking */
  }
  
  .menu-toggle {
    flex-shrink: 0; /* Prevent menu toggle from shrinking */
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .header {
    padding: 8px 12px;
    width: min(var(--container-max), 92%); /* Slightly wider on very small screens */
  }
  
  .brand img {
    width: 24px;
    height: 24px;
  }
  
  .brand span {
    font-size: 14px;
  }
  
  .menu-toggle {
    width: 34px;
    height: 34px;
  }
}

/* Header */
.site-header { 
  position: sticky; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 9999; 
  pointer-events: none; 
  padding-top: 30px; /* Add 30px top padding as requested */
  max-width: 100vw; /* Prevent horizontal overflow */
  overflow: hidden; /* Hide any potential overflow */
  box-sizing: border-box; /* Ensure padding doesn't affect width */
}

/* Mobile header - fixed positioning */
@media (max-width: 1024px) {
  .site-header {
    position: fixed;
  }
}
.header {
  width: min(var(--container-max), 88%); /* Shorter from right side */
  max-width: 92vw; /* More constrained right side */
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  pointer-events: auto;
  position: relative;
  z-index: 10000;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand span { font-family: "Space Grotesk", Manrope, system-ui; letter-spacing: .3px; }

.nav { display: none; gap: 20px; align-items: center; justify-content: center; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--color-muted); }
.nav a[aria-current="page"], .nav a:hover { color: var(--color-text); }

.menu-toggle { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 12px; }
.menu-toggle:hover { background: rgba(255,255,255,0.06); }

.mobile-nav { 
  display: none; 
  position: fixed; 
  inset: 120px 16px auto 16px; /* Adjusted for fixed mobile header */
  padding: 12px; 
  border-radius: 16px; 
  box-shadow: var(--shadow-soft); 
  z-index: 999; /* Ensure it's below the header */
  width: calc(100% - 32px); /* Responsive width */
  max-width: 400px; /* Maximum width for larger screens */
}

/* Mobile nav responsive improvements */
@media (max-width: 480px) {
  .mobile-nav {
    inset: 110px 12px auto 12px; /* Adjusted for smaller screens with fixed header */
    padding: 10px;
    border-radius: 12px;
    width: calc(100% - 24px); /* Responsive width for small screens */
  }
  
  .mobile-nav a {
    padding: 10px;
    font-size: 15px;
  }
}
.mobile-nav a { display: block; padding: 12px; border-radius: 12px; color: var(--color-text); }
.mobile-nav a:hover { background: rgba(255,255,255,0.06); }

.nav-open .mobile-nav { display: block; }

@media (min-width: 1025px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}





/* Hero */
.hero { 
  padding: var(--space-6) 0 var(--space-7); 
  position: relative; 
  z-index: 5; /* Lower than header */
  margin-top: 0; /* Ensure no extra top margin */
}
.hero { position: relative; }

/* Abstract vector background elements */
.right-abstract {
  content: '';
  position: absolute;
  top: 15%;
  right: 8%;
  width: 180px;
  height: 180px;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,122,26,0.08) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255,122,26,0.03) 15px, rgba(255,122,26,0.03) 30px);
  clip-path: polygon(50% 0%, 80% 20%, 100% 50%, 80% 80%, 50% 100%, 20% 80%, 0% 50%, 20% 20%);
  filter: blur(12px);
  animation: geometricFloat 15s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Left side abstract element */
.hero .left-abstract {
  content: '';
  position: absolute;
  top: 25%;
  left: 5%;
  width: 150px;
  height: 150px;
  background: 
    linear-gradient(135deg, rgba(255,122,26,0.06) 0%, transparent 50%),
    repeating-linear-gradient(90deg, transparent, transparent 25px, rgba(255,122,26,0.02) 25px, rgba(255,122,26,0.02) 50px);
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  filter: blur(10px);
  animation: geometricFloatLeft 18s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: -1;
}

/* Additional floating elements */
.top-abstract {
  content: '';
  position: absolute;
  top: 60%;
  right: 15%;
  width: 100px;
  height: 100px;
  background: 
    radial-gradient(circle at center, rgba(255,122,26,0.05) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(255,122,26,0.02) 20px, rgba(255,122,26,0.02) 40px);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  filter: blur(8px);
  animation: geometricFloatSmall 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.bottom-abstract {
  content: '';
  position: absolute;
  top: 70%;
  left: 20%;
  width: 80px;
  height: 80px;
  background: 
    linear-gradient(45deg, rgba(255,122,26,0.04) 0%, transparent 60%),
    repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255,122,26,0.015) 15px, rgba(255,122,26,0.015) 30px);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  filter: blur(6px);
  animation: geometricFloatTiny 25s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: -1;
}
.hero::before { 
  content: ""; 
  position: absolute; 
  inset: -10% -10% auto -10%; 
  height: 60%; 
  background: 
    radial-gradient(600px 600px at 20% 20%, rgba(255,122,26,0.08), transparent 60%),
    linear-gradient(45deg, transparent 30%, rgba(255,122,26,0.03) 50%, transparent 70%),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,122,26,0.02) 40px, rgba(255,122,26,0.02) 80px);
  filter: blur(8px); 
  animation: orbDrift 18s ease-in-out infinite alternate; 
  pointer-events: none; 
  z-index: -2;
}
@keyframes orbDrift { from { transform: translate3d(0,0,0); } to { transform: translate3d(6%, 4%, 0); } }

/* Hero Animation Keyframes */
@keyframes precursorReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes particleAssemble {
  0% {
    opacity: 0;
    transform: scale(0.3);
    filter: blur(8px);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* Removed glowPulse animation - using thin borders instead */

/* About page logo styling */
.about-logo img {
  filter: brightness(0) invert(1); /* Makes logo white */
  max-width: 200px; /* Reasonable size */
  height: auto;
}

/* Geometric address box styling */
.address-box {
  border: 2px solid var(--color-accent);
  background: linear-gradient(135deg, var(--color-surface), rgba(255, 122, 26, 0.05));
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.address-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.address-line {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 122, 26, 0.2);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.address-line:last-child {
  border-bottom: none;
}

@keyframes geometricFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg) scale(1.1);
    opacity: 0.6;
  }
}

@keyframes geometricFloatLeft {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(15px) rotate(-90deg) scale(0.9);
    opacity: 0.5;
  }
}

@keyframes geometricFloatSmall {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.25;
  }
  50% {
    transform: translateY(-15px) rotate(120deg) scale(1.2);
    opacity: 0.4;
  }
}

@keyframes geometricFloatTiny {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(10px) rotate(-60deg) scale(0.8);
    opacity: 0.35;
  }
}
.hero .container { 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  text-align: center; 
  min-height: 70vh;
  padding: 40px 0;
  width: 100%;
  max-width: 100%;
}
.hero-top .container {
  justify-content: flex-start; /* top align vertically */
  min-height: auto; /* don't force 70vh height */
  padding-top: 40px; /* breathing room under header */
}
.hero h1 { font-family: "Space Grotesk", Manrope, system-ui; font-size: clamp(32px, 5vw, 56px); line-height: 1.1; margin: 0 0 12px; }

/* New Hero Text Styling */
.hero-precursor {
  font-size: clamp(28px, 5vw, 36px);
  color: var(--color-muted);
  margin: 0 0 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: precursorReveal 1s ease-out forwards;
  font-weight: 500;
}

.hero-main-title {
  font-size: clamp(120px, 20vw, 180px);
  line-height: 1.1;
  margin: 0 0 60px;
  text-align: center;
  font-weight: 800;
}

.hero-text-particle {
  display: inline-block;
  opacity: 0;
  transform: scale(0.3);
  filter: blur(8px);
  animation: particleAssemble 1.5s ease-out forwards;
  animation-delay: 1s; /* Start after precursor completes */
  font-size: clamp(50px, 6vw, 75px);
  font-weight: 700;
  white-space: nowrap;
}

/* Staggered particle animation delays */
.hero-text-particle:nth-child(1) { animation-delay: 1s; }      /* Choose */
.hero-text-particle:nth-child(2) { animation-delay: 1.1s; }    /* Quality */
.hero-text-particle:nth-child(3) { animation-delay: 1.2s; }    /* , */
.hero-text-particle:nth-child(4) { animation-delay: 1.3s; }    /* Choose */
.hero-text-particle:nth-child(5) { animation-delay: 1.4s; }    /* Kelvino */
.hero-text-particle:nth-child(6) { animation-delay: 1.5s; }    /* . */

.hero-accent {
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(255, 122, 26, 0.6);
  position: relative;
}

.hero-accent {
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(255, 122, 26, 0.6);
  position: relative;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  padding: 4px 8px;
  margin: 0 2px;
}

.hero p { color: var(--color-muted); margin: 0 0 20px; }
.hero-ctas { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap; 
  justify-content: center;
  margin-top: 40px;
  transform: scale(1.2);
}
/* Hero image removed - text-only hero section */

/* Premium Hero Animations with Real Flair */
.hero-animate .hero-content { 
  opacity: 0; 
  transform: translateY(60px) scale(0.8) rotateX(15deg); 
  filter: blur(15px) brightness(0.7); 
  transition: all 1.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
  will-change: transform, opacity, filter; 
  transform-style: preserve-3d;
}

/* FRAMER MOTION HERO ANIMATIONS */
.hero-animate {
  position: relative;
}

/* Light sweep effect for ALL headlines */
h1 {
  position: relative;
  overflow: hidden;
}

h1::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: lightSweep 1.5s ease-out forwards;
  animation-delay: 0.2s;
}

/* Light sweep effect for hero headline (specific timing) */
.hero-animate .hero-content h1::after {
  animation-delay: 0.2s;
}

/* Subtext animation */
.hero-animate .hero-content p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

/* CTA buttons animation */
.hero-animate .hero-ctas {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpSpring 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

/* Global button animations for all pages */
.btn, .cta-button, [class*="btn-"] {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpSpring 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

/* Stagger button animations in button groups */
.btn-group .btn:nth-child(1) { animation-delay: 0.3s; }
.btn-group .btn:nth-child(2) { animation-delay: 0.4s; }
.btn-group .btn:nth-child(3) { animation-delay: 0.5s; }

/* Hero image animation */
.hero-animate .hero-image {
  opacity: 0;
  transform: scale(0.95);
  animation: scaleUpFade 0.8s ease-out forwards;
  animation-delay: 0.7s;
}

/* Global section title animations */
.section-title, .page-title, h2 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

/* Global content animations */
.section-content, .page-content, p {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

/* Section entrance animations - Stretch in effects */
section {
  opacity: 0;
  transform: scaleX(0.95) scaleY(0.98);
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animation classes that get added on scroll */
section.animate-in {
  opacity: 1;
  transform: scaleX(1) scaleY(1);
}

/* Special sections with enhanced animations */
.hero.animate-in {
  animation: heroStretchIn 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.features.animate-in {
  animation: featuresStretchIn 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.product-highlights.animate-in {
  animation: productsStretchIn 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.quality.animate-in {
  animation: qualityStretchIn 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.sustainability.animate-in {
  animation: sustainabilityStretchIn 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.solutions.animate-in {
  animation: solutionsStretchIn 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.testimonials.animate-in {
  animation: testimonialsStretchIn 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Global image animations */
img:not(.hero-image img) {
  opacity: 0;
  transform: scale(0.95);
  animation: scaleUpFade 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes heroShimmer {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

/* FRAMER MOTION STYLE ANIMATION KEYFRAMES */

/* Light sweep effect for headline */
@keyframes lightSweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Fade in with upward motion */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in with upward motion and spring effect */
@keyframes fadeInUpSpring {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale up with fade in */
@keyframes scaleUpFade {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* SECTION STRETCH IN ANIMATIONS */

/* General section stretch in */
@keyframes sectionStretchIn {
  0% {
    opacity: 0;
    transform: scaleX(0.95) scaleY(0.98);
  }
  50% {
    opacity: 0.8;
    transform: scaleX(1.02) scaleY(1.01);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
  }
}

/* Hero section special stretch */
@keyframes heroStretchIn {
  0% {
    opacity: 0;
    transform: scaleX(0.9) scaleY(0.95);
  }
  40% {
    opacity: 0.7;
    transform: scaleX(1.05) scaleY(1.02);
  }
  70% {
    opacity: 0.9;
    transform: scaleX(0.98) scaleY(1.01);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
  }
}

/* Features section stretch */
@keyframes featuresStretchIn {
  0% {
    opacity: 0;
    transform: scaleX(0.92) scaleY(0.96);
  }
  60% {
    opacity: 0.8;
    transform: scaleX(1.03) scaleY(1.01);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
  }
}

/* Products section stretch */
@keyframes productsStretchIn {
  0% {
    opacity: 0;
    transform: scaleX(0.94) scaleY(0.97);
  }
  50% {
    opacity: 0.7;
    transform: scaleX(1.04) scaleY(1.02);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
  }
}

/* Quality section stretch */
@keyframes qualityStretchIn {
  0% {
    opacity: 0;
    transform: scaleX(0.93) scaleY(0.96);
  }
  55% {
    opacity: 0.8;
    transform: scaleX(1.03) scaleY(1.01);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
  }
}

/* Sustainability section stretch */
@keyframes sustainabilityStretchIn {
  0% {
    opacity: 0;
    transform: scaleX(0.91) scaleY(0.95);
  }
  65% {
    opacity: 0.8;
    transform: scaleX(1.04) scaleY(1.02);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
  }
}

/* Solutions section stretch */
@keyframes solutionsStretchIn {
  0% {
    opacity: 0;
    transform: scaleX(0.92) scaleY(0.96);
  }
  45% {
    opacity: 0.7;
    transform: scaleX(1.05) scaleY(1.03);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
  }
}

/* Testimonials section stretch */
@keyframes testimonialsStretchIn {
  0% {
    opacity: 0;
    transform: scaleX(0.93) scaleY(0.97);
  }
  70% {
    opacity: 0.8;
    transform: scaleX(1.02) scaleY(1.01);
  }
  100% {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
  }
}









/* Add subtle glow effect to hero content */
.hero-animate .hero-content.revealed {
  animation: contentGlow 4s ease-in-out infinite;
}

@keyframes contentGlow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 20px rgba(255, 122, 26, 0.1)); }
  50% { filter: brightness(1.05) drop-shadow(0 0 30px rgba(255, 122, 26, 0.2)); }
}





@media (min-width: 769px) {
  .hero .container { grid-template-columns: 1.05fr .95fr; }
}

/* Footer */
.site-footer { margin-top: var(--space-7); padding: var(--space-5) 0; border-top: 1px solid var(--color-border); }
.footer-inner { display: grid; gap: 12px; color: var(--color-muted); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 22px; height: 22px; object-fit: contain; opacity: .9; }
.footer-columns { display: grid; gap: 12px; align-items: start; }
.footer-columns nav { display: grid; grid-auto-flow: row; gap: 8px; }
.footer-columns nav a { color: var(--color-text); opacity: .85; }
.footer-columns nav a:hover { opacity: 1; text-decoration: underline; }
@media (min-width: 769px) { .footer-columns { grid-template-columns: 1fr 1fr; } }

/* Section scaffolds */
.section { padding: var(--space-6) 0; }
.section-header { margin-bottom: var(--space-4); }
.section-title { 
  font-family: "Space Grotesk", Manrope, system-ui; 
  font-size: clamp(28px, 4vw, 42px); 
  margin: 0 0 6px; 
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.section-subtitle { color: var(--color-muted); margin: 0; }

/* Feature chips */
.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.chips-marquee { 
  overflow: hidden; 
  position: relative; 
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); 
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); 
  z-index: 1; 
  width: 100%; /* Constrain width */
  max-width: 100%; /* Prevent overflow */
}
.chips-track { 
  display: inline-flex; 
  gap: 10px; 
  will-change: transform; 
  animation: chipsMarquee 22s linear infinite; 
  max-width: none; /* Allow natural width for animation */
  transform-origin: left center; /* Ensure animation starts from left */
}
.chips-track:hover { animation-play-state: paused; }
@keyframes chipsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chip { 
  white-space: nowrap; 
  padding: 12px 20px; 
  border-radius: 20px; 
  border: 1px solid rgba(255, 122, 26, 0.3); 
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.15), rgba(255, 138, 0, 0.08)); 
  color: #FF8A00; 
  font-weight: 700; 
  font-size: 25px; 
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.chip:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(255, 122, 26, 0.6);
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.25), rgba(255, 138, 0, 0.15));
  box-shadow: 0 8px 25px rgba(255, 122, 26, 0.3);
  color: #FF4D00;
}

.chip:hover::before {
  left: 100%;
}

/* Product highlights */
.product-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.product-card { 
  border-radius: 16px; 
  overflow: hidden; 
  border: 1px solid var(--color-border); 
  background: var(--color-surface); 
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
  position: relative;
  cursor: pointer;
}

.product-card:hover { 
  transform: translateY(-8px) scale(1.02); 
  box-shadow: 0 20px 40px rgba(0,0,0,.6), 0 0 30px rgba(255, 122, 26, 0.2);
  border-color: rgba(255, 122, 26, 0.3);
}

/* Removed image hover scaling effect */

/* Removed product media hover effects */

/* Premium Revealed States */
body [data-reveal].revealed { 
  opacity: 1; 
  transform: none !important; 
  filter: none !important; 
}

/* Staggered animations for multiple elements */
.stagger > *:nth-child(1) { transition-delay: 0.1s; }
.stagger > *:nth-child(2) { transition-delay: 0.2s; }
.stagger > *:nth-child(3) { transition-delay: 0.3s; }
.stagger > *:nth-child(4) { transition-delay: 0.4s; }
.stagger > *:nth-child(5) { transition-delay: 0.5s; }
.product-media { 
  background: var(--color-surface); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 8px 20px 8px 20px; 
  border-radius: 12px;
  overflow: hidden;
  min-height: 200px;
}

/* Mobile product media padding */
@media (max-width: 768px) {
  .product-media {
    padding: 20px 0; /* Adjusted mobile padding */
  }
  
  /* Mobile viewport constraints */
  .chips-marquee {
    width: 100vw; /* Full viewport width on mobile */
    max-width: 100vw;
    overflow: hidden;
  }
  
  .chips-track {
    animation-duration: 18s; /* Slightly faster on mobile */
  }
}
.product-media img { 
  max-width: 100%; 
  height: auto; 
  object-fit: contain; 
  filter: drop-shadow(0 8px 24px rgba(10, 26, 15, 0.6)) drop-shadow(0 4px 12px rgba(10, 26, 15, 0.4));
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
  border: none;
  outline: none;
  position: relative;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.index-scale { transform: none; transform-origin: center; }
.blog-scale { 
  transform: scale(0.6); 
  transform-origin: center; 
}
.products-scale { transform: scale(0.7); transform-origin: center; }
.product-content { 
  padding: 12px; 
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Blog card specific styling for consistent heights */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 300px;
  max-width: 350px;
}

/* Blog masonry and uniform card sizing */
.blog-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}

.blog-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.blog-card .product-content {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.blog-card .product-title { min-height: 56px; }
.blog-card .product-meta { min-height: 40px; }

/* Blog hero title spacing */
.blog-hero-title { margin: 40px 0; }

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card .product-media,
.product-card .product-media {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card .product-content,
.product-card .product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .product-content .btn,
.product-card .product-content .btn {
  margin-top: auto; /* Push button to bottom */
  align-self: flex-start;
}
.product-title { margin: 0 0 6px; font-weight: 700; font-family: "Space Grotesk", Manrope, system-ui; }
.product-meta { color: var(--color-muted); margin: 0 0 12px; font-size: 14px; }
.product-specs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-specs .tag { font-size: 12px; color: var(--color-text); background: rgba(255,255,255,0.05); border: 1px solid var(--color-border); padding: 6px 10px; border-radius: 999px; }

@media (min-width: 769px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
}
@media (min-width: 1025px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

/* Make products cards use glass style variant for products page */
.products-glass .product-card { background: var(--color-glass); border: 1px solid var(--color-border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.products-glass .product-media { background: rgba(255,255,255,0.04); }
.products-glass .product-content { display: grid; gap: 10px; }

/* Quality icons */
.quality-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.quality-card { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; border-radius: 14px; padding: 12px; border: 1px solid var(--color-border); background: var(--color-surface); }
.quality-card img { width: 48px; height: 48px; object-fit: contain; }
.quality-card h4 { margin: 0; font-size: 16px; }
.quality-card p { margin: 4px 0 0; color: var(--color-muted); font-size: 14px; }

@media (min-width: 769px) {
  .quality-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Sustainability KPIs */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.kpi { text-align: center; border-radius: 14px; padding: 16px; border: 1px solid var(--color-border); background: var(--color-surface); }
.kpi .value { font-size: 24px; font-weight: 800; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi .label { color: var(--color-muted); font-size: 13px; }
@media (min-width: 769px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }

/* Design solutions */
.solutions-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.solution-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.solution-media { aspect-ratio: 16/9; overflow: hidden; }
.solution-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.solution-card:hover .solution-media img { transform: scale(1.04); }
.solution-content { padding: 14px; }
.solution-title { margin: 0; font-weight: 700; font-family: "Space Grotesk", Manrope, system-ui; }
.solution-desc { margin: 6px 0 0; color: var(--color-muted); font-size: 14px; }
@media (min-width: 769px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .solutions-grid { grid-template-columns: repeat(4, 1fr); } }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.testimonial { border-radius: 16px; padding: 16px; border: 1px solid var(--color-border); background: var(--color-surface); }
.testimonial .name { font-weight: 700; font-size: 15px; }
.testimonial .meta { color: var(--color-muted); font-size: 13px; margin-top: 2px; }
.testimonial .text { margin-top: 10px; color: var(--color-text); font-size: 14px; }
@media (min-width: 769px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

/* Testimonials marquee */
.testimonials-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.testimonials-track { display: inline-flex; gap: 12px; will-change: transform; animation: testimonialsMarquee 40s linear infinite; padding: 6px 0; }
.testimonials-track:hover { animation-play-state: paused; }
.testimonial-card { min-width: 320px; max-width: 340px; border-radius: 16px; padding: 16px; border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.testimonial-card .name { font-weight: 700; font-size: 15px; }
.testimonial-card .meta { color: var(--color-muted); font-size: 13px; margin-top: 2px; }
.testimonial-card .text { margin-top: 10px; color: var(--color-text); font-size: 14px; }
@keyframes testimonialsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Contact CTA */
.contact-card { border-radius: 16px; padding: 16px; border: 1px solid var(--color-border); background: var(--color-surface); display: grid; gap: 12px; }
.form { display: grid; gap: 10px; }
.input, .textarea { width: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--color-border); color: var(--color-text); }
.textarea { min-height: 120px; resize: vertical; }

/* Premium Section Animations */
[data-reveal] { 
  opacity: 0; 
  transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
  will-change: transform, opacity, filter; 
  position: relative; 
  z-index: 5; 
}

/* Enhanced reveal variants */
[data-reveal="up"] {
  transform: translateY(40px) scale(0.95);
  filter: blur(8px);
}

[data-reveal="down"] {
  transform: translateY(-40px) scale(0.95);
  filter: blur(8px);
}

[data-reveal="left"] {
  transform: translateX(-40px) scale(0.95);
  filter: blur(8px);
}

[data-reveal="right"] {
  transform: translateX(40px) scale(0.95);
  filter: blur(8px);
}

[data-reveal="zoom"] {
  transform: scale(0.8) rotateY(10deg);
  filter: blur(12px) brightness(0.7);
}

[data-reveal="fade"] {
  transform: scale(0.98);
  filter: blur(4px);
}

/* Use stronger selectors instead of !important */
body [data-reveal].revealed { 
  opacity: 1; 
  transform: none; 
  filter: blur(0); 
}

/* Simplified animation variants */
.reveal-up { 
  transform: translateY(40px); 
  filter: blur(4px); 
}

.reveal-down { 
  transform: translateY(-40px); 
  filter: blur(4px); 
}

.reveal-left { 
  transform: translateX(40px); 
  filter: blur(4px); 
}

.reveal-right { 
  transform: translateX(-40px); 
  filter: blur(4px); 
}

.reveal-zoom { 
  transform: scale(0.8); 
  filter: blur(4px); 
}

/* Ensure revealed elements are visible and animated with stronger selectors */
body [data-reveal].revealed.reveal-up,
body [data-reveal].revealed.reveal-down,
body [data-reveal].revealed.reveal-left,
body [data-reveal].revealed.reveal-right,
body [data-reveal].revealed.reveal-zoom {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Fallback: if JavaScript fails, show animations after 2 seconds */
@media (min-width: 1px) {
  [data-reveal] { animation: fallbackReveal 2s ease-out forwards; }
}

@keyframes fallbackReveal {
  0% { opacity: 0; transform: translateY(20px); filter: blur(8px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* Stagger helpers */
.stagger > * { 
  opacity: 0; 
  transform: translateY(30px); 
  filter: blur(4px); 
  transition: all 0.8s ease-out; 
  position: relative; 
  z-index: 5; 
}

.stagger.revealed > * { 
  opacity: 1; 
  transform: none; 
  filter: blur(0); 
}

.stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-animate .hero-content, .hero-animate .hero-image { opacity: 1 !important; transform: none !important; }
}


