@import "https://fonts.googleapis.com/css2?family=Geologica:wght@200&display=swap";

body {
  font-family: "Geologica", sans-serif;
  font-style: normal;
}

/* Style page content */
.main {
  margin-left: 20%; /* Same as the width of the sidenav */
  font-size: 22px; /* Increased text to enable scrolling */
  line-height: 35px;
  padding: 10%;
}

.sidenav {
  height: 100%;
  width: 20%;
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  box-shadow: 2px 2px 20px #F0F3F4;
  overflow-x: hidden;
  
}

.navblock {
  margin:auto;
  width: 100%;
  height: 90%;
  display: flex;
}

.navblock_text {
  margin: auto;
  width: 100%;
  padding-top: 15%;
  padding-bottom: 15%;
}

.navblock_text a {
  padding: 26px 16px 26px 16px;
  text-decoration: none;
  text-align: center;
  font-size: 25px;
  color: #818181;
  display: block;
}

.navblock_text a:hover {
  color: #CFD8DC;
}

.footer {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  color: #818181;
  text-align: center;
}

.about_accent {
  color:  green;
}

.resume_accent {
  color:  green;
}

.research_accent {
  color:  #E74C3C;
}

.blog_accent {
  color:  #8E44AD;
}

a {
  color: #3498DB;
  text-decoration: none;
}

.about_photo{
  display: block;
  margin-top: 5%;
  width: 250px;
  height:250px;
  object-fit:cover;
  border-radius:50%;
  margin-left: auto;
  margin-right: auto;
}

.about_logo{
  display: block;
  width: 40%;
  margin-left: auto;
  margin-right: auto;
}

.about_text {
  text-align: center;
}

.about_header {
    /* font-family: 'Permanent Marker', cursive;  */
	color: #f1c40f;
  }

.about_links {
  text-align: center;
  padding: 5% 5% 5% 5%;
}

.portfolio_accent {
  color:  #F1C40F;
}

.portfolio_image {
  max-width: 300px;
  max-height:300px;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.portfolio-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.portfolio-container > div {
  background-color: white;
  width: 50%;
  margin: 4% 0% 4% 0%;
  min-height: 20vh;
  justify-content: center;
  position: relative;
}

.portfolio-container_text {
  width: 90%;
  position: absolute;
  text-align: left;
}

.portfolio-container_image {
  width: 90%;
  position: absolute;
  text-align: center;
  color: #8E44AD;
}

.blog-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.blog-container > div {
  background-color: white;
  box-shadow: 2px 2px 20px #EAECEE;
  width: 45%;
  margin: 5% 0% 5% 0%;
  min-height: 25vh;
  line-height: 60px;
  font-size: 25px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blog_text {
  width: 90%;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.blog_date {
  width: 95%;
  padding-right: 5%;
  font-size: 20px;
  color: #CFD8DC;
  text-align: end;
  margin-block-start: 0em;
  margin-block-end: 0em;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    background: white;
    width: 100%; /* Full width */
    padding: 20px 25px;
    height: 40px; /* Fixed height for header */
}

.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #818181;
    margin: 6px 0;
    transition: 0.3s;
}

/* Hamburger animation classes */
.change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
}

.sidenav.active {
    left: 0 !important;
}

.no-scroll {
    overflow: hidden;
    position: fixed;
}

.portfolio_iframe {
    max-width: 100%;
    width: 560px;
    height: 315px;
    border-radius: 15px; /* This rounds the corners */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
  }

.portfolio_hero {
    padding-right: 20%;
}

/* Update your media query */
@media screen and (max-width: 1100px) {
    .hamburger-menu {
        display: block;
    }

    .sidenav {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 50px; /* Start below the header */
        left: -100%;
        transition: left 0.2s ease-in-out;
        background: white;
    }

    .sidenav.active {
        left: 0; /* Slide in */
    }

    .sidenav a {
        text-align: center;
        padding: 15px 25px;
    }

    .main {
        margin-left: 0;
        padding: 20% 6% 20% 6%;
        font-size: 18px;
    }

    .portfolio_image {
        display: block;
        max-width: 80%;
    }

    .navblock_text a {
        padding: 16px;
    }

    .footer {
        display: none;
      }

    .blog-container > div {
        width: 100%;
        min-height: 30vh;
        margin: 10% 0% 10% 0%;
    }
    .portfolio-container > div {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .portfolio_hero {
        padding-right: 0%;
    }
}


/* Blog cards with thumbnail */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
  margin-top: 10px;
}

/* Card */
.blog-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

/* Make entire card clickable */
.blog-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-thumb {
  width: 280px;        /* fixed small width */
  height: 280px;       /* fixed small height */
  object-fit: cover;   /* crop image nicely */
  border-radius: 4px;  /* optional: rounded corners */
  margin: 20px;        /* spacing inside the card */
}

/* content should not be the positioned ancestor */
.blog-content {
  /* remove any `position: relative;` here if present */
  position: static;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* date pinned to top-right corner of the card */
.blog-date {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 13px;
  color: #9aa7b2;
  z-index: 10;          /* keep it above the thumbnail */
  white-space: nowrap;
}

/* Title */
.blog-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  color: #1479b8; /* blue title like your screenshot; change if needed */
  font-weight: 500;
  text-align: left;
}

/* Hover */
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Responsive: stack thumb on small screens */
@media (max-width: 520px) {
  .blog-link {
    flex-direction: column;
  }
  .blog-thumb {
    width: 100%;
    height: 160px;
  }
  .blog-content {
    padding: 18px;
  }
  .blog-date {
    right: 14px;
    top: 10px;
  }
}
