:root {
  /* Harmonized colors */
  --cyan-bright: #00f3ff;
  --cyan-dim: rgba(0, 243, 255, 0.7);
  --purple-bright: #bc00ff;
  --purple-dim: rgba(188, 0, 255, 0.7);
  --pink-bright: #ff0055;

  --primary-color: var(--cyan-dim);
  --secondary-color: var(--purple-dim);
  --accent-color: var(--pink-bright);
  --text-color: #e0e0e0;
  --bg-color: #050508;
  --header-bg: rgba(5, 5, 8, 0.9);
  --footer-bg: #020204;
  --max-width: 1200px;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --neon-glow: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
  
}

body {
  font-family: 'Rajdhani', sans-serif;
  font-family: var(--font-body);
  line-height: 1.6;
  color: #e0e0e0;
  color: var(--text-color);
  background: #050508;
  background: var(--bg-color);
  background-image: 
    linear-gradient(rgba(5, 5, 8, 0.8) 0%, rgba(5, 5, 8, 0) 30%, rgba(5, 5, 8, 0) 70%, rgba(5, 5, 8, 0.8) 100%),
    url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'56\' height=\'100\' viewBox=\'0 0 56 100\'%3E%3Cpath d=\'M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100\' fill=\'none\' stroke=\'%231a1a25\' stroke-width=\'1\'/%3E%3C/svg%3E');
  background-attachment: fixed;
  margin: 0;
  padding: 0;
}

header {
  background: rgba(5, 5, 8, 0.9);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  padding: 1rem 2rem;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  max-width: var(--max-width);
  margin: 0 auto;
}

nav .site-title {
  font-family: 'Orbitron', sans-serif;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.2rem;
  -webkit-text-decoration: none;
  text-decoration: none;
  color: rgba(0, 243, 255, 0.7);
  color: var(--primary-color);
  background: linear-gradient(135deg, #00f3ff 0%, #bc00ff 100%);
  background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--purple-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: lowercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
  white-space: nowrap;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(0, 243, 255, 0.7);
  color: var(--primary-color);
  background: linear-gradient(135deg, #00f3ff 0%, #bc00ff 100%);
  background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--purple-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.3));
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  -webkit-text-decoration: none;
  text-decoration: none;
  color: #e0e0e0;
  color: var(--text-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: rgba(0, 243, 255, 0.7);
  color: var(--primary-color);
}

main {
  max-width: 1200px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  background-size: contain;
  background-repeat: no-repeat;
}

main.home-main {
  max-width: none;
  padding: 0;
}

footer {
  text-align: center;
  padding: 3rem 1rem;
  background: #020204;
  background: var(--footer-bg);
  border-top: 1px solid rgba(188, 0, 255, 0.2);
  margin-top: 5rem;
}

/* Hero Section */

.hero {
  height: 40vh; /* Reduced from 100vh */
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom,
  rgba(0, 0, 0, 1) 0%,
  rgba(0, 0, 0, 0.9) 70%,
  rgba(0, 0, 0, 0.7) 80%,
  rgba(0, 0, 0 , 0) 100%);
          mask-image: linear-gradient(to bottom,
  rgba(0, 0, 0, 1) 0%,
  rgba(0, 0, 0, 0.9) 70%,
  rgba(0, 0, 0, 0.7) 80%,
  rgba(0, 0, 0 , 0) 100%);
}

.hero-content {
  text-align: center;
  z-index: 1;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to bottom,
  rgba(0, 0, 0, 0.0) 0%,
  rgba(0, 0, 0, 0.8) 20%,
  rgba(0, 0, 0, 0.7) 75%,
  rgba(0, 0, 0, 0.0) 100%);
}

.hero h1 {
  font-size: max(2rem, min(8vw, 4rem));
  margin: 0;
  color: #fff;
  text-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
}

.hero .tagline {
  font-size: max(0.9rem, min(3vw, 1.5rem));
  margin: 1rem 0 2rem;
  letter-spacing: 0.1rem;
}

.featured-pieces h2 {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.featured-pieces h2 a {
  -webkit-text-decoration: none;
  text-decoration: none;
}

.featured-pieces h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.7), transparent);
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.cta-button {
  background: transparent;
  color: rgba(0, 243, 255, 0.7);
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  -webkit-text-decoration: none;
  text-decoration: none;
  border: 2px solid rgba(0, 243, 255, 0.7);
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
  box-shadow: var(--neon-glow);
}

.cta-button:hover {
  background: rgba(0, 243, 255, 0.7);
  background: var(--primary-color);
  color: #050508;
  color: var(--bg-color);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.7);
  box-shadow: 0 0 30px var(--primary-color);
}

/* Portfolio Piece */

.portfolio-piece {
}

.piece-top-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.piece-media {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.piece-main-view {
  width: 100%;
  border: 1px solid rgba(0, 243, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
  background: #000;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.piece-hero-image {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain; /* Changed from cover to show full image in carousel style */
}

.main-media-item {
  width: 100%;
  height: 100%;
  position: relative;
}

.piece-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumb-item {
  width: 100px;
  height: 60px;
  flex-shrink: 0;
  border: 1px solid rgba(188, 0, 255, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.thumb-item:hover {
  border-color: rgba(0, 243, 255, 0.7);
  border-color: var(--primary-color);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.video-thumb .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.5rem;
  z-index: 1;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.5rem;
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
}

.piece-info {
  flex: 1;
}

.piece-blurb {
  font-size: 1.25rem;
  font-style: italic;
  color: #aaa;
  margin-bottom: 2rem;
}

.piece-meta {
  border-top: 1px solid rgba(188, 0, 255, 0.7);
  border-top: 1px solid var(--secondary-color);
  border-bottom: 1px solid rgba(188, 0, 255, 0.7);
  border-bottom: 1px solid var(--secondary-color);
  padding: 1.5rem 0;
  margin: 0;
}

.piece-meta p {
  margin: 0.5rem 0;
}

@media (min-width: 1024px) {
  .piece-top-section {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Video Embed */

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Gallery - Removed old gallery section in favor of carousel thumbnails */

.piece-gallery {
  display: none;
}

.exhibits {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(0, 243, 255, 0.05);
  border-left: 2px solid rgba(0, 243, 255, 0.7);
  border-left: 2px solid var(--primary-color);
}

.exhibits p {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: rgba(0, 243, 255, 0.7);
  color: var(--primary-color);
}

.exhibits ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.exhibits li {
  margin-bottom: 0.5rem;
}

.exhibit-date {
  font-family: 'Orbitron', sans-serif;
  font-family: var(--font-heading);
  font-weight: bold;
  color: rgba(188, 0, 255, 0.7);
  color: var(--secondary-color);
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.exhibit-description {
  font-size: 1rem;
}

.piece-timeline {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(188, 0, 255, 0.05);
  border: 1px solid rgba(188, 0, 255, 0.2);
  border-radius: 8px;
}

.timeline-content {
  margin-top: 1.5rem;
}

.timeline-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border: 1px solid rgba(188, 0, 255, 0.7);
  border: 1px solid var(--secondary-color);
}

.timeline-content h3 {
  color: rgba(188, 0, 255, 0.7);
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-top: 2rem;
}

.content {
  margin-top: 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.content h2 {
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  padding-bottom: 0.5rem;
  margin-top: 3rem;
}

.piece-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  nav .site-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  nav ul li {
    margin-left: 10px;
  }
  nav ul li a {
    font-size: 0.8rem;
  }
}

@media (max-width: 500px) {
  nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  nav ul li {
    margin: 0 5px;
  }
  nav .site-title {
    font-size: 1.1rem;
  }
  .hero {
    height: 50vh;
  }
  .hero-content {
    padding: 1rem;
  }
}

@media (max-width: 400px) {
  nav .site-title {
    /* Compact representation: just "a." or similar could be used, 
       but here we just hide the full name if it's too much.
       Let's try a very short version or just smaller text. */
    font-size: 1rem;
  }
  /* If it's still too wide, we hide it or use an icon if we had one.
     For now, let's just make it even smaller. */
}

.hex-grid-wrapper {
  grid-template-columns: repeat(auto-fit,calc(220px + 2*(4px + (220px - 2*var(--hc))/2))) calc(220px/2 + (4px + (220px - 2*var(--hc))/2));
  grid-template-columns: repeat(auto-fit,calc(220px + 2*calc(4px + (220px - 2*var(--hc))/2))) calc(220px/2 + calc(4px + (220px - 2*var(--hc))/2));
  grid-template-columns: repeat(auto-fit,calc(var(--s) + 2*var(--mh))) calc(var(--s)/2 + var(--mh));
  --s: 220px;
  --r: 1.1547;
  --h: .5;
  --v: .25;
  --hc: calc(max(0, min(var(--h), .5)) * var(--s));
  --vc: calc(max(0, min(var(--v), .5)) * var(--s) * var(--r));
  --float-h: 120%;
  --mv: 4px;
  --mh: calc(var(--mv) + (var(--s) - 2*var(--hc))/2);
  --f: calc(2*var(--s)*var(--r) + 4*var(--mv)  - 2*var(--vc) - 2px);
  justify-content: center;
  padding: 60px 0;
  display: grid;
}

.hex-grid {
  grid-column: 1 / -1;
  margin: 0 auto;
  font-size: 0;
}

.hex-grid:before {
  content: "";
  width: calc(var(--s)/2 + var(--mh));
  float: left;
  height: 120%;
  height: var(--float-h, 120%);
  shape-outside: repeating-linear-gradient(rgba(0,0,0,0) 0 calc(var(--f) - 2px),
                   #000  0 var(--f));
}

.hex-grid .hex-item {
  width: var(--s);
  margin: var(--mv) var(--mh);
  height: calc(var(--s)*var(--r));
  font-size: medium;
  font-size: initial;
  clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
  background: #050508;
  background: var(--bg-color);
  margin-bottom: calc(var(--mv) - var(--vc));
  filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.7));
  filter: drop-shadow(0 0 5px var(--cyan-dim));
  text-align: center;
  transition: transform .3s;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.hex-item:before {
  content: "";
  background: linear-gradient(135deg, #00f3ff, #bc00ff);
  background: linear-gradient(135deg, var(--cyan-bright), var(--purple-bright));
  clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
  z-index: -1;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.hex-item a {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  color: inherit;
  clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
  background: #050508;
  background: var(--bg-color);
  margin: 2px;
  -webkit-text-decoration: none;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.hex-content {
  background-position: center;
  background-size: cover;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transition: transform .3s;
  display: flex;
}

.hex-item:hover .hex-content {
  transform: scale(1.1);
}

.hex-overlay {
  color: #fff;
  text-align: center;
  opacity: 1;
  background: rgba(0,0,0,0.30196);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  transition: all .3s;
  display: flex;
}

.hex-item:hover .hex-overlay {
  opacity: 1;
  background: rgba(0,0,0,0.8);
}

.hex-overlay h3 {
  -webkit-text-fill-color: initial;
  text-fill-color: initial;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  word-wrap: normal;
  word-wrap: normal;
  hyphens: none;
  background: none;
  width: 90%;
  margin: 0;
  font-size: clamp(.8rem, 10% + .5rem, 1.4rem);
  line-height: 1.1;
}

.hex-item:hover .hex-overlay h3 {
  margin-bottom: .3rem;
}

.hex-overlay p {
  opacity: 0;
  width: 85%;
  margin: 0;
  font-size: clamp(.6rem, 8% + .3rem, 1.05rem);
  line-height: 1.1;
  transition: opacity .3s;
}

.hex-item:hover .hex-overlay p {
  opacity: 1;
}
