/* ==================== HTML BACKGROUND ==================== */
html {
  background-image: url('images/linkedin header 4.png');
  background-size: cover;          /* cover the viewport */
  background-position: center top; /* top of image aligned with top of page */
  background-attachment: fixed;    /* stays in place when scrolling */
  background-repeat: no-repeat;
    z-index: 0;
}

/* ==================== FONT IMPORTS ==================== */
@font-face {
  font-family: 'Carrol';
  src: url('fonts/CarrolDEMO.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  src: url('fonts/RobotoMono-Regular.woff2') format('woff2');
}

/* ==================== RESET ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==================== BODY ==================== */
body {
  font-family: 'Roboto', monospace;
  font-size: 1.25rem;
  line-height: 1.4;
  text-align: center;
  color: #000;
  background: transparent;       /* important for header to show same slice */
  isolation: isolate;
}

/* ==================== HEADER ==================== */
header {
  position: fixed;
  top: 0;
  z-index: 5000;                 /* above body content but below TOC if needed */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.5rem;
  background: transparent;       /* fully see-through */
  isolation: isolate;
   background: linear-gradient(to right, #17498a, #9e4136);
}

/* ==================== HEADER TEXT ==================== */
header h1,
header p.subtitle,
header p.production-title,
nav a,
nav .dropbtn {
  color: #fff;
  font-family: 'Carrol', monospace;
  font-size: 2rem;
  text-decoration: none;
  padding: 0.75rem 0.5rem;
  background: transparent;
    z-index: 75;
    font-weight: normal;
}

/* ==================== NAV ==================== */
nav {
  display: flex;
  align-items: right;
  gap: 2rem;
    cursor: pointer;
}

nav a,
.dropbtn {
  font-family: 'Carrol', monospace;
  font-size: 2rem;
  text-decoration: none;
  padding: 0.75rem 0.5rem;
  background: transparent;
  cursor: pointer;
}

nav a:hover {
  color: #00aced;
  border-bottom: 2px solid #00aced;
}

/* ==================== DROPDOWN ==================== */
.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: auto;
  left: 0;
  text-align: left;  /* keep text left-aligned */

  min-width: 160px;
  background: #fff;
  color: #000;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);

  display: none;
  z-index: 2000;
  text-align: left;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 2rem;
  color: #000;
  text-align: left;
  background: transparent;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ==================== CONTENT PANELS ==================== */
.content-wrapper,
section {
  background-color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  position: relative;
  z-index: 10;
}

/* ==================== HEADINGS ==================== */
section h2 {
  font-family: 'Carrol', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

section h3 {
  font-family: 'Carrol', sans-serif;
  font-size: 2rem;
  margin: 1.2rem 0 0.6rem;
}

/* ==================== MEDIA ==================== */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}

/* ==================== VIDEO CONTAINERS ==================== */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== ART GRID ==================== */
.art-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 900px) {
  .art-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== FOOTER ==================== */
footer {
  text-align: center;
  padding: 2rem;
  background: none;
  color: #fff;
      z-index: 100000;
}

footer a {
  font-family: 'Carrol';
  font-size: 2rem;
  text-decoration: none;
  color: #fff;
      z-index: 100000;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  display: flex;
  justify-content: center;
  gap: 2rem; /* horizontal spacing */
}


/* ==================== TOC ==================== */
.toc {
  position: fixed;
  top: 100px;
  bottom: 0;
  right: 0;
  width: 160px;
  background-color: rgba(255,255,255,0.95);
  padding: 0.75rem;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  overflow-y: auto;
  z-index: 9999;
}

.toc a {
  display: block;
  font-size: 0.925rem;
  color: #000;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.toc a:hover {
  color: #00aced;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  nav {
    flex-direction: column;
    align-items: flex-end;
  }

  body {
    font-size: 1.1rem;
  }
}

/* ==================== TOC CORE ==================== */
.toc {
  position: fixed;
  right: 0;
  top: 100px;                 
  bottom: 0;
  display: flex;
  align-items: center;        
  pointer-events: none;       
  z-index: 99999;
  background-color: transparent !important;
  box-shadow: none !important;
}

.toc-inner {
  pointer-events: auto;
  background: rgba(255,255,255,0.95);
  padding: 0.75rem;
  width: 220px;
  border-radius: 8px 0 0 8px;
  box-shadow: none !important;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  height: auto;
}

.toc-inner a {
  display: block;
  font-size: 0.925rem;
  color: #000;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.toc-inner a:hover {
  color: #00aced;
}

.toc, .toc * {
  mix-blend-mode: normal !important;
  isolation: isolate !important;
}

/* Force dropdown menu text to be black on white */
.dropdown-content {
  background-color: #fff !important;
  color: #000 !important;
}

.dropdown-content a {
  color: #000 !important;
  background-color: #fff !important;
  text-align: left;
}

.dropdown-content a:hover {
  color: #00aced !important;
  background-color: #fff !important;
}

.dropdown-content, .dropdown-content * {
  mix-blend-mode: normal !important;
  isolation: isolate !important;
}

/* ==================== FIXED BACKGROUND ==================== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/linkedin header 4.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  z-index: 0;            /* behind everything */
}

html, body {
  height: 100%;
  margin: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;  /* top:0; right:0; bottom:0; left:0 */
  background: url('images/linkedin header 4.png') center top / cover no-repeat fixed;
  z-index: -1;
}

/* ==================== HEADER ==================== */
header {
  position: fixed;       /* stick to top */
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between; /* name left, nav right */
  align-items: center;
  padding: 1rem 2rem;    /* adds space inside header */
   background: linear-gradient(to right, #17498a, #9e4136); /* left/right colors */
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* subtle shadow for separation */
  z-index: 5000;
}

/* ==================== HEADER TEXT ==================== */
header h1 {
  color: #fff;
  font-family: 'Carrol', monospace;
  font-size: 2rem;
  font-weight: normal;
  margin: 0;
}

header nav {
  display: flex;
  gap: 2rem;
  align-items: center;  /* vertical center */
}

header nav a,
header nav .dropbtn {
  font-family: 'Carrol', monospace;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0;
  cursor: pointer;
}

header nav a:hover,
header nav .dropbtn:hover {
  color: #00aced;
  border-bottom: 2px solid #00aced;
}

/* optional space between header and body */
body {
  padding-top: 80px; /* equal to or slightly larger than header height */
}

img {
  max-height: 300px;      /* set your desired max height */
  width: auto;            /* maintain aspect ratio */
  height: auto;           /* prevent distortion */
  object-fit: cover;      /* optional: fills the space without stretching */
}

/* Anchor offset for fixed header */
h2[id],
h3[id],
section[id],
div[id],
strong[id],
p[id] {
  scroll-margin-top: 140px;
}

/* ==================== CONTACT PAGE ==================== */
#contact-form { 
  background: #fff; 
} 
#contact-form iframe { 
  width: 100%; 
  height: 1200px; 
  border: none; 
} 
#contact-main { 
  background: #fff;
  margin: 2rem auto;
}

/* ==================== MOBILE OVERRIDES ONLY ==================== */
@media (max-width: 768px) {

  /* ----- HEADER ----- */
  header {
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

header nav {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

  header nav a,
  header nav .dropbtn {
    font-size: 1.25rem;
    padding: 0.5rem;
  }

  body {
    padding-top: 140px; /* extra room for stacked header */
    font-size: 1rem;
  }

  /* ----- CONTENT ----- */
  .content-wrapper,
  section {
    padding: 1.25rem;
    margin: 1rem;
  }

  section h2,
  section h3 {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
  }

  /* ----- TOC ----- */
  .toc {
    display: none;
  }

  /* ----- DROPDOWNS ----- */
  .dropdown-content a {
    font-size: 1.25rem;
  }

  /* ----- IMAGES ----- */
  img {
    max-height: none;
  }

  /* ----- GRIDS ----- */
  .art-grid,
  .linkedin-grid,
  .doc-viewer {
    grid-template-columns: 1fr !important;
  }

  /* ----- IFRAMES ----- */
  iframe {
    height: 60vh;
  }

  #contact-form iframe {
    height: 90vh;
  }

  /* ----- TABLES ----- */
  .social-metrics {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* ----- BACKGROUND FIX ----- */
  html,
  body::before {
    background-attachment: scroll;
  }
}

