/* =========================
   QA Portfolio - Dark Modern Theme
   ========================= */

:root {
  --bg: #0b1120;
  --bg-alt: #111827;
  --surface: #1e293b;
  --surface-hover: #273549;
  --border: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #22d3ee;
  --primary-dark: #06b6d4;
  --accent: #2dd4bf;
  --glow: rgba(34, 211, 238, 0.15);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 32px rgba(34, 211, 238, 0.12);
  --radius: 12px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(45, 212, 191, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Subtle grid / tech texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
}

img {
  width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
}

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

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

/* =========================
   Navigation
========================= */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.4rem 1.25rem;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
}

nav a:hover {
  background: rgba(34, 211, 238, 0.1);
  color: var(--primary);
}

nav img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(0.7);
  transition: filter var(--transition);
}

nav a:hover img {
  filter: brightness(0) invert(0.85) sepia(1) saturate(5) hue-rotate(155deg);
}

/* =========================
   Layout helpers
========================= */

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

section {
  margin-bottom: 3rem;
}

h1, h2, h3 {
  color: var(--text);
  line-height: 1.3;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2.5rem 0;
}

/* =========================
   Buttons
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px var(--glow);
}

.btn-primary:hover {
  background: var(--primary);
  color: #0b1120;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
}

.btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(0.85) sepia(1) saturate(5) hue-rotate(155deg);
}

.btn-primary:hover img {
  filter: brightness(0) invert(0.1);
}

/* Artifact buttons */
.artifact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  text-decoration: none;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  transition: all var(--transition);
}

.artifact-button:hover {
  background: var(--primary);
  color: #0b1120;
  transform: translateY(-1px);
  box-shadow: 0 0 16px var(--glow);
}

/* =========================
   Hero (Home)
========================= */
/* =========================
   Hero (Home) - Side layout
========================= */

.hero {
  padding: 4.5rem 1.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-side {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  text-align: left;
}

.hero-photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: 0 0 28px var(--glow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.3rem;
  color: var(--text);
}

.hero-content h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.hero-content p {
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 0.9rem;
}

.hero-content .skills-line {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}

/* Mobile: stack photo on top */
@media (max-width: 700px) {
  .hero-side {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-photo {
    width: 140px;
    height: 140px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================
   About page
========================= */

.about-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.05rem;
}

.skill-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2rem 0 1rem;
  font-size: 1.25rem;
  color: var(--text);
}

.skill-title img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(0.75) sepia(1) saturate(4) hue-rotate(155deg);
}

/* What I Do cards */
.what-i-do {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 1.5rem 0 2.5rem;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(34, 211, 238, 0.35);
}

.work-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(0.75) sepia(1) saturate(4) hue-rotate(155deg);
}

.work-card h3 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.05rem;
  color: var(--text);
}

.work-card p {
  font-size: 0.925rem;
  margin: 0;
  line-height: 1.55;
}

/* Skills sections */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  transition: border-color var(--transition);
}

.skill-group:hover {
  border-color: rgba(34, 211, 238, 0.3);
}

.skill-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  color: var(--primary);
}

.skill-group h3 img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(0.75) sepia(1) saturate(4) hue-rotate(155deg);
}

.skill-group ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-group li {
  background: rgba(34, 211, 238, 0.08);
  color: var(--text);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

/* QA Process */
.process-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.process-list li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1.1rem 1.2rem;
  position: relative;
  box-shadow: var(--shadow);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.process-list li::before {
  content: counter(step);
  position: absolute;
  top: -11px;
  left: 14px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0b1120;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* =========================
   Projects
========================= */

.projects-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: var(--shadow-hover);
}

.project-card summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  list-style: none;
  background: rgba(15, 23, 42, 0.5);
  transition: background var(--transition);
}

.project-card summary::-webkit-details-marker {
  display: none;
}

.project-card summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform var(--transition);
}

.project-card[open] summary::after {
  transform: rotate(180deg);
}

.project-card summary:hover {
  background: rgba(34, 211, 238, 0.06);
}

.project-card summary img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  filter: brightness(0) invert(0.75) sepia(1) saturate(4) hue-rotate(155deg);
}

.project-header h2 {
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
  color: var(--text);
}

.project-header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.project-details {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.project-details h3 {
  color: var(--primary);
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
}

.project-details h3:first-child {
  margin-top: 0;
}

.project-details ul {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-details li {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.project-details hr {
  margin: 1rem 0;
}

/* =========================
   Artifacts
========================= */

.artifacts {
  width: 90%;
  max-width: 1000px;
  margin: 2.5rem auto 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.artifacts h1 {
  text-align: center;
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
}

.artifacts-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.7;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.artifact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.artifact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(34, 211, 238, 0.3);
}

.artifact-card > img {
  width: 38px;
  height: 38px;
  filter: brightness(0) invert(0.75) sepia(1) saturate(4) hue-rotate(155deg);
}

.artifact-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.artifact-content p {
  font-size: 0.925rem;
  margin-bottom: 0.6rem;
}

.artifact-content ul {
  padding-left: 1.15rem;
  margin-bottom: 1rem;
}

.artifact-content li {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.artifact-buttons {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  flex-wrap: wrap;
}
.page-title {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
  color: var(--text);
  position: relative;
  padding-bottom: 0.75rem;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* =========================
   Footer / Contact
========================= */

footer {
  margin-top: 3rem;
  padding: 2.75rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.8));
  border-top: 1px solid var(--border);
  text-align: center;
}

footer h3 {
  margin-bottom: 1.4rem;
  color: var(--text);
}

footer address {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.5rem;
  font-style: normal;
}

footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

footer a:hover {
  background: rgba(34, 211, 238, 0.1);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 16px var(--glow);
}

footer a img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(0.65);
  transition: filter var(--transition);
}

footer a:hover img {
  filter: brightness(0) invert(0.85) sepia(1) saturate(5) hue-rotate(155deg);
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
  nav ul {
    gap: 0.3rem 0.7rem;
  }

  nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .artifacts {
    grid-template-columns: 1fr;
  }

  .artifacts h1,
  .artifacts-intro {
    grid-column: 1;
  }

  .hero {
    padding: 3.5rem 1rem 3rem;
  }

  footer address {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .what-i-do {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: 1fr;
  }
}