@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/*home page*/
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}

h1, h2, h3 {
  font-weight: 700;
}

p {
  font-weight: 400;
}

.main-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home-page {
  background-color: #cde1ec;
  min-height: 100vh;
  padding: 40px 0;
}

.home-wrapper {
  max-width: 1200px;   
  margin: 70px auto;
  padding: 0 20px;
}

.home-card {
  background: white;
  padding: 80px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.home-card img {
  border-radius: 10px;
}

.home-card p {
  font-size: 17px;
  line-height: 1.7;
}

.home-card h2 {
  font-size: 48px;   /* increase size */
  font-weight: 600;
  padding: 40px 60px 60px 60px;
  text-align: center;
  margin-bottom: 25px; /* space below name */
}

.columns {
  display: flex;
  align-items: center;
  gap: 50px;
}

/*headshot*/
.columns img {
  max-width: 320px; 
  width: 100%;
  border-radius: 8px;
}

/*name*/
.home-name {
  font-size: 42px;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  margin-top: 0; 
  color: #000 !important;
  margin-bottom: 40px;
}

.columns .column:last-child {
  text-align: left;
}

/*About text spacing */
.columns .column p {
  font-size: 18px;
  line-height: 1.7;
}

.columns h3 + h3,
.columns h3 + h2 {
  margin-top: 10px;
}

/*Navbar*/
.navbar {
  background-color: white !important;
  border-bottom: none;
  margin-top: 5px; 
  margin-bottom: 5px;
}

.navbar-nav > li > a {
  font-size: 18px;
  font-weight: 600;
  padding: 14px 18px;
  color: #000 !important;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  color: #8ec1da !important;
  background-color: transparent !important;
  border-bottom: 2px solid #8ec1da !important;
}

.navbar-nav > .active > a,
.navbar-nav > .active > a:hover,
.navbar-nav > .active > a:focus {
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom: 2px solid #000;  
  color: #000 !important;
}

/*project page*/
.project-page {
  background-color: #cde1ec;
  min-height: 100vh;
  padding: 30px 0 60px 0;
}

.project-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-card-page {
  background: white;
  padding: 45px 60px 60px 60px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

h1.title {
  text-align: center;
  margin-bottom: 20px;
}

.gallery {
  font-size: 42px;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  color: #000 !important;
  font-weight: 700;
}

/*About project page text*/ 
.project-intro {
  text-align: center;
  font-size: 18px;
  margin: 30px auto 40px auto;
  max-width: 800px;
  line-height: 1.6;
  color: #000;
}

/*Gallery layout*/
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  max-width: 9000px;
  margin: 0 auto 50px auto;
}

/*Project cards*/
.project-card {
  text-align: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

/*Card hover (lift effect)*/
.project-card:hover {
  transform: translateY(-3px);
}

/*project images*/
.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/*project image hover */
.project-card:hover img {
  opacity: 0.9;
}

/*project titles */
.project-card p {
  font-size: 22px;
  font-weight: 600;
  margin-top: 14px;
  color: #000;
}

/*project display */
.project-display {
  max-width: 1000px;
  margin: 20px auto 40px auto;
  padding: 0 20px;
}

/*Project titles when displayed*/
.project-display h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin: 10px 0 25px 0;
}

/*Back button*/
.back-button {
  margin-bottom: 25px;
  padding: 8px 16px;
  font-size: 15px;
  border: 1px solid #ccc;
  background: white;
  color: #333;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/*Back button hover*/
.back-button:hover {
  border-color: #555;
  background-color: #f5f5f5;
}

/* Mobile homepage */
@media (max-width: 768px) {

  .home-page {
    padding: 20px 0;
  }

  .home-wrapper {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 15px;
  }

  .home-card {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .home-name {
    display: block;
    text-align: center;
    font-size: 32px;
    margin-bottom: 25px;
  }

  .columns {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 25px;
  }

  .columns .column {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .columns img {
    max-width: 260px;
    width: 100%;
    display: block;
    margin: 0 auto;
  }

  .columns .column:last-child {
    text-align: left !important;
  }

  .columns .column p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .project-gallery {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 100%;
    padding: 0 15px;
  }

  .project-card img {
    height: 200px;
  }

  .project-card p {
    font-size: 18px;
  }

  .project-display {
    margin: 20px auto;
    padding: 0 15px;
  }

  .project-display h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .project-display p {
    font-size: 16px;
    line-height: 1.6;
  }

  .project-display iframe {
    height: 500px;   
  }

  .back-button {
    font-size: 14px;
    padding: 6px 12px;
    margin-bottom: 15px;
  }
}