body {
    margin: 0px;
    background-image: url("/images/portfolio/portfolio-background.webp");
    background-repeat: repeat-y;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

p, a, li, label, button, input, textarea {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1em;
  line-height: 1.4em;
}

li {
    padding-bottom:10px;
}

h1 {
    font-size: 2.2em;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.1em;
}

h4, h5, h6 {
    font-size: 1em;
}

input, textarea {
    min-height: 20px;
    padding: 5px 7px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

textarea {
    resize: vertical;
}

button {
    margin-top: 10px;
    background: #18395b;
    border: none;
    height: 35px;
    color: white;
    cursor: pointer;
}

figure {
    margin: 0px;
}

figcaption {
    font-size: 14px;
    font-style: italic;
    text-align: center;
    margin-top:5px;
}

.capabilities-section figure img {
  width: 100%;
  height: auto;
  max-width: 100%;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(18,28,42,0.88);
  align-items: center; justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 96vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 40px;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  font-weight: bold;
  z-index: 10001;
}

#projects, #capabilities, #contact {
    scroll-margin-top: 70px;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}


/* Hide mobile nav and hamburger on desktop */
.mobile-nav { display: none; }
.nav-toggle { display: none; }

.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0px 20px;
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    align-items: center;
}

.navbar {
    background: #18395B;
    height: 45px;
    position: sticky;
    flex-basis: unset;
    top: 0px;
    z-index: 5;
}

.nav-brand {
    color: #fff;
    column-gap: 10px;
    align-items: center;
    display: flex;
    flex-direction: row;
    width:35%;
}

.nav-links {
    display: flex;
    color: #fff;
    flex-direction: row;
    width:65%;
    justify-content: space-between;
    padding: 0px;
}

.mobile-nav-links {
    display: none;
}

.nav-link {
    color: #fff;
    text-decoration: none;
}

.content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
    height: 45px;
}

.highlight ul {
    padding-left: 20px;
}

.left-content {
    display: block;
    max-width: 725px;
}

.right-content {
    display: block;
    width: 30%;
}

.sticky {
    position: sticky;
    flex-basis: unset;
    top: 80px;
}

.site-header {
    margin: 20px 0px 20px 0px;
    padding-top: 10px !important;
}

.miro {
    background: white;
    padding: 10px 35px;
    border-radius: 20px;
    border: 1px solid #ddd;
  transition: box-shadow 0.2s, transform 0.3s cubic-bezier(.22,.68,.43,1.2);
  position: relative; /* Required for transform to work as expected */
  z-index: 2;
  will-change: transform;
}

.miro:active {
  cursor: grabbing;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.highlight {
    background: #FFE8D9;
}

.page-title {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
    align-items: center;
}

.page-details {
    margin-top: 20px;
}

.header-content {
    display: flex;
    flex-direction: row;
    column-gap: 30px;
}

.philosophy-section {
    width: 65%;
}

.details-section {
    width: calc(35% - 60px);
}

.homepage-tiles-grid {
    display: flex;
    flex-direction: row;
    column-gap: 40px;
    row-gap: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.tiles-grid {
    display: flex;
    flex-direction: column;
    column-gap: 40px;
    row-gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.tile {
    padding: 15px;
    color: #000;
    display: flex;
    flex-direction: row;
}

#learnings {
    margin-bottom: 0px;
}

.tile:hover {
    background: #7FA2C5;
    color: #EFEFEF;
    cursor: pointer;
    border-radius: 15px;
}

.capabilities-section {
    margin-bottom: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.capability-tile-link {
    width: 100%;
}

.capability-tile-link, a:link {
    text-decoration:none;
}

.projects-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.project-tile-link {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.project-tile {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: calc(100% - 30px)
}

.tile-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 45px;
}

.tile-text {
    margin-left: 20px;
}

.tile-title {
    margin-top: 2px;
    margin-bottom: 0px;
}

.tile-desc {
    margin-top: 5px;
    margin-bottom: 0px;
}

.tile-project-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: auto;
}

.tile-project-text {
    margin-left: 20px;
}

.tile-project-title {
    margin-top: 2px;
    margin-bottom: 0px;
}

.tile-project-desc {
    margin: 0px;
}

.contact-section {
    margin-top: 30px;
}

.contact-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.contact-form {
    width: 100%;
    padding: 0px 100px 30px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-fields {
    display: flex;
    flex-direction: column;
    width:50%;
}

.form-success {
    color: #000000;
    background: #f3f7fa;
    padding: 1em;
    position: absolute;
    z-index: 2;
    font-family: 'Montserrat';
    width: 70%;
    margin: 0 auto;
    text-align: center;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-error {
    color: #B23234;
    background: #f3f7fa;
    padding: 1em;
    position: absolute;
    z-index: 2;
    font-family: 'Montserrat';
    width: 70%;
    margin: 0 auto;
    text-align: center;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.site-footer {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    margin-top: 50px;
}

/* Show hamburger and hide desktop menu on small screens */
@media (max-width: 700px) {
  .desktop-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .mobile-nav {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    width: 100%;
    background: #18395b;
    flex-direction: column;
    z-index: 1000;
  }
  .mobile-nav.open {
    display: flex;
    padding-top: 5px;
    border-top: 1px solid #ddd;
  }
  .mobile-nav span {
    margin: 1.2em 0;
    text-align: center;
  }

}

@media screen and (max-width: 500px)  {
.container {
    padding: 0px 20px;
}

.miro {
    padding: 10px 25px;
}

.header-content {
    flex-direction: column;
    row-gap: 30px;
}

.nav-brand {
    width:65%;    
}

.site-header {
    margin: 20px 0px 20px 0px;
    padding-top: 0px !important;
}

.page-title {
    height: 90px;
}

.philosophy-section {
    width: auto;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.details-section {
    width: auto;
}

.content {
    flex-direction: column;
}

#learnings {
    margin-bottom: 30px;
}

h1 {
   font-size: 1.6em;
}

h3 {
    margin-top: 30px;
}

.left-content {
    width: 100%;
}

.right-content {
    width: 100%;
}

.tiles-grid {
    row-gap: 20px;
}

.form-fields {
    width: 100%;
}

.contact-form {
    padding: 25px 40px;
}

ul {
    padding-left: 25px;
}
    
}
