@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --highlight-color: #DCEBF4;
    --primary-color: #1e7cbb;
    --secondary-color: #315268;
    --accent-color: #D3DFBE;
    --dark-color: #373737;
    --mid-color: #616161;
    --light-color: #d1d1d1;
    --off-white: #F5F5F5;
}

/* ---- Base ---- */
* {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300px;
  font-style: normal;
  font-size: 11pt;
  line-height: 1.6;
  color: var(--dark-color);
}

section {
  margin-left: 7rem;
  margin-right: 7rem;
  padding-bottom: 2rem;
  margin-bottom: 2em;
  border-bottom: var(--light-color) 1px solid;
}

body {

}

a {
  /*text-decoration: none;*/
  color: var(--primary-color);
}

a:hover {
  /*text-decoration: none;*/
  color: var(--primary-color);
}

hr {
  color: #777;
}

h1 {
    padding-top: 10px;
    padding-bottom: 10px;
}

h2 {
    padding-bottom: 20px;
    font-size: 18pt;
    font-weight: 700;
}

h3 {
    font-size: 15pt;
    line-height: 25pt;
    font-weight: 700;
    /* color: var(--secondary-color); */
}

p {
    font-size: 11pt;
}

ul, ol {
    margin-left: 15px;
}

ul li {
    font-size: 10pt;
    padding-left: 15px;
}

ol li {
    font-size: 10pt;
    padding-left: 15px;
}

.subheader {
    color: var(--mid-color);
}

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid #e5e5e5;
}

nav {
  
}

/*nav {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}*/

.home-icons {
    z-index: 100;
    height: 22px;
    width: auto;
}

/* Hero */
.hero {
  /*padding: 4rem 2rem 2rem;*/
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: left;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.hero-img {
  margin-top: 3rem;
  width: 100%;
  height: 50vh;
  object-fit: cover; /* Ensures the image covers the entire space */
  object-position: center center; /* Ensures the image is centered */
}

.role {
  font-size: 0.95rem;
  color: #111;
  margin-bottom: 1rem;
}

.emphasis {
  font-size: 14pt;
  color: #2196f3;
}

.tagline {
  font-size: 1.2rem;
  max-width: 600px;
}

/* Case Studies */
.case-studies {
  /* max-width: ; */
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Card container */
.case-card {
  height: 100%;
  margin: 1rem;
  border-radius: 8px;
  /*border: #c2c2c2 1px solid;*/
}

/* Clickable wrapper */
.case-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease-in, box-shadow 0.3s ease-in;
}

/* Image */
.case-image-wrapper {
  overflow: hidden;
  border-radius: 8px 8px /*0px 0px*/;
  background-color: #f2f2f2;
  transition: transform 0.4s ease-in;
}

.case-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Caption */
.case-caption {
  padding: 1.5rem;
}

.case-title {
  margin-bottom: 0.25rem;
}

.case-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555555;
  margin-bottom: 0.5rem;
}

.case-summary {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.75rem;
}

.case-cta {
  /*font-weight: 600;
  font-size: 0.95rem;*/
  display: inline-block;
  transition: transform 0.4s ease-in;
}

/* Hover & focus states */
@media (hover: hover) {
  .case-image-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  }

  .case-cta:hover {
    transform: scale(1.03);
  }

}

/* Keyboard focus */
.case-card:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}


/* Credibility */
.credibility {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
  font-size: 0.9rem;
  color: #666;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #ffffff;
  background-color: #1a1a1a;
}

.footer a {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .case-card {
    grid-template-columns: 1fr;
  }
}

/* ---- Layout ---- */
.case-study {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1rem 4rem;
}

.intro {
  margin-bottom: 3rem;
}

.summary {
  max-width: 700px;
  font-size: 1.1rem;
}

/* ---- Image Grid ---- 
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.image-grid img {
  width: 100%;
  cursor: zoom-in;
  border-radius: 6px;
  border: 1px solid #ddd;
}*/

.zoomable {
  cursor: pointer;
}

/* ---- Modal ---- */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.image-modal.active {
  display: flex;
}

/* Modal surface */
.modal-shell {
  position: relative;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 1.5rem;
  width: 95vw;
  max-width: 1200px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Image viewport */
.image-viewport {
  width: 100%;
  height: 70vh;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.image-viewport {
  cursor: grab;
  overflow: hidden;
}

.image-viewport img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: all; /* ensure cursor works */
  transition: transform 0.1s ease; /* smooth pan */
}

/* While panning, apply to image */
.image-viewport img.panning {
  cursor: grabbing !important; /* force grabbing cursor */
}

.image-viewport img {
  max-width: 100%;
  max-height: 100%;
  cursor: grab;
  user-select: none;
  transform-origin: center;
}

.image-viewport img:active {
  cursor: grabbing;
}

/* Caption */
.caption {
  margin: 1rem 0 0.5rem;
  max-width: 900px;
  font-size: 0.95rem;
  color: #333;
  text-align: center;
}

/* Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 2rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  border-radius: 50%;
}

.nav-arrow.left {
  left: -1.2rem;
}

.nav-arrow.right {
  right: -1.2rem;
}

/* Close */
.close-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100%;
  color: #1a1a1a;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 50;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

#sidebar li {
  margin-bottom: 1rem;
}

#sidebar a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

#sidebar a.active {
  color: #2196f3;
}

/* Integrated progress bar along right edge of sidebar */
#progress-bar-container {
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: rgba(255,255,255,0.1);
}

#progress-bar {
  width: 100%;
  height: 0%;
  background-color: #2196f3;
  transition: height 0.25s ease-out;
}

/* Navbar */

.navbar-brand {
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--primary-color);
}

.nav-link {
  font-size: 0.95rem;
  margin-left: 1.5rem;
  color: #111;
}

.nav-link:hover {
  text-decoration: underline;
}

/* Base navbar */
.portfolio-navbar {
  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background-color: transparent;
}

/* When scrolled */
.portfolio-navbar.scrolled {
  background-color: rgba(248, 248, 248, 0.95);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* When hidden (scrolling down) */
.portfolio-navbar.hidden {
  transform: translateY(-100%);
}

