:root {
  /* Layout Dimensions */
  --cutout-gap: 24px;
  --nav-width: 260px;
  --border-radius: 24px;
  
  /* Typography Colors */
  --text-main: #ffffff;
  --text-main: Ivory;
  --text-muted: rgba(255, 255, 255, 0.9);
  --text-muted: Ivory;
  --accent-color: #00f2fe; /* Glowing Cyan for active link */
  --muted-accent: hsl(183, 100%, 40%);
  
  /* Glassmorphism Styling */
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.25);
  --glass-blur: blur(16px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cousine', 'Courier Prime', system-ui, serif;
  color: var(--text-main);
  line-height: 1.6;
  
  /* Multi-point organic gradient background for a soothing, trippy flow */
  background-color: #0f172a;
  background-image: 
    radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0px, transparent 50%),
    radial-gradient(at 50% 0%, hsla(280, 84%, 30%, 0.8) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(189, 100%, 40%, 0.7) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(339, 80%, 45%, 0.75) 0px, transparent 50%),
    radial-gradient(at 80% 100%, hsla(240, 90%, 50%, 0.8) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(260, 90%, 35%, 0.7) 0px, transparent 50%);
  background-attachment: fixed;
  background-size: cover;
  
  display: flex;
  min-height: 100vh;
  padding: var(--cutout-gap);
}

/* Fixed Navigation Sidebar */
nav {
  position: fixed;
  top: var(--cutout-gap);
  left: var(--cutout-gap);
  bottom: var(--cutout-gap);
  width: var(--nav-width);
  
  /* Glass effect */
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
  
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  z-index: 10;
}

nav h2 {
  margin: 0;
  font-family: 'Permanent Marker', cursive;
  color: var(--text-main);
  font-size: 1.8rem;
  letter-spacing: 1px;
  font-weight: 400;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav h3 {
  margin: 0;
  font-family: system-ui;
  font-size: .95rem;
  letter-spacing: 1px;
  font-weight: bold;
  margin-top: -2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
}

nav a:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(3px);
}

/* Active state highlighted by Scrollspy */
nav a.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
}

nav a.active::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background-color: var(--accent-color);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-color);
}

/* Main Content Area */
main {
  margin-left: calc(var(--nav-width) + var(--cutout-gap));
  width: calc(100% - (var(--nav-width) + var(--cutout-gap)));
  
  /* Glass effect */
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
      }

section {
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 1rem 2.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  max-width: 126ch;
}

hr {
border: none;
height: 1px;
background-color: rgba(255, 255, 255, 0.4);
margin: 2rem 0;
}

.panel {
  background: rgba(255,255,255,.1);
  /* background: rgba(204,204,204,.1); */
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 3rem;
  display:grid;grid-template-columns:1fr 1fr;
  grid-column-gap: 64px;
  margin: 2rem 0;
}

.panel h2 {margin-top: 0; padding-top: 0;}

.panel h3 {font-size: 1.3em;}

.panel img {max-width: 90%; 
background-color: white;
border: 2px solid var(--accent-color);
}

.panel img:hover {
  box-shadow: 0 0 14px var(--accent-color);
}

.panel .span {grid-column: 1 / -1;}

.span img {
  margin: 2rem auto 3rem;
  display: block;
  padding: 14px;
}

section:last-of-type {
  border-bottom: none;
}

section img {
  border-radius: var(--border-radius);
  /* box-shadow: var(--glass-shadow); */
  box-shadow: 0 0 6px var(--accent-color);
  display: block;
}

h1 {
  font-family: system-ui, 'Permanent Marker', cursive;
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 400;
  /* letter-spacing: 1px; */
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

h2 {letter-spacing: 1px;}

p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 300;
}

#about-me h1 {
text-align: center;
color: var(--text-main);
font-size: 3.5rem;
font-weight: bold;
text-shadow: 0 4px 12px rgba(33, 33, 33, 0.2);

}

#about-me h2 {
color: var(--text-main);
font-family: system-ui, 'Permanent Marker', cursive;
font-size: 2rem;
text-shadow: 0 4px 12px rgba(33, 33, 33, 0.2);
text-align: center;
font-weight: 400;
line-height: 1.3;
margin-top: -.75rem;
}

#testimonials h2 {
font-style: italic;
font-weight: normal;
letter-spacing: 0px;
}

#contact a {
color: var(--text-muted);
text-decoration: none;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: block;
padding: 18px 24px;
border-radius: 12px;
border: 1px solid transparent;  
color: #ffffff;
background-color: rgba(255, 255, 255, 0.18);
border-color: rgba(255, 255, 255, 0.3);
font-weight: 700;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
position: relative;
display: inline;
}

#contact a:hover {
color: var(--text-main);
background-color: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.15);
transform: translateX(3px);
/* box-shadow: 2px 2px 10px var(--accent-color); */
}


dl, dd, dt {display: inline;}
dd {margin-inline-start: 5px;}
dd::after {
content: "\A";
white-space: pre;
}
dt {font-weight: bold;
margin: 0;
}

h2 {
font-family: system-ui, 'Permanent Marker', cursive;
font-size: 1.75rem;
}


/* Responsive scaling for mobile viewports */
@media (max-width: 768px) {
  body {
    padding: 12px;
    flex-direction: column;
    background-attachment: scroll;
  }
  
  nav {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-bottom: 12px;
    height: auto;
    bottom: auto;
    padding: 1.5rem 1rem;
  }
  
  main {
    margin-left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
  }
  
  section {
    min-height: auto;
    padding: 1rem 0rem 2rem;

  }
  
  section img {
    margin: 0 auto;
  }
  
  .panel {
    background: none;
    border: 0;
    padding: 0;
    display:grid;grid-template-columns:1fr;
    margin: 2rem 0;
  }
  
  .panel img {
    max-width: 100%;
  }
  
  #contact a {
    display: block;
    text-align: center;
  }
  
  #about-me h1 {
    font-size: 2.75rem;
  }
  #about-me h2 {
    font-size: 1.75rem;
  }

}

/* Lightbox backdrop overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

/* Make overlay visible when active */
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Lightbox image inside overlay */
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  cursor: default;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

/* Pointer cursor on target images to signal clickability */
img.lb { cursor: zoom-in; }

.theme-switcher label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.theme-switcher select {
  background-color: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}