:root {
  --bg: #080b12;
  --bg-soft: #10131b;
  --surface: #141821;
  --surface-strong: #1d2230;
  --text: #f4f7fb;
  --muted: #c9d2df;
  --soft-muted: #9aa7b8;
  --accent: #45c7ff;
  --accent-dark: #16a6e3;
  --accent-contrast: #06111a;
  --accent-soft: rgba(69, 199, 255, 0.16);
  --accent-violet: #8b5cf6;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.28), transparent 34rem),
    linear-gradient(225deg, rgba(69, 199, 255, 0.22), transparent 32rem),
    linear-gradient(180deg, #080b12 0%, #10131b 48%, #090c13 100%);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 1.25rem;
  width: 100%;
}

.narrow {
  max-width: 820px;
}

.section-pad {
  padding: 6rem 0;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(8, 11, 18, 0.84);
  border-bottom: 1px solid var(--line);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.navbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 0.75rem;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: var(--radius);
  color: var(--accent-contrast);
  display: inline-flex;
  font-size: 0.9rem;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.brand-avatar {
  align-items: center;
  border: 1px solid rgba(69, 199, 255, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  width: 40px;
}

.brand-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-button {
  background: var(--accent-soft);
  border: 1px solid rgba(69, 199, 255, 0.34);
  border-radius: var(--radius);
  color: var(--text) !important;
  padding: 0.7rem 1rem;
}

.nav-button:hover {
  background: rgba(69, 199, 255, 0.24);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}

.nav-toggle span {
  background: var(--text);
  border-radius: 999px;
  display: block;
  height: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 26px;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 5rem 0 4rem;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  letter-spacing: 0;
  margin-bottom: 1.2rem;
}

h1 span {
  color: var(--accent);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.2rem;
}

.hero-text,
.section-heading p,
.page-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 650px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  align-items: center;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.2rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-frame {
  align-self: center;
  width: 310px;        /* control size */
  height: 310px;
  border-radius: 50%;  /* makes circle */
  overflow: hidden;    /* hides extra parts */
  display: flex;
  justify-self: center;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
  box-shadow:
    0 0 0 1px rgba(69, 199, 255, 0.16),
    0 28px 80px rgba(69, 199, 255, 0.18);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* keeps image nicely cropped */
  filter: grayscale(1) contrast(1.08);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.profile-frame::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(69, 199, 255, 0.22) 0%, rgba(69, 199, 255, 0.1) 32%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: -1;
}

.profile-frame:hover {
  box-shadow:
    0 0 0 1px rgba(69, 199, 255, 0.34),
    0 34px 90px rgba(69, 199, 255, 0.24),
    0 0 42px rgba(69, 199, 255, 0.18);
  transform: translateY(-6px) scale(1.01);
}

.profile-frame:hover::before {
  opacity: 1;
  transform: scale(1);
}

.profile-frame:hover img {
  filter: grayscale(0.15) contrast(1.1) saturate(1.05);
  transform: scale(1.05);
}

.profile-frame:active {
  box-shadow:
    0 0 0 1px rgba(69, 199, 255, 0.34),
    0 34px 90px rgba(69, 199, 255, 0.24),
    0 0 42px rgba(69, 199, 255, 0.18);
  transform: translateY(-6px) scale(1.01);
}

.profile-frame:active::before {
  opacity: 1;
  transform: scale(1);
}

.profile-frame:active img {
  filter: grayscale(0.15) contrast(1.1) saturate(1.05);
  transform: scale(1.05);
}

.section-heading {
  margin-bottom: 2.2rem;
}

.skills-grid,
.links-grid,
.project-grid {
  display: grid;
  gap: 1.25rem;
}

.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.timeline-card,
.link-card,
.project-card,
.contact-form {
  background: rgba(21, 31, 51, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.card {
  min-height: 230px;
  padding: 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover,
.link-card:hover,
.project-card:hover {
  border-color: rgba(69, 199, 255, 0.5);
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag-list li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.48rem 0.7rem;
}

.tag-list strong {
  color: var(--accent);
  font-size: 0.72rem;
  margin-left: 0.25rem;
}

.alt-section {
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.split-section,
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.8fr 1.2fr;
}

.timeline-card {
  display: grid;
  gap: 1.2rem;
  padding: 1.6rem;
}

.timeline-label,
.tech-used {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.timeline-card p {
  color: var(--muted);
}

.featured-grid,
.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-project {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.project-card {
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  width: 100%;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(69, 199, 255, 0.08) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-card:hover {
  border-color: rgba(69, 199, 255, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24), 0 0 28px rgba(69, 199, 255, 0.08);
  transform: translateY(-6px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

.project-card .project-body {
  position: relative;
  z-index: 2;
}

.project-body {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
}

.project-body p {
  color: var(--muted);
}

.project-body .btn {
  justify-self: start;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.resume-band {
  padding-top: 2.5rem;
}

.resume-panel {
  background:
    linear-gradient(135deg, rgba(69, 199, 255, 0.08), rgba(139, 92, 246, 0.08)),
    rgba(21, 31, 51, 0.88);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 50px rgba(0, 0, 0, 0.18);
  padding: 1.6rem;
}

.resume-kicker {
  color: var(--muted);
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.22rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

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

.resume-action {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  display: inline-flex;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 800;
  gap: 0.9rem;
  justify-content: flex-start;
  letter-spacing: 0.08rem;
  min-height: 98px;
  padding: 1.25rem 1.4rem;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.resume-action:hover {
  border-color: rgba(69, 199, 255, 0.5);
  transform: translateY(-3px);
}

.resume-action-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.resume-action-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.resume-action-secondary {
  background: transparent;
  color: var(--text);
}

.resume-action-secondary:hover {
  color: var(--accent);
}

.resume-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 1.15rem;
}

.resume-icon svg {
  height: 1.15rem;
  width: 1.15rem;
}

.links-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-card {
  display: block;
  min-height: 150px;
  padding: 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.link-card span {
  color: var(--accent);
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.link-card p {
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.contact-details a,
.contact-details span {
  color: var(--muted);
}

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

.contact-form {
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
}

.contact-form label {
  color: var(--muted);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(69, 199, 255, 0.14);
  outline: none;
}

.form-status {
  color: var(--accent);
  min-height: 1.5rem;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.32), rgba(8, 11, 18, 0.78)),
    linear-gradient(225deg, rgba(69, 199, 255, 0.28), rgba(8, 11, 18, 0.62)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1600&q=80") center / cover;
  border-bottom: 1px solid var(--line);
  min-height: 440px;
  padding-top: 8rem;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.bottom-line {
  padding: 3rem 0;
  text-align: center;
}

.bottom-line p {
  color: var(--muted);
  font-size: 1.1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--soft-muted);
  padding: 1.5rem 0;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .section-pad {
    padding: 4.5rem 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2rem;
  }

  .profile-frame {
    width: 280px;
    height: 280px;
    max-width: 520px;
    justify-self: center;
  }

  .skills-grid,
  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .navbar {
    min-height: 68px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    align-items: stretch;
    background: rgba(17, 24, 39, 0.98);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 68px;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-button {
    margin-top: 0.4rem;
    text-align: center;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .resume-actions {
    grid-template-columns: 1fr;
  }

  .resume-action {
    min-height: 92px;
  }

  .skills-grid,
  .featured-grid,
  .project-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }
}

@media (max-width: 460px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-text,
  .section-heading p,
  .page-hero p {
    font-size: 1rem;
  }

  .profile-frame img {
    aspect-ratio: 1 / 1;
  }

  .profile-frame {
    width: 240px;
    height: 240px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .profile-frame {
    box-shadow:
      0 0 0 1px rgba(69, 199, 255, 0.28),
      0 30px 84px rgba(69, 199, 255, 0.22),
      0 0 36px rgba(69, 199, 255, 0.12);
    transform: translateY(-2px);
  }

  .profile-frame::before {
    opacity: 1;
    transform: scale(1);
  }

  .profile-frame img {
    filter: grayscale(0.25) contrast(1.1) saturate(1.04);
    transform: scale(1.03);
  }
}
