/* Minimal Portfolio Design - Light/Dark Mode Support */

:root {
  --bg-color: #fafafa;
  --text-color: #1a1a1a;
  --link-color: #1a1a1a;
  --border-color: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;
    --text-color: #e8e8e8;
    --link-color: #e8e8e8;
    --border-color: #333;
  }
}

[data-theme="light"] {
  --bg-color: #fafafa;
  --text-color: #1a1a1a;
  --link-color: #1a1a1a;
  --border-color: #e0e0e0;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #e8e8e8;
  --link-color: #e8e8e8;
  --border-color: #333;
}

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

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  line-height: 2.25rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.75rem 2.5rem;
}

/* Header with profile image and dark mode toggle */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3.75rem;
}

.profile-image {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-color);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.theme-toggle:hover {
  opacity: 1;
}

/* Typography */
h1 {
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 2.75rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 400;
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 2.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
}

li {
  margin-bottom: 1rem;
  line-height: 2.25rem;
}

strong {
  font-weight: 600;
}

figure {
  margin: 2rem 0;
  text-align: center;
}

figure img {
  max-width: 70%;
  height: auto;
  border-radius: 0.25rem;
}

@media (max-width: 768px) {
  figure img {
    max-width: 100%;
  }
}

figcaption {
  margin-top: 0.625rem;
  font-style: italic;
  opacity: 0.8;
  font-size: 1rem;
}

/* Main content */
.content {
  margin-top: 2.5rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-line {
  flex: 1;
  height: 1px;
  background-color: var(--text-color);
  opacity: 0.3;
  max-width: 150px;
}

.footer-image {
  width: 9.375rem;
  height: auto;
  opacity: 0.4;
  flex-shrink: 0;
}

/* Show/hide footer images based on theme */
.footer-light {
  display: block;
}

.footer-dark {
  display: none;
}

[data-theme="dark"] .footer-light {
  display: none;
}

[data-theme="dark"] .footer-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  .footer-light {
    display: none;
  }
  .footer-dark {
    display: block;
  }
}

[data-theme="light"] .footer-light {
  display: block;
}

[data-theme="light"] .footer-dark {
  display: none;
}

[data-theme="dark"] .footer-light {
  display: none;
}

[data-theme="dark"] .footer-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-light {
    display: none;
  }

  :root:not([data-theme="light"]) .footer-dark {
    display: block;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 2.5rem 1.25rem;
  }

  body {
    font-size: 1.125rem;
    line-height: 2rem;
  }

  h1 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 0.875rem;
  }

  .profile-image {
    width: 3.5rem;
    height: 3.5rem;
  }
}
