/* ==========================================================================
   TSP EXPORTS - CORE STYLESHEET (VERSION 6.0 - MOBILE FIRST OPTIMIZED)
   Official Registered Desk: Bengaluru, Karnataka - 562016
   Founder: Likhith B Reddy | WhatsApp: +91 9880455622
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & SYSTEM DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Premium Agro-Gold & Emerald Theme Palette */
  --bg-primary: #060e0a;
  --bg-secondary: #0a1610;
  --bg-card: rgba(12, 24, 18, 0.85);
  --bg-card-hover: rgba(16, 32, 24, 0.95);
  --bg-glass: rgba(6, 14, 10, 0.85);

  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;

  --gold-300: #fde047;
  --gold-400: #facc15;
  --gold-500: #eab308;
  --gold-600: #ca8a04;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(250, 204, 21, 0.35);
  --border-emerald: rgba(52, 211, 153, 0.35);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* Prevents auto-zoom on mobile safari */
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 90px 0;
  position: relative;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 2;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold-400);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. NAVIGATION BAR (ROBUST DESKTOP & MOBILE FIRST)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(6, 14, 10, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(250, 204, 21, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-gold);
  background: #ffffff;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.1;
  font-family: var(--font-display);
  white-space: nowrap;
}

.brand-name span {
  color: var(--gold-400);
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-400);
  margin-top: 2px;
  line-height: 1;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Single Clean Circular Instagram Logo Icon Button */
.nav-insta-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.35);
  text-decoration: none;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.nav-insta-icon-btn:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.55);
  color: #ffffff !important;
}

.nav-insta-icon-btn svg {
  width: 20px;
  height: 20px;
}

.btn-whatsapp-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #25D366;
  color: #06190f;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-whatsapp-nav:hover {
  background: #2efc79;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-nav svg {
  width: 18px;
  height: 18px;
}

.footer-insta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.35);
  transition: all var(--transition-fast);
  text-decoration: none;
  margin-top: 12px;
}

.footer-insta-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.55);
  color: #ffffff !important;
}

/* Mobile Circular WhatsApp Button */
.nav-wa-mobile-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25D366;
  color: #06190f;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.nav-wa-mobile-btn:hover {
  background: #2efc79;
  transform: scale(1.05);
}

.nav-wa-mobile-btn svg {
  width: 21px;
  height: 21px;
}

/* Mobile 3-Dots Menu Toggle Button */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover, .mobile-toggle:focus {
  background: rgba(250, 204, 21, 0.15);
  border-color: rgba(250, 204, 21, 0.4);
  color: var(--gold-400);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-toggle .dots-icon {
  display: block;
}

.mobile-toggle .close-icon {
  display: none;
}

.mobile-nav-extra {
  display: none;
}

/* --------------------------------------------------------------------------
   4. TICKER & FLOATING WIDGET
   -------------------------------------------------------------------------- */
.trade-ticker-bar {
  background: rgba(8, 23, 14, 0.95);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ticker-item strong {
  color: #ffffff;
}

.ticker-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ticker-badge.up {
  background: rgba(39, 174, 96, 0.2);
  color: #4ade80;
}

.ticker-badge.port {
  background: rgba(250, 204, 21, 0.2);
  color: var(--gold-400);
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Floating WhatsApp Pulse Button */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-bubble {
  background: rgba(12, 24, 18, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-emerald);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-smooth);
  pointer-events: none;
  white-space: nowrap;
}

.floating-whatsapp-widget:hover .whatsapp-bubble {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #061e12;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  position: relative;
  transition: var(--transition-bounce);
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
}

.whatsapp-float-btn svg {
  width: 30px;
  height: 30px;
}

.pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulseRipple 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes pulseRipple {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* --------------------------------------------------------------------------
   5. COMPREHENSIVE RESPONSIVE BREAKPOINTS (TABLETS & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --header-height: 64px;
  }

  .navbar {
    height: 64px;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6, 14, 10, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px 20px 32px;
    gap: 14px;
    border-bottom: 1px solid rgba(250, 204, 21, 0.3);
    transform: translateY(-150%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 700;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
  }

  .mobile-nav-extra {
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-insta-icon-btn {
    width: 38px;
    height: 38px;
  }

  .nav-insta-icon-btn svg {
    width: 19px;
    height: 19px;
  }

  .nav-wa-desktop {
    display: none !important;
  }

  .nav-wa-mobile-btn {
    display: flex !important;
    width: 38px;
    height: 38px;
  }

  .nav-wa-mobile-btn svg {
    width: 20px;
    height: 20px;
  }

  .mobile-toggle {
    display: flex !important;
    width: 38px;
    height: 38px;
  }

  .brand-logo-img {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-tagline {
    font-size: 0.62rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 1.95rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .page-hero-banner {
    padding: 85px 0 32px;
  }

  .page-hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .page-hero-desc {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .category-filter-bar {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 14px;
    gap: 8px;
    justify-content: flex-start;
    scrollbar-width: none;
    margin-bottom: 24px;
  }

  .category-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .subcategory-header {
    margin: 24px 0 12px;
    gap: 10px;
  }

  .subcategory-title {
    font-size: 1.25rem;
  }

  .subcategory-icon {
    width: 36px;
    height: 36px;
  }

  .product-body {
    padding: 16px 14px;
  }

  .product-title {
    font-size: 1.15rem;
  }

  .product-tagline {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  .spec-row {
    font-size: 0.78rem;
  }

  .product-card-footer {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
  }

  .btn-inspect-specs, .btn-card-pricing {
    padding: 10px 8px;
    font-size: 0.8rem;
    gap: 4px;
  }

  .floating-whatsapp-widget {
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float-btn {
    width: 50px;
    height: 50px;
  }

  .whatsapp-float-btn svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .brand-tagline {
    display: none;
  }

  .product-card-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-hero-title {
    font-size: 1.65rem;
  }
}
