/* Base */
:root {
  --swift-orange: #FF9500;
  --text-light: #f5f5f7;
  --text-muted: #d0d0d5;
  --bg-primary: #123456; /* Официальный цвет Swift.org */
  --bg-secondary: #1a2b4c;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Dynamic Gradient Background (Swift.org style) */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #123456, #1a2b4c, #1e2d5a, #123456);
  background-size: 400% 400%;
  animation: gradientShift 30s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Content Container */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--spacing-md);
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2 {
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}
h2 {
  font-size: 1.75rem;
  margin: var(--spacing-md) 0 var(--spacing-sm);
}

p, li {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

a {
  color: var(--swift-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #e07a00;
}

/* Interests list */
.interests ul {
  list-style: none;
  padding-left: 0;
}
.interests li {
  margin: 0.5rem 0;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  p, li { font-size: 1rem; }
  .container { padding: var(--spacing-md) 1.5rem; }
}