/* Header styles to match index page on vertical screens */
.site-header {
  transition: transform 180ms ease;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #d0cae7;
  border-radius: 0 0 2rem 2rem;
  padding: 1.5rem 0 2rem;
}
.site-header.site-header--hidden { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { color: #66b8e4; font-weight: bold; font-size: 2rem; text-decoration: none; letter-spacing: 2px; }
.nav-toggle { background: none; border: none; font-size: 2rem; color: #66b8e4; display: none; }
.nav-menu ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-menu a { text-decoration: none; color: #1f2225; font-weight: 600; font-size: 1.25rem; border-radius: 1rem; padding: 0.5rem 1rem; transition: background 0.25s, color 0.25s; }
.nav-menu a:hover { color: #fff; background: #66b8e4; }
@media (max-width: 600px) {
  .nav-toggle { display: inline-block; }
  .nav-menu { position: relative; }
  .nav-menu ul { display: none; }
  .site-header { --header-height: 72px; }
  .nav-menu.nav-menu--open ul {
    display: flex; position: fixed; top: calc(var(--header-height) + 8px); left: 0; right: 0;
    flex-direction: column; gap: 0.5rem; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    border: 1px solid #d0cae7; border-radius: 1rem; padding: 0.75rem; box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    z-index: 1001; width: min(560px, 94vw); margin: 0 auto;
  }
  .nav-menu.nav-menu--open ul li a { display: block; padding: 0.6rem 0.8rem; border-radius: 0.8rem; font-size: 1.05rem; }
  .nav-menu.nav-menu--open ul li a:hover { background: #f5f1ff; color: #66b8e4; }
}

/* Match index header/dropdown behavior on tablets as well */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-menu { position: relative; }
  .nav-menu ul { display: none; }
  .site-header { --header-height: 72px; }
  .nav-menu.nav-menu--open ul {
    display: flex; position: fixed; top: calc(var(--header-height) + 8px); left: 0; right: 0;
    flex-direction: column; gap: 0.5rem; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    border: 1px solid #d0cae7; border-radius: 1rem; padding: 0.75rem; box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    z-index: 1001; width: min(560px, 94vw); margin: 0 auto;
  }
}
/* Responsive container & prevent horizontal overflow */
html { overflow-x: hidden; }
body { max-width: 100vw; overflow-x: hidden; }
.container { width: min(92%, 1100px); margin: 0 auto; max-width: 100%; }
@media (max-width: 900px) { .container { width: 94%; max-width: 100vw; } }
@media (max-width: 600px) { .container { width: 96%; max-width: 100vw; } }

/* Responsive layout helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* Spacing per breakpoint */
@media (max-width: 900px) {
  section { padding: 1rem 0; }
}
@media (max-width: 600px) {
  section { padding: 0.75rem 0; }
}
/* Unified link style for resume external links (replaces inline color) */
.resume-link {
  color: #7fd8ff;
}
.resume-link:hover,
.resume-link:focus {
  color: var(--color-accent);
}
/* Hide site header when scrolling down */
.site-header.site-header--hidden {
  transform: translateY(-100%);
  transition: transform 180ms ease;
}
.site-header {
  transition: transform 180ms ease;
  position: sticky;
  top: 0;
  z-index: 1000;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ubuntu web font loaded via Google Fonts in HTML */

:root {
  --color-bg: #f2f0f8;
  --color-bg-alt: #e9e6f3;
  --color-surface: #ffffff;
  --color-surface-alt: #f5f1ff;
  --color-text: #1f2225;
  --color-text-muted: #5f6670;
  --color-accent: #66b8e4;      /* darker primary blue */
  --color-accent-alt: #7fcfae;  /* darker secondary green */
  --color-accent-warm: #ffd569;
  --color-accent-cool: #66b8e4; /* align cool variant */
  --color-border: #d0cae7;      /* adjusted border */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.12);
}

body {
  font-family: 'Ubuntu', Arial, sans-serif;
  font-weight: bold;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: 1.5px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

p {
  font-size: 1.25rem;
}

.container {
  width: min(90%, 1100px);
  margin: 0 auto;
}

.site-header {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0 0 2rem 2rem;
  padding: 1.5rem 0 2rem;
  margin-bottom: 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  color: var(--color-accent);
  font-weight: bold;
  font-size: 2rem;
  text-decoration: none;
  letter-spacing: 2px;
}
.nav-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-accent);
  display: none;
}
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
  transition: background 0.25s, color 0.25s;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
}
.nav-menu a:hover {
  color: #fff;
  background: var(--color-accent);
}

.resume-section {
  padding: 0; /* remove top and bottom spacing so page sits flush with footer */
  min-height: auto;
  margin-top: 0;
}

.resume-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0.75rem 0 2rem;
  border-bottom: 2px solid var(--color-border);
}

.resume-header h1 {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.resume-header .title {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

.resume-header .contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.resume-header .contact-info a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.resume-header .contact-info a:hover {
  color: var(--color-accent-alt);
}

.resume-summary {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
  border-left: 4px solid var(--color-accent-alt);
  border: 1px solid var(--color-border);
}

.resume-summary h2 {
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.resume-summary p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.resume-content {
  display: grid;
  gap: 3rem;
}

.resume-block {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 1rem;
  border-left: 4px solid var(--color-accent);
  border: 1px solid var(--color-border);
}

.resume-block:nth-child(odd) {
  border-left-color: var(--color-accent-alt);
}

.resume-block h2 {
  color: var(--color-accent);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.resume-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.resume-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resume-item h3 {
  color: var(--color-text);
  font-size: 1.3rem;
  font-weight: 600;
}

.resume-item .company {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.resume-item .date {
  color: #999;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.resume-item .location {
  color: #999;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.resume-item ul {
  list-style: none;
  margin-left: 0;
  padding-left: 1.5rem;
}

.resume-item ul li {
  position: relative;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.resume-item ul li::before {
  content: '▸';
  position: absolute;
  left: -1.5rem;
  color: var(--color-accent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.skill-category h3 {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category ul li {
  padding: 0.4rem 0;
  color: var(--color-text);
  font-size: 0.95rem;
}

.skill-category ul li::before {
  content: '•';
  color: var(--color-accent);
  font-weight: bold;
  display: inline-block;
  width: 1rem;
}

.awards-list {
  display: grid;
  gap: 1rem;
}

.award-item {
  padding: 1rem;
  background: var(--color-surface-alt);
  border-radius: 0.5rem;
  border-left: 3px solid var(--color-accent);
  border: 1px solid var(--color-border);
}

.award-item:nth-child(even) {
  border-left-color: var(--color-accent-alt);
}

.award-item h3 {
  color: var(--color-text);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.award-item .date {
  color: #999;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.download-resume {
  text-align: center;
  margin: 3rem 0;
}

.download-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  border: 2px solid var(--color-accent);
}

.download-btn:hover {
  background: var(--color-accent-alt);
  border-color: var(--color-accent-alt);
  color: #fff;
  transform: translateY(-2px);
}

.site-footer {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  border-radius: 2rem 2rem 0 0;
}
.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--color-accent-alt);
}
.flex-between {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.social a {
  margin-right: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 1.2rem;
  display: inline-block;
}
.social a img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .resume-header h1 {
    font-size: 2rem;
  }
  
  .resume-header .contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .resume-item-header {
    flex-direction: column;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-menu ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  body { font-size: 14px; letter-spacing: 0.5px; }
  .container { width: 95%; }
  .logo { font-size: 1.6rem; }
  .nav-toggle { display: inline-block; }
  /* Define a mobile header height for positioning the dropdown just below */
  .site-header { --header-height: 72px; }
  /* Mobile nav: hidden by default */
  .nav-menu { position: relative; }
  .nav-menu ul { display: none; }
  /* When open, show a styled dropdown */
  .nav-menu.nav-menu--open ul {
    display: flex;
    position: fixed; /* detach from header box and place under it */
    top: calc(var(--header-height) + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    width: min(560px, 94vw);
    margin: 0 auto; /* center under header */
  }
  .nav-menu.nav-menu--open ul li a {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem;
    font-size: 1.05rem;
    color: var(--color-text);
    background: transparent;
  }
  .nav-menu.nav-menu--open ul li a:hover {
    background: var(--color-surface-alt);
    color: var(--color-accent);
  }
  .resume-header h1 { font-size: 1.6rem; }
  .resume-summary { padding: 1rem; }
  .resume-block { padding: 1rem; }
  .resume-item h3 { font-size: 1.05rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .download-btn { padding: 0.75rem 1.6rem; font-size: 1rem; }
}