/* layout.css — Grid, Container, and Core Structural Styles */

html {
  overflow-x: hidden;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

/* 1. Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

@media (max-width: 640px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* 2. Sections */
.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  position: relative;
}

.section-half {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

/* 3. Grid Systems (Responsive first) */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

/* Medium screens (Tablets) */
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large screens (Desktops) */
@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 4. Flexbox Utilities */
.flex-row-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* 5. Typography Basics */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* 6. Asymmetric Depth Background Glows (Without Custom Assets) */
.glow-blur {
  position: fixed;
  width: 30vw;
  height: 30vw;
  min-width: 200px;
  min-height: 200px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, var(--color-primary-500) 0%, var(--color-accent-purple) 45%, transparent 70%);
  opacity: 0.15;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-left {
  top: 10%;
  left: -15vw;
}

.glow-right {
  bottom: 10%;
  right: -15vw;
  background: radial-gradient(circle, var(--color-success) 0%, var(--color-warning) 45%, transparent 70%);
}
