:root{
  --bg: #070A12;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.04);
  --text: rgba(255,255,255,.92);
  --text-strong: rgba(255,255,255,1);
  --muted: rgba(255,255,255,.65);
  --line: rgba(255,255,255,.12);
  --accent: #7C5CFF;
  --accent2:#22D3EE;
  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --bg-image: url("images/DarkBack.png");
  --overlay-1: rgba(124,92,255,.25);
  --overlay-2: rgba(34,211,238,.18);
  --overlay-3: rgba(124,92,255,.12);
  --overlay-base: rgba(7,10,18,.65);
  --nav-bg: rgba(7,10,18,.55);
  --nav-hover-bg: rgba(255,255,255,.05);
  --btn-bg: rgba(255,255,255,.05);
  --btn-border: rgba(255,255,255,.14);
  --btn-hover-border: rgba(255,255,255,.24);
  --icon-bg: rgba(255,255,255,.06);
  --icon-hover-bg: rgba(255,255,255,.14);
  --icon-hover-border: rgba(255,255,255,.26);
  --chip-bg: rgba(255,255,255,.03);
  --chip-text: rgba(255,255,255,.74);
  --input-bg: rgba(255,255,255,.03);
  --dot-shadow: rgba(0,0,0,0.4);
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: var(--bg-image) center/cover fixed no-repeat;
  background-color: var(--bg);
  overflow-x:hidden;
  position: relative;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 10% 0%, var(--overlay-1), transparent 55%),
    radial-gradient(700px 450px at 90% 10%, var(--overlay-2), transparent 55%),
    radial-gradient(900px 700px at 40% 110%, var(--overlay-3), transparent 60%),
    var(--overlay-base);
  pointer-events: none;
  z-index: 0;
}
header, main{
  position: relative;
  z-index: 1;
}
body.light{
  --bg: #f5f7fb;
  --card: rgba(255,255,255,.92);
  --card2: rgba(255,255,255,.96);
  --text: #0d1420;
  --text-strong: #0b1220;
  --muted: rgba(13,20,32,.65);
  --line: rgba(13,20,32,.12);
  --shadow: 0 18px 40px rgba(16,24,40,.12);
  --bg-image: url("images/LightBack.png");
  --overlay-1: rgba(255,255,255,.65);
  --overlay-2: rgba(255,255,255,.45);
  --overlay-3: rgba(255,255,255,.35);
  --overlay-base: rgba(255,255,255,.55);
  --nav-bg: rgba(255,255,255,.75);
  --nav-hover-bg: rgba(13,20,32,.06);
  --btn-bg: rgba(13,20,32,.04);
  --btn-border: rgba(13,20,32,.14);
  --btn-hover-border: rgba(13,20,32,.24);
  --icon-bg: rgba(13,20,32,.04);
  --icon-hover-bg: rgba(13,20,32,.08);
  --icon-hover-border: rgba(13,20,32,.2);
  --chip-bg: rgba(13,20,32,.04);
  --chip-text: rgba(13,20,32,.7);
  --input-bg: rgba(13,20,32,.03);
  --dot-shadow: rgba(13,20,32,0.18);
}
a{ color:inherit; text-decoration:none; }
.container{ width:min(1100px, 92%); margin:0 auto; }

/* top nav */
header{
  position:fixed; top:0; left:0; right:0; z-index:50;
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
main{
  padding-top: 86px;
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; gap:10px; align-items:center;
  font-weight:700; letter-spacing:.2px;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 20px rgba(124,92,255,.55);
}
nav ul{ display:flex; gap:18px; list-style:none; padding:0; margin:0; }
nav a{
  color: var(--muted);
  font-weight:600;
  padding:8px 10px;
  border-radius:10px;
  transition:.2s;
}
nav a:hover{ color:var(--text); background: var(--nav-hover-bg); }
.navActions{
  display:flex;
  align-items:center;
  gap:10px;
}
.theme-toggle{
  width:42px;
  height:42px;
  padding:0;
}
body:not(.light) .theme-toggle{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
body:not(.light) .theme-toggle:hover{
  border-color: rgba(255,255,255,.4);
}
.theme-toggle svg{
  width:20px;
  height:20px;
  fill: currentColor;
}
.theme-toggle .icon-moon svg{ fill: currentColor; }
.theme-toggle .icon-sun svg{
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun{ display:none; }
.theme-toggle .icon-moon{ display:block; }
body.light .theme-toggle .icon-sun{ display:block; }
body.light .theme-toggle .icon-moon{ display:none; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:12px;
  border:1px solid var(--btn-border);
  background: var(--btn-bg);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-weight:700;
  color: var(--text);
  gap:10px;
  transition:.2s;
}
.btn:hover{ transform: translateY(-1px); border-color: var(--btn-hover-border); }
.btn.primary{
  border:1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--text);
}

/* hero */
.hero{ padding: 58px 0 26px; }
.grid{
  display:grid;
  grid-template-columns: 1fr; /* only one card now */
  gap: 22px;
  align-items:stretch;
}
.card{
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.heroMain{ padding: 26px; position:relative; }

/* new hero layout */
.heroHeader{
  display:flex;
  align-items:flex-start;
  gap:20px;
  margin-bottom: 14px;
}
.heroPhoto{
  width:96px;
  height:96px;
  border-radius:999px;
  overflow:hidden;
  border:2px solid var(--line);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  flex-shrink:0;
  background:#111827;
}
.heroPhoto img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.socialIcons{
  position:absolute;
  top:18px;
  right:22px;
  display:flex;
  gap:16px;
}
.socialIcon{
  width:44px;
  height:44px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--icon-bg);
  border:1px solid var(--line);
  transition:.2s;
}
.socialIcon:hover{
  background: var(--icon-hover-bg);
  transform: translateY(-1px);
  border-color: var(--icon-hover-border);
}
.socialIcon svg{
  width:22px;
  height:22px;
  fill:var(--text);
}

.kicker{
  display:inline-flex; gap:10px; align-items:center;
  color: var(--muted);
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:999px;
  background: var(--chip-bg);
  font-weight:700;
  font-size: 13px;
}
.title{
  margin: 14px 0 8px;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height:1.05;
  letter-spacing:-.8px;
}
.nameHighlight{ color: var(--text-strong); }
.subtitle{
  margin:0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}
.heroActions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }
.metaRow{
  display:flex; gap:14px; flex-wrap:wrap;
  margin-top:18px;
  color: var(--muted);
  font-weight:600;
  font-size: 13px;
}
.metaPill{
  border:1px solid var(--line);
  background: var(--chip-bg);
  padding:8px 10px;
  border-radius: 999px;
}
.form-input{
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
}
.form-textarea{
  margin-top:10px;
  width:100%;
  resize: vertical;
}
body.light .form-input{
  border-color: rgba(13,20,32,.2);
}

/* sections */
section{ padding: 22px 0; }
.sectionHead{
  display:flex; justify-content:space-between; align-items:end; gap:16px;
  margin-bottom: 12px;
}
h2{ margin:0; font-size: 20px; letter-spacing:-.2px; }
.hint{ margin:0; color: var(--muted); font-size: 13px; }
.cards3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.item{ padding: 16px; }
.item h3{ margin:0 0 6px; font-size: 16px; }
.item p{ margin:0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 10px; }
.tag{
  font-size: 12px;
  color: var(--chip-text);
  border:1px solid var(--line);
  background: var(--chip-bg);
  padding:6px 8px;
  border-radius:999px;
  font-weight:700;
}

.skills-section {
  margin-top: 4rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: radial-gradient(
      120% 120% at 10% 10%,
      rgba(124, 92, 255, 0.08),
      rgba(0, 0, 0, 0.2)
    ),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.5);
}

.skill-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.skill-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tags span {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

/* ===== PROJECTS (same style as Skills & Expertise) ===== */

.projects-section {
  margin-top: 4rem;
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .cards3 {
    grid-template-columns: 1fr;
  }
}

/* Card base */
.card.item {
  background:
    radial-gradient(
      120% 120% at 10% 10%,
      rgba(124, 92, 255, 0.08),
      rgba(0, 0, 0, 0.25)
    ),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.6rem;
  transition: all 0.25s ease;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

/* Hover effect */
.card.item:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.25),
    0 25px 55px rgba(0, 0, 0, 0.55);
}

/* Titles */
.card.item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Description */
.card.item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.project-desc p {
  margin: 0 0 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.project-desc p strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

body.light .skill-card,
body.light .card.item{
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(16,24,40,.12);
}
body.light .skill-card p,
body.light .card.item p,
body.light .project-desc p{
  color: var(--muted);
}
body.light .skill-tags span,
body.light .tag{
  background: var(--chip-bg);
  border: 1px solid rgba(13,20,32,.2);
  color: var(--text);
}
body.light .metaPill{
  background: var(--chip-bg);
  border: 1px solid rgba(13,20,32,.2);
  color: var(--text);
}
body.light .project-desc p strong{
  color: var(--text-strong);
}

/* Bullet version */
.project-list {
  padding-left: 1.1rem;
  margin: 0.8rem 0 0;
}

.project-list li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== Project image (Project Highlights style) ===== */
.project-card {
  padding: 1.2rem; /* slightly tighter to fit image */
}

.project-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  margin-bottom: 1rem;
  aspect-ratio: 16 / 9;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.03);
}

/* timeline */
.timeline{
  position: relative;
  display:grid;
  gap: 24px;
}
.timeline::before{
  content:"";
  position:absolute;
  left:50%;
  top: 6px;
  bottom: 6px;
  width:2px;
  background: var(--line);
  transform: translateX(-50%);
}
.timeline-item{
  display:grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items:flex-start;
  position: relative;
}
.timeline-dot{
  grid-column: 2;
  justify-self:center;
  margin-top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--dot-shadow), 0 0 0 6px var(--line);
}
.timeline-content{
  padding: 16px;
}
.timeline-item.left .timeline-content{ grid-column: 1; }
.timeline-item.right .timeline-content{ grid-column: 3; }
.timeline-date{
  color: var(--muted);
  font-weight:700;
  font-size: 13px;
  white-space:nowrap;
  margin-top: 4px;
}
.timeline-item.left .timeline-date{
  grid-column: 3;
  text-align: left;
}
.timeline-item.right .timeline-date{
  grid-column: 1;
  text-align: right;
}
.timeline-title{
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-meta{
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}
.timeline-bullets{
  margin: 8px 0 0 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}
.timeline-bullets li{ margin: 4px 0; }

/* scroll reveal */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.reveal-left{ transform: translateX(-28px); }
.reveal.reveal-right{ transform: translateX(28px); }
.reveal.show{
  opacity: 1;
  transform: translateY(0);
}
.reveal.reveal-left.show,
.reveal.reveal-right.show{
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal,
  .reveal.show{
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* footer */
footer{
  padding: 24px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

/* responsive */
@media (max-width: 920px){
  .grid{ grid-template-columns: 1fr; }
  .cards3{ grid-template-columns: 1fr; }
  nav ul{ display:none; }
  .heroHeader{
    flex-direction:row;
  }
  .timeline::before{ left: 16px; }
  .timeline-item{
    grid-template-columns: 24px 1fr;
    gap: 12px;
  }
  .timeline-dot{ grid-column: 1; }
  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content{
    grid-column: 2;
  }
  .timeline-item.left .timeline-date,
  .timeline-item.right .timeline-date{
    grid-column: 2;
    text-align: left;
    margin: 0 0 6px 0;
  }
}
