/* Base Setup */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
  --bg-color: #ffffff;
  --text-color: #222222;
  --text-secondary: #555555;
  --accent-color: #f09228;
  /* Orange Highlight */
  --accent-hover: #d37a15;
  --border-color: #eeeeee;
  --font-main: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 800px;
}

[data-theme="dark"] {
  --bg-color: #111111;
  --text-color: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-color: #ffab40;
  /* Lighter orange for dark mode */
  --accent-hover: #ffbd66;
  --border-color: #333333;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  /* Lighter font weight for aesthetic look */
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

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

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Navigation */
/* Navigation */
header {
  margin-bottom: 4rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 1rem;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
  margin-right: 3rem;
  /* Separate toggle from links */
}

/* ... existing nav a ... */

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  /* Add border for better touch target/visibility */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 0;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(15deg);
  background: var(--bg-color);
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ... */

.profile-pic {
  width: 140px;
  /* Reduced from 180px to fix pixelation/scaling */
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav a:hover,
nav a.active {
  color: var(--accent-color);
  text-decoration: none;
}

/* Intro Section */
.intro {
  margin-bottom: 5rem;
}

.intro h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
  /* Lighter weight heading */
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

.intro-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  /* Center alignment for photo and text */
}

.intro-text {
  flex: 1;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social-links a {
  font-weight: 400;
}

/* Sections */
section {
  margin-bottom: 5rem;
}

h2 {
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

/* Lists (Experience, Projects) */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.item {
  display: flex;
  gap: 2rem;
}

.item-date {
  flex: 0 0 140px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-top: 0.2rem;
  font-style: italic;
  /* Aesthetic touch */
}

.item-content {
  flex: 1;
}

.item-title {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.item-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 300;
}

.item-desc ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}

.item-desc li {
  margin-bottom: 0.4rem;
  list-style-type: disc;
  /* or circle/square for variety */
}

.project-links a {
  font-size: 0.9rem;
  margin-right: 1.2rem;
  font-weight: 400;
}

/* Skills as simple tags or list */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background: transparent;
  padding: 0.4rem 0.8rem;
  border: 1px solid #e0e0e0;
  /* Minimalist border instead of background */
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Interests Section Options */
.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.interest-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .interest-item:hover {
  background: rgba(255, 171, 64, 0.1);
}

.interest-icon {
  font-size: 1.4rem;
}

.interest-name {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-color);
}

/* Footer */
footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 300;
}

/* Mobile Optimization */
@media (max-width: 600px) {
  .container {
    padding: 2rem 1.5rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  nav ul {
    margin-right: 0;
    gap: 1rem;
    font-size: 0.9rem;
  }

  /* Stack intro content */
  .intro-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .social-links {
    justify-content: center;
  }

  .item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .item-date {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    flex: auto;
    /* Reset fixed 140px basis which causes gap in column mode */
  }
}