/* ==========================================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
  --bg: #0b0e10;
  --bg-soft: #12161a;
  --text: #c0c0c0;
  --text-muted: #929292;
  --accent: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --why: #efa008;
}

* { box-sizing: border-box; }

html {

  scroll-behavior: smooth;

}

section {

  scroll-margin-top: 100px; 

}

body {
  margin: 0;
  font-family: 'Noto', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 { margin: 0 0 1rem 0; font-weight: 700;}
h1 { font-size: 2.6rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.5rem; }

a { color: var(--text); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--why); }

img { width: 100%;}

figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

figcaption {
	text-align: center;
	margin-top: 1rem;
	font-size: .8rem;
}

figcaption.singlefig{
  grid-column: 1 / 5
}

/* HEADER & NAV */
header {
  padding-bottom: 64px;
}

.hero-under {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
  gap: 16px;
}

.hero-title h1 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.main-nav { display: flex; gap: 8px; }

/* 1. Dropdown Logic */
.dropdown {
  position: relative;
  display: inline-block;
  /* Ensure the dropdown area extends slightly below the link */
  padding-bottom: 15px; 
  margin-bottom: -15px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1a1f24;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
  z-index: 1000;
  border: 1px solid var(--border);
  border-radius: 4px;
  
  /* Pull the menu up so it touches the bottom of the "Case Studies" link */
  top: 100%; 
  left: 0;
  margin-top: -5px; 
}

/* This keeps the menu open while your mouse is in the "gap" */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-muted);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--why); /* Your yellow accent */
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* 2. Modal/Popup Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: #1a1f24;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  max-width: 400px;
  text-align: center;
}

.modal-box h3 { margin-top: 0; color: var(--why); }
.modal-box p { color: var(--text-muted); line-height: 1.6; }

.modal-btn {
  margin-top: 20px;
  padding: 10px 30px;
  background: var(--why);
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

/* Adjust separator spacing */
.nav-separator { margin: 0 10px; color: var(--border); }

/* ==========================================================================
   2. HOMEPAGE (INDEX.HTML) STYLES
   ========================================================================== */
.cases {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 96px;
}

.card {
  background: #072530;
  background: linear-gradient(180deg, rgb(24, 33, 41) 0%, rgb(20, 20, 20) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  height: 100%;
  padding: 8px 32px 32px 32px;
}

.card-1 {
  grid-column: 1 / 5;
  display: grid;
  grid-template-columns: 30% auto;
  align-items: center;
}

.card-1 .card-image {
  order: 2;
}

.card-2 {
  grid-column: 5 / 7;
}

.card-3 {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

.card-4 {
  grid-column: 3 / 5;
  grid-row: 2 / 3;
}

.card-5 {
  grid-column: 5 / 7;
  grid-row: 2 / 3;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-image {
  /* height: 180px; */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-content p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

.btn {
  align-self: flex-start;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  margin-top: auto;
}

/* LOGO WALL */
.logos { background: #07090b; padding: 64px 24px; margin-bottom: 96px; }
.logos-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 32px;
  align-items: center;
  opacity: 0.6;
}
.logos-grid img { width: 100%; max-width: 70px; filter: grayscale(1); }

/* ABOUT SECTION */
.about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 120px;
}
.about img { width: 100%; border-radius: 16px; border: 1px solid var(--border); }

/* FOOTER */
footer {
  padding: 20px 0 40px;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
}

footer .container {
  max-width: 900px;
}

.footer-cont {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 60px;
}

.footer-details {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.footer-details a, .footer-details span {
  display: block; /* Moves the link below the label for a cleaner look */
  color: var(--text);
  text-decoration: none;
  text-transform: none; /* Keeps email/linkedin lowercase */
  font-size: 1.1rem;
  letter-spacing: 0;
  transition: color 0.3s ease;
}


.footer-details a:hover {
  color: var(--why);
}

.footer-tc {
  font-size: 0.75rem;
  color: #666;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: center;
}

/* Base style for Material Icons */
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 1, /* This makes them "Filled" */
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
  font-size: 22px;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-icon-link {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}

/* Hover States */
.footer-icon-link:hover {
  color: var(--why);
}

.footer-icon-link:hover .material-symbols-outlined {
  color: var(--why);
  transform: scale(1.1);
  /* Optional: You could even transition from Outlined to Filled on hover! */
  /* font-variation-settings: 'FILL' 1, 'wght' 400; */
}

/* Mobile Tweaks */
@media (max-width: 600px) {
  .footer-cont {
    flex-direction: column;
    gap: 20px;
  }
}

/* GCT-STYLE DESIGN DECISION BOXES */
.prompt-note {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1a1f24; /* Darker background to stand out */
  overflow: hidden;
}

.prompt-note summary {
  cursor: pointer;
  padding: 1.2rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  list-style: none; /* Removes the default arrow in some browsers */
}

/* Adds the custom chat icon prefix */
.prompt-note summary::before { 
  content: "💬 "; 
}

.prompt-content {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.prompt-content p {
  font-family: "Roboto Mono", monospace; /* The 'code' font style */
  font-size: 0.85rem;
  color: #8db5e2; /* The blue color we liked */
  margin: 0;
  line-height: 1.5;
}

/* GCT-STYLE DESIGN DECISION BOXES */
.prompt-note {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1a1f24; /* Darker background to stand out */
  overflow: hidden;
}

.prompt-note summary {
  cursor: pointer;
  padding: 1.2rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  list-style: none; /* Removes the default arrow in some browsers */
}

.prompt-note summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  list-style: none;
}

/* Custom Styled Bubble */
.prompt-note summary::before {
  content: "PROMPT";
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 8px;
  border: 1px solid var(--why);
  color: var(--why);
  border-radius: 4px;
  line-height: 1;
  text-transform: uppercase;
}

.prompt-content {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.prompt-content p {
  font-family: "Roboto Mono", monospace; /* The 'code' font style */
  font-size: 0.85rem;
  color: #8db5e2; /* The blue color we liked */
  margin: 0;
  line-height: 1.5;
}

.prompt-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
}
.prompt-three img {
  width: 100%;
}

/* Sticky Sub-Navigation for Case Studies */
.case-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 32px;
  background: rgba(11, 14, 16, 0.9); /* Matches --bg with slight transparency */
  backdrop-filter: blur(10px); /* Modern frosted glass effect */
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.case-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color 0.3s ease;
  padding: 8px 0;
  position: relative;
}

.case-nav a:hover {
  color: var(--why);
}

/* Optional: Active state underline effect */
.case-nav a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--why);
}

/* Mobile responsive fix */
@media (max-width: 600px) {
  .case-nav {
    gap: 16px;
    padding: 12px 24px;
    justify-content: flex-start;
    overflow-x: auto; /* Allows swiping on small screens */
    white-space: nowrap;
  }
}

/* The "Pill" style for external files/sites */
.external-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2rem 0 1rem 0;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--why); /* Yellow Outline */
  border-radius: 30px; /* Pill Shape */
  color: var(--why) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.external-link-btn:hover {
  background: var(--why) !important; /* Fills yellow on hover */
  color: var(--bg) !important; /* Text turns dark on hover */
  
  box-shadow: 0 4px 12px rgba(239, 197, 8, 0.2);
}

/* Adding the arrow icon */
.external-link-btn::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  background-color: currentColor; /* Matches the text color automatically */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M14 5l7 7m0 0l-7 7m7-7H3"/></svg>') no-repeat center;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M14 5l7 7m0 0l-7 7m7-7H3"/></svg>') no-repeat center;
  transition: transform 0.3s ease;
}

.external-link-btn:hover::after {
  transform: translateX(5px);
}

/* ==========================================================================
   3. CASE STUDY (BOSCH.HTML) STYLES
   ========================================================================== */
.case-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.case-block { margin: 5rem 0; }

.case-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  padding: 60px 0 0 0;
}

.scope-section {
  margin-bottom: 60px;
}

.intro-content { flex: 1.2; min-width: 320px; }
.case-hero { flex: 0.8; min-width: 320px; display: flex; justify-content: center; }

/* IMAGE SIZE CONTROL: The fix for huge diagrams */
.case-image, .case-hero img, .case-grid img {
  max-width: 100% !important;
  height: auto !important;
  /* max-height: 520px; Limits the vertical size of your maps and diagrams */
  border-radius: 8px;
  display: block;
}

.img400 {
  max-height: 400px!important;
  width: auto!important;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.case-meta div h3, .case-meta div p {
  text-align: center;
}

.case-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: flex-start;
  margin: 4rem 0;
}

/* GRIDS */
.case-grid { display: grid; gap: 24px; margin: 2rem 0;   justify-content: center; }
.case-grid.two { grid-template-columns: 1fr 1fr; }
.case-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.case-grid.four { grid-template-columns: repeat(4, 1fr); }

.case-block.two {display: grid; grid-template-columns: 1fr 1fr; gap: 24px}
.case-block.three {display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px}
.case-block.four {display: grid; grid-template-columns: repeat(4, 1); gap: 24px}
.research.case-block.two {display: grid; grid-template-columns: 60% auto; gap: 24px; align-items: center;}


/* METRICS / OUTCOMES */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.metric-card {
  background: var(--bg-soft);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.metric-card h4 { font-size: 2.2rem; color: var(--why); margin: 0 0 4px 0; }

/* 1. The Thumbnail (Small Image) */
.case-thumb {
  width: 100%;
  max-width: 300px; /* Adjust size as needed */
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.case-thumb:hover {
  transform: scale(1.02);
  border-color: var(--why);
}

/* 2. The Full-Screen Overlay (Hidden by default) */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  padding: 40px;
  box-sizing: border-box;
}

/* 3. Show the lightbox when it's the target */
.lightbox:target {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 4. The Enlarged Image */
.lightbox img {
  max-width: 80%!important;
  max-height: unset!important;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* 5. The Close Button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  text-decoration: none;
  font-weight: 200;
}

.close-btn:hover {
  color: var(--why);
}

/* NOTES */
.why-note {
  /* background: var(--bg-soft); */
  padding: 24px;
  border-left: 4px solid var(--why);
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}

.highlight {
  background: var(--bg-soft);
  padding: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* ==========================================================================
   4. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  
}

@media (max-width: 800px) {
  .cases { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .case-intro, .case-split, .case-grid.two, .case-grid.three, .case-grid.four {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .card-1 {
  grid-column: unset;
  display: flex;
  align-items: unset;
}

.card-1 .card-image {
  order: unset;
}

.card-2 {
  grid-column: unset;
}

.card-3 {
  grid-column: unset;
  grid-row: unset;
}

.card-4 {
  grid-column: unset;
  grid-row: unset;
}

.card-5 {
  grid-column: unset;
  grid-row: unset;
}
  .research.case-block.two { grid-template-columns: 1fr;}
}

@media (max-width: 600px) {
  .case-meta {
    grid-template-columns: 1fr;
  }
  .prompt-three {
  grid-template-columns: 1fr;
}

.cases { grid-template-columns: 1fr; }
}

/* Tablet Styles */
@media (max-width: 992px) {
  footer {
    padding: 60px 0 30px;
    margin-top: 60px;
  }

  .footer-cont {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for tablet */
    gap: 40px;
  }
}

/* Mobile Styles */
@media (max-width: 600px) {
  footer {
    padding: 40px 0 20px;
    text-align: left; /* Keep left aligned for a clean edge */
  }

  .footer-cont {
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 30px;
  }

  .footer-details a, .footer-details span {
    font-size: 1rem; /* Slightly smaller text for small screens */
  }

  .footer-tc {
    flex-direction: column; /* Stack copyright and T&C */
    gap: 10px;
    font-size: 0.7rem;
    align-items:center;
  }
}

/* Desktop: Hover works as before */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Mobile: Adjustments for touch */
@media (max-width: 768px) {
  .dropdown-content {
    position: static; /* Push content down instead of floating over */
    display: none;    /* Controlled by JS toggle */
    width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 10px;
    padding-left: 15px; /* Indent sub-items */
  }

  .dropdown.is-open .dropdown-content {
    display: block;
  }
  
  .nav-separator {
    display: none; /* Hide the "|" on mobile to save space */
  }
  
  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

/* --- Desktop Defaults --- */
.main-nav-container {
  display: flex;
  align-items: center;
  position: relative;
}

.burger-menu {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 3000;
}

.burger-line {
  width: 25px;
  height: 2px;
  background-color: var(--text);
  transition: 0.3s;
}

/* --- Mobile Logic (Under 800px) --- */
@media (max-width: 1000px) {
  .burger-menu {
	display: flex;
	position: absolute;
	top: -106px;
	right: -10px;

}

  .nav-links {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-soft);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    gap: 40px;
  }

  .nav-links.is-active {
    display: flex; /* Shown when burger is clicked */
  }

  .nav-separator {
    display: none; /* Hide the "|" pipe on mobile */
  }

  .dropbtn, .contact-link {
    font-size: 1.5rem;
    display: block;
    text-align: center;
    margin-bottom: 20px;
    
  }

  .dropdown {
    width: 100%;
  }

  /* Expand dropdown items on mobile */
  .dropdown-content {
    position: static;
    display: block;
    background: none;
    border: none;
    box-shadow: none;
    text-align: center;
    padding-left: 0;
  }
  
  .dropdown-content a {
    font-size: 1.1rem;
    padding: 15px;
    color: var(--text-muted);
  }

  /* Burger Animation to "X" */
  .burger-menu.is-active .burger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .burger-menu.is-active .burger-line:nth-child(2) { opacity: 0; }
  .burger-menu.is-active .burger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }


}