/* ===== Project Portfolio Title & Filters ===== */
.portfolio-title {
  text-align: center;
  margin-bottom: 1.5em;
  margin-top: 0;
  font-size: 2.8em;
  color: #232b38;
  font-weight: 700;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85em;
  margin-bottom: 2.5em;
}

.category-btn {
  background: #e8ecf1;
  color: #3d4852;
  border: none;
  border-radius: 0px;
  padding: 0.7em 1.1em;
  font-weight: 600;
  font-size: 0.88em;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  min-width: 90px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.category-btn:hover {
  background: #d1d8e0;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.category-btn.active {
  background: #64748b;
  color: #fff;
  box-shadow: 0 3px 10px rgba(100, 116, 139, 0.3);
  transform: translateY(-1px);
}

.category-btn.active:hover {
  background: #475569;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
}

/* ===== Project Slider ===== */
.project-slider {
  position: relative;
  max-width: 750px;
  margin: 0 auto 3em auto;
  padding: 0 4em;
}

.slider-container {
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.slider-slide {
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #e8ecf1;
  color: #3d4852;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.slider-arrow:hover {
  background: #d1d8e0;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.98);
  background: #64748b;
  color: #fff;
}

.slider-arrow-left {
  left: 0;
}

.slider-arrow-right {
  right: 0;
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.75em;
  margin-top: 1.5em;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #cbd5e0;
  background: #e8ecf1;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot:hover {
  border-color: #64748b;
  background: #d1d8e0;
  transform: scale(1.2);
}

.slider-dot.active {
  background: #64748b;
  border-color: #64748b;
}

/* ===== Minimalist Shadow Project Cards ===== */
.minicard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3em;
  margin: 0 auto;
  max-width: 750px;
}
.minicard {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 22px rgba(44, 78, 104, 0.11);
  border: 1px solid #eceef2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 1em;
  transition: box-shadow .17s, transform .14s;
}
.minicard:hover {
  box-shadow: 0 14px 36px rgba(44,78,104,0.20);
  transform: translateY(-5px) scale(1.01);
}
.minicard img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #eaeaea;
  margin: 0;         /* Add this line */
  padding: 0;        /* Add this line (for safety) */
}
.minicard-body {
  padding: 0.45em 1.5em 1.35em;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.minicard-body h3 {
  margin: 0 0 0.65em 0;
  font-size: 1.14em;
  color: #232b38;
}
.minicard-body p {
  color: #50597a;
  flex: 1;
  font-size: 1em;
  margin-top: 0;
  margin-bottom: 1.25em;
}
.minicard-btn {
  align-self: flex-start;
  background: #334e68;
  color: #fff;
  border-radius: 8px;
  padding: 0.5em 1.35em;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  border: 2px solid #334e68;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(44,78,104,0.15);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.minicard-btn:hover {
  background: #4d7db8;
  border-color: #4d7db8;
  box-shadow: 0 4px 12px rgba(44,78,104,0.25);
  transform: translateY(-2px);
}
.minicard-btn:active {
  transform: translateY(0);
}
/* Secondary button style */
.minicard-btn.secondary {
  background: transparent;
  color: #334e68;
  border: 2px solid #334e68;
  box-shadow: none;
}
.minicard-btn.secondary:hover {
  background: #334e68;
  color: #fff;
  box-shadow: 0 4px 12px rgba(44,78,104,0.2);
}
/* Icon styling for buttons */
.minicard-btn svg {
  width: 16px;
  height: 16px;
  display: inline-block;
}
.minicard-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.85em;
  flex-wrap: wrap;
}

/* ===== Download Resume Box ===== */
.download-box {
  border: 2px solid #334e68;
  padding: 0.75em 1.5em;
  border-radius: 8px;
  background: #f5f8fa;
  display: inline-block;
  margin-bottom: 1.5em;
}
.download-box a {
  text-decoration: none;
  color: #334e68;
  font-weight: bold;
}
.download-box a:hover {
  color: #0a6ebd;
}

/* ===== View All Projects Button ===== */
.view-all-projects {
  text-align: center;
  margin: 2.5em auto 2em auto;
  max-width: 750px;
  padding: 0 2em;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 2em;
  margin-bottom: 1.5em;
  flex-wrap: wrap;
  text-align: center;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.8em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

/* Outline button style (See My Work) */
.btn-outline {
  background: transparent;
  color: #334e68;
  border: 2px solid #334e68;
  box-shadow: 0 1px 3px rgba(44, 78, 104, 0.08);
}

.btn-outline:hover {
  background: rgba(51, 78, 104, 0.05);
  border-color: #4d7db8;
  color: #4d7db8;
  box-shadow: 0 3px 8px rgba(44, 78, 104, 0.12);
}

.btn-outline:hover .btn-icon {
  transform: translateX(3px);
}

/* Filled button style (Download CV) */
.btn-filled {
  background: #334e68;
  color: #fff;
  border: 2px solid #334e68;
  box-shadow: 0 2px 8px rgba(44, 78, 104, 0.15);
}

.btn-filled:hover {
  background: #4d7db8;
  border-color: #4d7db8;
  box-shadow: 0 4px 12px rgba(44, 78, 104, 0.25);
  transform: translateY(-2px);
}

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

.view-all-btn:active {
  transform: translateY(0);
}

/* ===== Skills Section ===== */
.skills-section {
  margin-top: 0.5em;
  margin-bottom: 4em;
}

.skills-category {
  font-size: 1.05em;
  color: #232b38;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.skills-category:first-child {
  margin-top: 0;
}

.skills-text {
  color: #50597a;
  line-height: 1.7;
  margin-bottom: 0.5em;
  font-size: 1em;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  margin-top: 1.5em;
  margin-bottom: 3em;
}

.skill-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.2em 1.3em;
  display: flex;
  align-items: center;
  gap: 1em;
  transition: all 0.25s ease;
  cursor: default;
  border: 1px solid #e4e7ec;
  box-shadow: 0 2px 8px rgba(44, 78, 104, 0.08);
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(44, 78, 104, 0.15);
  border-color: #cbd5e0;
}

.skill-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: #f5f8fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.skill-icon svg {
  width: 26px;
  height: 26px;
}

.google-icon svg {
  width: 31px;
  height: 31px;
  display: block;
  margin: auto;
}

.skill-icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.skill-card:hover .skill-icon {
  background: #e8ecf1;
  transform: scale(1.05);
}

.skill-content {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  flex: 1;
}

.skill-title {
  font-size: 1em;
  font-weight: 600;
  color: #232b38;
  line-height: 1.2;
}

.skill-desc {
  font-size: 0.85em;
  color: #50597a;
  line-height: 1.3;
}

/* Icon color variations */
.python-icon svg {
  color: #3776ab;
}

.git-icon svg {
  color: #f05032;
  width: 30px;
  height: 30px;
}

.sql-icon svg {
  color: #334e68;
  width: 30px;
  height: 30px;
}

.js-icon svg {
  color: #f0db4f;
}

.html-icon svg {
  color: #e34f26;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9em;
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 0.85em;
  }
  
  .skill-card {
    padding: 1.1em 1.2em;
  }
}

@media (max-width: 480px) {
  .skill-card {
    padding: 1em 1.1em;
    gap: 0.9em;
  }
  
  .skill-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
  
  .skill-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .skill-title {
    font-size: 0.95em;
  }
  
  .skill-desc {
    font-size: 0.82em;
  }
}


/* ===== Resume Page ===== */
.resume-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2em 3em 2em;
}

.resume-viewer {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(44, 78, 104, 0.11);
  border: 1px solid #eceef2;
  background: #fff;
}

.resume-viewer iframe {
  display: block;
  border: none;
}

/* ===== About/Profile Section ===== */
.profile-section {
  padding-bottom: 2em;
  margin-bottom: 2em;
  border-bottom: 2px solid #e4e7ec;
}

.profile-wrap {
  display: flex;
  align-items: center;
}

.profile-wrap img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-right: 32px;
}

.profile-wrap .desc {
  line-height: 1.6;
}

.profile-wrap .desc strong {
  font-weight: bold;
  font-size: 1.1em;
}

.profile-wrap .desc span {
  font-weight: normal;
  color: #4a5568;
}

.content-section {
  padding-top: 1em;
}

.container {
  width: 100%;
  padding: 0 1em;
  box-sizing: border-box;
}

.container h1 {
  margin-top: 0;
  margin-bottom: 0.6em;
  font-size: 1.8em;
  color: #232b38;
}

.about-section {
  margin-bottom: 1.2em;
}

.about-divider {
  border-bottom: 2px solid #e4e7ec;
  margin-top: 25px;
  margin-bottom: 35px;
}

/* ===== Photo Banner ===== */

.aboutme-banner-photos {
  display: flex;
  flex-direction: row;
  width: calc(100% - 6em);
  max-width: 100%;
  overflow: hidden;
  gap: 0;
  margin-top: 5px;
  margin-bottom: 0.5em;
  margin-left: auto;
  margin-right: auto;
}

.aboutme-banner-photos img {
  height: 175px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: 100%;
}

.aboutme-banner-photos .photo-center {
  flex: 1.33 1.33 0;      /* center is wider */
}

/* ===== Banner Footer ===== */

.aboutme-banner-footer {
  text-align: center;
  color: #626572;
  font-size: 0.65em;
  margin-top: 0.1em;
  margin-bottom: 0px;
  opacity: 0.94;
  letter-spacing: 0.01em;
}

/* ===== Project ===== */

.project-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2em 1em;
}
.project-map-section {
  text-align: center;
  margin-bottom: 1.25em;
  /* The section-title inside this section will remain left-aligned due to specificity */
}
.section-title {
  text-align: left;
  margin-bottom: 0.7em;
  margin-top: 0;
  font-size: 1.28em;
  color: #232b38;
  font-weight: bold;
  margin-left: 0.3em; /* Optional: small indent for visual polish */
}
.project-study-map {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 0.5em;
  margin-bottom: 0.1em;
  box-shadow: 0 2px 12px rgba(44,78,104,0.14);
}
.map-credits {
  margin-top: 0.1em;
  font-size: 0.75em;
  color: #5c6577;
  opacity: 0.8;
}
.project-body p {
  line-height: 1.7;
  margin-bottom: 1.2em;
  font-size: 1.07em;
  color: #242834;
}
.code-blocks {
  display: flex;
  flex-direction: column;  /* Force vertical stacking */
  gap: 2em;
  margin: 2.5em 0 1.2em 0;
  justify-content: flex-start;
}
.code-label {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 0.45em;
  color: #313e57;
}
.code-blocks code,
.code-blocks pre {
  color: #23272d !important;   /* dark gray text */
  background: #f5f7fa;         /* pale background, or adjust as needed */
}
pre {
  background: transparent;
  padding: 0;
  overflow-x: auto;
  font-size: 0.98em;
}

/* Stacked maps */
/* ===== Bloom Maps ===== */

.side-by-side-maps {
  display: flex;
  flex-direction: column;   /* Stack maps vertically */
  gap: 1em;
  margin: 1em 0 1em 0;
  align-items: center;
}

.side-by-side-maps img {
  width: 85%;             /* 75% of its parent container */
  height: auto;
  border-radius: 0;         /* Square edges for maps */
  object-fit: cover;
  margin-top: 0.1em;
  margin-bottom: 0.1em;
  box-shadow: 0 2px 10px rgba(44,78,104,0.11);
}
.side-map-caption {
  font-size: 0.97em;
  color: #555d6d;
  margin-top: 0.6em;
  opacity: 0.85;
}
.final-paragraph p {
  margin: 1.5em auto 1.5em auto;
  text-align: center;
  color: #233;
  font-size: 1.09em;
}
.project-btns {
  display: flex;
  justify-content: center;
  gap: 1.1em;
  margin-top: 1.6em;
  margin-bottom: 2em;
}
.project-action-btn {
  background: #255890;
  color: #fff;
  padding: 0.66em 1.8em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.04em;
  box-shadow: 0 1px 6px rgba(44,78,104,0.10);
  transition: background 0.17s;
  border: none;
}
.project-action-btn:hover {
  background: #3182ce;
  color: #fff;
}
@media (max-width: 740px) {
  .side-by-side-maps,
  .code-blocks,
  .project-btns {
    flex-direction: column;
    gap: 1.2em;
    align-items: stretch;
  }
  .side-by-side-maps img {
    height: 140px;
  }
}

/* ===== Force Light Mode ===== */

:root {
  color-scheme: light;
}

html, body {
  min-height: 100%;
  height: 100%;
}

body {
  background: linear-gradient(to right, 
    #F8F8F8 0%, 
    #F8F8F8 20%, 
    #ffffff 23%, 
    #ffffff 77%, 
    #F8F8F8 80%, 
    #F8F8F8 100%
  ) !important;
  color: #232834 !important;
  margin: 0;
  padding: 0;
  font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Dynamic Contour Canvas Background */
#contour-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
  -webkit-mask-image: linear-gradient(to right, 
    black 0%, 
    black 22%, 
    transparent 22.5%, 
    transparent 74.5%, 
    black 75%, 
    black 100%
  );
  mask-image: linear-gradient(to right, 
    black 0%, 
    black 22%, 
    transparent 22.5%, 
    transparent 74.5%, 
    black 75%, 
    black 100%
  );
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

main {
  position: relative;
  z-index: 1;
}

footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ===== Header & Footer Layout ===== */

header.hover {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #2d3748;
  border-bottom: 1px solid #1a202c;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2.5em;
}

header h1 {
  margin: 0;
  font-size: 1.4em;
  font-weight: 700;
}

header h1 a {
  color: #cbd5e0;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

header h1 a:hover {
  text-decoration: underline;
}

header nav {
  display: flex;
  align-items: center;
}

header nav.main-nav {
  gap: 2.5em;
  padding: 0.8em 2.5em;
  background: #2d3748;
  width: 100%;
  justify-content: center;
}

header nav.main-nav a {
  color: #cbd5e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.10em;
  transition: text-decoration 0.2s;
}

header nav.main-nav a:hover {
  text-decoration: underline;
}

header nav.social-nav {
  gap: 2em;
}

header nav.social-nav a {
  color: #cbd5e0;
  display: flex;
  align-items: center;
  transition: color 0.2s, opacity 0.2s;
}

header nav.social-nav a:hover {
  color: #ffffff;
  opacity: 1;
}

header nav.social-nav svg {
  display: block;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 3em 4em 3em 4em;
  box-sizing: border-box;
  width: 100%;
  flex: 1;
  background: #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
}

footer.hover {
  background: #2d3748;
  color: #cbd5e0;
  padding: 1.8em 2.5em;
  text-align: center;
  width: 100%;
  margin: 0;
}

footer.hover div {
  margin-bottom: 0.8em;
  font-size: 0.95em;
}

footer.hover nav {
  display: flex;
  justify-content: center;
  gap: 1.5em;
}

footer.hover nav.footer-social {
  gap: 1.2em;
}

footer.hover nav a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 0.92em;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

footer.hover nav a:hover {
  color: #fff;
}

footer.hover nav.footer-social svg {
  display: block;
}

/* Tablet */
@media (max-width: 968px) {
  body {
    background: #ffffff !important; /* Remove margins on smaller screens */
  }
  
  #contour-canvas {
    display: none; /* Hide contours on smaller screens */
  }
  
  main {
    padding: 2em 2em;
  }
  
  .profile-photo {
    width: 130px;
    height: 130px;
  }
  
  .aboutme-banner-photos {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    background: #ffffff !important;
  }
  
  /* Project portfolio responsive */
  .portfolio-title {
    font-size: 2em;
    margin-bottom: 1em;
    margin-top: 0.5em;
  }
  
  .category-filters {
    gap: 0.6em;
    margin-bottom: 2em;
  }
  
  .category-btn {
    font-size: 0.82em;
    padding: 0.65em 0.95em;
    min-width: 80px;
  }
  
  /* Header adjustments */
  .header-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.5em;
    flex-wrap: wrap;
  }
  
  header h1 {
    font-size: 1.2em;
  }
  
  header nav.social-nav {
    gap: 1.2em;
    order: 2;
  }
  
  header nav.main-nav {
    width: 100%;
    order: 3;
    flex-direction: row;
    justify-content: center;
    gap: 1.5em;
    padding: 0.8em 1.5em;
  }
  
  header nav.main-nav a {
    font-size: 0.95em;
  }
  
  /* Profile section */
  .profile-section {
    padding-bottom: 1.5em;
    margin-bottom: 1.5em;
  }
  
  .profile-wrap {
    flex-direction: column;
    text-align: center;
    gap: 1em;
  }
  
  .profile-wrap img {
    margin-right: 0;
    margin-bottom: 0.5em;
  }
  
  .profile-photo {
    width: 120px;
    height: 120px;
  }
  
  .hero-name {
    font-size: 1.3em;
  }
  
  /* Main content */
  main {
    padding: 1.5em 1.5em;
  }
  
  /* Slider responsive */
  .project-slider {
    padding: 0 3em;
  }
  
  .slider-arrow {
    width: 38px;
    height: 38px;
  }
  
  .slider-arrow svg {
    width: 20px;
    height: 20px;
  }
  
  /* Resume page responsive */
  .resume-container {
    padding: 0 1.5em 2em 1.5em;
  }
  
  .resume-viewer iframe {
    height: 800px;
  }
  
  .container {
    padding: 0 0.5em;
  }
  
  .container h1 {
    font-size: 1.5em;
  }
  
  .about-content p {
    font-size: 1rem;
  }
  
  /* Banner photos */
  .aboutme-banner-photos {
    width: 100%;
    margin-top: 2em;
  }
  
  .aboutme-banner-photos img {
    height: 140px;
  }
  
  .aboutme-banner-footer {
    font-size: 0.7em;
    line-height: 1.4;
  }
  
  /* View All Projects button responsive */
  .view-all-projects {
    padding: 0 1.5em;
  }
  
  .button-group {
    gap: 1em;
  }
  
  .view-all-btn {
    font-size: 0.95em;
    padding: 0.75em 1.6em;
  }
  
  /* Footer */
  footer.hover {
    padding: 1.5em 1.5em;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .portfolio-title {
    font-size: 1.6em;
  }
  
  .category-btn {
    font-size: 0.78em;
    padding: 0.6em 0.85em;
    min-width: 70px;
  }
  
  .header-top {
    padding: 0.8em 1em;
  }
  
  header h1 {
    font-size: 1.1em;
  }
  
  header nav.social-nav {
    gap: 0.8em;
  }
  
  header nav.social-nav svg {
    width: 18px;
    height: 18px;
  }
  
  header nav.main-nav {
    gap: 1em;
    padding: 0.6em 1em;
  }
  
  header nav.main-nav a {
    font-size: 0.9em;
  }
  
  .profile-photo {
    width: 100px;
    height: 100px;
  }
  
  main {
    padding: 1.5em 1em;
  }
  
  /* Slider responsive */
  .project-slider {
    padding: 0 2.5em;
  }
  
  .slider-arrow {
    width: 35px;
    height: 35px;
  }
  
  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }
  
  /* Resume page responsive */
  .resume-container {
    padding: 0 1em 1.5em 1em;
  }
  
  .resume-viewer iframe {
    height: 600px;
  }
  
  .container h1 {
    font-size: 1.3em;
  }
  
  .aboutme-banner-photos {
    flex-direction: column;
    gap: 0.5em;
  }
  
  .aboutme-banner-photos img {
    height: 180px;
    width: 100% !important;
    flex: none;
  }
  
  .aboutme-banner-photos .photo-center {
    flex: none;
  }
  
  .aboutme-banner-footer {
    font-size: 0.75em;
    padding: 0 0.5em;
  }
  
  /* View All Projects button responsive */
  .view-all-projects {
    padding: 0 1em;
  }
  
  .button-group {
    gap: 0.8em;
    flex-direction: column;
    align-items: center;
  }
  
  .view-all-btn {
    font-size: 0.9em;
    padding: 0.7em 1.4em;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  footer.hover {
    padding: 1.2em 1em;
  }
  
  footer.hover nav.footer-social {
    gap: 1em;
  }
}

.project-main {
  background: #fff;
  border-radius: 0;       /* No rounded corners */
  box-shadow: none;       /* No shadow */
}

/* ===== Project 2 ===== */

.instructor-quote {
  background: #f5f7fa;
  border-left: 4px solid #255890;
  margin: 1.5em 0;
  padding: 1em 1.5em;
  color: #313e57;
  font-size: 1.05em;
}
.instructor-quote .instructor {
  display: block;
  text-align: right;
  color: #5c6577;
  font-size: 0.95em;
}

/* ===== Research Page ===== */
.research-grid {
  display: flex;
  flex-direction: column;
  gap: 3em;
  max-width: 900px;
  margin: 0 auto;
}

.research-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 3px solid #e0e4e9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.research-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f5f7fa;
}

.research-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.research-content {
  padding: 2em;
}

.research-content h2 {
  margin: 0 0 0.8em 0;
  color: #232b38;
  font-size: 1.8em;
  font-weight: 700;
}

.research-pi {
  margin-bottom: 1em;
  padding: 0.6em 1em;
  background: #f5f7fa;
  border-left: 3px solid #255890;
  color: #3d4852;
  font-size: 0.95em;
}

.research-pi strong {
  color: #232b38;
}

.research-content p {
  margin: 0;
  line-height: 1.7;
  color: #4a5568;
  font-size: 1.05em;
}

.research-button {
  margin-top: 1.5em;
  display: flex;
  justify-content: flex-start;
}

.research-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: #255890;
  color: #fff;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(37, 88, 144, 0.2);
}

.research-btn:hover {
  background: #1e4570;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(37, 88, 144, 0.3);
}

.research-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Research Page Responsive */
@media (max-width: 768px) {
  .research-grid {
    gap: 2em;
  }
  
  .research-image {
    height: 200px;
  }
  
  .research-content {
    padding: 1.5em;
  }
  
  .research-content h2 {
    font-size: 1.5em;
  }
  
  .research-content p {
    font-size: 1em;
  }
}