/* ============================================
   AGROVISION - MAIN STYLESHEET
   Core styles, CSS variables, and base resets
   ============================================ */

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Primary Colors */
  --primary: #006d3b;
  --primary-container: #00c26e;
  --primary-fixed: #65fea3;
  --primary-fixed-dim: #42e189;
  --inverse-primary: #42e189;
  --on-primary: #ffffff;
  --on-primary-container: #004825;
  --on-primary-fixed: #00210e;
  --on-primary-fixed-variant: #00522b;

  /* Secondary Colors */
  --secondary: #5f5e60;
  --secondary-container: #e2dfe1;
  --secondary-fixed: #e4e2e4;
  --secondary-fixed-dim: #c8c6c8;
  --on-secondary: #ffffff;
  --on-secondary-container: #636264;
  --on-secondary-fixed: #1b1b1d;
  --on-secondary-fixed-variant: #474649;

  /* Tertiary Colors */
  --tertiary: #5d5e60;
  --tertiary-container: #a8a9ab;
  --tertiary-fixed: #e2e2e4;
  --tertiary-fixed-dim: #c6c6c8;
  --on-tertiary: #ffffff;
  --on-tertiary-container: #3c3e40;
  --on-tertiary-fixed: #1a1c1d;
  --on-tertiary-fixed-variant: #454749;

  /* Surface Colors */
  --surface: #faf8fe;
  --surface-dim: #dad9df;
  --surface-bright: #faf8fe;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f4f3f8;
  --surface-container: #eeedf3;
  --surface-container-high: #e9e7ed;
  --surface-container-highest: #e3e2e7;
  --surface-variant: #e3e2e7;
  --surface-tint: #006d3b;

  /* Background & Text */
  --background: #faf8fe;
  --on-background: #1a1b1f;
  --on-surface: #1a1b1f;
  --on-surface-variant: #3c4a3f;

  /* Error Colors */
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error: #ffffff;
  --on-error-container: #93000a;

  /* Inverse Surface */
  --inverse-surface: #2f3034;
  --inverse-on-surface: #f1f0f5;

  /* Outline */
  --outline: #6c7b6e;
  --outline-variant: #bbcbbc;

  /* Spacing */
  --section-gap: 80px;
  --unit: 8px;
  --margin-mobile: 20px;
  --margin-desktop: 64px;
  --gutter: 24px;
  --container-max: 1200px;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--on-background);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Prevent any accidental horizontal overflow without breaking scrolling animation */
#animation-section,
.hero-section,
canvas,
main,
section,
div,
img {
  max-width: 100%;
}





/* Selection Style */
::selection {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}
