/* base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--clr-body);
  background-color: var(--clr-bg);
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800; /* Standardized to 800 for Baloo 2 */
  line-height: 1.1;
  color: var(--clr-heading);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -1.5px;
}

h3 {
  font-size: var(--fs-xl);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--tr-base);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

section {
  position: relative;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-pad {
  padding: var(--space-3xl) 0;
  overflow: hidden; /* Prevent AOS overflow issues locally */
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2,
.section-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  margin: var(--space-xs) 0;
  color: var(--clr-heading);
  letter-spacing: -2px;
}

.section-desc {
  font-size: var(--fs-base);
  color: var(--clr-text-sec);
  line-height: 1.6;
}

.text-primary {
  color: var(--clr-primary);
}

.text-secondary {
  color: var(--clr-secondary);
}

.text-accent {
  color: var(--clr-accent);
}

.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--space-xs);
}

.mb-md {
  margin-bottom: var(--space-sm);
}

.mb-lg {
  margin-bottom: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-md);
}

.full-width {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* Utility Classes */
.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm {
  gap: var(--space-xs);
}

.gap-md {
  gap: var(--space-sm);
}

.gap-lg {
  gap: var(--space-md);
}

/* Icons */
.icon-sm {
  width: 16px;
  height: 16px;
  min-width: 16px;
  display: inline-block;
  vertical-align: middle;
}

.icon-md {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: inline-block;
  vertical-align: middle;
}

/* Global Mobile Consistency */
@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
  }

  .section-pad {
    padding: var(--space-xl) 0;
  }

  .navbar,
  .navbar.scrolled {
    height: 70px !important;
  }

  .section-header h2,
  .section-title,
  .page-hero h1,
  .hero-content h1,
  h1,
  h2 {
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    letter-spacing: -1.5px !important;
    line-height: 1.1 !important;
  }

  .hero,
  .page-hero {
    padding: 120px 0 60px !important;
  }

  .section-desc, .hero-content p, .page-hero p {
    font-size: var(--fs-base) !important;
  }

  h3 {
    font-size: var(--fs-lg) !important;
  }

  body {
    font-size: var(--fs-sm);
  }
}