/* ====================== */
/*   BASE RESET & TYPE    */
/* ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background-color: #fff;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  padding: 0;
}

h1 {
  font-family: 'Newsreader', serif;
  font-size: 55px;
  font-weight: 350;
  text-align: center;
  margin: 20px 0;
}
h2 {
  font-family: 'Newsreader', serif;
  font-size: 45px;
  text-align: center;
  margin: 20px 0;
}
h3 {
  font-family: 'Inter', sans-serif;
  font-size: 25px;
  margin: 20px 0 10px;
}
h4 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  margin-bottom: 20px;
}
h5 {
  font-family: 'Newsreader', serif;
  font-size: 45px;
  margin: 20px 0;
}

/* ====================== */
/*   LINKS & BUTTONS      */
/* ====================== */
a {
  color: inherit;
  text-decoration: none;
}
.green-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #016B01;
  color: #fff;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  text-align: center;
}
.green-button:hover {
  background-color: #005c00;
}

/* ====================== */
/*   HEADER & NAVIGATION  */
/* ====================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
}
.logo {
  font-family: 'Newsreader', serif;
  font-size: 32px;
  font-weight: 500;
  color: #016B01;
}
.page-links {
  display: flex;
  align-items: center;
}
.page-links a {
  position: relative;
  padding: 10px;
  margin-left: 20px;
  color: #000;
  z-index: 1;
}
:root {
  --hover-bg-width: 110px;
}
.page-links a:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--hover-bg-width);
  height: 100%;
  background: url('./Images/Rectangle_20.png') center/var(--hover-bg-width) no-repeat;
  z-index: -1;
}

/* ====================== */
/*   FLEX UTILS & GRIDS   */
/* ====================== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}
.grid-item {
  text-align: left;
}
.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.grid-item p {
  font-size: 14pt;
  line-height: 1.5;
}

/* Business case link hover effect */
.grid-item h3 a {
  display: inline-block;
  padding: 0 5px;
  position: relative;
}
.grid-item h3 a:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('Images/Rectangle_20.png') center/cover no-repeat;
  z-index: -1;
}

/* ====================== */
/*   HOME PAGE STYLES     */
/* ====================== */
.intro-and-images,
.image-grid-home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.image-left,
.image-right {
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
}
.text-and-button {
  flex: 1;
  text-align: center;
  margin: 0 20px;
}
.giant_intro {
  font-family: 'Newsreader', serif;
  font-size: 50px;
  font-weight: 450;
  text-align: center;
  margin: 20px 0;
}
.image-grid-home img {
  width: calc(50% - 10px);
  margin-right: 10px;
  object-fit: contain;
}
.image-grid-home img:last-child {
  margin-right: 0;
}

/* ====================== */
/*   THESIS & PYTHON BANNER */
/* ====================== */
.python-projects-container {
  background-image: url('Images/Polygon 37.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 1200px;
  margin: 20px auto;
  padding: 10px 0;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.python-projects,
.section-title {
  margin: 0;
}

/* ====================== */
/*   ABOUT ME PAGE STYLES  */
/* ====================== */
.about-me-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1000px;
  margin: 40px auto;
  gap: 20px;
  padding: 0 20px;
}
.about-image,
.about-content {
  flex: 1 1 300px;
}
.about-image {
  max-width: 430px;
  width: 100%;
  height: auto;
}
.about-title {
  font-family: 'Newsreader', serif;
  font-size: 50px;
  margin-bottom: 19px;
}
.about-list p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Bottom image grid on About Me */
.image-grid-about {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 10%;
}
.image-grid-about img {
  width: calc(50% - 10px);
  margin-bottom: 20px;
}

/* ====================== */
/*   RESUME & LINKS       */
/* ====================== */
.resume-download {
  text-align: center;
  margin: 40px auto;
  max-width: 1200px;
  padding: 20px;
}
.resume-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* ====================== */
/*   PHOTO JOURNAL STYLES  */
/* ====================== */
.photo-journal {
  padding: 60px 10vw;
  background-color: #f9f9f9;
}
.gallery-title {
  font-family: 'Newsreader', serif;
  font-size: 2rem;
  font-weight: 600;
  margin: 40px 0 20px;
  color: #333;
  border-bottom: 2px solid #ccc;
  display: inline-block;
  padding-bottom: 5px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Grey nav boxes (gridweb) */
.gridweb-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
}
.nav-box {
  padding: 20px 40px;
  background-color: #808080;
  color: #fff;
  border-radius: 5px;
  font-size: 18px;
}
.nav-box:hover {
  background-color: #696969;
}

/* ====================== */
/*   PDF FLIP CONTROLS    */
/* ====================== */
.pdf-container {
  position: relative;
  display: inline-block;
}
.pdf-container img {
  width: 100%;
  height: auto;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3em;
  color: #020202;
  /* 1px white outline in WebKit browsers */
  -webkit-text-stroke: 1px #fff;
  
  /* fallback outline via text‑shadow for other browsers */
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}
.arrow-left { left: 10px; }
.arrow-right { right: 10px; }
.pdf-container:hover .arrow { opacity: 1; }
.arrow:hover { opacity: 1; }

/* ====================== */
/*   SECTION SEPARATORS    */
/* ====================== */
.landscape-image,
.landscape-image-2,
.spacer-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ====================== */
/*   RESPONSIVE QUERIES    */
/* ====================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 10px;               /* less space around the header */
  }

  .page-links {
    display: flex;
    flex-wrap: nowrap;           /* keep them on one line */
    justify-content: space-around; /* even spacing across the width */
    gap: 4px;                    /* smaller gap between links */
    padding: 0 5px;              /* small side insets */
    margin-top: 8px;             /* tighten vertical spacing */
  }

  .page-links a {
    flex: 1;                     /* evenly distribute width */
    text-align: center;
    padding: 4px 6px;            /* slimmer touch targets */
    white-space: nowrap;
    font-size: 14px;             /* optional: shrink text a bit */
  }

  .page-links a:hover::after {
    /* if you’re still using the hover bg, adjust its width too */
    background-size: 80px auto;  /* narrower highlight */
    width: 80px;
    height: 100%;                /* keep full link height */
    background-image: url('./Images/Rectangle_20.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100px auto; 
    z-index: -1;
  }
  
  .intro-and-images,
  .image-grid-home,
  .about-me-container {
    flex-direction: column;
    margin: 20px auto;
    padding: 0 10px;
  }
  .image-left,
  .image-right,
  .about-image,
  .about-content {
    width: 100%;
    max-width: none;
  }
  .image-grid-about img,
  .grid-container {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  
  .image-grid-about img,
  .image-grid-resume img,
  .image-grid img,
  .landscape-image,
  .landscape-image-2,
  .spacer-image {
    max-width: 100%;
  }

  .top-section {
    min-height: 300px;
  }
  .polygon-left,
  .polygon-right {
    top: 5px;
    height: calc(100% - 10px);
  }
  .giant_intro {
    font-size: 32px;
  }
  /* Stack bottom images vertically on mobile */
  .bottom-section {
    flex-wrap: wrap;
    margin: 20px 5%;
  }
  .bottom-section img {
    margin-bottom: 20px;
    max-width: 100%;   /* fill the container’s width */
    max-height: 60vh;  /* don’t exceed viewport height */
  }
  .green-button {
    padding: 10px 20px;  /* restore original padding */
  }
  
}






