/* CSS Variables */
:root {
  --primary-color: #ffffff;
  --hover-color: #5a70d8;
  --background-color: #21214c; /* Default background color */
}
/* Background color options */
/* 001933 */
/* 111e53 */

/* Reset and Basic Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Better box model handling */
}

body {
  overflow-x: hidden;
  font-family: "Unica One", sans-serif;
  margin: 0;
  min-height: 100vh; /* Allow body to expand */
  position: relative;
  background-color: var(--background-color); /* Default background color */
}

/* Interactive for Vantas Bird */
#interactive {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -999; /* Send to back */
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 85vw;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header Styling */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

header h1 {
  color: var(--primary-color);
  margin: 0;
  font-size: 2.5em;
}

/* Navigation Styles */
header nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

header nav ul li {
  position: relative;
  background-color: rgba(255, 255, 255, 0.3); /* Semi-transparent background */
  border-radius: 10px;
}

/* --- MENU BUTTONS --- */
header nav ul li a.button,
.dropbtn {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.3); 
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: normal; /* ✅ remove bold */

  cursor: pointer;
  transition: all 0.3s ease-in-out;
  width: auto;
  white-space: nowrap;
  font-family: "Unica One", sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
}

header nav ul li a.button:hover,
.dropbtn:hover {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--hover-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
}

/* Active Navigation Link */
.nav-link.button.active {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--hover-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 

}

/* Hamburger hidden on desktop */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  color: var(--primary-color);
  cursor: pointer;
  padding: 5px 10px;
}

.hamburger:hover {
  background: var(--primary-color);
  color: var(--hover-color);
}

/* Mobile nav hidden by default */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links.active {
  display: block;
  flex-direction: column;
  text-align: center;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  min-width: max-content;
  border-radius: 5px;
  list-style: none;
  padding: 10px 0;
  z-index: 100;
}

.dropdown-content li {
  margin: 0;
}

.dropdown-content a {
  display: block;
  background: rgba(0, 0, 0, 0.8);
  font-family: "Unica One", sans-serif; /* same as buttons */
  font-size: 1em;
  padding: 10px 15px;
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.dropdown-content a:hover {
  background: var(--hover-color);
  color: var(--primary-color);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
    border-radius: 5px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-content {
    position: static;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 5px;
  }
}

/* ABOUT PAGE STYLES */
.twocolumns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 50px;
  padding: 20px;
}

#me {
  flex: 1 1 300px;
  max-width: 300px;
  border: solid 1px #ccc;
  border-radius: 50px;
  object-fit: cover;
}

#bio {
  flex: 2 1 400px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#bio p {
  font-family: "Raleway", sans-serif;
}

.twocolumns img {
  width: 100%;
  height: auto;
}

/* General Button Styling (non-nav) */
button {
  width: 300px;
  padding: 15px;
  background-color: transparent;
  border: solid #fff 1px;
  color: #fff;
  border-radius: 10px;
  font-size: 1em;
  font-family: "Raleway", sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.5s, color 0.5s;
}

button:hover {
  background-color: #fff;
  color: #0f0b30;
  transition: 0.5s;
  cursor: pointer;
}

/* Navigation Button Styles */
.nav-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--hover-color);
  color: var(--primary-color);
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
  cursor: pointer;
}

.nav-button:hover,
.nav-button:focus {
  background-color: var(--primary-color);
  color: var(--hover-color);
  transform: scale(1.05);
  outline: none;
}

/* Navigation Section for Artwork Pages */
.navigation {
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  gap: 20px;
}

.navigation .previous,
.navigation .next {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navigation .previous p,
.navigation .next p {
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 50px 0;
  text-align: center;
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero h2 {
  font-size: 2em;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 1.2em;
  font-family: "Raleway", sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Portfolio Section */
.portfolio {
  padding: 50px 0;
  text-align: center;
}

.portfolio h2 {
  font-size: 2em;
  text-align: center;
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin: 20px 0;
  padding: 50px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.image-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.image-item:hover img {
  transform: scale(1.05);
}

/* Overlay text centered instead of bottom */
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6); /* keep background for readability */
  color: #fff;
  width: auto;
  padding: 10px 15px;
  border-radius: 6px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-item:hover .overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05); /* nice zoom effect */
}


.text {
  font-size: 1em;
}

/* Artwork Detail Page Styles */
.artwork-detail {
  padding: 50px 0;
  color: var(--primary-color);
  text-align: center;
}

.artwork-detail h2 {
  font-size: 2em;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin: 20px 0;
  padding: 50px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.artwork-detail h4 {
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin: 20px 0;
  padding: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.artwork-detail p {
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin: 20px 0;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  font-family: "Raleway", sans-serif;
}

.artwork-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.artwork-images img,
.artwork-images video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.artwork-images img:hover,
.artwork-images video:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

/* Video Box Styling */
.video-box {
  display: flex;              /* centers video */
  justify-content: center;    /* horizontal center */
  margin: 20px auto;          /* center on page with margin */
  max-width: 900px;           /* optional: max video width */
  width: 100%;                /* responsive width */
}

.video-box iframe {
  border: none;
  border-radius: 12px;        /* only video has rounded corners */
  width: 100%;                /* scales with container */
  height: auto;               /* keeps proportion */
  aspect-ratio: 16 / 9;       /* modern way to keep ratio */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);

}


/* Footer Styling */
footer {
  color: var(--primary-color);
  width: 100%;
  padding: 20px 0;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  margin-top: auto;
  border-radius: 10px;
}

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

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s, transform 0.3s;
}

.social-icons a.icon:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.social-icons a.icon i {
  color: var(--primary-color);
  font-size: 1.2em;
}

/* Focus States for Accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--hover-color);
  outline-offset: 2px;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .social-icons {
    gap: 10px;
  }

  .social-icons a.icon {
    width: 35px;
    height: 35px;
  }

  .nav-container {
    flex-direction: column;
  }

  .twocolumns {
    flex-direction: column;
    align-items: center;
  }

  #bio {
    width: 100%;
    max-width: 600px;
  }

  #me {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5em;
  }

  .artwork-detail h2 {
    font-size: 1.5em;
  }

  .description {
    padding: 0 10px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .social-icons a.icon {
    width: 30px;
    height: 30px;
  }

  header nav ul li a.button {
    padding: 8px 16px;
  }
}
