:root {
  --nav-bg: #0f172a;          /* dark slate */
  --nav-fg: #e5e7eb;          /* light text */
  --nav-fg-dim: #cbd5e1;      /* dimmer links */
  --nav-accent: #60a5fa;      /* blue accent */
  --nav-height: 64px;
  --nav-radius: 14px;
}

body {
  padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
  background-color: #f0f9ff;
}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(15,23,42,0.92), rgba(15,23,42,0.86));
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--nav-fg);
  border-bottom: 1px solid rgba(148,163,184,0.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px clamp(12px, 4vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between; /* brand left, links right */
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px; /* spacing between icon/text and first link */
  margin-right: auto; /* push nav links right */
  text-decoration: none;
  color: var(--nav-fg);
  font-weight: 600;
  letter-spacing: .2px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(96,165,250,0.16);
  border: 1px solid rgba(96,165,250,0.35);
  color: var(--nav-accent);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.brand:hover .brand-mark {
  background: rgba(96,165,250,0.25);
  color: #93c5fd;
}

.nav-links {
  margin-left: auto; /* keep links right */
}

.nav-links ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--nav-fg-dim);
  padding: 10px 12px;
  border-radius: var(--nav-radius);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
  font-weight: 500;
}

.nav-links a:hover {
  background: rgba(148,163,184,0.12);
  color: var(--nav-fg);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 10px;
  background: transparent;
  color: var(--nav-fg);
}

.nav-toggle .bar {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}

.nav-toggle .bar:nth-child(1) { top: 14px; }
.nav-toggle .bar:nth-child(2) { top: 21px; }
.nav-toggle .bar:nth-child(3) { top: 28px; }

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  top: 22px; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  top: 22px; transform: rotate(-45deg);
}

/* Text CSS */
.home-image {
    float: left;
    margin: 10px;
    background-color: lightgray;
}

.header-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 40px;
    border: 3px solid white;
    margin: 5px;
    margin-top: 10px;
    padding: 5px;
}

.main-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    border: 3px solid white;
    margin: 5px;
    padding: 5px;
}

.page-left {
    display: flex;
    justify-content: left;
    align-items: center;
    text-align: left;
    font-size: 30px;
    font-weight: bold;
    border: 3px solid white;
    margin: 5px;
    padding: 5px;
}

@media (max-width: 820px) {
  /* Show hamburger */
  .nav-toggle { 
    display: inline-block; 
  }

  /* Dropdown menu container */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; 
    right: 0;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
    text-align: center; /* center text in mobile */
  }

  /* When menu is open */
  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  /* Menu background and padding */
  .nav-links ul {
    flex-direction: column;
    padding: 16px 0;
    background: rgba(2,6,23,0.98);
    border-bottom: 1px solid rgba(148,163,184,0.15);
    gap: 10px; /* space between items */
  }

  /* Bigger tap targets */
  .nav-links a {
    display: inline-block;
    padding: 14px 0;
    font-size: 1.2rem; /* bigger font */
    width: 100%; /* make them full width for tap area */
    color: var(--nav-fg-dim);
    border-radius: 0; /* flat style in mobile */
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .nav-links a:hover {
    background: rgba(96,165,250,0.16);
    color: var(--nav-fg);
  }

  /* Stack brand & menu neatly */
  .nav-inner {
    flex-wrap: wrap;
  }

  .brand {
    margin-right: 0;
  }

  .nav-links {
    margin-left: 0;
    width: 100%;
  }

  /* Home Image */
  .home-image {
    float: none;
    width: 100%;
    height: auto;
    margin: auto;
    background-color: lightgray;
  }
}

/* Resume's layout */
/* Base container */
.resume-hero {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 24px);
  align-items: center;
}

/* Image styles (responsive) */
.resume-img {
  width: 100%;
  max-width: 520px;     /* keeps desktop image reasonable */
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Text block */
.resume-copy {
  text-align: center;   /* centered text as requested */
}

/* Title */
.resume-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0;
  color: #0f172a;
}

@media (min-width: 821px) {
  .resume-hero {
    grid-template-columns: minmax(280px, 36%) 1fr;
    grid-template-areas:
      "img title"
      "img copy";
  }

  .resume-img      { grid-area: img; }
  .resume-title    { grid-area: title; text-align: center; margin-bottom: 12px; border: 3px solid white; padding: 5px;}
  .resume-copy     { grid-area: copy; border: 3px solid white; padding: 5px;}
  .custom-btn {
    display: block;        /* makes it take the full line */
    margin: 12px auto 0;   /* centers horizontally */
    padding: 12px 20px;
    background: #60a5fa;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease;
    text-align: center;
    width: fit-content;    /* keeps it from stretching full width */
  }
}

/* Mobile: title on top, image centered, text below */
@media (max-width: 820px) {
  .resume-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "img"
      "copy";
  }

  .resume-title     { grid-area: title; text-align: center; border: 3px solid white; padding: 5px;}
  .resume-img       { grid-area: img; margin: 0 auto; max-width: 90%;}
  .resume-copy      { grid-area: copy; text-align: center; border: 3px solid white; padding: 5px;}
  .custom-btn {
    display: block;        /* makes it take the full line */
    margin: 12px auto 0;   /* centers horizontally */
    padding: 12px 20px;
    background: #60a5fa;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease;
    text-align: center;
    width: fit-content;    /* keeps it from stretching full width */
  }
}

/* Optional matching button style (uses your blue accent) */

.custom-btn:hover  { background: #3b82f6; transform: translateY(-2px); }
.custom-btn:active { background: #2563eb; transform: translateY(0); }
