:root {
    --red: #FF4E4E;
    --green: #4EFF4E;
    --blue: #4E4EFF;
    --dark: #222222;
    --verydark: #1A1A1A;
    --light: #CCCCCC;
    --medium: #999999;
}

body {
    background-color: var(--dark);
    display: flex;
    flex-direction: column;
    margin: 0px;
}

a {
    text-decoration: none;
    color: var(--red);
}


h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(45pt, 20vw, 175pt);
    line-height: clamp(40pt, 18vw, 165pt);
    color: var(--dark);
    text-shadow: 6px 6px 6px #121212, -4px -4px 4px #303030;
    margin: 0;
}
/* designer*/
h4 {
    font-family: 'Smooch', sans-serif;
    font-weight: 100;
    font-size: clamp(45pt, 20vw, 175pt);
    color: var(--red);
    margin: 0;
    line-height: 2rem;
    text-shadow: 0px 0px 7px var(--red);
}

/* section title*/
h2{
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 36pt;
    font-style: italic;
    text-transform: uppercase;
    color: var(--light);
    margin-top: 0px;
}
/* gallery title*/
h3{
    font-family: 'Smooch Sans', sans-serif;
    font-weight: 400;
    font-size: 24pt;
    text-transform: uppercase;
    color: var(--light);
    margin: 5px;
    padding-left: 10px;
    padding-right: 10px;
}
/*skills subtitle*/
h5{
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    font-size: clamp(12pt, 2vw, 50pt);
    line-height: clamp(20pt, 9vw, 80pt);
    text-transform: uppercase;
    color: var(--light);
}

h6{
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14pt;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}
p{
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 12pt;
    color: #CCCCCC;
    letter-spacing: 1px;
    line-height: 22pt;
    margin: 0;
}

#navbar {
    background-color: var(--verydark);
    display: flex;
    min-height: 30px;
    justify-content: flex-start;
    align-content: center;
    align-items: top;
    gap: 20px;
    padding: 15px;/*
    border-bottom-width: 2pt;
    border-bottom-color: var(--light);
    border-bottom-style: solid;
    position: sticky;
    top: 0px;
    left: 0px;*/
}

#logo {
    z-index: 5;
}


#name {
    color: var(--red);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 18pt;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 5;
}

@media screen and (max-width: 370px) {
  #name {
    padding-top: 6px;
    font-size: 11pt;
  }
}

#lang-toggle {
    color: var(--red);
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding:5px;
    white-space: nowrap;
    z-index: 5;
}

#lang-toggle span{
    color: var(--medium);
}

.lang-btn {
    color: var(--medium);
    text-decoration: none;
    font-size: 12pt;
    transition: color 1s ease;
}

.lang-btn:hover{
    color: var(--red);
}

.active{
    color: var(--red);
}

#menu {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position:absolute;
    background-color: var(--verydark);
    right: 0px;
    top: 0px;
    padding: 15px;
}


#menutog {
    height: 30px;
    width: 30px;
    margin-left: 5px;
}


#menuwrapper{
    max-height: 0px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: 1s ease;
}

a.menuitem{
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14pt;
    font-style: italic;
    letter-spacing: 1px;
    line-height: 25pt;
    text-decoration: none;
    text-transform: uppercase;
    padding:10px;
}

.toggle:checked + #menuwrapper {
    max-height: 100vh;
}

input[type=checkbox] {
    display: none;
    pointer-events: none; 
}

label{
    cursor: pointer;
}

#banner {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: clamp(50px, 10vw, 100px);
}

#about {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    color: var(--verydark);
    background-color: var(--light);
}

#about p {
  margin-bottom: 30px;
}

#portrait{
    background-image: url("images/portNB.jpg");
  flex: 1 1 300px;
  background-size: cover;
  background-position: center;
  min-height: 400px;
  max-width: 700px;
}

.aboutbox{
  width: 100%;
  box-sizing: border-box;
  padding: 30px;
  flex: 1 1 300px;
  min-height: 400px;
}

#skills {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 50px;
    background-color: var(--verydark);
}

.skillcontainer {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
}

.skillcontainer svg{
    padding: 20px;
}

.skill {
    height: 300px;
    width: 300px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: var(--red);
    background: var(--dark);
    transition: all ease 1s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

@media screen and (max-width: 400px) {
  .skill {
    height: 100%;
    width: 100%;
  }
}

.skill:hover {
    border-color: #ff6666;
    box-shadow:  0px 0px 10px var(--red);
    background-color: var(--verydark);
}

.skill p {
    text-align: center;
    color: #5A5A5A;
    transition: ease 1s;
    margin: 20px;
}

.skill:hover p {
    color: var(--light);
}
.dark{
    color: var(--verydark);
}

.box:hover{
    box-shadow: 8px 8px 8px #121212, -6px -6px 6px #343434;
}


#projects {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 50px;
}

.gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
}

.box{
    height: 200px;
    width: 200px;
    border-radius: 5px;
    display: flex;
    gap: 0px;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: column;
    box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.02) inset, -8px -8px 8px rgba(255, 255, 255, 0.01) inset;
    background-repeat: no-repeat;
}

.box:hover{
    box-shadow: 8px 8px 8px #121212, -6px -6px 6px #343434;
}

#poster{
    background-image: url("images/PosterT.jpg");
}

#catalog{
    background-image: url("images/CatT.jpg");
}

#Thary{
    background-image: url("images/TharyT.jpg");
}

#DrJart{
    background-image: url("images/DrJartT.jpg");
}

.lightbox:target {
  display: flex;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(5px, 10%, 50px);
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  text-decoration: none;
  z-index: 101;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  border-radius: 5px;
  font-weight: bold;
}

.lightboxspan {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.carousel {
  position: relative;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.slide {
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  width: 100%;
}

.slide.active {
  position: relative;
  opacity: 1;
}

.slide img {
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .lightbox {
    align-items: flex-start;
    overflow-y: auto;
    padding: 30px 10px;
  }

  .lblegend {
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}
.lblegend {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.3); /* 30% black */
  color: white;
  padding: 1rem;
  box-sizing: border-box;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.legend-text {
  flex-grow: 1;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  background: none;
  border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  z-index: 1010;
  position: relative; /* ensures z-index applies */
}

.carousel-btn:hover {
  color: var(--red);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  text-decoration: none;
  z-index: 101;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  border-radius: 5px;
  font-weight: bold;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

#contact {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    background-color: #010101;
}

#contactdeets {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    z-index: 2;
    padding: 50px;
    white-space: nowrap;
}

#splinelogo {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 1;
    z-index: 1;
}

#contact a {
    color: var(--red)
}

footer {
    margin: 20px;
}

footer p {
    font-size: 9pt;
    line-height: 12pt;
}