/* Reset some default styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background-color: #1d3c6a;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Navbar Links */
nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
  color: #ffcc00;       /* Gold hover color */
  transform: scale(1.05); /* Slight zoom effect */
  text-decoration: underline;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  color: white;
  background: linear-gradient(to bottom right, #1d3c6a, #4b6cb7);
  animation: fadeIn 1.2s ease-in;
}

/* Profile Photo */
.front-photo {
  display: block;
  margin: 2rem auto;
  width: 200px;          /* Adjust size as needed */
  height: 200px;         /* Equal width & height for circle */
  object-fit: cover;     /* Crop nicely inside the circle */
  border-radius: 50%;    /* Makes it circular */
  box-shadow: 0 0 20px rgba(0,0,0,0.3); /* Soft shadow */
  animation: fadeIn 1.5s ease-in; /* Smooth fade-in */
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Work Hub Layout */
.work-hub {
    text-align: center;
    padding: 2rem;
}

.hub-intro {
    color: #555;
    margin-bottom: 2rem;
}

.work-hub-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.work-card-link {
    text-decoration: none;
    color: inherit;
}

.work-card-hub.no-image {
    width: 200px;
    height: 150px;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    font-weight: bold;
    font-size: 1.2rem;
    color: #1d3c6a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card-hub.no-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}
/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #1d3c6a;
  color: white;
  margin-top: 2rem;
}

footer a {
  color: #ffcc00;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}
.work-card-hub img {
    width: 100%;
    height: 120px;
    object-fit: cover; /* crop car photo nicely */
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* Special styling for logos like Planet Fitness */
.work-card-hub img[alt="Planet Fitness"] {
    object-fit: contain; /* Don't crop logos */
    background: white;   /* Optional, for contrast */
}
.work-card-hub img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.work-card-hub img[alt="Planet Fitness"] {
    object-fit: contain;
    background: white;
}
.work-card-hub {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card-hub:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}
.work-hub {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa; /* Light gray */
}
.work-card-hub small {
    display: block;
    color: #666;         /* subtle gray */
    font-size: 0.85rem;  /* slightly smaller than company name */
    margin-top: 0.2rem;
}
.work-hub {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 3rem 1rem;
}
/* Job Page Layout */
.job-detail {
    padding: 2rem;
    max-width: 900px;
    margin: auto;
    line-height: 1.6;
}

.job-detail h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.job-detail .job-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 2rem;
}

/* Section Spacing */
.job-detail section {
    margin-bottom: 2rem;
}

/* Gallery Styling */
.gallery {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}
/* Job Header Banner */
.job-header {
    background: url("../static/images/NorthStarAutoCar1.jpeg") center/cover no-repeat;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
    margin-bottom: 2rem;
}

/* Job Page Layout */
.job-detail {
    padding: 2rem;
    max-width: 900px;
    margin: auto;
    line-height: 1.6;
}

.job-detail h2, .job-detail h3 {
    margin-bottom: 0.5rem;
}

.job-detail .job-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 2rem;
}

/* Skills as Cards */
.skills-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.skills-cards .card {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    font-weight: bold;
}

/* Gallery Styling */
.gallery {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}
.about-button {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.75rem 1.5rem;
    background-color: #1d3c6a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.about-button:hover {
    background-color: #4b6cb7;
    transform: translateY(-2px);
}

/* ============================= */
/* About Page */
/* ============================= */

.about-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.about-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1d3c6a;
}

.about-container p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #222;
}

/* ============================= */
/* Clickable Squares (Quick Links) */
/* ============================= */

.quick-links {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.quick-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: #1d3c6a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.quick-card h3 {
  margin: 0 0 0.5rem;
}

.quick-card p {
  margin: 0;
  color: #333;
  line-height: 1.5;
  font-size: 0.95rem;
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}

/* Mobile friendly */
@media (max-width: 900px) {
  .quick-links {
    grid-template-columns: 1fr;
  }
}
.city-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
/* ============================= */
/* About Page Upgrades */
/* ============================= */

.about-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 1.5rem 0 2rem;
  color: #222;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}

.about-card h3 {
  margin: 0 0 0.75rem;
  color: #1d3c6a;
}

.about-card ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.about-card li {
  margin-bottom: 0.5rem;
}

.about-goals {
  margin-top: 2.5rem;
  background: #f1f4f8;
  border-left: 6px solid #1d3c6a;
  padding: 1.5rem;
  border-radius: 12px;
}

.about-goals h3 {
  margin-top: 0;
  color: #1d3c6a;
}

/* Make the skills pills look nicer on About */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.skills-grid span {
  background: #f1f3f5;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #1d3c6a;
}

/* Mobile friendly */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.about-container h2 {
  text-align: center;
}

.about-lead {
  text-align: center;
  max-width: 800px;
  margin: 1.5rem auto 2.5rem;
}
.about-container h2 {
  text-align: center;
}
main h2 {
  text-align: center;
}

.projects-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
  max-width: 1100px;
}

.project-card{
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.project-card img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.project-info{
  padding: 14px 14px 16px;
}

.project-info h3{
  margin: 0 0 6px;
  font-size: 18px;
}

.project-info p{
  margin: 0;
  opacity: 0.8;
  font-size: 14px;
}

/* Mobile: stack to 1 column */
@media (max-width: 700px){
  .projects-grid{
    grid-template-columns: 1fr;
  }
}
.projects-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px auto;   /* ← this centers it */
  max-width: 1100px;
}
.project-card img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.project-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f2f2f2; /* placeholder so it doesn't look empty */
}
.projects-wrapper{
  max-width: 1100px;
  margin: 0 auto;
}

.pilldose-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 50px;
}

.pilldose-title{
  margin: 0 0 6px 0;
  font-size: 40px;
}

.pilldose-subtitle{
  margin: 0 0 18px 0;
  opacity: 0.85;
  line-height: 1.5;
}

.pilldose-planning{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px;
}

.pilldose-planning-img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
}

.pilldose-planning-text h2{
  margin: 0 0 10px 0;
}

.pilldose-planning-text p{
  margin: 0;
  line-height: 1.65;
  opacity: 0.92;
}

@media (max-width: 850px){
  .pilldose-planning{
    grid-template-columns: 1fr;
  }
  .pilldose-planning-img{
    height: 220px;
  }
}
.pilldose-section{
  margin-top: 26px;
}

.pilldose-h2{
  margin: 0 0 10px 0;
  font-size: 26px;
}

.pilldose-paragraph{
  margin: 0 0 14px 0;
  line-height: 1.65;
  opacity: 0.92;
  max-width: 85ch;
}

.pilldose-code-wrap{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
}

.pilldose-code-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.pilldose-code-file{
  font-weight: 700;
  opacity: 0.95;
}

.pilldose-btn{
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  color: inherit;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.pilldose-pre{
  margin: 0;
  padding: 16px;
  overflow: auto;
  line-height: 1.55;
  font-size: 13.5px;
  background: rgba(0,0,0,0.10);
}
.pilldose-code-collapsed {
  position: relative;
  max-height: 300px; /* preview height */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.pilldose-code-collapsed.expanded {
  max-height: 2000px; /* large enough to show full code */
}

.pilldose-code-wrap{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.06);
}

.pilldose-code-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.10);
}

.pilldose-code-file{
  font-weight: 700;
}

.pilldose-code-actions{
  display: flex;
  gap: 10px;
}

.pilldose-btn{
  border: 1px solid rgba(0,0,0,0.18);
  background: white;
  padding: 7px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.pilldose-code-box{
  position: relative;
  max-height: 260px;   /* THIS is the restriction */
  overflow: hidden;
}

.pilldose-code-box.expanded{
  max-height: none;    /* expands fully */
}

.pilldose-pre{
  margin: 0;
  padding: 16px;
  overflow: auto;
  line-height: 1.55;
  font-size: 13.5px;
  background: rgba(255,255,255,0.65);
}

.pilldose-fade{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
}.pilldose-code-box {
  max-height: 220px;
  overflow: hidden;
  position: relative;
}

.pilldose-code-box.expanded {
  max-height: none;
}
/* ========================= */
/*      COMPETITION          */
/* ========================= */

.competition-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.competition-item {
  text-align: center;
}

.competition-item img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

.competition-item img:hover {
  transform: scale(1.02);
}

.competition-caption {
  font-size: 14px;
  margin-top: 8px;
  opacity: 0.85;
}
.competition-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: start;
}

.competition-item img {
  width: 100%;
  height: 350px;       /* Forces consistent height */
  object-fit: cover;   /* Crops nicely instead of stretching */
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.project-container{
  max-width: 950px;
  margin: 40px auto;
  padding: 0 20px;
}

.project-links a{
  margin-right: 14px;
  text-decoration: none;
  font-weight: 600;
}

.project-image img{
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 14px 0 18px 0;
  border-radius: 12px;
}

.caliper-details {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.caliper-details h2 {
  margin-top: 50px;
  font-size: 1.8rem;
}

.caliper-details p {
  margin: 15px 0;
  line-height: 1.6;
}

.caliper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.caliper-grid div {
  background: #f4f6f9;
  padding: 20px;
  border-radius: 10px;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  background-color: #1f3a63;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.download-btn:hover {
  background-color: #2c4f85;
}

.caliper-page {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.caliper-page h1 {
  margin-bottom: 30px;
}

.caliper-overview p {
  margin: 15px 0;
  line-height: 1.6;
}

.caliper-images {
  display: flex;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.image-card {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.image-card img {
  width: 100%;
  border-radius: 10px;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.component-grid div {
  background: #f4f6f9;
  padding: 20px;
  border-radius: 10px;
}

.caliper-presentation {
  margin-top: 60px;
}

.presentation-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background-color: #1f3a63;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.presentation-btn:hover {
  background-color: #2c4f85;
}

/* Resume page */
.resume-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  text-align: center;
}

.resume-page h2{
  font-size: 2rem;
  margin: 20px 0 10px;
}

.resume-page p{
  margin: 0 0 18px;
  opacity: 0.85;
}

.resume-buttons{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.btn-outline{
  background: transparent;
  border: 2px solid currentColor;
}

.resume-iframe{
  width: 100%;
  height: 900px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 14px;
}
/* Contact Page */
.contact-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px 80px;
  text-align: center;
}

.contact-page h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-page p {
  margin-bottom: 20px;
}

.contact-card {
  background: #f4f6f9;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  display: inline-block;
  text-align: left;
}

.contact-card p {
  margin: 12px 0;
}

.contact-card a {
  text-decoration: none;
  color: #274472;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}
/* ===========================
   Work Experience Section
=========================== */

.projects-section {
    padding: 60px 8%;
    background-color: #f8f9fb;
}

.projects-title {
    font-size: 2.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.projects-subtitle {
    color: #666;
    margin-bottom: 40px;
}

/* Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Card Styling */
.project-card {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* Image */
.project-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Content Area */
.project-card-content {
    padding: 20px;
}

.project-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-card-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.project-card-cta {
    font-weight: 600;
    color: #1f3c88;
    font-size: 0.9rem;
}

/* Back link styling (detail pages) */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    color: #1f3c88;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}
.project-detail {
    padding: 60px 8%;
    background: #f8f9fb;
    min-height: 70vh;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.project-hero {
    width: 100%;
    max-width: 900px;
    height: 350px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    margin: 20px 0 30px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.project-detail h2 {
    margin-top: 30px;
    font-size: 1.3rem;
}

.project-detail p,
.project-detail li {
    color: #444;
    line-height: 1.6;
}
