.tile-shortdesc {
  background: #fff;
  color: #222;
  font-size: 0.98em;
  padding: 0.7em 1em 0.7em 1em;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  min-height: 2.5em;
  max-height: 3.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: block;
  box-sizing: border-box;
  font-weight: 400;
}

/* Project tile image fills horizontally, but leaves space below for desc */
.tile-thumb-large {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.project-media {
  width: 100%;
  height: 160px;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
  background: #222;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.overlay-shortdesc {
  font-size: 0.95em;
  color: #fff;
  display: block;
  margin-top: 0.1em;
  text-shadow: 0 1px 4px #000a;
  font-weight: 400;
}
html, body, .modal-content {
  scroll-behavior: smooth;
}
/* --- Fullscreen Button --- */
.fullscreen-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(30,40,60,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 2px 8px #000a;
  transition: background 0.2s, color 0.2s;
  opacity: 0.85;
}
.fullscreen-btn:hover {
  background: #ffcc00;
  color: #222;
  opacity: 1;
}
/* Lightbox button style */
.lightbox-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: linear-gradient(135deg, #222 60%, #444 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px #000a, 0 0 0 2px #fff2;
  transition: background 0.2s, box-shadow 0.2s;
}
.lightbox-btn:hover {
  background: linear-gradient(135deg, #444 60%, #222 100%);
  box-shadow: 0 4px 16px #000c, 0 0 0 2px #ffcc00;
  color: #ffcc00;
}
/* CSS RESET */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: transparent; /* particles.js background is visible */
  color: #eee;             /* light text for contrast */
  line-height: 1.6;
}

/* HEADER + NAV */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(14,28,47,0.82);
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: white;
  text-align: center;
  transition: background 0.25s;
}
header:hover, header:focus-within {
  background: rgba(14,28,47,0.97);
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
}

nav a {
  color: #ddd;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  color: #ffcc00;
  background-color: transparent; /* remove dark bg hover if any */
}

nav a.active {
  background-color: #27529a;
  box-shadow: inset 0 -3px 0 0 rgba(255,255,255,0.3);
}

/* MAIN CONTENT */
main {
  width: 100%;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.2rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

h2, h3 {
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

p.lead {
  font-size: 1.25rem;
  color: #ddd;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
}

/* PROJECT GRID */
.project-grid {
  display: grid;
  gap: 2rem;
  justify-items: center;
  align-items: stretch;
  padding: 1rem 3vw;
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Make sure each project card is clickable and above particles */
.project-grid > * {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

/* PROJECT CARD */
article.project-card {
  background: rgba(255,255,255,0.95);
  color: #222;
  padding: 0;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 350px;
  max-width: 400px;
  margin: 0 auto;
}

article.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

article.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

article.project-card:hover h3 {
  color: #0e1c2f;
}

/* MEDIA SECTION INSIDE CARD */
.project-media {
  width: 100%;
  height: 170px;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.project-emoji {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: clamp(2rem, 10vw, 3.5rem);
  white-space: nowrap;
  background: linear-gradient(135deg, #1e283c 0%, #2d3e50 100%);
  color: #fff;
}

/* INFO SECTION */

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

.project-info h3 {
  margin: 0 0 0.5rem 0;
  padding: 0.5em 1.5em 0.2em 1.5em;
}

.project-info p {
  margin: 0;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;  /* CHANGE TO 3 */
  line-clamp: 3;          /* CHANGE TO 3 */
  -webkit-box-orient: vertical;
  padding: 0.5em 1.5em 1em 1.5em;
  max-height: 6.3em;      /* <-- ADD THIS LINE */
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1rem 0;
  color: #888;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  margin-top: 3rem;
}
/* --- Project Card Overlay --- */
.card-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  background: linear-gradient(180deg, rgba(30,40,60,0.0) 60%, rgba(30,40,60,0.85) 100%);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.2rem 1rem 1rem 1rem;
  border-radius: 8px;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 2;
}
.project-card:focus .card-overlay,
.project-card:hover .card-overlay {
  opacity: 1;
  pointer-events: auto;
}
.overlay-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.overlay-desc {
  font-size: 0.95rem;
  color: #ffe066;
  font-weight: bold;
}
.overlay-date {
  display: inline;
  font-size: 0.95rem;
  font-weight: bold;
  color: #ffe066;
  margin-left: 0.5em;
  border-radius: 6px;
  letter-spacing: 0.02em;
  font-family: inherit;
}
.overlay-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 68, 0, 0.95);
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.overlay-badge.no-media {
  background: rgba(100, 102, 110, 0.9);
}
.project-card:focus .card-overlay .overlay-title,
.project-card:focus .card-overlay .overlay-date,
.project-card:hover .card-overlay .overlay-date {
  display: inline;
  color: #fff;
}
.project-media {
  position: relative;
}

/* --- Modal Arrow Buttons --- */
.modal-arrow {
  background: rgba(30,40,60,0.8);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  opacity: 0.85;
}
.modal-arrow.left {
  left: 10px;
}
.modal-arrow.right {
  right: 10px;
}
.modal-arrow:hover {
  background: #ffcc00;
  color: #222;
}
.modal-gallery {
  position: relative;
}

/* --- Modal Links --- */
.modal-links {
  margin-top: 1.2rem;
  display: flex;
  gap: 1.2rem;
}
.modal-link {
  color: #27529a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #ffcc00;
  transition: color 0.2s, border-color 0.2s;
}
.modal-link:hover {
  color: #ffcc00;
  border-color: #27529a;
}
/* MODAL (Popup) Styles - Redesigned */

.modal {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.4,0,.2,1), transform 0.28s cubic-bezier(.4,0,.2,1);
}
.modal.showing {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.modal.hidden {
  display: none;
  opacity: 0;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 20, 40, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50000;
  overflow: hidden;
  padding: 2vw;
}

.modal-content {
  background: #fff;
  padding: 2rem 2rem 1.5rem 2rem;
  width: 96vw;
  max-width: 1400px;
  min-width: 0;
  max-height: 96vh;
  min-height: 0;
  border-radius: 18px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: #bbb #fff0; /* minimal, no track */
}
/* Minimal, rounded scrollbar for modal-content (Webkit) */
.modal-content::-webkit-scrollbar {
  width: 7px;
  background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 8px;
  min-height: 40px;
  border: none;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 8px;
}
/* Custom scrollbar for modal-content (Webkit) */
.modal-content::-webkit-scrollbar {
  width: 10px;
  border-radius: 18px;
  background: #eee;
}
.modal-content::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 18px;
}

.close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.7rem;
  font-size: 2.2rem;
  color: #888;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2;
  transition: color 0.2s;
}
.close-btn:hover {
  color: #0e1c2f;
}

.modal-header {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0e1c2f;
}
.modal-subheader {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  margin-top: 0.2rem;
}

.modal-gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

@media (min-width: 900px) {
  .modal-gallery {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    justify-content: center;
  }
  .modal-gallery-main {
    width: min(48vw, 700px);
    max-width: 50vw;
    min-width: 350px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
    margin: 0;
  }
  .modal-gallery-main-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-gallery-main-img-wrap img,
  .modal-gallery-main-img-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
  }
  /* This is inside your @media (min-width: 900px) block */
  .modal-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    justify-content: flex-start; /* Align to the top */
    margin-left: 0.5rem;
    
    /* --- NEW/UPDATED LINES --- */
    max-height: 500px; /* Constrains the height */
    overflow-y: auto;    /* Adds a scrollbar ONLY if needed */
    padding-right: 8px;  /* Adds space for the scrollbar */
  }
  /* --- New scrollbar style for thumbnails --- */
  .modal-gallery-thumbs::-webkit-scrollbar {
    width: 7px;
    background: #eee;
    border-radius: 8px;
  }
  .modal-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 8px;
  }
  .modal-gallery-thumbs img,
  .modal-gallery-thumbs video {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: 2px solid transparent;
    transition: border 0.2s, transform 0.2s;
  }
  .modal-gallery-thumbs img.active,
  .modal-gallery-thumbs video.active {
    border: 2.5px solid #0e1c2f;
    transform: scale(1.08);
  }
}

@media (max-width: 899px) {
  .modal-gallery {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .modal-gallery-main {
    width: 100vw;
    max-width: 99vw;
    min-width: 0;
    aspect-ratio: 1 / 1;
    min-height: 220px;
    max-height: 60vw;
    margin: 0 auto 0.7rem auto;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-gallery-main-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-gallery-main-img-wrap img,
  .modal-gallery-main-img-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
  }
  .modal-gallery-thumbs {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.5rem;
  }
  .modal-gallery-thumbs img,
  .modal-gallery-thumbs video {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 7px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: 2px solid transparent;
    transition: border 0.2s, transform 0.2s;
    flex-shrink: 0;
  }
  .modal-gallery-thumbs img.active,
  .modal-gallery-thumbs video.active {
    border: 2.5px solid #0e1c2f;
    transform: scale(1.08);
  }
}

/* Lightbox styles */
.modal.lightbox-mode {
  background: rgba(10, 20, 40, 0.97);
} /* <-- FIXED: Added missing brace */
.modal-content.lightbox-mode {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 98vw;
  max-height: 98vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.modal-content.lightbox-mode .modal-header,
.modal-content.lightbox-mode .modal-gallery,
.modal-content.lightbox-mode .modal-text,
.modal-content.lightbox-mode .close-btn {
  display: none !important;
}
.modal-content.lightbox-mode .lightbox-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 90vh;
}
.modal-content.lightbox-mode .lightbox-img,
.modal-content.lightbox-mode .lightbox-video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 16px;
  background: #222;
  box-shadow: 0 4px 32px #000a;
  cursor: zoom-in;
  transition: transform 0.2s;
}
.modal-content.lightbox-mode .lightbox-img.zoomed,
.modal-content.lightbox-mode .lightbox-video.zoomed {
  cursor: zoom-out;
  transform: scale(2);
}
.modal-content.lightbox-mode .lightbox-back {
  display: block;
  margin: 1.5rem auto 0 auto;
  font-size: 1.3rem;
  color: #fff;
  background: rgba(30,30,30,0.7);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #000a;
  transition: background 0.2s;
}
.modal-content.lightbox-mode .lightbox-back:hover {
  background: #0e1c2f;
}
/* This was a duplicate rule block and has been removed */


.modal-text {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* --- Modal Meta Badges --- */
.modal-meta {
  margin-top: 0.25rem;
}
.info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #f3f4f6;
  color: #333;
  border: 1px solid #e0e0e0;
}
.badge.role { background: #eafff6; border-color: #b6f3de; }
.badge.difficulty { background: #fff4ea; border-color: #ffd7b8; }
.badge.collaborators { background: #eef2ff; border-color: #c7d2fe; }

@media (max-width: 700px) {
  .modal-content {
    padding: 1rem 0.5rem 1rem 0.5rem;
    max-width: 99vw;
    min-width: 0;
    width: 99vw;
    max-height: 99vh;
  }
  .modal-header {
    font-size: 1.3rem;
  }
  .modal-gallery-main {
    max-height: 200px;
  }
  .close-btn {
    font-size: 1.7rem;
    right: 1rem;
    top: 0.7rem;
  }
}

section.blurb {
  max-width: 700px;
  margin: 1rem auto 2rem;
  font-size: 1.1rem;
  color: #444;
  text-align: center;
  line-height: 1.5;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-color: #0e1c2f;
  pointer-events: auto;
}

/* Optional: Make main, header, footer backgrounds transparent to avoid blocking particles */
main, header, footer {
  background: transparent;
  pointer-events: none;
}
main *,
header *,
footer * {
  pointer-events: auto;
}

/* ========================================================================
   CALL TO ACTION (CTA) BUTTONS - NEW & UNIFIED
   ======================================================================== */
.cta-section {
    text-align: center;
    margin-top: 3rem;
    /* Added flex properties for multi-button layouts */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap; 
}

/* --- Base styles for ALL CTA buttons --- */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.6;
    text-align: center;
}

/* --- Primary Button (AND Secondary, all unified) --- */
.cta-button.primary,
.cta-button.secondary {
    color: #0e1c2f; /* Dark text */
    background-color: #ffcc00; /* Yellow background */
    border: 2px solid #ffcc00; /* Matching border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover,
.cta-button.secondary:hover {
    transform: translateY(-4px);
    background-color: #ffe066; /* Lighter yellow */
    border-color: #ffe066; /* Lighter border */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #0e1c2f; /* Keep dark text on hover */
}

/* ========================================================================
   HOME PAGE LAYOUTS
   ======================================================================== */

/* --- Default text content padding --- */
main .description {
    max-width: 800px;  /* Makes text more readable */
    margin: 0 auto 2rem auto; /* Centers the container */
    padding: 0 1.5rem; /* Adds side padding for mobile */
}

/* --- HOME PAGE 2-COLUMN LAYOUT --- */
.resume-embed-wrapper {
    display: none; /* Hidden by default */
}

/* --- ULTRAWIDE LAYOUT (1600px+) --- */
@media (min-width: 1600px) {

    .home-content-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 3rem;
        max-width: 1800px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .home-text-content {
        flex: 1;
        max-width: 700px;
    }

    /* Override default centered styles for 2-col layout */
    .home-content-wrapper main .description {
        max-width: none;
        margin: 0 0 2rem 0;
        padding: 0;
        text-align: left;
    }

    /* Align buttons to the left in 2-col layout */
    .home-content-wrapper .cta-section {
        justify-content: flex-start;
    }

    /* HIDE the "View Resume" button... */
    .home-content-wrapper .cta-button.secondary {
        display: none;
    }

    /* ...and SHOW the resume embed instead */
    .resume-embed-wrapper {
        display: block;
        flex-basis: 600px;
        flex-shrink: 0;
        height: 770px; /* Adjust as needed for your PDF */
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }
}

/* ========================================================================
   ABOUT & CONTACT PAGE STYLES
   ======================================================================== */

.page-content-wrapper {
    max-width: 900px;
    margin: 2rem auto 0 auto;
    padding: 0 1.5rem;
    background: rgba(70, 87, 109, 0.7); /* Subtle dark bg */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    
    /* Increased blur for a better frosted effect */
    backdrop-filter: blur(2px);
}

.about-section {
    padding: 1.5rem 1rem;
    color: #eee; /* Light text */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-section:last-child {
    border-bottom: none;
}

.page-content-wrapper h2 {
    font-size: 1.75rem;
    color: #ffcc00; /* Yellow accent for headers */
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.page-content-wrapper p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ddd;
}

/* --- Skills Grid --- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding-top: 1rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h3 {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category li {
    font-size: 1rem;
    color: #ddd;
    line-height: 1.6;
    padding: 0.25rem 0;
}

/* --- Contact Form Styles --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 1rem;
    font-weight: 600;
    color: #eee;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #555;
    background: #222;
    color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.3);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Re-use the home page button styles for the submit */
.contact-form .cta-button {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    width: fit-content;
    cursor: pointer;
    border: none; /* Make sure submit button has no border */
}
/* --- Modal Skills Tags --- */
.modal-skills h3 {
    font-size: 1.5rem;
    color: #222;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-tags span {
    display: inline-block;
    background: #eee;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}