/* ===== Base / reset ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root { 
  --max: 1000px; 
  --pad: 1rem; 
  --muted:#6b7280; 
  --chip-bg: rgba(31,41,55,.85); 
  --chip-brd: rgba(148,163,184,.22); 
}

body {
  font: 16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color: #111;
  background-image: url("images/background2.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: #0b5bd3; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Accessible skip link */
.skip-link {
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus { 
  position:static; 
  width:auto; 
  height:auto; 
  background:#000; 
  color:#fff; 
  padding:.5rem; 
}

/* ===== Hero / parallax card ===== */
.parallax {
  min-height: 36em;
  margin: 2rem auto;
  max-width: 1200px;
  border-radius: 24px;
  position: relative;
  background: transparent;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.parallax::before {
  content:"";
  position:absolute; inset:0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(21,28,40,.86), rgba(21,28,40,.78));
  backdrop-filter: saturate(120%) blur(2px);
}
.parallax-inner { 
  position: relative; z-index: 1; 
  color: #e5e7eb; 
  text-align: center; 
  padding: 3.5rem 2rem 2rem; 
}

h1.site-title { color: rgba(229,231,235,.92); font-weight: 800; letter-spacing: .3px; margin-bottom: .25rem; }
.tagline { color: rgba(229,231,235,.85); font-weight: 600; margin-top: 0; }

.profile { display:flex; flex-direction:column; align-items:center; gap:.5rem; margin:0; }
img.circular { 
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover; 
  border: 4px solid rgba(255,255,255,.12); 
  box-shadow: 0 8px 24px rgba(0,0,0,.4); 
}

/* Muted text: dark by default, light in hero */
.muted { color: var(--muted); }
.parallax .muted { color: rgba(229,231,235,.85); }

/* Social buttons */
nav[aria-label="Social links"] ul.socials {
  list-style: none; display:flex; gap: .75rem; justify-content:center; 
  padding: 0; margin: 1rem 0 0; flex-wrap: wrap;
}
nav[aria-label="Social links"] a {
  display:inline-block; padding: .55rem .9rem; background: var(--chip-bg); color: #e5e7eb;
  border-radius: 10px; border: 1px solid var(--chip-brd);
  box-shadow: 0 2px 6px rgba(0,0,0,.25) inset, 0 6px 16px rgba(0,0,0,.25);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease; text-decoration:none;
}
nav[aria-label="Social links"] a:hover {
  transform: translateY(-1px); background: rgba(39,52,71,.9);
  box-shadow: 0 2px 6px rgba(0,0,0,.25) inset, 0 10px 22px rgba(0,0,0,.3);
}

/* Arrow */
.down-arrow { width: 22px; height: 22px; margin: 1.25rem auto 0; fill: rgba(229,231,235,.9); opacity: .9; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
@media (prefers-reduced-motion:no-preference) {
  @keyframes bounce { 0%,100% { transform:translateY(0) } 50% { transform:translateY(6px) } }
  .down-arrow { animation: bounce 1.6s infinite; }
}

/* ===== Layout ===== */
main { max-width: var(--max); margin: 0 auto; padding: 2rem var(--pad); }
section { margin: 2.5rem 0; }
article { margin: 1rem 0 1.5rem; }
h2 { text-align:center; font-size: clamp(1.4rem,3vw,1.8rem); margin: 2.5rem 0 1rem; }
h3 { margin: 1rem 0 .25rem; }
h4 { margin: .75rem 0 .25rem; color:#374151; font-weight:600; }
ul { margin:.25rem 0 0 1.1rem; }

/* Year range helper (for dates in headings) */
.year-range { color:#374151; font-weight:600; }

/* ===== Section divider ===== */
hr.section-divider { border: none; border-top: 2px solid rgba(0,0,0,0.08); margin: 3rem auto; max-width: 800px; }

/* ===== Projects Section ===== */
#projects { text-align: center; width: 100%; margin: 3rem 0; padding: 0 1rem; }
#projects h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 1.5rem; }
#projects article {
  margin: 1.5rem auto; max-width: 800px; background: rgba(255, 255, 255, 0.92);
  border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); text-align: left;
}
#projects h3 { margin-top: 0; color: #1f2937; font-weight: 600; }
#projects p { margin: 0.5rem 0 0; color: #374151; line-height: 1.6; }
.modules li {
  list-style: none;
  margin: 0.4rem 0;
  display: flex;
  align-items: flex-start;
}
.modules li span.icon {
  display: inline-block;
  width: 1.6em;
}

/* ===== Reveal fade-in ===== */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .down-arrow { animation: none !important; }
}

/* ===== Contact chips ===== */
.chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; padding: 0; margin: 1rem 0 0;
}
.chip-link,
nav[aria-label="Social links"] a,
#contact a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem;
  background: var(--chip-bg); color: #e5e7eb; border-radius: 10px; border: 1px solid var(--chip-brd);
  box-shadow: 0 2px 6px rgba(0,0,0,.25) inset, 0 6px 16px rgba(0,0,0,.25);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.chip-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,.25) inset, 0 10px 22px rgba(0,0,0,.3);
}
.chip-link.email:hover   { background: #2563eb; } /* blue */
.chip-link.phone:hover   { background: #059669; } /* teal */
.chip-link.linkedin:hover{ background: #0a66c2; } /* LinkedIn */
.chip-link.github:hover  { background: #333; }     /* GitHub */

.chip-link .icon { flex-shrink: 0; width: 18px; height: 18px; fill: currentColor; }

/* ===== Copy-toast ===== */
#copy-toast {
  position:fixed; bottom:20px; right:20px;
  background:#111; color:#fff;
  padding:.6rem 1rem; border-radius:6px;
  opacity:0; pointer-events:none;
  transform:translateY(8px);
  transition:opacity .25s, transform .25s;
}

/* ===== Footer ===== */
footer { background:#111827; color:#cbd5e1; text-align:center; padding:1.25rem; }
#footer { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .parallax { margin: 1rem; border-radius: 18px; }
  img.circular { width: 180px; height: 180px; }
  #projects article { padding: 1rem; margin-bottom: 1.25rem; }
  #projects h3 { font-size: 1.1rem; }
}
