/* =============================================
   Base — Reset, Typography, Global Styles
   ============================================= */

/* --- Font Import --- */
@import url('https://db.onlinewebfonts.com/c/88d825431bfee24234c96a4170553e7f?family=MarkWeb+W03+Regular');

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  overflow-x: hidden;
  overflow-y: scroll;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--navbar-height);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-secondary);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Selection --- */
::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* --- Utility Classes --- */
.section-padding {
  padding: var(--space-4xl) 0;
}

.section-padding-sm {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
