@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

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

:root {
  --bg: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #4CAF50;
}

body.light-mode {
  --bg: #f7f7f7;
  --text-primary: #1e1e1e;
  --text-secondary: rgba(30, 30, 30, 0.55);
  --border: rgba(0, 0, 0, 0.1);
  --accent: #2e7d32;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Back button */
.back-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background-color: #21262d;
  color: #e6edf3;
  border-radius: 50%;
  text-decoration: none;
  z-index: 10000;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  border: 1px solid #30363d;
}

.back-button:hover {
  background-color: #30363d;
}

body.light-mode .back-button {
  background-color: #e8e8e8;
  color: #1e1e1e;
  border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .back-button:hover {
  background-color: #d4d4d4;
}

/* Wrapper */
.about-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 24px 120px;
}

/* Hero */
.about-hero {
  margin-bottom: 56px;
}

.about-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about-name {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.about-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Bio + photo */
.about-bio {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px;
  align-items: start;
  margin-bottom: 72px;
}

.about-bio-text p {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.75;
}

.about-bio-text p:last-child {
  margin-bottom: 0;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(20%);
}

/* Section */
.about-section {
  margin-bottom: 64px;
}

.about-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 80px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 52px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-year {
  position: absolute;
  left: -80px;
  top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  width: 44px;
  text-align: right;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Values */
.values-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.value-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
}

.value-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 3px;
  letter-spacing: 0.04em;
}

.value-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.value-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Tools */
.about-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tool-items {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Behind This Site */
.behind-body {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.behind-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.behind-link:hover {
  border-bottom-color: var(--accent);
}

.behind-arrow {
  transition: transform 0.2s ease;
}

.behind-link:hover .behind-arrow {
  transform: translateX(4px);
}

/* Connect */
.connect-intro {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.connect-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.about-connect .social-links {
  display: flex;
  gap: 20px;
}

.social-icon {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  color: #4caf50;
  transform: translateY(-5px) scale(1.1);
  text-shadow: 0 0 5px rgba(76, 175, 80, 0.6);
}

body.light-mode .social-icon {
  color: #1e1e1e;
}

body.light-mode .social-icon:hover {
  color: #4caf50;
}

/* Work With Me */
.about-cta-section {
  padding: 10px 0 0;
}

.about-cta-container {
  width: 100%;
  padding: 10px 32px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.about-cta-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.about-cta-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.about-cta-title .highlight {
  color: #4caf50;
}

.about-cta-icon {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #4caf50;
  flex-shrink: 0;
}

.about-cta-container:hover .about-cta-icon {
  animation: about-icon-move 1.2s ease-in-out infinite;
  color: #81c784;
}

@keyframes about-icon-move {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

body.light-mode .about-cta-title {
  color: #1e1e1e;
}

/* Responsive */
@media (max-width: 600px) {
  .about-bio {
    grid-template-columns: 1fr;
  }

  .about-photo {
    order: -1;
  }

  .about-photo img {
    aspect-ratio: 4 / 3;
  }

  .about-tools {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline {
    padding-left: 64px;
  }
}
