@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Premium Colors */
  --color-primary: #146B3A;
  --color-primary-dark: #0d4a27;
  --color-secondary: #4CAF50;
  --color-light-green: #EAF6EC;
  --color-accent: #8BC34A;
  --color-navy: #172B4D;
  --color-bg-main: #FFFFFF;
  --color-bg-light: #F8FAF9;
  --color-text-main: #334155;
  --color-text-light: #64748B;
  --color-white: #FFFFFF;
  --color-black: #050505;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);

  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(20, 107, 58, 0.03);
  --shadow-card: 0 20px 40px rgba(20, 107, 58, 0.08);
  --shadow-hover: 0 30px 60px rgba(20, 107, 58, 0.15);
  
  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-blur: blur(20px);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s var(--ease-out-expo);
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-logo {
  max-width: 120px;
  margin-bottom: 24px;
  animation: pulse-logo 2s infinite ease-in-out;
}
.preloader-text {
  font-size: 1.5rem;
  color: var(--color-navy);
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}
@keyframes pulse-logo {
  0%, 100% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* Lenis Smooth Scroll CSS */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Cursor (Desktop Only) */
@media (pointer: fine) {
  body, a, button, .bento-item, .gallery-item { cursor: none !important; }
  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background-color 0.3s ease;
    mix-blend-mode: difference;
    display: block;
  }
  .custom-cursor.active {
    width: 60px;
    height: 60px;
    background-color: var(--color-white);
    mix-blend-mode: difference;
  }
}

@media (pointer: coarse) {
  .custom-cursor { display: none !important; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1.1rem;
  border: none;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.btn::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1);
  transition: top 0.4s var(--ease-out-expo);
  z-index: -1;
  border-radius: 100px;
}

.btn:hover::after { top: 0; }
.btn:hover { transform: translateY(-4px); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 10px 30px rgba(20, 107, 58, 0.2);
}

.btn-primary:hover { box-shadow: 0 15px 40px rgba(20, 107, 58, 0.4); }

.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border: 1px solid rgba(23, 43, 77, 0.2);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover { box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4); }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 30px 0;
  transition: padding 0.5s var(--ease-out-expo), background-color 0.5s ease;
}

.header.scrolled {
  padding: 15px 0;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(20, 107, 58, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 40px;
  background: var(--color-white);
  padding: 12px 32px;
  border-radius: 100px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(0,0,0,0.03);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-navy);
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-link:hover::before, .nav-link.active::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-navy);
}

/* Sections */
section {
  padding: 150px 0;
  position: relative;
}

.section-light {
  background-color: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-navy);
}

.section-header p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 24px auto 0;
  color: var(--color-text-light);
}

/* Immersive Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background: radial-gradient(circle at 50% 0%, rgba(234, 246, 236, 1) 0%, rgba(255,255,255,1) 70%);
}

.mesh-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.6;
  background-image: 
    radial-gradient(at 80% 20%, hsla(134,39%,85%,1) 0px, transparent 50%),
    radial-gradient(at 10% 80%, hsla(100,50%,85%,1) 0px, transparent 50%),
    radial-gradient(at 50% 50%, hsla(140,40%,90%,1) 0px, transparent 50%);
  filter: blur(80px);
  animation: mesh-pulse 10s infinite alternate ease-in-out;
}

@keyframes mesh-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
}

.hero-title {
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 30px;
  perspective: 1000px;
}

.hero-title .word {
  display: inline-block;
  transform-origin: center bottom;
}

.hero-title span.highlight {
  color: var(--color-primary);
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--color-text-main);
  max-width: 800px;
  margin: 0 auto 50px;
}

.hero-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(20, 107, 58, 0.4), rgba(13, 26, 46, 0.8));
  z-index: 1;
}

/* Editorial About */
.editorial-about {
  padding: 150px 0;
  background-color: var(--color-white);
  overflow: hidden;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.editorial-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.editorial-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  color: var(--color-navy);
  margin-bottom: 30px;
}

.editorial-desc {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  max-width: 90%;
}

.editorial-image-wrapper {
  position: relative;
  height: 600px;
  width: 100%;
}

.ed-shape {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 70%;
  height: 80%;
  background-color: var(--color-light-green);
  border-radius: 40px;
  z-index: 0;
}

.ed-img {
  position: absolute;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.ed-img img {
  width: 100%;
  height: 120%; /* for parallax */
  object-fit: cover;
}

.img-1 {
  top: 0;
  right: 0;
  width: 70%;
  height: 70%;
  z-index: 1;
}

.img-2 {
  bottom: 0;
  left: 0;
  width: 60%;
  height: 60%;
  z-index: 2;
  box-shadow: var(--shadow-hover);
}

@media (max-width: 1024px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .editorial-image-wrapper {
    height: 500px;
    margin-top: 40px;
  }
}

/* Staggered Bento Categories */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 400px;
  gap: 30px;
}

.bento-item {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  cursor: none;
}

.bento-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.bento-item.large { grid-column: span 8; }
.bento-item.small { grid-column: span 4; }
.bento-item.medium { grid-column: span 6; }

@media (max-width: 992px) {
  .bento-item.large, .bento-item.small, .bento-item.medium { grid-column: span 12; }
}

.bento-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}

.bento-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.5s var(--ease-out-expo);
}

.bento-item:hover .bento-bg img {
  transform: scale(1.1);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 43, 77, 0.9) 0%, rgba(23, 43, 77, 0) 70%);
  z-index: 1;
}

.bento-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.bento-content h3 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.bento-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

/* Infinite Marquee */
.marquee-section {
  padding: 80px 0;
  background: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.marquee-content {
  display: flex;
  gap: 80px;
  padding-right: 80px;
  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  color: transparent;
  transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
}

.marquee-item:hover {
  color: var(--color-white);
  -webkit-text-stroke: 0px;
}

/* Sticky Scroll Why Us */
.sticky-why {
  display: flex;
  gap: 80px;
}

.sticky-why-left {
  flex: 1;
  position: sticky;
  top: 150px;
  height: fit-content;
}

.sticky-why-left h2 {
  font-size: 4rem;
  margin-bottom: 24px;
}

.sticky-why-right {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.why-feature {
  background: var(--color-white);
  padding: 60px;
  border-radius: 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.02);
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.why-feature-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-light-green);
  line-height: 1;
}

.why-feature-content h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.why-feature-content p {
  font-size: 1.1rem;
  color: var(--color-text-light);
}

/* Massive Footer CTA & Footer */
.huge-cta {
  background: var(--color-navy);
  padding: 150px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.huge-cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.huge-cta .container { position: relative; z-index: 2; }

.huge-cta h2 {
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--color-white);
  margin-bottom: 40px;
  line-height: 1;
}

.huge-cta .btn {
  font-size: 1.5rem;
  padding: 24px 60px;
}

.footer {
  background-color: #0d1a2e;
  color: var(--color-white);
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-about h3 { color: var(--color-white); font-size: 2rem; margin-bottom: 20px; }
.footer-about p { color: rgba(255,255,255,0.6); font-size: 1.1rem; }

.footer-heading {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.footer-links li { margin-bottom: 16px; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.footer-links a:hover { color: var(--color-accent); }

.footer-contact li {
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
}

/* Floating Elements */
.floating-whatsapp {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #25D366;
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.4s var(--ease-out-expo);
  cursor: none;
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(1.5); opacity: 0; }
}

.floating-whatsapp:hover { transform: scale(1.1); }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sticky-why { flex-direction: column; }
  .sticky-why-left { position: relative; top: 0; margin-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .editorial-about { padding: 80px 0; }
  .huge-cta { padding: 100px 0; }
  .marquee-section { padding: 40px 0; }
  .header-actions { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: var(--color-white); flex-direction: column; justify-content: center; align-items: center;
    border-radius: 0; font-size: 2rem; transition: right 0.5s var(--ease-out-expo); z-index: -1;
  }
  .nav-menu.active { right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
