:root{
  --bg:#000;
  --text:#fff;
  --muted:rgba(255,255,255,0.72);
  --card:#0b0b0b;
  --border:rgba(255,255,255,0.14);
  --accent:#00ffd0;
  --shadow:0 18px 50px rgba(0,0,0,.55);
  --radius:18px;
  --topbar-h:72px;
  --max:1200px;

  /* ✅ Project hover border thickness (CHANGE THIS) */
  --proj-border: 3px;
  --hero-brightness: 1.3;  
  --hero-contrast: 0.95;    
  --hero-saturate: 1.08;    
}

/* ---------------- Base ---------------- */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  min-height:100svh;
  display:flex;
  flex-direction:column;
}
main{flex:1}

body.light{
  --bg:#fff;
  --text:#000;
  --muted:rgba(0,0,0,0.66);
  --card:#f4f4f4;
  --border:rgba(0,0,0,0.14);
}

.container{width:min(var(--max),96vw);margin:0 auto}
.section{padding:72px 0}
.section-title{
  font-size:clamp(26px,3vw,40px);
  color:var(--accent);
  margin-bottom:14px;
}
.muted{color:var(--muted);line-height:1.7}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* ---------------- Topbar ---------------- */
.topbar{
  position:fixed; inset:0 0 auto 0;
  height:var(--topbar-h);
  z-index:1000;

  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;

  padding:0 3vw;
  background:rgba(0,0,0,0.72);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
body.light .topbar{background:rgba(255,255,255,0.78)}

.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.brand img{width:56px;height:56px;object-fit:contain}

.nav{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:22px;
}
.navlink{
  text-decoration:none;
  color:var(--text);
  opacity:.92;
  position:relative;
  padding:6px 4px;
  font-size:16px;
}
.navlink::after{
  content:"";
  position:absolute;
  left:0; bottom:-8px;
  height:3px; width:0;
  background:var(--accent);
  transition:width 200ms ease;
}
.navlink:hover::after,
.navlink.active::after{width:100%}

.topbar-right{
  display:flex;
  align-items:center;
  gap:14px;
}

/* Theme toggle */
.switch{position:relative;width:52px;height:28px}
.switch input{display:none}
.slider{
  position:absolute; inset:0;
  background:#cfcfcf;
  border-radius:999px;
  border:1px solid var(--border);
  cursor:pointer;
}
.slider::after{
  content:"";
  position:absolute;
  top:50%; left:4px;
  width:20px;height:20px;
  background:#fff;
  border-radius:50%;
  transform:translateY(-50%);
  transition:transform 180ms ease;
}
.switch input:checked + .slider::after{
  transform:translate(24px,-50%);
}

/* Hamburger (mobile only) */
.menu-btn{
  display:none;
  background:transparent;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  color:var(--text);
  cursor:pointer;
}

/* ---------------- Hero ---------------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:center;
  padding-top:calc(var(--topbar-h) + 40px);
  overflow:visible;
  background:#000;
}
.hero-bg{
  position:relative;
  isolation:isolate;
  background:#000;
}

/* the PHOTO layer (brightened) */
.hero-bg::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;

  background-image:url("images/NG_headshot_landscape.png");
  background-size:cover;
  background-repeat:no-repeat;
  background-position:82% 35%;
  background-attachment:fixed;

  filter: brightness(var(--hero-brightness))
          contrast(var(--hero-contrast))
          saturate(var(--hero-saturate));
  transform: scale(1.02); /* prevents edge artifacts from filter */
}

/* the glow layer (unchanged) */
.hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;

  background:
    radial-gradient(circle at 20% 35%, rgba(0,255,208,0.12), transparent 55%);
  pointer-events:none;
}

.hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(90deg,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.80) 42%,
    rgba(0,0,0,0.35) 70%,
    rgba(0,0,0,0.10) 100%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:1;
  width:min(1400px,96vw);
  margin:0 auto;
  padding:0 14px;
}
.hero-left{max-width:980px}

.hero-role{
  white-space:nowrap;
  display:inline-block;
  font-size:clamp(36px,4.2vw,64px);
  letter-spacing:3px;
  text-transform:uppercase;
  color:#0e3742;
  -webkit-box-reflect:below 1px linear-gradient(transparent,#0004);
  line-height:0.92;
  outline:none;
  animation:neonFlicker 3s linear infinite;
}
@keyframes neonFlicker{
  0%,18%,20%,50.1%,60%,65.1%,80%,90.1%,92%{color:#0e3742;text-shadow:none}
  18.1%,20.1%,30%,50%,60.1%,65%,80.1%,90%,92.1%,100%{
    color:#fff;
    text-shadow:
      0 0 10px #03bcf4,
      0 0 20px #03bcf4,
      0 0 40px #03bcf4,
      0 0 80px #03bcf4,
      0 0 160px #03bcf4;
  }
}

.hero-title{
  margin-top:14px;
  font-size:clamp(38px,4.4vw,66px);
  font-weight:800;
  line-height:1.05;
  color:#fff;
  white-space:nowrap;
}
.multiple-text{color:var(--accent)}

/* Typed cursor */
.typed-cursor{
  display:inline-block;
  margin-left:6px;
  transform:translateZ(0);
  will-change:opacity;
  font-weight:600;
  animation:typedBlink .8s infinite;
}
.typed-cursor.typed-cursor--blink{
  animation:typedBlink .8s infinite !important;
}
@keyframes typedBlink{
  0%,49%{opacity:1}
  50%,100%{opacity:0}
}

.hero-actions{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  cursor:pointer;
  transition:.18s ease;
}
.btn-outline{
  border:2px solid rgba(255,255,255,0.85);
  border-radius:10px;
  padding:10px 16px;
}
.btn-outline:hover{background:#fff;color:#000}
.icon-pill{
  width:44px;height:44px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid rgba(255,255,255,0.25);
  color:#fff;
  text-decoration:none;
  transition:.18s ease;
}
.icon-pill i{font-size:22px}
.icon-pill:hover{
  border-color:rgba(0,255,208,0.9);
  color:var(--accent);
  transform:translateY(-2px);
}

/* ---------------- About ---------------- */
.about-grid{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:28px;
  align-items:start;
}
.about-photo{overflow:hidden}
.about-photo img{
  width:100%;
  height:100%;
  display:block;
  border-radius:var(--radius);
  object-fit:cover;
}
.about-content{display:grid;gap:14px}

/* Tabs */
.tabs{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  background:#fff;
  border-radius:999px;
  padding:6px;
  margin-top:10px;
  overflow:hidden;
}
body.light .tabs{background:#000}
.tab{
  background:transparent;
  border:none;
  padding:10px;
  font-weight:900;
  cursor:pointer;
  color:#000;
  z-index:1;
}
body.light .tab{color:#fff}
.glider{
  position:absolute;
  inset:6px;
  width:calc((100% - 12px)/3);
  background:rgba(103,237,255,0.9);
  border-radius:999px;
  transform:translateX(0%);
  transition:transform 200ms ease;
}

.tab-area{
  position:relative;
  min-height:260px;
  margin-top:10px;
}
.tabpanel{
  position:absolute; inset:0;
  opacity:0;
  pointer-events:none;
  transform:translateY(6px);
  transition:opacity 180ms ease, transform 180ms ease;
}
.tabpanel.active{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.list{list-style:none;display:grid;gap:12px}
.list-item{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:12px;
  align-items:center;
}
.list-item img{
  width:56px;height:56px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid var(--border);
  background:#111;
}
.list-title{font-weight:900}
.list-sub{color:var(--muted);font-size:14px}

.pill-grid{display:flex;flex-wrap:wrap;gap:10px}
.pill{
  border:1px solid var(--border);
  background:rgba(255,255,255,0.06);
  padding:10px 12px;
  border-radius:999px;
  color:var(--text);
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-weight:700;
}
body.light .pill{background:rgba(0,0,0,0.06)}

/* ---------------- Projects (ONE SOURCE OF TRUTH) ---------------- */
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.filters{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:flex-end;
}
.select{
  width:min(280px,55vw);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
}

/* 3 / 2 / 1 columns */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-bottom:18px;
  align-items:stretch;
}

/* consistent card size */
.project-card{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:#111;
  isolation:isolate;

  height:320px;

  transform:translateZ(0);
  transition:transform 220ms ease, box-shadow 220ms ease;
}

/* gradient border + inner frame (no mask tricks = reliable) */
.project-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(120deg,#00ffd0,#03bcf4,#7c7cff,#00ffd0);
  background-size:300% 300%;
  opacity:0;
  transition:opacity 220ms ease;
  z-index:0;
  pointer-events:none;
}

/* inner “cover” to leave only a border visible */
.project-card::after{
  content:"";
  position:absolute;
  inset:var(--proj-border);
  border-radius:calc(var(--radius) - var(--proj-border));
  background:#0f0f10;
  opacity:0; /* off by default (so it looks normal) */
  transition:opacity 220ms ease;
  z-index:1;
  pointer-events:none;
}

/* image + overlay stacking */
.project-card > img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transform:scale(1.02);
  transition:transform 260ms ease, filter 260ms ease;
  z-index:2;
}

.overlay{
  position:absolute; inset:0;
  display:grid;
  align-content:end;
  gap:6px;
  padding:14px;
  background:linear-gradient(transparent, rgba(0,0,0,0.86));
  z-index:3;
}
.overlay h3{font-size:18px}
.overlay p{color:rgba(255,255,255,0.75);font-size:13px}

.mini-btn{
  width:44px;height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  color:#000;
  text-decoration:none;
  margin-top:10px;
}

/* glow (outside the card) */
.project-card .card-glow{
  display:none;
}

/* animation */
@keyframes gradientShift{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* hover */
.project-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 70px rgba(0,0,0,.62);
}
.project-card:hover > img{
  transform:scale(1.10);
  filter:saturate(1.08) contrast(1.06);
}

/* turn on border + animate */
.project-card:hover::before{
  opacity:1;
  animation:gradientShift 3.6s ease infinite;
}
.project-card:hover::after{
  opacity:1; /* inner frame appears to make the border “real” */
}

/* a subtle outer glow without breaking layout */
.project-card:hover{
  outline:0;
}
.project-card:hover{
  box-shadow:
    0 22px 70px rgba(0,0,0,.62),
    0 0 0 1px rgba(0,255,208,.18),
    0 0 28px rgba(0,255,208,.12);
}

/* Center helper */
.center{display:flex;justify-content:center}

/* Reveal wrapper */
.reveal-wrap{
  display:grid;
  gap:52px;
  overflow:hidden;
  max-height:0;
  opacity:0;
  transform:translateY(10px);
  transition:max-height 600ms ease, opacity 280ms ease, transform 280ms ease;
  will-change:max-height;
}
.reveal-wrap.open{
  opacity:1;
  transform:translateY(0);
}

/* subsection headers */
.subsection-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.subsection-title{
  font-size:clamp(26px,3vw,40px);
  color:var(--accent);
  margin:0;
}
.subsection-desc{
  margin-top:6px;
  color:var(--muted);
  line-height:1.6;
}

/* ---------------- Hobbies ---------------- */
.snap-row{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:min(260px,80vw);
  gap:16px;
  overflow-x:auto;
  padding:10px 4px;
  scroll-snap-type:x mandatory;
}
.snap-row::-webkit-scrollbar{height:10px}
.snap-row::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.2);border-radius:999px}

.snap-card{
  scroll-snap-align:start;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--card);
  overflow:hidden;
}
.snap-card img{width:100%;height:170px;object-fit:cover;display:block}
.snap-card h3{padding:12px;font-size:16px}

/* ---------------- Contact ---------------- */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  align-items:stretch;
}
.contact-left{display:flex;flex-direction:column;gap:10px}
.contact-image{overflow:hidden}
.contact-image img{
  width:100%;
  height:100%;
  min-height:420px;
  display:block;
  border-radius:var(--radius);
  object-fit:cover;
}

.form{
  padding:18px;
  display:grid;
  gap:12px;
  align-content:start;
  height:100%;
}
.form label{display:grid;gap:6px}
.form label span{
  font-weight:900;
  color:var(--muted);
  font-size:14px;
  letter-spacing:.2px;
}
.form input,.form select,.form textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.03);
  color:var(--text);
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
body.light .form input,
body.light .form select,
body.light .form textarea{
  background:rgba(0,0,0,0.04);
}
.form input:focus,.form select:focus,.form textarea:focus{
  border-color:rgba(0,255,208,0.75);
  box-shadow:0 0 0 4px rgba(0,255,208,0.12);
  background:rgba(0,255,208,0.03);
}
.form textarea{resize:vertical;min-height:170px}

.form .btn{
  justify-self:start;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.55);
  background:rgba(255,255,255,0.03);
  font-weight:900;
}
.form .btn:hover{
  background:#fff;
  color:#000;
  border-color:#fff;
}
.form-msg{
  min-height:18px;
  color:var(--accent);
  font-weight:900;
  font-size:14px;
}

/* ---------------- Footer ---------------- */
.site-footer{
  background:#1a1a1a;
  border-top:1px solid rgba(255,255,255,0.12);
  padding:18px 0;
}
body.light .site-footer{
  background:#f2f2f2;
  border-top:1px solid rgba(0,0,0,0.12);
}
.footer-inner{
  width:min(var(--max),96vw);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.footer-text{
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,0.85);
  font-weight:700;
}
body.light .footer-text{color:rgba(0,0,0,0.72)}
.heart-img{width:22px;height:22px;object-fit:contain;transform:translateY(1px)}
.footer-icons{display:flex;gap:16px;align-items:center}
.footer-icons a{
  color:var(--text);
  font-size:28px;
  text-decoration:none;
  transition:.15s ease;
}
.footer-icons a:hover{color:var(--accent);transform:translateY(-2px)}

/* ---------------- Responsive (mobile + iOS-safe) ---------------- */

/* iOS/Safari: fixed backgrounds are janky */
@media (max-width: 900px){
  .hero-bg{ background-attachment:scroll; }
}

/* tablet */
@media (max-width: 1100px){
  .about-grid{grid-template-columns:1fr}
  .projects-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .contact-grid{grid-template-columns:1fr}
  .contact-image img{min-height:320px}

  .project-card{height:300px}
  .hero-title{white-space:normal}
}

/* phone */
@media (max-width: 720px){
  .menu-btn{display:inline-flex;align-items:center;justify-content:center}

  .projects-grid{grid-template-columns:1fr}
  .project-card{height:280px}

  .nav{
    position:fixed;
    top:var(--topbar-h);
    left:12px; right:12px;
    display:grid;
    gap:10px;
    padding:12px;
    border-radius:16px;
    background:rgba(0,0,0,0.88);
    border:1px solid var(--border);
    transform:translateY(-12px);
    opacity:0;
    pointer-events:none;
    transition:opacity 180ms ease, transform 180ms ease;
    justify-content:stretch;
  }
  body.light .nav{background:rgba(255,255,255,0.92)}
  .nav.open{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
  .navlink{text-align:center}
  .navlink::after{display:none}

  .topbar{grid-template-columns:auto auto auto;justify-content:space-between}
  .hero-bg{background-position:70% 20%}
  .hero-overlay{
    background:linear-gradient(180deg, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.55) 100%);
  }
  .footer-inner{flex-direction:column;justify-content:center}
}

/* extra-small phones (fix “nowrap” issues + spacing) */
@media (max-width: 520px){
  .hero{
    padding-top:calc(var(--topbar-h) + 22px);
    min-height:100svh;
  }
  .hero-inner{padding:0 16px}
  .hero-left{max-width:100%}

  .hero-title{
    white-space:normal;
    overflow-wrap:anywhere;
    font-size:clamp(28px, 9vw, 44px);
    line-height:1.06;
  }
  .hero-role{
    white-space:normal;
    word-break:break-word;
    font-size:clamp(22px, 7vw, 34px);
    letter-spacing:2px;
    line-height:1.0;
  }
  .hero-actions{flex-wrap:wrap;gap:10px}
  .btn-outline{padding:9px 14px}
  .icon-pill{width:42px;height:42px}
}

/* tiny widths: topbar compacts nicely */
@media (max-width: 420px){
  .brand img{width:46px;height:46px}
  .topbar{padding:0 14px;gap:10px}
  .switch{transform:scale(.92);transform-origin:right center}
  .menu-btn{padding:9px 10px;border-radius:10px}
}

/* accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .project-card,
  .project-card > img{
    transition:none !important;
  }
  .project-card::before{
    animation:none !important;
  }
}

/* =========================================================
   CONTACT: make title/desc span full width, align form with image
   (no HTML changes needed)
   ========================================================= */

#contact .contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  align-items:stretch;
}

/* Make the children of .contact-left behave like direct grid items */
#contact .contact-left{
  display:contents;
}

/* Title + subtitle span across BOTH columns (row 1 + row 2) */
#contact .contact-left > .section-title{
  grid-column:1 / -1;
  grid-row:1;
  margin-bottom:6px;
}

#contact .contact-left > .muted{
  grid-column:1 / -1;
  grid-row:2;
  margin-bottom:12px;
}

/* Image sits in left column on the same row as the form */
#contact .contact-left > .contact-image{
  grid-column:1;
  grid-row:3;
  height:100%;
  overflow:hidden;
}

/* Make the image card and the form card match heights */
#contact .contact-left > .contact-image img{
  width:100%;
  height:100%;
  min-height:520px;   /* ensures it stays tall like your screenshot */
  object-fit:cover;
  display:block;
}

/* Form sits in right column, same row as image */
#contact .form{
  grid-column:2;
  grid-row:3;
  height:100%;
  align-self:stretch;
}

/* Tablet/mobile: stack nicely */
@media (max-width: 980px){
  #contact .contact-grid{
    grid-template-columns:1fr;
  }
  #contact .contact-left > .section-title,
  #contact .contact-left > .muted,
  #contact .contact-left > .contact-image,
  #contact .form{
    grid-column:1 / -1;
  }
  #contact .contact-left > .contact-image img{
    min-height:360px;
  }
}


/* =========================================================
   FOOTER: center "Made with heart", move icons further right
   ========================================================= */

.site-footer .footer-inner{
  display:grid;
  grid-template-columns:1fr auto 1fr; /* left spacer | centered text | right icons */
  align-items:center;
  width:min(var(--max),96vw);
  margin:0 auto;
}

.site-footer .footer-text{
  grid-column:2;
  justify-self:center;
  text-align:center;
}

.site-footer .footer-icons{
  grid-column:3;
  justify-self:end;
  padding-right:10px; /* push a bit further right */
  gap:20px;           /* slightly more spacing between icons */
}

/* Mobile footer stays clean */
@media (max-width: 720px){
  .site-footer .footer-inner{
    grid-template-columns:1fr;
    gap:12px;
  }
  .site-footer .footer-text{
    grid-column:1;
  }
  .site-footer .footer-icons{
    grid-column:1;
    justify-self:center;
    padding-right:0;
  }
}

/* =========================
   Skills (Option C styling)
   Paste anywhere in your CSS
   ========================= */

.skills-block{
  display:grid;
  gap:16px;
}

.skills-title{
  margin-top:6px;
  margin-bottom:10px;
  font-size:13px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.68);
}

body.light .skills-title{
  color:rgba(0,0,0,0.60);
}

/* optional: make the sections feel "grouped" */
.skills-block .pill-grid{
  margin-bottom:6px;
}

/* optional: slightly tighten pill spacing on small screens */
@media (max-width:720px){
  .skills-block{gap:14px}
  .skills-title{margin-bottom:8px}
}





