/* ==========================================================================
   MAIN.CSS - Global Styles, Variables, Typography, Reset
   ========================================================================== */

/* CSS VARIABLES */
:root {
  /* Brand Colors */
  --color-magenta: #d92fbd;
  --color-purple: #813cb6;
  --color-cyan: #04dcc1;
  --color-blue: #05a2eb;
  --color-theme: #8a3ffc;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-magenta) 0%, var(--color-purple) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);

  /* Neutral Colors */
  --color-text: #1a1a1a;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-soft: #f8f9fa;
  --color-bg-dark: #1a1a1a;
  --color-border: #e5e7eb;

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, blinkmacsystemfont, sans-serif;
  --font-body: 'Open Sans', -apple-system, blinkmacsystemfont, sans-serif;

  /* Spacing */
  --section-padding: 80px;
  --section-padding-mobile: 48px;
  --container-max: 1200px;

  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-theme);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-purple);
}

em {
  font-style: italic;
  color: var(--color-magenta);
}

blockquote {
  margin: 0;
  padding: 0;
}

/* CONTAINER */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* SECTIONS */
.section {
  padding: var(--section-padding) 0;
}

.section-soft {
  background: var(--color-bg-soft);
}

@media (width <= 768px) {
  .section {
    padding: var(--section-padding-mobile) 0;
  }
}

/* TEXT ALIGNMENT */
.text-center {
  text-align: center;
  margin-bottom: 48px;
}

/* SECTION LABELS & TITLES */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b5259e;
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto;
}

/* FADE-UP ANIMATION */
.fade-up {
  opacity: 0%;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-up.visible {
  opacity: 100%;
  transform: translateY(0);
}

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

/* LISTS */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ACCESSIBILITY */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* FOCUS VISIBLE */
*:focus-visible {
  outline: 2px solid var(--color-theme);
  outline-offset: 2px;
}
