/* ==================== CSS VARIABLES ==================== */
:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-text-light: #666666;
  --color-grey: #f5f5f5;
  --color-grey-medium: #e8e8e8;
  --color-border: #000000;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-h1: 3rem;
  --font-size-h2: 1.75rem;
  --font-size-p: 1.1rem;
  --line-height: 1.7;
  --letter-spacing: 0.5px;
}

/* ==================== RESET & BASE ==================== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
}

/* ==================== NAVIGATION ==================== */
nav {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 3rem;
  display: flex;
  gap: 3rem;
  background-color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease, opacity 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--color-text-light);
}

nav a.active {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 0.25rem;
}

/* ==================== TYPOGRAPHY ==================== */
h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -1px;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

p {
  font-size: var(--font-size-p);
  color: var(--color-text-light);
  margin: 1.5rem 0;
  line-height: 1.8;
}

/* ==================== CONTENT LAYOUT ==================== */
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 4rem 2rem;
}

.content > div {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

/* ==================== ABOUT PAGE ==================== */
.about-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 3rem;
}

.background-text {
  position: absolute;
  font-family: var(--font-main);
  font-size: clamp(2rem, 15vw, 10rem);
  font-weight: 700;
  color: #d0d0d0;
  width: 33.33%;
  text-align: center;
  z-index: 0;
  white-space: nowrap;
  letter-spacing: -2px;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 550px;
  padding: 2.5rem;
  align-self: flex-start;
  margin-top: 0;
}

.about-content p {
  font-size: var(--font-size-p);
  text-align: justify;
  margin: 0;
  line-height: 1.9;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  nav {
    padding: 1.5rem 1.5rem;
    gap: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  .content {
    min-height: calc(100vh - 70px);
    padding: 2rem 1rem;
  }

  .about-content {
    padding: 1.5rem;
    max-width: 100%;
  }

  .background-text {
    width: 60%;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .background-text {
    display: none;
  }

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