:root {
  --bg: #050816;
  --panel: #0d1325;
  --panel-soft: rgba(13, 19, 37, 0.72);
  --text: #f8fbff;
  --muted: #aeb7c5;
  --accent: #3b82f6;
  --cyan: #00e5ff;
  --green: #72f1b8;
  --line: rgba(255, 255, 255, 0.10);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.ambient-one { top: -16rem; right: -8rem; background: rgba(59,130,246,.15); }
.ambient-two { left: -16rem; top: 35rem; background: rgba(0,229,255,.08); }

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 22, .74);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(59,130,246,.28), rgba(0,229,255,.12));
  color: #e9fbff;
  font-size: .82rem;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-size: .9rem; transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.menu-button { display: none; padding: 8px; border: 0; background: transparent; }
.menu-button span { display: block; width: 24px; height: 2px; margin: 5px; background: white; }

.section {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 112px 28px;
}

.hero {
  min-height: calc(100vh - 77px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #77c8ff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
}

h1, h2, h3, h4 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.1;
}
h1 { margin-bottom: 8px; font-size: clamp(4rem, 9vw, 7.7rem); letter-spacing: -.065em; }
.role { margin: 0 0 34px; color: var(--muted); font-family: "Space Grotesk", sans-serif; font-size: clamp(1.25rem, 2.2vw, 2rem); }
h2 { margin-bottom: 0; font-size: clamp(2.1rem, 4.4vw, 4rem); letter-spacing: -.045em; }
h3 { margin-bottom: 12px; font-size: 1.5rem; }
h4 { margin-bottom: 12px; font-size: .95rem; }

.education-callout {
  max-width: 680px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.education-callout p { margin: 0 0 4px; color: var(--muted); font-size: .92rem; }
.education-callout h2 { font-size: clamp(2rem, 4vw, 3.65rem); }
.education-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 18px; color: var(--muted); font-size: .92rem; }
.education-meta strong { color: var(--text); }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 15px;
  border: 1px solid rgba(114,241,184,.24);
  border-radius: 999px;
  background: rgba(114,241,184,.055);
  color: #c9ffe5;
  font-size: .86rem;
  font-weight: 600;
}
.availability-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.hero-text, .about-copy, .project-card p, .featured-project p, .timeline-content p, .contact-card p { color: var(--muted); }
.hero-text { max-width: 680px; margin-top: 24px; }

.hero-actions, .contact-actions, .project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: #03101b;
  border-color: transparent;
  background: linear-gradient(135deg, #8fddff, var(--cyan));
  box-shadow: 0 12px 40px rgba(0,229,255,.17);
}
.button.secondary { background: rgba(255,255,255,.035); }
.text-button { border-color: transparent; color: #9ddfff; padding-inline: 4px; }

.engineering-dashboard {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
  box-shadow: var(--shadow);
}
.dashboard-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.live-indicator { color: #caffe3; }
.live-indicator i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.dashboard-avatar {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 22px;
  background: rgba(255,255,255,.025);
}
.avatar-placeholder {
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 25%, rgba(0,229,255,.25), transparent 30%),
    radial-gradient(circle at 18% 75%, rgba(59,130,246,.22), transparent 35%),
    #091126;
}
.avatar-placeholder span { font-family: "Space Grotesk"; font-size: 6rem; font-weight: 700; letter-spacing: -.08em; }
.avatar-placeholder small { color: var(--muted); }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.dashboard-grid div, .dashboard-focus {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(5,8,22,.45);
}
.dashboard-grid small, .dashboard-focus small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .6rem;
  letter-spacing: .12em;
}
.dashboard-grid strong { font-size: .79rem; }
.dashboard-focus { margin-top: 10px; }
.dashboard-focus div { display: flex; flex-wrap: wrap; gap: 7px; }
.dashboard-focus span {
  padding: 6px 9px;
  border: 1px solid rgba(0,229,255,.16);
  border-radius: 999px;
  color: #c8fbff;
  font-size: .67rem;
}

.two-column { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.section-heading { display: grid; grid-template-columns: .42fr 1fr; gap: 64px; margin-bottom: 56px; }
.two-column .section-heading { display: block; margin-bottom: 0; }
.about-copy p:first-child { margin-top: 0; }

.about-tags, .tech-row, .skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.about-tags { margin-top: 28px; }
.about-tags span, .tech-row span, .skill-list span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: .78rem;
}

.featured-project {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  overflow: hidden;
  border: 1px solid rgba(0,229,255,.16);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(59,130,246,.07), rgba(255,255,255,.018));
  box-shadow: 0 24px 90px rgba(0,0,0,.25);
}

.simon-board {
  position: relative;
  min-height: 650px;
  padding: 34px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(0,229,255,.13), transparent 35%),
    #070d1d;
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.board-top {
  display: flex;
  justify-content: space-between;
  color: #8edfff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.simon-lights {
  width: min(360px, 90%);
  aspect-ratio: 1;
  margin: 82px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 48px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 0 60px rgba(0,0,0,.35);
}

.simon-light {
  border: 0;
  border-radius: 30px;
  opacity: .88;
  cursor: default;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.simon-light.red { background: #e94b5f; box-shadow: 0 0 28px rgba(233,75,95,.28); }
.simon-light.green { background: #32d583; box-shadow: 0 0 28px rgba(50,213,131,.28); }
.simon-light.yellow { background: #f6c945; box-shadow: 0 0 28px rgba(246,201,69,.28); }
.simon-light.blue { background: #3b82f6; box-shadow: 0 0 28px rgba(59,130,246,.28); }
.simon-board:hover .simon-light { filter: brightness(1.13); }
.simon-board:hover .simon-light:nth-child(2) { transform: translateY(-4px); }
.simon-board:hover .simon-light:nth-child(3) { transform: translateY(4px); }

.board-status {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.board-status span { color: var(--muted); font-size: .65rem; letter-spacing: .14em; }
.board-status strong { color: var(--green); font-size: 1.4rem; letter-spacing: .08em; }
.board-traces i {
  position: absolute;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .32;
}
.board-traces i:nth-child(1) { width: 180px; left: -35px; top: 160px; }
.board-traces i:nth-child(2) { width: 140px; right: -25px; top: 260px; transform: rotate(90deg); }
.board-traces i:nth-child(3) { width: 150px; left: 20px; bottom: 100px; }

.project-content { padding: 44px; }
.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .72rem;
}
.featured-label, .project-status {
  color: var(--green);
  font-weight: 800;
  letter-spacing: .09em;
}
.project-lead { color: #dce7f6 !important; font-size: 1.05rem; }
.project-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.project-columns ul { margin: 0; padding-left: 18px; color: var(--muted); }
.project-challenge {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(0,229,255,.13);
  border-radius: 17px;
  background: rgba(0,229,255,.035);
}
.project-challenge span {
  color: #80dfff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.project-challenge p { margin-bottom: 0; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.project-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.016));
  transition: transform .25s ease, border-color .25s ease;
}
.project-card:hover { transform: translateY(-5px); border-color: rgba(0,229,255,.24); }
.project-card h3 { font-size: 1.3rem; }
.project-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border: 1px solid rgba(0,229,255,.15);
  border-radius: 16px;
  background: rgba(0,229,255,.06);
  font-size: 1.7rem;
}
.tech-row { margin-top: 24px; }

.mini-preview {
  min-height: 225px;
  margin: -28px -28px 26px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background: radial-gradient(circle at 70% 25%, rgba(0,229,255,.18), transparent 28%), #080d1d;
}
.browser-bar { display: flex; gap: 7px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-bottom: 0; border-radius: 13px 13px 0 0; }
.browser-bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); }
.preview-content {
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0 0 13px 13px;
  background: #080d1d;
}
.preview-label { color: #72d9ff; font-size: .58rem; font-weight: 800; letter-spacing: .16em; }
.preview-name { margin-top: 10px; font-family: "Space Grotesk"; font-size: 2.1rem; font-weight: 700; }
.preview-line { width: 56%; height: 7px; margin-top: 9px; border-radius: 999px; background: rgba(255,255,255,.10); }
.preview-line.wide { width: 78%; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: .26fr 1fr; gap: 48px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: #79c9ff; font-weight: 700; }
.timeline-content h3 span { color: var(--muted); font-weight: 500; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-group {
  position: relative;
  min-height: 205px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.025);
}
.skill-number {
  position: absolute;
  right: 20px;
  top: 12px;
  color: rgba(255,255,255,.05);
  font-family: "Space Grotesk";
  font-size: 4.5rem;
  font-weight: 700;
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0,229,255,.11), transparent 42%),
    rgba(255,255,255,.028);
}
.contact-card .contact-actions { justify-content: center; }
.contact-note { margin-top: 24px; font-size: .8rem; }

footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 28px 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
footer p { margin: 4px 0; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .project-card, .simon-light { transition: none; }
}

@media (max-width: 980px) {
  .hero, .two-column, .section-heading, .featured-project { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; }
  .two-column, .section-heading { gap: 28px; }
  .simon-board { min-height: 560px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header { padding: 15px 20px; }
  .menu-button { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 69px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(5,8,22,.97);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .section { padding: 82px 20px; }
  h1 { font-size: 4rem; }
  .education-meta, .hero-actions { align-items: flex-start; flex-direction: column; }
  .button { width: 100%; }
  .text-button { width: auto; }
  .dashboard-grid, .project-columns, .project-grid, .skills-grid { grid-template-columns: 1fr; }
  .project-content { padding: 30px; }
  .simon-board { min-height: 490px; padding: 24px; }
  .simon-lights { margin-top: 54px; gap: 12px; padding: 18px; border-radius: 34px; }
  .simon-light { border-radius: 22px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .contact-card { padding: 38px 22px; }
}
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}
.project-image {
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 20px;
    background: #101522;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.project-photo:hover {
    transform: scale(1.03);
}
.photo-gallery{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-bottom:40px;
}

.gallery-hero{
    width:100%;
    height:500px;
    object-fit:cover;
    border-radius:18px;
    display:block;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.gallery-grid img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:16px;
    transition:.25s;
    cursor:pointer;
}

.gallery-grid img:hover{
    transform:scale(1.03);
}