@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/* --- Modern Style Reset & Core Variables --- */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --text-main: #111827;
  --text-muted: #4b5563;
  --accent: #d946ef; /* Bright Magenta */
  --accent-hover: #a21caf;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --font-stack: 'Inter', sans-serif;
  --transition-speed: 0.25s;

  /* Fallback definitions for missing custom properties */
  --base-font-size: 1rem;
  --ld-text: #4b5563;
  --marina: #d946ef;
}

/* CONVERTED FOR LOCAL: Linked directly to documentElement data-theme attribute */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #f472b6; /* Soft Light Pink/Magenta */
  --accent-hover: #fb7185;
  --border: #334155;
  --card-bg: #1e293b;
  --ld-text: #94a3b8;
  --marina: #f472b6;
}

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

body {
  font-family: var(--font-stack), sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-main);
  font-size: var(--base-font-size);
  line-height: 1.6;
  transition: background-color var(--transition-speed) ease-in-out, color var(--transition-speed) ease-in-out;
}

/* --- Layout Container Wrapper --- */
.wrapper {
  max-width: 1050px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background-color: var(--bg-primary);
  min-height: 100vh;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: background-color var(--transition-speed) ease-in-out;
}

/* --- Header & Theme Controls --- */
header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 3rem;
}

.radio-switch {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem;
  display: inline-flex;
  position: relative;
  background-color: var(--bg-secondary);
  transition: background-color var(--transition-speed) ease-in-out, border-color var(--transition-speed) ease-in-out;
}

.radio-switch input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-switch label {
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  z-index: 2;
  transition: color var(--transition-speed) ease-in-out, background-color var(--transition-speed) ease-in-out;
}

.radio-switch input[type="radio"]:checked + label {
  color: #ffffff;
  background-color: var(--accent);
  border-radius: 15px;
}

/* --- Main Bio Article --- */
.main-article {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.bio-text-wrapper h2 {
  font-size: 1.2rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  transition: color var(--transition-speed) ease-in-out;
}

.bio-text-wrapper h1 a {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-speed) ease-in-out;
}

.bio-text-wrapper p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition-speed) ease-in-out;
}

.profile-img {
  width: 100%;
  max-width: 260px;
  border-radius: 50%;
  justify-self: center;
  border: 4px solid var(--border);
  transition: border-color var(--transition-speed) ease-in-out;
}

/* --- Icons System --- */
.icons {
  grid-column: 1 / -1;
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin-top: 1rem;
}

.icons.centered {
  justify-content: center;
  margin-top: 1.5rem;
}

.icons svg {
  width: 28px;
  height: 28px;
  fill: var(--text-muted);
  transition: fill var(--transition-speed) ease-in-out, transform var(--transition-speed) ease-in-out;
}

.icons a:hover svg {
  fill: var(--accent);
  transform: translateY(-2px);
}

/* --- Section Headings --- */
.h2-footer {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin: 4rem 0 2rem 0;
  transition: border-color var(--transition-speed) ease-in-out;
}

/* --- Projects Feed --- */
.projects {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  align-items: center;
  transition: background-color var(--transition-speed) ease-in-out, border-color var(--transition-speed) ease-in-out;
}

.project h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  transition: color var(--transition-speed) ease-in-out;
}

.project p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: color var(--transition-speed) ease-in-out;
}

.project img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* Special Border for Custom Images */
.img-border {
  border: 1px solid var(--border);
  transition: border-color var(--transition-speed) ease-in-out;
}

/* Technology Pill Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.tags li {
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background-color var(--transition-speed) ease-in-out, color var(--transition-speed) ease-in-out, border-color var(--transition-speed) ease-in-out;
}

/* --- Footer & Auxiliary Links --- */
footer {
  text-align: center;
}

.footer-grid {
  color: var(--ld-text);
  line-height: 1.5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  transition: color var(--transition-speed) ease-in-out;
}

.footer-grid h3 {
  font-size: calc(var(--base-font-size) * 0.85);
  color: var(--accent);
  margin-bottom: 0.5rem;
  transition: color var(--transition-speed) ease-in-out;
}

.footer-text-box ul {
  font-size: calc(var(--base-font-size) * 0.85);
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.footer-text-box li {
  line-height: 2;
}

.footer-text-box a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-speed) ease-in-out;
}

.footer-text-box a:hover {
  color: var(--accent);
}

/* Hidden elements helper style utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Desktop Presentation Viewports */
@media (min-width: 750px) {
  :root {
    --base-font-size: 1.125rem;
  }
  h1 {
    margin-left: -3px;
  }
  .wrapper {
    padding: 5rem;
  }
  .radio-switch {
    justify-content: flex-end;
  }
  .main-article {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: left;
  }
  /* FIXED: Removed the stray broken "p" selector syntax */
  .main-article img {
    width: 100%;
    max-width: 260px;
    border-radius: 50%;
    justify-self: center;
    border: 4px solid var(--border);
  }
  .icons {
    justify-content: flex-start;
  }
  footer {
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid .icons {
    grid-column: 1 / 4;
  }
}

@media (min-width: 850px) {
  main {
    text-align: left;
  }
  .project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .project img {
    grid-row: auto;
  }
  .project ul {
    justify-content: flex-start;
  }
}