/* CSS Reset and Base Styles */
:root {
  /* Default: Dark Mode */
  --bg-color: #000000;
  --text-color: #ffffff;
  --container-bg: rgba(20, 20, 20, 0.95);
  --primary-color: #0077b5;
  /* Preserved Blue */
  --secondary-color: #a0cfee;
  --particle-color: #ffffff;
  --line-color: rgba(255, 255, 255, 0.4);
  --font-main: 'Courier Prime', monospace;
  --font-citation: 'Playfair Display', serif;
  --callout-bg: rgba(255, 255, 255, 0.1);
}

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

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Canvas */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 90%;
  max-width: 1000px;
  background: var(--container-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1;
  transition: background-color 0.3s ease;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

hr {
  display: none;
}

/* Layout */
.content-wrapper {
  opacity: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .content-wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .profile-column {
    flex: 1;
    max-width: 300px;
    text-align: center;
  }

  .info-column {
    flex: 2;
    padding-left: 2rem;
  }
}

/* Profile Section */
.profile-column h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-color);
}

.profile-img {
  width: 100%;
  max-width: 250px;
  border-radius: 12px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);*/
  opacity: 1;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  fill: var(--text-color);
}

/* Permanently invert black icons for dark mode */
.social-icon {
  filter: invert(1);
}

.social-icon:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

/* Text Content */
.callout {
  background: var(--callout-bg);
  padding: 0.8rem 1.5rem;
  height: 3.5rem;
  /* Reduced vertical padding */
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
  transition: background-color 0.3s ease;
}

.callout p {
  font-family: var(--font-citation);
  /* Playfair Display */
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Utility */
.text-center {
  text-align: center;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cv-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  /* Preserved Blue */
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s ease;
}

.cv-button:hover {
  background-color: #005f9e;
  text-decoration: none;
  color: white;
  transform: translateY(-2px);
}