/* =============================================
   3palz Smart Technologies â€” Global Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary-green: #2ecc71;
  --secondary-green: #27ae60;
  --dark-green: #1a7a3f;
  --darker-green: #0f1f10;
  --text-dark: #1a1a1e;
  --text-body: #555555;
  --text-light: #888888;
  --white: #ffffff;
  --off-white: #f8faf8;
  --light-green-bg: #f0fdf4;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 4px 24px rgba(46, 204, 113, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Mobile-optimized touch targets */
  --touch-target: 44px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent text size adjustment and horizontal overflow */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  /* Remove tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  /* Better touch targets on mobile */
  min-height: var(--touch-target);
  /* Remove tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
}

input,
textarea {
  font-family: inherit;
  outline: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 60px;
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 48px;
  line-height: 1.6;
}

.pill-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(46, 204, 113, 0.12);
  color: var(--dark-green);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--dark-green);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  /* Better touch target */
  min-height: var(--touch-target);
  /* Prevent text selection on tap */
  user-select: none;
  -webkit-user-select: none;
}

.btn-primary:hover {
  background: #156b35;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 122, 63, 0.3);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* ---------- Scroll Animations ---------- */
/* ---------- Scroll Animations ---------- */
.reveal,
.reveal-left,
.reveal-scale {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.reveal {
  transform: translateY(30px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.95);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Staggered delays for cards */
.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

/* =============================================
   SECTION: NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-bottom 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.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.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  max-width: 1800px;
  margin: 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.navbar-logo img {
  height: 62px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

@media (max-width: 768px) {
  .navbar-logo img {
    height: 52px;
  }
}

.navbar-logo span {
  background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 1.05rem;
  /* Increased font size */
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--dark-green);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-signup {
  padding: 12px 30px;
  /* Increased padding */
  background: var(--dark-green);
  color: var(--white) !important;
  border-radius: var(--radius-pill);
  font-size: 1rem !important;
  /* Increased font size */
  font-weight: 600 !important;
  transition: var(--transition);
}

.nav-signup::after {
  display: none !important;
}

.nav-signup:hover {
  background: #156b35 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 122, 63, 0.25);
  color: var(--white) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* New Hero Styles */
.hero-section-new {
  width: 100%;
  margin-top: -82px;
  padding-top: 0;
  background: var(--white);
}

.hero-full-img {
  width: 100%;
  height: auto;
  display: block;
}



/* =============================================
   SECTION 2: SERVICES
   ============================================= */
.services {
  background: var(--off-white);
  position: relative;
}

/* Straight divider at top */
.services::before {
  display: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
  transform: scaleX(0);
  transition: transform 0.4s;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(46, 204, 113, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transition: var(--transition);
  flex-shrink: 0;
}

.animated-icon {
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Unused hydroPulse animation removed */

.colorize-icon {
  filter: invert(33%) sepia(87%) saturate(518%) hue-rotate(94deg) brightness(85%) contrast(89%);
}

.service-card:hover .service-icon .colorize-icon {
  filter: invert(100%) brightness(200%);
}

.service-card:hover .service-icon {
  background: var(--primary-green);
  transform: scale(1.08);
}

.service-icon svg,
.service-icon img {
  width: 32px;
  height: 32px;
  color: var(--dark-green);
  /* dark green icon color to contrast with light green bg */
  transition: color 0.3s;
  object-fit: contain;
}

.service-card:hover .service-icon svg {
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

.service-card p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #eb8655;
  text-decoration: none;
  padding-bottom: 2px;
  transition: var(--transition);
  margin-top: auto;
  align-self: flex-start;
}

.read-more:hover {
  gap: 12px;
}

.read-more svg {
  width: 18px;
  height: 18px;
}

/* =============================================
   SECTION 3: GODADHAR PLANTICA APP
   ============================================= */
.app-section {
  background: var(--light-green-bg);
  position: relative;
  overflow: hidden;
}

.app-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--light-green-bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.app-phone {
  display: flex;
  justify-content: center;
  position: relative;
}

.app-phone img {
  max-width: 340px;
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-15px) rotate(0deg);
  }
}

/* Decorative circles behind phone */
.app-phone::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, rgba(46, 204, 113, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

.app-phone::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border: 1px solid rgba(46, 204, 113, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(46, 204, 113, 0.05), 0 0 0 60px rgba(46, 204, 113, 0.02);
  z-index: -1;
  animation: ringPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes ringPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    border-color: rgba(46, 204, 113, 0.1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
    border-color: rgba(46, 204, 113, 0.3);
  }
}

.app-content h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.2;
}

.app-content p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
}

.app-features {
  margin-bottom: 32px;
}

.feature-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.app-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 14px;
}

.app-features li svg {
  width: 22px;
  height: 22px;
  color: var(--primary-green);
  flex-shrink: 0;
}

/* =============================================
   SECTION 4: HOW IT WORKS
   ============================================= */
.how-it-works {
  background: var(--white);
  text-align: center;
  position: relative;
}

.how-it-works .section-title,
.how-it-works .section-subtitle {
  text-align: center;
}

.steps-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  position: relative;
  margin-top: 20px;
}

.step-item {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

/* Connector dotted line */
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 48px;
  left: 50%;
  width: 100%;
  height: 2px;
  border-top: 2.5px dashed rgba(46, 204, 113, 0.35);
  z-index: -1;
}

.step-number {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  position: relative;
  box-shadow: 0 8px 30px rgba(46, 204, 113, 0.25);
  transition: var(--transition);
}

.step-item:hover .step-number {
  transform: translateY(-8px) rotate(5deg);
  box-shadow: 0 12px 40px rgba(46, 204, 113, 0.35);
}

.step-number svg {
  width: 36px;
  height: 36px;
  color: var(--white);
}

.step-label {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  background: var(--white);
  color: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.step-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.step-item p {
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* =============================================
   SECTION 5: IoT LIVE DASHBOARD
   ============================================= */
.iot-section {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.iot-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--off-white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.iot-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.iot-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.25;
}

.iot-text>p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
}

.iot-features {
  margin-bottom: 32px;
}

.iot-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 14px;
}

.iot-features li .feature-icon {
  font-size: 1.3rem;
}

/* Dashboard Card */
.dashboard-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  max-width: 450px;
  animation: dashFloat 5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

@keyframes dashFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(46, 204, 113, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-green);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-green);
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.stat-tile {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.stat-tile:hover {
  border-color: rgba(46, 204, 113, 0.2);
  background: var(--light-green-bg);
}

.stat-tile .stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.stat-tile .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-tile .stat-value.temp {
  color: #e67e22;
}

.stat-tile .stat-value.humidity {
  color: #3498db;
}

.stat-tile .stat-value.moisture {
  color: var(--primary-green);
}

.stat-tile .stat-value.light {
  color: #f1c40f;
}

.health-bar {
  margin-bottom: 16px;
}

.health-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.health-bar-label span:last-child {
  color: var(--primary-green);
}

.health-bar-track {
  width: 100%;
  height: 10px;
  background: #e8f5e9;
  border-radius: 10px;
  overflow: hidden;
}

.health-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
  border-radius: 10px;
  transition: width 1.5s ease;
}

.health-bar-fill.animated {
  width: 92%;
}

.dashboard-status {
  font-size: 0.82rem;
  color: var(--text-light);
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-status svg {
  width: 16px;
  height: 16px;
  color: var(--primary-green);
}

/* =============================================
   SECTION 6: ABOUT US
   ============================================= */
.about-section {
  background: var(--white);
  position: relative;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.about-image {
  position: relative;
  z-index: 1;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  display: block;
}

/* Decorative frame behind image */
.about-image::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(46, 204, 113, 0.2);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.25;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 30px;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vm-card {
  background: var(--light-green-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(46, 204, 113, 0.1);
  transition: var(--transition);
}

.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.vm-card .vm-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.vm-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 6px;
}

.vm-card p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* =============================================
   SECTION 7: RESEARCH & DEVELOPMENT
   ============================================= */
.research-section {
  background: var(--off-white);
}

.research-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

.research-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 24px;
}

.research-stat-item {
  text-align: center;
}

.res-stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  display: block;
}

.research-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.research-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.research-image-wrapper:hover .research-main-img {
  transform: scale(1.03);
}

.research-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.footer-highlight {
  color: #8b5cf6;
}

@media (max-width: 768px) {
  .research-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .research-footer-text {
    font-size: 1.8rem;
  }

  .research-image-wrapper {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }
}

/* =============================================
   SECTION 8: STATS BANNER
   ============================================= */
.stats-banner {
  background: linear-gradient(135deg, var(--dark-green), #0e5a2e);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 0 20px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
  display: block;
}

.stat-text {
  font-size: 0.95rem;
  color: rgba(166, 230, 183, 0.9);
  font-weight: 500;
}

/* =============================================
   SECTION 8: CONTACT
   ============================================= */
.contact-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Decorative blob */
.contact-blob {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(46, 204, 113, 0.06);
  border-radius: 50%;
  z-index: 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.contact-form h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
  /* Prevent zoom on iOS */
  font-size: 16px;
  /* Better touch interaction */
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.form-group textarea {
  height: 130px;
  resize: vertical;
}

.contact-info {
  padding-top: 120px;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--light-green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--dark-green);
}

.info-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.5;
}

.info-text strong {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 2px;
}

.playstore-badge {
  margin-top: 32px;
  padding: 18px 24px;
  background: var(--light-green-bg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(46, 204, 113, 0.15);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.playstore-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.playstore-badge svg {
  width: 32px;
  height: 32px;
  color: var(--dark-green);
}

.playstore-badge div {
  font-size: 0.9rem;
}

.playstore-badge div strong {
  display: block;
  color: var(--text-dark);
  font-weight: 700;
}

.playstore-badge div span {
  color: var(--text-body);
  font-size: 0.82rem;
}

/* =============================================
   SECTION 9: FOOTER
   ============================================= */
.footer {
  background: var(--darker-green);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}



.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

.social-links a svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.social-links a:hover svg {
  color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s, padding-left 0.3s;
}

.footer-links ul li a:hover {
  color: var(--primary-green);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary-green);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3.2rem;
  }

  /* Services grid - single column on mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 32px 24px;
  }

  /* Make service cards more touch-friendly */
  .read-more {
    padding: 8px 0;
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
  }

  .stats-grid-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {

  .container,
  .container-contact {
    padding: 0 12px;
    width: 100%;
  }

  .navbar-inner {
    padding: 24px 20px;
  }

  .section-padding {
    padding: 70px 0;
  }

  .section-title {
    font-size: 1.9rem;
  }

  /* Navbar mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-end;
    padding: 80px 30px 30px;
    gap: 5px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.15rem;
    padding: 6px 0;
    width: 100%;
    justify-content: flex-end;
    text-align: right;
    font-weight: 500;
    color: var(--text-dark);
    /* Reduced for compact look */
    min-height: auto;
    display: flex;
    align-items: center;
  }

  .nav-links a.nav-signup {
    width: auto;
    margin-top: 5px;
    padding: 12px 24px !important;
    background: var(--dark-green) !important;
    color: var(--white) !important;
    border-radius: var(--radius-pill);
    justify-content: center;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
    /* Better touch target */
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    padding: 10px;
  }

  .desktop-br {
    display: none;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    padding-right: 0;
    order: 1;
  }

  .hero-text p {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: 0;
    margin-bottom: 20px;
  }

  .hero-blob {
    width: 100%;
    height: 50%;
    right: -10%;
    top: 0;
    border-radius: 0 0 50% 50%;
  }

  .hero-text h1 {
    font-size: 2.6rem;
  }

  /* App section (index.html) */
  .app-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .app-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-phone {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    order: 0;
  }

  .app-phone img {
    max-width: 240px !important;
  }

  .app-content {
    order: 1;
    text-align: center;
  }

  .app-content h2,
  .about-content h2,
  .iot-content h2,
  .research-text h2 {
    font-size: 1.9rem;
  }

  .app-content p {
    margin: 0 0 28px;
    max-width: 100%;
  }

  .app-features {
    display: inline-block;
    text-align: left;
  }

  /* IoT section */
  .iot-inner {
    grid-template-columns: 1fr;
  }

  .iot-text {
    text-align: center;
  }

  .iot-text>p {
    margin: 0 auto 28px;
  }

  .iot-features {
    display: inline-block;
    text-align: left;
  }

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .about-image {
    order: 0;
  }

  .about-content {
    order: 1;
  }

  /* Steps */
  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .step-item:not(:last-child)::after {
    display: none;
  }

  /* Stats */
  .stats-grid-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .stat-item::after {
    display: none !important;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  /* Contact */
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding-top: 40px;
  }

  .footer {
    padding-top: 40px !important; /* Move content higher */
  }

  /* Footer Mobile Fix — Consolidated & Left Aligned for Clean Look */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: left;
    padding: 0 10px;
  }

  .footer-brand .footer-logo {
    justify-content: flex-start;
    margin-bottom: 15px;
  }

  .footer-brand .footer-logo img {
    height: 70px;
    width: auto;
  }

  .footer-brand p {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .social-links {
    justify-content: flex-start;
    gap: 15px;
  }

  .footer-links h4,
  .footer-contact h4 {
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
  }

  .footer-links h4::after,
  .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-green);
  }

  .footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-contact-item {
    justify-content: flex-start;
    margin-bottom: 12px;
  }

  /* About page hero */
  .about-hero h1 {
    font-size: 2.8rem;
  }

  /* Page hero clean */
  .page-hero-clean {
    padding: 160px 0 60px;
  }

  .page-hero-clean h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {

  .container,
  .container-contact {
    padding: 0 12px !important;
    width: 100% !important;
  }

  .navbar-inner {
    padding: 20px 16px;
  }

  .hero-text h1 {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .section-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vision-mission {
    grid-template-columns: 1fr;
  }

  .stats-grid-banner {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .btn-primary {
    padding: 12px 24px;
    font-size: 0.95rem;
    width: auto;
    min-width: 160px;
    display: inline-flex;
    justify-content: center;
  }

  /* About page hero - smaller screens */
  .about-hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  /* Page hero clean - smaller screens */
  .page-hero-clean h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  /* Founder cards on about page */
  .founder-name {
    font-size: 2rem;
  }

  .founder-card {
    padding: 24px;
  }

  /* Better spacing for mobile */
  .section-padding {
    padding: 60px 0;
  }

  /* Improve form inputs on mobile */
  input,
  textarea,
  select {
    font-size: 16px !important;
    /* Prevents zoom on iOS */
  }
}

/* =============================================
   Smooth scrollbar & selection
   ============================================= */
::selection {
  background: rgba(46, 204, 113, 0.2);
  color: var(--text-dark);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-green);
}

/* =============================================
   ABOUT PAGE SPECIFIC STYLES
   ============================================= */
.about-hero {
  background: linear-gradient(135deg, var(--white), var(--light-green-bg));
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-dark), var(--dark-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.3rem;
  color: var(--text-body);
}

/* Team Timeline Layout */
.team-timeline {
  padding: 100px 0;
  position: relative;
  background: var(--white);
}

.team-timeline::before {
  content: '';
  position: absolute;
  top: 154px;
  bottom: 154px;
  left: 50%;
  width: 4px;
  background: var(--primary-green);
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 4px;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-info {
  width: 45%;
  text-align: right;
  padding-top: 0;
  margin-top: -10px;
}

.timeline-item:nth-child(even) .timeline-info {
  text-align: left;
}

.timeline-visual {
  width: 45%;
  margin-top: -10px;
  display: flex;
  justify-content: flex-start;
  /* Hug the center line for Odd items (right column) */
}

.timeline-item:nth-child(even) .timeline-visual {
  justify-content: flex-end;
  /* Hug the center line for Even items (left column) */
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 54px;
  width: 22px;
  height: 22px;
  background: var(--primary-green);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.15);
}

.role-badge {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2px;
}

.founder-name {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.founder-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  max-width: 450px;
  margin: 0;
}

.founder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(46, 204, 113, 0.15);
}

.founder-image {
  width: 100%;
  height: 380px;
  /* Smaller height */
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.founder-quote {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  font-style: italic;
  text-align: center;
  margin-top: 24px;
}



/* Responsive adjustments for timeline */
@media (max-width: 991px) {
  .about-hero {
    padding: 160px 0 60px;
  }

  .about-hero h1 {
    font-size: 1.9rem;
  }

  .about-text-detailed {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  /* Team Timeline Mobile Fix */
  .team-timeline::before {
    left: 37px !important; /* Adjusted to align with dots (12px container padding + 25px dot offset) */
    top: 60px !important; 
    bottom: 60px !important; 
    transform: translateX(-50%) !important;
    width: 3px !important;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-left: 55px !important; /* Increased padding */
    margin-bottom: 60px;
  }

  .timeline-info,
  .timeline-visual {
    width: 100% !important;
    text-align: left !important;
    margin: 0 !important;
  }

  .timeline-info {
    margin-bottom: 15px !important;
  }

  .timeline-visual {
    justify-content: flex-start !important;
  }

  .founder-name {
    font-size: 1.6rem;
    margin-bottom: 5px;
  }

  .role-badge {
    font-size: 0.85rem;
    margin-bottom: 2px;
  }

  .timeline-dot {
    left: 25px !important; /* Match line position */
    top: 10px !important;
    transform: translateX(-50%) !important;
  }

  .founder-card {
    padding: 20px;
    max-width: 100%;
  }

  .founder-image {
    height: 250px;
  }

  .founder-quote {
    font-size: 0.9rem;
  }
}
}

/* =============================================
   APP PAGE SPECIFIC STYLES
   ============================================= */

/* App Hero */
/* =============================================
   APP PAGE — DUOLINGO-INSPIRED HERO (REDESIGNED)
   ============================================= */
.app-duo-hero {
  min-height: 100vh;
  padding: 160px 40px 80px;
  /* Solid fallback + gradient for better cross-browser mobile rendering */
  background-color: #f0fdf4;
  background: radial-gradient(circle at center, #e8f8f0 0%, #f5fff8 60%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* Isolate blend modes so PNG images don't show checkerboard */
  isolation: isolate;
}

/* ---- Centered Content ---- */
.duo-hero-content {
  position: relative;
  z-index: 20;
  text-align: center;
  max-width: 700px;
  margin: 180px auto 0;
}

.duo-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin: 18px 0 24px;
  letter-spacing: -0.02em;
}

.duo-hero-content p {
  font-size: 1.25rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 40px;
}

.duo-download-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

/* ---- Floating Assets (Images) ---- */
.duo-float {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
}

/* Phones */
.duo-phone {
  transition: transform 0.3s ease;
}

.duo-phone-1 {
  left: 5%;
  top: 25%;
  width: 260px;
  transform: rotate(-15deg);
  animation: duoBobA 8s ease-in-out infinite;
}

.duo-phone-2 {
  right: 5%;
  top: 25%;
  width: 240px;
  transform: rotate(12deg);
  animation: duoBobB 9s ease-in-out infinite;
}

.duo-phone-3 {
  bottom: 5%;
  left: 15%;
  width: 220px;
  transform: rotate(8deg);
  animation: duoBobA 7s ease-in-out infinite 1s;
}

.duo-phone img {
  width: 100%;
  border-radius: 32px;
}

/* 3D Assets */
.duo-asset {
  width: 120px;
  height: auto;
  /* Prevent checkerboard on transparent PNGs — blend with section background */
  background-color: transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.asset-1 {
  top: 22%;
  left: 25%;
  transform: rotate(-20deg);
  animation: duoBobB 6s ease-in-out infinite;
}

.asset-2 {
  top: 18%;
  right: 20%;
  transform: rotate(15deg);
  animation: duoBobA 7s ease-in-out infinite 0.5s;
}

.asset-3 {
  top: 40%;
  left: 8%;
  transform: rotate(10deg);
  animation: duoBobB 8s ease-in-out infinite 1s;
}

.asset-4 {
  top: 35%;
  right: 10%;
  transform: rotate(-15deg);
  animation: duoBobA 6.5s ease-in-out infinite 0.3s;
}

.asset-5 {
  bottom: 20%;
  left: 28%;
  transform: rotate(25deg);
  animation: duoBobA 7.5s ease-in-out infinite 1.2s;
}

.asset-6 {
  bottom: 15%;
  right: 25%;
  transform: rotate(-10deg);
  animation: duoBobB 8.5s ease-in-out infinite 0.7s;
}

.asset-7 {
  top: 60%;
  left: 18%;
  transform: rotate(-5deg);
  scale: 0.8;
  animation: duoBobA 9s ease-in-out infinite 1.5s;
}

.asset-8 {
  top: 55%;
  right: 15%;
  transform: rotate(20deg);
  scale: 1.1;
  animation: duoBobB 7.2s ease-in-out infinite 0.4s;
}

/* ---- Bobbing Keyframes ---- */
@keyframes duoBobA {

  0%,
  100% {
    transform: translateY(0) rotate(var(--r, -15deg));
  }

  50% {
    transform: translateY(-20px) rotate(var(--r, -15deg));
  }
}

@keyframes duoBobB {

  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 12deg));
  }

  50% {
    transform: translateY(-25px) rotate(var(--r, 12deg));
  }
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .duo-hero-content h1 {
    font-size: 3.5rem;
  }

  .duo-phone {
    width: 180px;
  }

  .duo-asset {
    width: 90px;
  }
}

@media (max-width: 991px) {

  .duo-phone-2 {
    display: none;
  }

  .duo-phone-3 {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
    width: 200px;
  }

  .duo-hero-content h1 {
    font-size: 2.2rem;
  }

  .duo-asset {
    width: 70px;
  }

  .asset-7,
  .asset-8 {
    display: none;
  }
}

@media (max-width: 600px) {
  .app-duo-hero {
    padding: 110px 20px 40px;
    min-height: auto;
    /* Solid background is critical on mobile to prevent transparent PNG issues */
    background-color: #e8f8f0;
    display: flex;
    flex-direction: column;
  }

  .duo-phone-1 {
    display: none !important;
  }

  .duo-hero-content {
    margin: 0 auto;
  }

  .duo-hero-content h1 {
    font-size: 2.2rem;
    word-break: break-word;
  }

  .duo-hero-content p {
    font-size: 1rem;
  }

  .duo-asset {
    width: 50px;
    background-color: #e8f8f0;
  }

  /* Hide floating phone and ALL floating 3D assets on mobile for clean look */
  .duo-phone-3 {
    display: none;
  }

  .asset-1,
  .asset-2,
  .asset-3,
  .asset-4,
  .asset-5,
  .asset-6 {
    display: none;
  }
}

/* Play Store Button */
.download-badges {
  margin-bottom: 30px;
}

.playstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text-dark);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.playstore-btn:hover {
  background: #000;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.playstore-btn svg {
  width: 30px;
  height: 30px;
}

.playstore-btn .btn-text {
  display: flex;
  flex-direction: column;
}

.playstore-btn .small-text {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.playstore-btn .large-text {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

.trust-indicators {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-body);
  margin-top: 10px;
}

.trust-indicators .stars {
  font-size: 1.2rem;
}

/* App Features */
.app-features-section {
  padding-top: 160px !important;
}

.app-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 80px;
}

@media (max-width: 1024px) {
  .app-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



@media (max-width: 600px) {
  .app-features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-box {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.fbox-icon {
  width: 64px;
  height: 64px;
  background: var(--light-green-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.feature-box:hover .fbox-icon {
  background: var(--primary-green);
  color: var(--white);
  transform: scale(1.08);
}

.feature-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

.feature-box p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Laptop Enhancements - Specific Overrides */
@media (min-width: 1025px) {
  .feature-box {
    padding: 60px 50px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content to reduce bottom gap */
  }

  .fbox-icon {
    width: 90px !important;
    height: 90px !important;
    font-size: 3rem !important;
  }

  .feature-box h3 {
    font-size: 1.8rem !important;
  }

  .feature-box p {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
  }
}

/* Screenshot Gallery */
.app-gallery-section {
  background: var(--darker-green);
  color: var(--white);
  overflow: hidden;
}

.app-gallery-section .section-title,
.app-gallery-section .section-subtitle {
  color: var(--white);
}

.app-gallery-section .section-subtitle {
  opacity: 0.8;
}

.screenshot-gallery {
  margin-top: 60px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
}

.screenshot-gallery::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.gallery-track {
  display: flex;
  gap: 30px;
  padding: 0 50vw;
  /* Create scroll space */
  width: max-content;
  animation: slideTrack 40s linear infinite;
}

.gallery-item {
  width: 250px;
  flex-shrink: 0;
  transition: transform 0.4s;
}

.gallery-item:hover {
  transform: scale(1.05) translateY(-10px);
}

.app-screenshot {
  width: 100%;
  height: auto;
  min-height: 480px;
  object-fit: cover;
  border-radius: 20px;
  border: 4px solid #333;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

@keyframes slideTrack {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Steps Section */
.app-steps-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.app-step {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 60px;
  height: 60px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.app-step h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(46, 204, 113, 0.3);
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

/* App Page Responsive */
@media (max-width: 991px) {
  .app-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .trust-indicators {
    justify-content: center;
  }

  .float-card {
    display: none;
    /* Hide on mobile for cleaner look */
  }

  .app-features-grid {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }

  .app-features-section {
    padding-top: 80px !important;
  }

  .app-steps-inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .step-line {
    width: 2px;
    height: 40px;
    margin: -30px 0;
  }
}

/* =============================================
   CONTACT PAGE SPECIFIC STYLES - SIDE BY SIDE LAYOUT
   ============================================= */

/* Contact Hero */
.contact-hero {
  background: linear-gradient(135deg, var(--light-green-bg) 0%, var(--white) 100%);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 16px 0 20px;
  line-height: 1.2;
}

.contact-hero-content p {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Main Contact Section - Side by Side Layout */
.contact-main-section {
  background: var(--white);
}

.container-contact {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 60px;
}

.contact-row {
  display: flex;
  gap: 50px;
  align-items: stretch;
}

/* Image Column - Left Side */
.contact-image-col {
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
}

.contact-side-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: block;
}

/* Form Column - Right Side */
.contact-form-col {
  flex: 1;
  max-width: 55%;
}

.contact-form-inline {
  width: 100%;
  background: var(--white);
  padding: 0;
}

.contact-form-inline .form-group {
  margin-bottom: 24px;
}

.contact-form-inline label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 8px;
}

.contact-form-inline .required {
  color: #e74c3c;
}

.contact-form-inline input,
.contact-form-inline textarea,
.contact-form-inline select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 16px;
  /* Prevent zoom on iOS */
  color: var(--text-dark);
  background: #f8f9fa;
  transition: border-color 0.3s, background 0.3s;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form-inline input:focus,
.contact-form-inline textarea:focus,
.contact-form-inline select:focus {
  border-color: var(--primary-green);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.contact-form-inline textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-inline select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Bottom Row - Message Section */
.form-bottom-row {
  margin-top: 24px;
}

.form-message-wrapper {
  width: 100%;
}

.form-message-wrapper .form-group {
  margin-bottom: 16px;
}

.form-privacy {
  margin: 16px 0 20px;
}

.form-privacy p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.btn-submit-new {
  width: 100%;
  padding: 16px 36px;
  background: var(--dark-green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit-new:hover {
  background: var(--secondary-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.25);
}

/* Contact Info Section Below */
.contact-info-section {
  background: var(--off-white);
}

.contact-details-hub {
  background: var(--off-white);
}

.hub-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 5;
}

.hub-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 80px 60px;
  gap: 40px;
}

.hub-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px;
  transition: transform 0.3s ease;
}

.hub-item:hover {
  transform: translateY(-5px);
}

.hub-icon-box {
  width: 72px;
  height: 72px;
  background: var(--light-green-bg);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.hub-icon-box svg {
  width: 32px;
  height: 32px;
  color: var(--dark-green);
}

.hub-item:hover .hub-icon-box {
  background: var(--primary-green);
}

.hub-item:hover .hub-icon-box svg {
  color: var(--white);
}

.hub-content span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.hub-content h4 {
  font-size: 1.35rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

.hub-social-footer {
  background: var(--darker-green);
  padding: 40px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
}

.social-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.social-text p {
  font-size: 0.85rem;
  opacity: 0.7;
}

.hub-social-links {
  display: flex;
  gap: 20px;
}

.hub-social-links a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--white);
}

.hub-social-links a:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

.hub-social-links a svg {
  width: 20px;
  height: 20px;
}

/* Contact Page Responsive */
@media (max-width: 1200px) {
  .contact-row {
    gap: 40px;
  }

  .contact-image-col {
    flex: 0 0 42%;
    max-width: 42%;
  }

  .contact-form-col {
    max-width: 58%;
  }
}

@media (max-width: 991px) {
  .contact-row {
    flex-direction: column;
    gap: 40px;
  }

  .contact-image-col,
  .contact-form-col {
    flex: 1;
    max-width: 100%;
  }

  .contact-side-img {
    position: relative;
    top: 0;
    max-height: 500px;
    object-fit: cover;
  }

  .contact-hero-content h1 {
    font-size: 2.8rem;
  }

  .hub-info-grid {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    gap: 30px;
  }

  .hub-social-footer {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 30px;
  }

  .hub-item {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 120px 0 40px;
  }

  .contact-hero-content h1 {
    font-size: 1.9rem;
  }

  .contact-hero-content p {
    font-size: 0.9rem;
  }

  .contact-side-img {
    max-height: 550px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  .contact-form-inline {
    padding: 20px 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    width: 100%;
  }

  .contact-form-inline label {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }

  .contact-form-inline input,
  .contact-form-inline textarea,
  .contact-form-inline select {
    padding: 10px 12px;
    font-size: 0.8rem !important;
  }

  .btn-submit-new {
    padding: 12px 24px;
    font-size: 0.85rem;
    width: auto;
    min-width: 160px;
    display: inline-flex;
    justify-content: center;
  }

  /* Shrunken lower hub box - Widened but small text */
  .hub-wrapper {
    border-radius: 12px;
    margin: 0;
    width: 100%;
  }

  .hub-info-grid {
    padding: 25px 12px;
    gap: 20px;
  }

  .hub-item {
    gap: 10px;
    align-items: flex-start;
  }

  .hub-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .hub-icon-box svg {
    width: 18px;
    height: 18px;
  }

  .hub-content span {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }

  .hub-content h4 {
    font-size: 0.85rem;
    word-break: break-word;
  }

  .hub-social-footer {
    padding: 20px 15px;
  }

  .social-text strong {
    font-size: 0.9rem;
  }

  .social-text p {
    font-size: 0.7rem;
  }

  .hub-social-links a {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .contact-hero-content h1 {
    font-size: 1.8rem;
  }

  .contact-side-img {
    max-height: 480px;
    border-radius: 12px; /* Restored radius for consistent look */
  }

  .contact-form-inline {
    padding: 20px 15px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    width: 100% !important;
    background: var(--white);
    box-shadow: var(--shadow-sm);
  }

  .contact-form-inline input,
  .contact-form-inline textarea,
  .contact-form-inline select {
    padding: 12px;
    font-size: 0.85rem !important;
  }

  .hub-wrapper {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .hub-info-grid {
    padding: 25px 15px;
  }
}

/* =============================================
   BLOG PAGE STYLES
   ============================================= */

/* ---- Blog Hero ---- */
.blog-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: var(--darker-green);
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(46, 204, 113, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(46, 204, 113, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.blog-hero-content .pill-badge {
  background: rgba(46, 204, 113, 0.2);
  color: var(--primary-green);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.blog-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
  color: var(--white);
}

.blog-hero-content>p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ---- Category Filter Buttons ---- */
.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.blog-filter-btn {
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

/* ---- Blog Section ---- */
.blog-section {
  background: var(--off-white);
}

/* ---- Bento Grid ---- */
.blog-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

/* Featured card spans 2 columns */
.bento-featured {
  grid-column: 1 / 3;
}

/* Row 2 cards */
.bento-medium {
  grid-column: span 1;
}

/* ---- Blog Card Base ---- */
.bento-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 204, 113, 0.15);
}

/* ---- Card Image Wrapper ---- */
.bento-img-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-img-sm {
  height: 180px;
}

.bento-gradient-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bg-green {
  background: linear-gradient(135deg, #0f2d1a 0%, #1a5c38 100%);
}

.bg-blue {
  background: linear-gradient(135deg, #0d1f3c 0%, #1a4070 100%);
}

.bg-gold {
  background: linear-gradient(135deg, #2d1f0a 0%, #6b4c00 100%);
}

.bg-dark-green {
  background: linear-gradient(135deg, #0a1f0f 0%, #12362a 100%);
}

.bg-teal {
  background: linear-gradient(135deg, #0a2020 0%, #0f4040 100%);
}

.bg-purple {
  background: linear-gradient(135deg, #1a0d2e 0%, #3d1a6e 100%);
}

/* 3D floating assets inside featured card */
.bento-3d-asset {
  position: absolute;
  z-index: 2;
  width: 180px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4));
}

.asset-left {
  left: 8%;
  bottom: -10px;
  transform: rotate(-15deg);
  animation: blogFloat 6s ease-in-out infinite;
}

.asset-right {
  right: 8%;
  bottom: -5px;
  transform: rotate(18deg);
  animation: blogFloat 7s ease-in-out infinite 1s;
}

@keyframes blogFloat {

  0%,
  100% {
    transform: translateY(0) rotate(var(--r, -15deg));
  }

  50% {
    transform: translateY(-14px) rotate(var(--r, -15deg));
  }
}

/* Small 3D asset for secondary cards */
.bento-3d-asset-sm {
  position: absolute;
  z-index: 2;
  width: 110px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  bottom: -5px;
  right: 20px;
  animation: blogFloat 6s ease-in-out infinite;
}

/* Photo image inside card */
.bento-img-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* ---- Card Body ---- */
.bento-card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bento-featured .bento-card-body {
  padding: 32px 40px 40px;
}

.bento-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bento-date {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ---- Category Tags ---- */
.bento-tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-ai {
  background: rgba(122, 68, 204, 0.1);
  color: #7a44cc;
}

.tag-hydro {
  background: rgba(26, 122, 190, 0.1);
  color: #1a7abe;
}

.tag-farm {
  background: rgba(204, 153, 26, 0.1);
  color: #b8860b;
}

.tag-app {
  background: rgba(46, 204, 113, 0.12);
  color: var(--dark-green);
}

.bento-featured h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.bento-card p {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.65;
  flex-grow: 1;
}

.bento-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-top: 20px;
  transition: gap 0.3s;
  align-self: flex-start;
}

.bento-read-more:hover {
  gap: 10px;
}

.bento-read-more svg {
  width: 16px;
  height: 16px;
}

/* ---- Newsletter CTA ---- */
.blog-newsletter {
  margin-top: 80px;
  background: var(--darker-green);
  border-radius: var(--radius-lg);
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.blog-newsletter::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.15), transparent 70%);
  border-radius: 50%;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.newsletter-text .pill-badge {
  background: rgba(46, 204, 113, 0.2);
  color: var(--primary-green);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.newsletter-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin: 12px 0 10px;
  line-height: 1.3;
}

.newsletter-text p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  width: 280px;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
  border-color: var(--primary-green);
  background: rgba(255, 255, 255, 0.12);
}

/* =============================================
   CLEAN REFERENCE STYLES (Maa IVF Inspired)
   ============================================= */

:root {
  --ref-bg-light: #f9fbfd;
  --ref-border: rgba(0, 0, 0, 0.08);
  --ref-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --ref-primary: #2ecc71;
  /* Keep branding green but use clean layout */
  --ref-text-main: #333;
  --ref-text-muted: #666;
}

.page-research,
.page-blog {
  background-color: var(--white);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
}

/* ---- Clean Page Hero ---- */
.page-hero-clean {
  padding: 180px 0 80px;
  background: linear-gradient(135deg, var(--light-green-bg) 0%, var(--white) 100%);
  text-align: center;
}

.page-hero-clean h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 15px;
  letter-spacing: -0.02em;
  padding: 0 20px;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .page-hero-clean h1 {
    font-size: 2.1rem;
    /* Capped */
  }
}

.page-hero-clean p {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto 25px;
  padding: 0 20px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--primary-green);
  text-decoration: none;
}

.breadcrumb .separator {
  color: #ccc;
}

.breadcrumb span:last-child {
  color: #999;
}

/* ---- Research/Blog Grid ---- */
.research-grid,
.blog-grid-ref {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  /* Increased gap for better spacing */
  padding: 80px 5%;
  /* Reduced side padding to make cards wider */
  max-width: 1300px;
  margin: 0 auto;
}

.research-card,
.blog-card-ref {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 550px;
}

@media (max-width: 768px) {

  .research-card,
  .blog-card-ref {
    min-height: auto;
  }
}

.research-card:hover,
.blog-card-ref:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.research-card-image {
  height: 240px;
  padding: 0;
  /* Removed the white padding layer */
  overflow: hidden;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  background-color: #d1e8d4;
  opacity: 1;
}

/* Specific fix for hero images with checkerboard issues - REMOVED AS IT BROKE APP PAGE */
.hero-img,
.bento-3d-asset {
  filter: none;
  background-color: transparent;
}




.research-card-body {
  padding: 20px 30px 40px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}


.research-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 20px;
}

.research-category {
  background: #f0f2f5;
  color: #555;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.research-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 18px;
  line-height: 1.3;
}

.research-card p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 30px;
  flex-grow: 1;
}

.card-link-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .research-grid {
    padding: 60px 5%;
  }
}

@media (max-width: 992px) {
  .research-grid {
    grid-template-columns: 1fr 1fr;
    padding: 40px 20px;
  }
}

@media (max-width: 600px) {
  .research-grid {
    grid-template-columns: 1fr;
  }
}


/* ---- CTA Banner Clean ---- */
.cta-banner-clean {
  padding: 100px 0;
  background: #1a1a1e;
  color: var(--white);
  text-align: center;
}

.cta-banner-clean h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-banner-clean p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.btn-primary-ref {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary-ref:hover {
  background: #27ae60;
}

/* ---- Footer Clean ---- */
.site-footer-clean {
  padding: 80px 0 40px;
  background: var(--ref-bg-light);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-grid-clean {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 20px;
  color: var(--text-body);
  max-width: 300px;
}

.footer-links-clean h4,
.footer-contact-clean h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #1a1a1e;
}

.footer-links-clean ul {
  list-style: none;
}

.footer-links-clean ul li {
  margin-bottom: 10px;
}

.footer-links-clean ul li a {
  color: var(--text-body);
  text-decoration: none;
}

.footer-contact-clean p {
  color: var(--text-body);
  margin-bottom: 10px;
}

.footer-bottom-clean {
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {

  /* Ensure blog/research hero title clears the fixed navbar */
  .page-hero-clean {
    padding: 140px 0 40px;
  }

  .page-hero-clean h1 {
    font-size: 2.2rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .page-hero-clean p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .footer-grid-clean {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .research-grid {
    grid-template-columns: 1fr;
    padding: 40px 16px;
  }

  /* Ensure research/blog card images render properly on mobile */
  .research-card-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-hero-clean {
    padding: 130px 0 40px;
  }

  .page-hero-clean h1 {
    font-size: 1.8rem;
  }

  .about-hero {
    padding: 130px 0 40px;
  }

  .about-hero h1 {
    font-size: 1.7rem;
  }

  .founder-name {
    font-size: 1.4rem;
  }

  .founder-image {
    height: 220px;
  }

  .section-padding {
    padding: 40px 0;
  }

  /* Footer logo size fix */
  .footer-brand .footer-logo img.brand-logo {
    height: 70px !important;
    width: auto !important;
  }
}

/* =============================================
   LAPTOP/DESKTOP ENHANCEMENTS (Logo & Headlines)
   Moved to end to ensure correct overrides
   ============================================= */
@media (min-width: 1025px) {
  .footer-brand .footer-logo img,
  .footer-brand .footer-logo img.brand-logo {
    height: 110px !important;
  }

  .about-hero h1,
  .page-hero-clean h1,
  .contact-hero-content h1 {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
  }
}