/* RESET STYLES */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* LAYOUT STYLES */
body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #303030;
  background: #e7e7e7;
  overflow-x: hidden;
}

header {
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
}


header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  color: #333;
  letter-spacing: -1px;
  padding: 30px;
}

header h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: normal;
  line-height: 1.3;
  color: #777;
  letter-spacing: -1px;
}
.inner {
  width: 1000px;
  max-width: 90%;
  margin: 0 auto;
}

.button {
  border-radius: 4px;
  background-color: #ffffff;
  border: none;
  color: rgb(0, 0, 0);
  text-align: center;
  font-size: 1em;
  padding: 20px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 15px;
  margin-bottom: 35px;
}

.button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
  margin-bottom: 15px;
}

.button span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.button:hover span {
  padding-right: 25px;
}

.button:hover span:after {
  opacity: 1;
  right: 0;
}

.intro-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 20px;
  text-align: center;
  padding: 40px 0;
  max-width: 70%;
  margin: 0 auto;
}

.profile-image {
  border-radius: 50%;
  width: 200px;
  height: auto;
}

.intro-text {
  text-align: left;
}

.intro-text p {
  font-size: 18px;
  margin-bottom: 10px;
}

code, pre {
  margin-bottom: 30px;
  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal;
  font-size: 14px;
  color: #222;
}

code {
  padding: 0 3px;
  background-color: #f2f2f2;
  border: solid 1px #ddd;
}

pre {
  padding: 20px;
  overflow: auto;
  color: #f2f2f2;
  text-shadow: none;
  background: #303030;
}
pre code {
  padding: 0;
  color: #f2f2f2;
  background-color: #303030;
  border: none;
}

ul, ol, dl {
  margin-bottom: 20px;
}

/* COMMON STYLES */
img {
  max-width: 100%;
}

hr {
  height: 1px;
  padding-bottom: 1em;
  margin-top: 1em;
  line-height: 1px;
  background: transparent url('../images/hr.png') 50% 0 no-repeat;
  border: none;
}

strong {
  font-weight: bold;
}

em {
  font-style: italic;
}

table {
  width: 100%;
  border: 1px solid #ebebeb;
}

th {
  font-weight: 500;
}

td {
  font-weight: 300;
  text-align: center;
  border: 1px solid #ebebeb;
}

form {
  padding: 20px;
  background: #f2f2f2;

}

h1 {
  font-size: 32px;
}

h2 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: bold;
  color: #303030;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #303030;
}

h4 {
  font-size: 16px;
  font-weight: bold;
  color: #303030;
}

h5 {
  font-size: 1em;
  color: #303030;
}

h6 {
  font-size: .8em;
  color: #303030;
}

p {
  margin-bottom: 20px;
  font-weight: 300;
}

a {
  text-decoration: none;
}

p a {
  font-weight: 400;
}

blockquote {
  padding: 0 0 0 30px;
  margin-bottom: 20px;
  font-size: 1.6em;
  border-left: 10px solid #e9e9e9;
}

ul li {
  list-style-position: inside;
  list-style: disc;
  padding-left: 20px;
}

ol li {
  list-style-position: inside;
  list-style: decimal;
  padding-left: 3px;
}

dl dt {
  color: #303030;
}

footer {
  padding-top: 20px;
  padding-bottom: 30px;
  margin-top: 40px;
  font-size: 13px;
  color: #303030;
  background: transparent url('../images/hr.png') center top no-repeat;
  text-align: center; /* Center the text */
}

footer a {
  color: #666;
}

footer a:hover {
  color: #444;
}

.projects-section,
.insights-section {
  width: 70%;
  margin: 0 auto;
}

.projects-section .project-cards,
.insights-section .insights-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  grid-gap: 30px;
  margin-bottom: 30px;
}

.projects-section .project-card,
.insights-section .insights-card {
  position: relative;
  max-width: 100%; /* Set the maximum width relative to the display */
  height: 400px;
  background-color: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box; /* Include padding in the total width */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the title and image vertically */
  justify-content: center; /* Center the title and image horizontally */
  padding: 20px; /* Add padding around the card */
}

.projects-section .project-card h3,
.insights-section .insights-card h3 {
  margin-top: 0; /* Remove the default margin for the title */
  text-align: left; /* Align the title to the left */
  padding-left: 20px; /* Add left padding to the title */  
}

.projects-section .project-card img,
.insights-section .insights-card img {
  width: auto;
  max-height: 90%;
  max-width: 95%;
  object-fit: cover;
  margin-top: auto;
  margin-bottom: auto;
}

.projects-section .project-card video,
.insights-section .insights-card video {
  width: auto;
  max-height: 90%;
  max-width: 95%;
  object-fit: cover;
  margin-top: auto;
  margin-bottom: auto;
}

.projects-section .project-card-overlay,
.insights-section .insights-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}


.projects-section .project-card:hover .project-card-overlay,
.insights-section .insights-card:hover .insights-card-overlay {
  opacity: 1;
}

.projects-section .project-card-overlay {
  display: none;
}

.projects-section .project-card:hover img,
.insights-section .insights-card:hover img {
  opacity: 0.5;
}

.projects-section .project-card:hover .project-card-overlay,
.insights-section .insights-card:hover .insights-card-overlay {
  display: flex;
}

.section-button {  
  display: block;
  width: 200px;
  border-radius: 4px;
  background-color: #ffffff;
  border: none;
  color: rgb(0, 0, 0);
  text-align: center;
  font-size: 1em;
  padding: 20px;
  transition: all 0.5s;
  cursor: pointer;  
  margin: 0 auto;
  margin-bottom: 15px;
}

.section-button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.section-button span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.section-button:hover span {
  padding-right: 25px;
}

.section-button:hover span:after {
  opacity: 1;
  right: 0;
}

.ag-format-container {
  width: 1160px;
  margin: 0 auto;

  position: relative;
}

.ag-timeline-block {
  padding: 300px 0;
}

.ag-timeline_item {
  margin: 0 0 50px;
  position: relative;
}

.ag-timeline_item:nth-child(2n) {
  text-align: right;
}

.ag-timeline {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.ag-timeline_line {
  width: 4px;
  background-color: rgba(0, 0, 0, 0.7);

  position: absolute;
  top: 2px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);

  overflow: hidden;

  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
}

.ag-timeline_line-progress {
  width: 100%;
  height: 20%;
  background-color: #666;
}

.ag-timeline-card_box {
  padding: 0 0 20px 50%;
  border-color: #666;
}

.ag-timeline_item:nth-child(2n) .ag-timeline-card_box {
  padding: 0 50% 20px 0;
}
.ag-timeline-card_point-box {
  display: inline-block;
  margin: 0 14px 0 -28px;
}
.ag-timeline_item:nth-child(2n) .ag-timeline-card_point-box {
  margin: 0 -28px 0 14px;
}
.ag-timeline-card_point {
  height: 50px;
  line-height: 50px;
  width: 50px;
  border: 3px solid #444;
  background-color: #FFF;
  color: #444;
  text-align: center;

  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
}
.js-ag-active .ag-timeline-card_point {
  color: #FFF;
  background-color: #444;
}
.ag-timeline-card_meta-box {
  display: inline-block;
}
.ag-timeline-card_meta {
  margin: 10px 0 0;

  font-weight: bold;
  color: #444;
}
.ag-timeline-card_item {
  display: inline-block;
  width: 45%;
  margin: -77px 0 0;
  background-color: #444;

  opacity: 0;

  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;

  -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  -moz-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  -o-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);

  -webkit-transition: -webkit-transform .5s, opacity .5s;
  -moz-transition: -moz-transform .5s, opacity .5s;
  -o-transition: -o-transform .5s, opacity .5s;
  transition: transform .5s, opacity .5s;

  position: relative;
}
.ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item {
  -webkit-transform: translateX(-200%);
  -moz-transform: translateX(-200%);
  -ms-transform: translateX(-200%);
  -o-transform: translateX(-200%);
  transform: translateX(-200%);
}
.ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
  -webkit-transform: translateX(200%);
  -moz-transform: translateX(200%);
  -ms-transform: translateX(200%);
  -o-transform: translateX(200%);
  transform: translateX(200%);
}
.js-ag-active.ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item,
.js-ag-active.ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
  opacity: 1;

  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
}
.ag-timeline-card_arrow {
  height: 18px;
  width: 18px;
  margin-top: 20px;
  background-color: #444;

  z-index: -1;
  position: absolute;
  top: 0;
  right: 0;

  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
.ag-timeline_item:nth-child(2n+1) .ag-timeline-card_arrow {
  margin-left: calc(-18px / 2);
  margin-right: calc(-18px / 2);
}
.ag-timeline_item:nth-child(2n) .ag-timeline-card_arrow {
  margin-left: -10px;

  right: auto;
  left: 0;
}
.ag-timeline-card_img {
  width: 100%;
}
.ag-timeline-card_info {
  padding: 20px 30px;
}

.ag-timeline-card_buttons {
  margin-top: 40px; /* Adjust this value as needed */
}


.ag-timeline-card_desc {
  line-height: 1.45;

  font-size: 16px;
  color: #FFF;
  text-align: left;  
}



/* The hero image */
.hero-image-main {
  background: url(../images/hero.png) 0 0 no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none; /* Remove the border */
  box-shadow: none; /* Remove the box shadow */  
}

/* Place text in the middle of the image */
.hero-text {
  color: white;
  text-shadow: -1px -1px 2px rgba(0, 0, 0, 0.5),
               1px -1px 2px rgba(0, 0, 0, 0.5),
               -1px 1px 2px rgba(0, 0, 0, 0.5),
               1px 1px 2px rgba(0, 0, 0, 0.5),
               0px 0px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px; /* Add margin below the title */
}

.hero-container {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background-color: transparent; /* Remove the background color */
  border: none; /* Remove the border */
  box-shadow: none; /* Remove the box shadow */
}

/* Style the scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent; /* Make the track transparent */
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px; /* Add border-radius for a rounded handle */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}


@media (max-width: 1200px) {
  .button {
    display: block;
    margin-bottom: 10px;
  }
}

@media (max-width: 800px) {
  .projects-section,
  .insights-section,
  .intro-container {
    width: 98%;
  }
}

@media only screen and (max-width: 979px) {
  .ag-timeline_line {
    left: 30px;
  }

  .ag-timeline_item:nth-child(2n) {
    text-align: left;
  }

  .ag-timeline-card_box,
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_box {
    padding: 0 0 20px;
  }
  .ag-timeline-card_meta-box {
    display: none;
  }
  .ag-timeline-card_point-box,
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_point-box {
    margin: 0 0 0 8px;
  }
  .ag-timeline-card_point {
    height: 40px;
    line-height: 40px;
    width: 40px;
  }
  .ag-timeline-card_item {
    width: auto;
    margin: -65px 0 0 75px
  }
  .ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item,
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
    -webkit-transform: translateX(200%);
    -moz-transform: translateX(200%);
    -ms-transform: translateX(200%);
    -o-transform: translateX(200%);
    transform: translateX(200%);
  }
  .ag-timeline_item:nth-child(2n+1) .ag-timeline-card_arrow {
    right: auto;
    left: 0;
  }
  .ag-timeline-card_title {
    display: block;
  }
  .ag-timeline-card_arrow {
    margin-top: 12px;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
    width: 96%;
  }

  .ag-timeline-card_img {
    height: auto;
    width: auto;
  }
}

@media only screen and (max-width: 639px) {
  .ag-timeline_title {
    font-size: 60px;
  }

  .ag-timeline-card_info {
    padding: 10px 15px;
  }
  .ag-timeline-card_desc {
    font-size: 14px;
  }
}

@media only screen and (max-width: 479px) {

}

@media (min-width: 768px) and (max-width: 979px) {
  .ag-format-container {
    width: 750px;
  }

}

@media (min-width: 980px) and (max-width: 1161px) {
  .ag-format-container {
    width: 960px;
  }

}