html {
  font-size: 16px;
  height: 100%;
}

body {
  margin: 0;
  background-color: #f0ebe3;
  color: #3d3d3d;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* navigation menu */
.navbar {
  position: absolute;
  width: 95%;
  margin-top: 1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  left: 50%;
  transform: translateX(-50%);
}

.navbar>.navbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.navbar>.navbar-left {
  display: flex;
  align-items: center;
}

.navbar-left a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  margin-left: 0;
}

.navbar a {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  margin-left: 2rem;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
}

.navbar a:focus,
.navbar a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Hamburger menu button - hidden on desktop */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #fff;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* introduction */
.intro {
  height: 20rem;
  margin-bottom: 0;
  max-width: 100vw;
  overflow: hidden;
}

.intro-header-bottom {
  background: no-repeat center bottom;
  height: inherit;
  background-attachment: scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  filter: brightness(50%);
}

.intro-header-center {
  background: no-repeat center center;
  height: inherit;
  background-attachment: scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  filter: brightness(50%);
}

.intro-title {
  position: absolute;
  height: inherit;
  width: 100%;
  z-index: 1;
  overflow: hidden;

  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
}

.intro-post {
  height: 20rem;
}

.intro-post .title {
  width: 50%;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.intro-post .title-signature {
  width: 50%;
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 1rem;
  float: right;
}

.intro-post .subtitle {
  width: 50%;
  font-size: 1.5rem;
  font-weight: 500;
}

/* social icons */
.social-icon-group {
  margin-bottom: -1rem;
}

.social-icon-group ul {
  padding: 0;
}

.social-icon-group li {
  display: inline-block;
  margin-right: 0.4rem;
}

.social-icon-group a {
  display: inline-block;
  padding: 0.25rem;
  border-radius: 4px;
}

.social-icon-group a:focus,
.social-icon-group a:focus-visible {
  outline: 2px solid #0055aa;
  outline-offset: 2px;
}

.social-icon {
  height: 2rem;
  width: 2rem;

  background: no-repeat center center;
  background-attachment: scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}

.copyright {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
}

/* content */
.content {
  padding: 0 1rem;
  justify-content: center;
}

.content-font {
  font-size: 1.1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.8rem;
}

/* footer */
.site-footer {
  border-top: 1px solid #ddd;
  padding: 1.5rem 2rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer .copyright {
  font-size: 0.85rem;
  color: #888;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #333;
}

/* About/Resume Styles - Relaxed */
.resume-container {
  max-width: 750px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: #f0ebe3;
  font-size: 1rem !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.resume-section {
  margin-bottom: 2.5rem;
}

/* About section with photo */
.about-content {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.about-photo {
  width: 200px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  margin-top: 0;
}

.resume-section h2 {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #5a5a5a !important;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}

.resume-section p {
  font-size: 1.05rem !important;
  line-height: 1.9;
  color: #444 !important;
  margin-bottom: 0.8rem;
}

.resume-section .skills-group {
  margin-bottom: 0.5rem;
  line-height: 1.8;
  font-size: 1rem;
}

.resume-section .skills-group strong {
  font-weight: 500;
  color: #555;
}

.experience-item {
  margin-bottom: 2rem;
  padding-bottom: 0;
  border-bottom: none;
}

.experience-item h3 {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  margin: 0 0 0.5rem 0;
  color: #333 !important;
}

.experience-item h3 .location-date {
  font-size: 0.9rem;
  font-weight: 400;
  color: #5a5a5a;
  float: right;
}

.experience-item p {
  font-size: 1rem !important;
  line-height: 1.8;
  color: #555 !important;
  margin: 0;
}

.experience-item .project-links {
  margin-top: 0.5rem;
  font-size: 0.95rem !important;
}

.experience-item ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.experience-item li {
  margin-bottom: 0.4rem;
  color: #555 !important;
  font-size: 1rem !important;
}

.education-item h3 {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  margin-bottom: 0.3rem;
  color: #333 !important;
}

.education-item p {
  margin: 0.3rem 0;
  color: #666;
  font-size: 1rem;
}

/* Contact cards */
.contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 220px;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.contact-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info strong {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.2rem;
}

.contact-info span {
  font-size: 0.9rem;
  color: #666;
}

/* Life page - belief section */
.belief-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.belief-photo {
  width: 180px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.belief-content p {
  margin: 0;
}

.highlight-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Blog list */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-entry {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid #0055aa;
}

.blog-entry:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.blog-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.3rem;
}

.blog-title {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.3rem;
}

.blog-preview {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Blog post styles */
.blog-lead {
  font-size: 1.15rem;
  color: #444;
  border-left: 3px solid #0055aa;
  padding-left: 1rem;
  margin: 0;
  font-style: italic;
}

.resource-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid #0055aa;
}

.resource-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.resource-card strong {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.4rem;
}

.resource-card span {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.callout-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #ff9900;
  padding: 1.5rem;
  border-radius: 8px;
}

.callout-box strong {
  font-size: 1.1rem;
  color: #333;
}

.callout-box strong a {
  color: #0055aa;
}

.callout-box p {
  margin: 0.5rem 0 0 0;
  color: #555;
  font-size: 1rem;
}

.blog-nav {
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.back-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: #f5f5f5;
  border-radius: 6px;
  color: #555 !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.back-link:hover {
  background: #e8e8e8;
  color: #333 !important;
}

/* Explore cards - index page */
.explore-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.explore-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.explore-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.explore-icon {
  font-size: 2rem;
}

.explore-info {
  display: flex;
  flex-direction: column;
}

.explore-info strong {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.2rem;
}

.explore-info span {
  font-size: 0.85rem;
  color: #666;
}

/* Skill pills - about page */
.skill-group {
  margin-bottom: 1.2rem;
}

.skill-label {
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.pill-blue {
  background: #e3f2fd;
  color: #1565c0;
}

.pill-orange {
  background: #fff3e0;
  color: #e65100;
}

.pill-green {
  background: #e8f5e9;
  color: #2e7d32;
}

.pill-purple {
  background: #f3e5f5;
  color: #7b1fa2;
}

.pill-gray {
  background: #f5f5f5;
  color: #616161;
}

/* Availability badge - contact page */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Contact cards large - contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.contact-card-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.contact-icon-large {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.contact-card-large strong {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.3rem;
}

.contact-card-large span {
  font-size: 0.9rem;
  color: #666;
}

/* Photo grid - life page */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.photo-placeholder {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Blog content - markdown styling */
.blog-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.blog-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.blog-content blockquote {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #ff9900;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.blog-content blockquote p {
  margin: 0;
}

.blog-content a {
  color: #0055aa;
  text-decoration: underline;
  text-decoration-color: #0055aa40;
}

.blog-content a:hover {
  color: #003d7a;
  text-decoration-color: #003d7a;
}

.blog-content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

.blog-content strong a {
  font-weight: 600;
}

/* AWS Highlights section */
.aws-highlight-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.aws-highlight-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, #ff9900 0%, #232f3e 100%);
  border-radius: 10px;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 160px;
  flex: 1;
}

.aws-highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.aws-highlight-card strong {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.aws-highlight-card span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.resume-container a {
  color: #0055aa;
  text-decoration: underline;
  text-decoration-color: #0055aa40;
  text-underline-offset: 2px;
  transition: all 0.2s;
}

.resume-container a:hover {
  color: #003d7a;
  text-decoration-color: #003d7a;
}

.resume-container a:focus,
.resume-container a:focus-visible {
  outline: 2px solid #0055aa;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===========================================
   MOBILE RESPONSIVE
   =========================================== */

/* Tablet and below */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    width: 90%;
  }

  .navbar a {
    font-size: 0.7rem;
    margin-left: 1rem;
  }

  /* Hero section */
  .intro {
    height: 14rem;
  }

  .intro-title {
    padding: 0 1rem;
  }

  .title {
    font-size: 2.5rem !important;
  }

  .subtitle {
    font-size: 1rem !important;
  }

  .intro-post {
    height: 14rem;
  }

  .intro-post .title {
    width: 85%;
    font-size: 1.5rem;
  }

  .intro-post .title-signature {
    width: 85%;
    font-size: 0.85rem;
  }

  .intro-post .subtitle {
    width: 85%;
    font-size: 1rem;
  }

  /* Content */
  .content {
    padding: 0 0.5rem;
  }

  .content-font {
    font-size: 1rem;
    line-height: 1.7rem;
  }

  /* Resume container */
  .resume-container {
    max-width: 100%;
    padding: 1.5rem 1rem;
  }

  /* Experience dates - stack below title */
  .experience-item h3 {
    display: flex;
    flex-direction: column;
  }

  .experience-item h3 .location-date {
    float: none;
    margin-top: 0.3rem;
  }

  /* About photo - stack on tablet */
  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-text {
    text-align: center;
  }

  .about-photo {
    width: 160px;
    height: auto;
  }

  /* Life belief - stack on tablet */
  .belief-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .belief-photo {
    width: 160px;
  }

  /* AWS highlight cards - stack on tablet */
  .aws-highlight-links {
    flex-direction: column;
  }

  .aws-highlight-card {
    min-width: unset;
  }

  /* Explore cards - stack on tablet */
  .explore-cards {
    grid-template-columns: 1fr;
  }

  /* Contact grid - stack on tablet */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Photo grid - 2 columns on tablet */
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile phones */
@media (max-width: 480px) {

  /* Navbar - hamburger menu */
  .navbar {
    width: 90%;
    margin-top: 0.5rem;
    flex-wrap: wrap;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar>.navbar-right {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0;
    border-radius: 8px;
    margin-top: 0.5rem;
  }

  .navbar>.navbar-right.open {
    display: flex;
  }

  .navbar>.navbar-right a {
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 1.1rem;
    width: 100%;
    display: block;
    line-height: 3.5rem;
    height: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar>.navbar-right a:last-child {
    border-bottom: none;
  }

  .navbar>.navbar-right a span {
    line-height: 3.5rem;
  }

  .navbar-left a {
    margin-left: 0;
    font-size: 1rem;
  }

  /* Hero section - compact */
  .intro {
    height: 10rem;
    margin-bottom: 0;
  }

  .intro-post {
    height: 10rem;
  }

  .intro-post .title {
    width: 90%;
    font-size: 1rem;
  }

  .intro-post .title-signature {
    width: 90%;
    font-size: 0.7rem;
  }

  .intro-post .subtitle {
    width: 90%;
    font-size: 0.8rem;
  }

  /* Intro title section */
  .intro-title {
    padding: 0 1.5rem;
  }

  .title {
    font-size: 1.75rem !important;
    text-align: center;
    line-height: 1.3;
  }

  .subtitle {
    font-size: 0.9rem !important;
    text-align: center;
    margin-top: 0.4rem;
    line-height: 1.4;
  }

  /* Content */
  .content {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .content-font {
    font-size: 0.95rem;
    line-height: 1.5rem;
  }

  /* Resume */
  .resume-container {
    padding: 1rem 0.8rem;
  }

  .resume-section {
    margin-bottom: 2rem;
  }

  .resume-section h2 {
    font-size: 1rem !important;
  }

  .resume-section p {
    font-size: 0.95rem !important;
    line-height: 1.7;
  }

  .experience-item h3 {
    font-size: 1rem !important;
  }

  .experience-item h3 .location-date {
    font-size: 0.8rem;
  }

  .experience-item p {
    font-size: 0.9rem !important;
  }

  /* Footer */
  .site-footer {
    padding: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .footer-links {
    gap: 1rem;
  }

  /* Contact cards - stack on mobile */
  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-card {
    padding: 1.2rem 1.5rem;
    min-width: unset;
  }

  /* Explore cards - smaller on mobile */
  .explore-icon {
    font-size: 1.5rem;
  }

  .explore-info strong {
    font-size: 1rem;
  }

  .explore-info span {
    font-size: 0.8rem;
  }

  /* Skills pills - smaller on mobile */
  .pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .skill-label {
    font-size: 0.85rem;
  }

  /* Photo grid - 2 columns on mobile */
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .photo-placeholder {
    font-size: 1.5rem;
  }

  /* Contact card large - smaller on mobile */
  .contact-card-large {
    padding: 1.5rem;
  }

  .contact-icon-large {
    width: 48px;
    height: 48px;
  }
}