/* Global Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* Header */
header {
  background-color: #b30000;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-intro{
  width: 80vw
}

.home-intro h1 {
  font-size: 36pt;
  margin-bottom: 10px;
}

.home-intro h2 {
  font-size: 28pt;
}

.home-intro h3 {
  font-size: 12pt;
  color: #b30000;
}

p {
  font-size: 16pt;
}

/* === Navigation Styling === */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: #ff4d4d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Highlight current page */
nav ul li a.active {
  background-color: #800000;
  text-decoration: underline;
  box-shadow: inset 0 -3px 0 #ffcccc;
}

/* Main Content */
main {
  padding: 40px 20px;
  max-width: 80vw;
  margin: auto;
  text-align: center;
}

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

.site-name {
  font-size: 1.5em;
  font-weight: 700;
  color: #050504;
  text-align: left;
}

.main-nav a {
  margin-left: 20px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: #fcda1a;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover effect */
.main-nav a:hover {
  background-color: #f5faff;
  color: #000000;
}

/* Active page */
.main-nav a.active {
  background-color: #eefeffb6;
  border-bottom: 2px solid #959697;
  font-weight: bold;
  color: #000000;
}

footer {
  background-color: #b30000;
  color: white;
  padding: 2rem 1rem;
}

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

.footer-left {
  text-align: left;
  flex: 1;
  min-width: 200px;
}

.footer-right {
  text-align: right;
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  min-width: 200px;
}

.footer-left p {
  margin: 5px 0;
}


/* Round social icons */
.social-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #007acc;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -9999px;
  transition: background-color 0.3s;
}

.social-icon.linkedin {
  background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/linkedin.svg');
  background-color: #0077b5;
}

.social-icon.youtube {
  background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/youtube.svg');
  background-color: #ff0000;
}

.social-icon.facebook {
  background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/facebook.svg');
  background-color: #1877f2;
}

.social-icon:hover {
  filter: brightness(1.1);
}

/* Home Page Styling */
.home-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.intro-paragraph {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

.home-quote {
  margin-top: 30px;
  font-style: italic;
  color: #666;
  font-size: 14pt;
}

.quote-author {
  display: block;
  margin-top: 10px;
  font-size: 12pt;
  color: #999;
  text-align: right;
  width: 90%;
}

.page-banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* darken effect */
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
}

.section {
  padding: 30px 20px;
  max-width: 80vw;
  margin: 0 auto;
}

.divider {
  margin: 5px auto;
  height: 3px;
  width: 80%;
  background-color: #ccc;
  border: none;
}

.about-columns {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.about-box {
  flex: 1;
  border: 2px solid #000000;
  padding: 20px;
  min-width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,0.03);
}

.about-box h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.about-box ul {
  list-style: disc;
  padding-left: 20px;
}

.about-box li {
  margin-bottom: 10px;
  color: #333;
  text-align: left;
}

.resume-preview h3 {
  margin-top: 30px;
  color: #2a2a2a;
}

.resume-preview ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.resume-preview li {
  margin-bottom: 10px;
  color: #333;
}

.resume-preview h3 {
  margin-top: 40px;
  margin-bottom: 10px;
  color: #2a2a2a;
}


/* Download Resume Section */
.resume-download {
  text-align: center;
}

.resume-button {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 24px;
  background-color: #007acc;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.resume-button:hover {
  background-color: #005fa3;
}

/* Portfolio Grid */
/* Portfolio Grid */
.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.image-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  background-color: #f9f9f9;
}

/* Custom layout: 2 stacked on the left, 1 tall on the right */
.image-grid-custom {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  grid-template-rows: 250px 250px; /* two rows */
  gap: 12px;
  margin-top: 20px;
  grid-template-areas:
    "left-top right"
    "left-bottom right";
}

/* Default image styling */
.image-grid-custom img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
  background-color: #f9f9f9;
}

/* Map images */
.image-grid-custom img:nth-child(1) { 
  grid-area: left-top; 
  height: 100%; /* fill row height */
}
.image-grid-custom img:nth-child(2) { 
  grid-area: left-bottom; 
  height: 100%;
}
.image-grid-custom img:nth-child(3) { 
  grid-area: right; 
  height: 100%; /* allow spanning */
  grid-row: span 2; /* span both rows */
}



/* Project Section */
.project-highlight {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.section h2 {
  font-size: 20pt;
}

.section p {
  font-size: 16pt;
}

.project-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.project-content img {
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
}

.project-text {
  flex: 1;
  max-width: 500px;
}

.project-text h3 {
  margin-bottom: 10px;
}

.project-text p {
  font-size: 1.05rem;
  color: #444;
}

/* Blog Post Layout */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: left;
}

.post-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.post-date {
  text-align: left;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
}

.post-author {
  margin-top: 40px;
  font-style: italic;
  text-align: right;
  color: #555;
}

.post-content p {
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 14pt;
}

/* Blog Index Styles */
.blog-latest h2 {
  margin-bottom: 5px;
}

.blog-latest .post-excerpt {
  color: #444;
  margin-top: 10px;
}

.recent-posts ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.recent-posts li {
  margin-bottom: 10px;
}

.post-date-small {
  color: #999;
  font-size: 0.85rem;
  margin-left: 8px;
}

.blog-teaser h2 {
  margin-bottom: 5px;
}

.blog-teaser p {
  margin-bottom: 10px;
}

.pagination-controls {
  text-align: center;
  margin-top: 40px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination-link {
  color: #007acc;
  text-decoration: none;
  font-weight: 500;
}

.pagination-link:hover {
  text-decoration: underline;
}

.pagination-current {
  color: #555;
}

/* === Testimonials Banner === */
.banner {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}

.banner-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: brightness(60%);
}

.banner-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
}

/* === Testimonial Section === */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* === Individual Testimonial Block === */
.testimonial-block {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #fff;
  padding: 1.5rem;
  border: 2px solid #333232;
  border-radius: 0.5rem;
  box-shadow: 0 20px 24px rgba(0, 0, 0, 0.616);
}


.testimonial-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-content blockquote {
  font-style: italic;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.testimonial-author {
  font-weight: bold;
  color: #555;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .testimonial-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testimonial-img {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 1rem;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav li {
    margin: 0;
  }

  .main-nav a {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0;
  }
}

.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* === Articles Page === */
.articles-section {
  max-width: 1100px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

/* Card */
.article-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 18px 18px 16px 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* left accent bar */
.article-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, #b30000, #800000);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* small badge to differentiate cards */
.article-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #b30000;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  opacity: 0.95;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  border-color: #dcdcdc;
}

.article-header {
  margin-bottom: 10px;
  text-align: left;
}

.article-title {
  font-size: 1.15rem;     /* looks distinct from h2 sitewide */
  line-height: 1.25;
  margin: 0 0 6px 0;
  color: #222;
}

.article-location {
  display: inline-block;
  color: #666;
  font-weight: 500;
}

/* link/button look */
.btn-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px dashed #b30000;
  color: #b30000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-link:hover {
  background-color: #ffe5e5;
}

.btn-link.is-disabled,
.btn-link[aria-disabled="true"] {
  color: #999;
  border-color: #cfcfcf;
  background: #f7f7f7;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .article-title {
    font-size: 1.05rem;
  }
  .btn-link {
    width: 100%;
    text-align: center;
  }
}


/* Mobile layout */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .burger {
    display: block;
    margin-top: 0.5rem;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open {
    display: block;
    margin-top: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav li {
    margin: 0;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0;
    background-color: #800000;
    color: white;
  }

  .main-nav a:hover {
    background-color: #a30000;
  }

  .main-nav a.active {
    background-color: #b30000;
    text-decoration: underline;
  }
}