/* ==========================================
   Personal Website - Stephan Zimmermann
   Minimalist Dark/Light Theme
   ========================================== */

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

/* CSS Variables for Theming */
:root {
  /* Dark Mode (default) */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --border-color: #2a2a2a;
  --accent: #f7931a;
  --accent-hover: #ffa940;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #f0f0f0;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --border-color: #e5e5e5;
  --accent: #f7931a;
  --accent-hover: #e8850f;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

/* Profile Section */
.profile {
  text-align: center;
  margin-bottom: 48px;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border-color);
  margin-bottom: 24px;
  transition: border-color 0.3s ease;
}

.profile-image:hover {
  border-color: var(--accent);
}

.profile-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.profile-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

/* Section Title */
.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Project Cards */
.projects {
  margin-bottom: 48px;
}

.project-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-secondary);
  padding: 4px;
}

.project-name {
  font-size: 18px;
  font-weight: 600;
}

.project-arrow {
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.project-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Resources Section */
.resources {
  margin-bottom: 48px;
}

.resource-category {
  margin-bottom: 24px;
}

.resource-category-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.resource-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.resource-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.resource-card:last-child {
  margin-bottom: 0;
}

.resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.resource-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resource-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-secondary);
  padding: 4px;
}

.resource-name {
  font-size: 16px;
  font-weight: 600;
}

.resource-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(247, 147, 26, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

.resource-price.free {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.resource-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Contact Button */
.contact-section {
  text-align: center;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.contact-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247, 147, 26, 0.3);
}

.contact-button svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.footer-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 48px 20px 60px;
  }

  .profile-name {
    font-size: 24px;
  }

  .profile-tagline {
    font-size: 14px;
  }

  .theme-toggle {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }

  .project-card {
    padding: 20px;
  }

  .project-name {
    font-size: 16px;
  }

  .project-description {
    font-size: 14px;
  }

  .contact-button {
    padding: 14px 28px;
    font-size: 15px;
  }

  .resource-card {
    padding: 14px 16px;
  }

  .resource-name {
    font-size: 15px;
  }

  .resource-description {
    font-size: 13px;
  }
}