/* ---------- CSS Variables ---------- */
:root {
  --sidebar-width: 250px;
  --sidebar-padding: 2rem;
  --sidebar-bg: #222;
  --main-bg: rgb(168, 168, 168);
  --content-bg: white;
  --text-light: white;
  --text-dark: black;
  --text-muted: #888;
}

/* ---------- Base styles ---------- */
body {
  background: rgb(221, 221, 221);
  font-family: "Montserrat", sans-serif;
  font-weight: 250;
  font-style: normal;
  scroll-behavior: smooth;
}

/* ---------- Sidebar navigation ---------- */
nav {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--text-light);
  height: 100vh;
  position: fixed;
  padding: var(--sidebar-padding);
  top: 0;
  left: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  overflow-y: auto;
}

#logo {
  font-size: 72px;
  font-weight: lighter;
  color: var(--text-light);
  text-align: center;
  animation: flicker 2s infinite;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
    text-shadow:
      0 0 5px var(--text-light),
      0 0 10px var(--text-light),
      0 0 20px var(--text-light);
  }
  20%, 24%, 55% {
    opacity: 0.4;
    text-shadow: none;
  }
}

#slogan {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1rem;
}

/* --- Language Switcher Styles --- */
#lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s, background-color 0.3s;
}

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

.lang-btn.active {
  background: var(--text-light);
  color: var(--sidebar-bg);
}


nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1rem;
}

nav a.active,
nav a:hover {
  color: var(--text-light);
}

/* ---------- Main Content Area (Header, Content, Footer) ---------- */
#head,
.content-container,
footer {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: hidden;
  bottom: 0;
  margin-bottom: 10px;
}

.terms-and-conditions {
  background: #1e1e1e;
  color: #ffffff;
  padding: 40px;
  border-radius: 6px;
}



#head {
  background: var(--sidebar-bg);
  color: var(--text-light);
  min-height: 150px;
  font-size: 48px;
  text-align: center;
  font-weight: lighter;
  padding: 10vh 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* NEW: Flex properties for multiple items */
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

/* NEW: Header Social Links */
.header-social-links {
  display: flex;
  gap: 1.5rem;
  font-size: 1.5rem; /* Adjust icon size */
}

.header-social-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.header-social-links a:hover {
  color: var(--text-light);
  transform: scale(1.1);
}
/* END: Header Social Links */


.content-container {
  position: relative;
  min-height: 70vh;
  padding-bottom: 100px;
}

footer {
  background: #2e2e2e;
  color: white;
  height: 50px;
  font-size: 12px;
  padding: 50px;
  margin-top: 20px;
  text-align: center;
}

/* ---------- Content Switching ---------- */
.content {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s ease;
  margin-top: 0;
}

.content.active {
  opacity: 1;
  pointer-events: all;
  position: relative;
}

/* ---------- Home Page Content Styling ---------- */
.home-content-wrapper {
  background: var(--content-bg);
  color: var(--text-dark);
  font-size: 18px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 40px;
  margin-top: 80px;
  font-weight: 250;
}

.content-padding {
    padding-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 20px;
}

.info-boxes {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.box {
  flex: 1;
  min-width: 250px;
  position: relative;
  background: #2e2e2e;
  color: var(--text-light);
  padding: 60px;
  box-sizing: border-box;
  border-radius: 8px;
  
}

.box h3 {
  margin-top: 0;
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* This rule only applies to tables inside the .box (homepage price list) */
.box table, .box th, .box td {
  border: 1px solid #555;
  padding: 15px;
  overflow: hidden;
  font-size: 14px;
  text-align: left;
}

/* This rule only applies to tables inside the .box (homepage price list) */
.box table tr:nth-child(even) {
  background-color: #333;
}

hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* NEW: Donation Box Styles */
.donation-box {
  border: 1px solid #eee;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  max-width: 500px;
}

.donation-box h3 {
  margin-top: 0;
  font-weight: 600;
}

.donation-box p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.donate-btn {
  background-color: #ffffff; /* PayPal blue */
  color: rgb(0, 0, 0);
  border: solid 1px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.donate-btn:hover {
  background-color: #000000;
  color: white;
  border-color: #000;
}
/* END: Donation Box Styles */


/* --- View All Portfolio Link Style --- */
.view-all-portfolio {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-bottom-color 0.3s;
}

.view-all-portfolio:hover {
  color: #555;
  border-bottom-color: #555;
}

/* ---------- Gallery & Filter Styles ---------- */
.gallery-container {
  column-count: 3;
  column-gap: 20px;
}

.gallery-item {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background-color: #333;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin-bottom: 20px;
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}

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

.gallery-item.hidden {
  transform: scale(0.8);
  opacity: 0;
  display: none;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: #eee;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.filter-btn:hover {
  background: #ddd;
}

.filter-btn.active {
  background: var(--sidebar-bg);
  color: var(--text-light);
}

/* ---------- GFX Page Styles (Replacing Downloads) ---------- */
#gfx-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.download-item {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  /* Use flex display for easy hide/show based on filter */
  display: flex; 
  /* Change to column layout to just hold the image */
  flex-direction: column; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  /* Minimum padding/margin for better visual grouping */
  margin-bottom: 15px; 
}

.download-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #e0e0e0;
  /* Ensure cursor is default for simple right-click/copy behavior */
  cursor: default; 
  transition: opacity 0.3s;
}

.download-item-image:hover {
  opacity: 0.95;
}

/* Remove content container styles since title/description are gone */
/* The download-item itself will hold only the image */
.download-item-content {
  display: none; /* Hide any remaining content padding/elements */
}


/* ---------- Request Form Styles ---------- */
#request-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  /* UPDATED: Removed auto-centering */
  margin: 20px 0;
}

.form-group, .form-group-inline {
  display: flex;
  flex-direction: column;
}

.form-group-inline {
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

#request-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group-inline label span {
  font-weight: normal; 
}

#request-form input[type="text"],
#request-form input[type="email"],
#request-form select,
#request-form textarea {
  width: 100%;
  padding: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#request-form input[type="checkbox"] {
  width: auto;
}

#request-form textarea {
  resize: vertical;
  min-height: 100px;
}

#request-form input[readonly] {
  background: #eee;
  font-weight: bold;
}

.conditional-details {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #eee;
}

.conditional-details.visible {
  display: flex;
}

#request-form button[type="submit"] {
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--sidebar-bg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s;
}

#request-form button[type="submit"]:hover {
  opacity: 0.8;
}

#request-form button[type="submit"]:disabled {
  background: #999;
  cursor: not-allowed;
}

#form-status {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
}

#form-status.success {
  background: #d4edda;
  color: #155724;
}

#form-status.error {
  background: #f8d7da;
  color: #721c24;
}

.disclaimer-box {
  padding: 20px;
  font-size: 16px;
}

/* ---------- Lightbox Popup Styles ---------- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.lightbox-overlay.visible {
  display: flex;
  opacity: 1;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: #ccc;
}

/* ---------- RESPONSIVENESS (TABLET & MOBILE) ---------- */
@media (max-width: 1024px) {
  .gallery-container {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  nav {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 1rem;
    flex-direction: row; /* Make nav horizontal */
    flex-wrap: wrap; /* Allow items to wrap */
    justify-content: center; /* Center items */
    gap: 0.5rem 1rem; /* Adjust gaps */
  }
  
  #logo {
    font-size: 48px;
    width: 100%; /* Make logo take full width */
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  #slogan {
     width: 100%; /* Make slogan take full width */
     text-align: center;
     margin-bottom: 0.5rem;
     margin-top: -1rem; /* Pull it closer to logo */
  }
  
  #lang-switcher {
    order: 3; /* Change order */
    margin-bottom: 0;
  }
  
  nav a {
    order: 4; /* Change order */
    padding: 0.5rem;
  }

  #head,
  .content-container,
  footer {
    margin-left: 0;
    width: 100%;
  }

  .home-content-wrapper {
    margin-top: 10px;
    padding: 20px;
  }

  #head {
    padding: 5vh 20px;
    font-size: 32px;
    /* NEW: Stack title and links vertically */
    flex-direction: column;
  }

  .header-social-links {
    font-size: 1.25rem; /* Smaller icons on mobile */
  }

  .info-boxes {
    flex-direction: column;
  }

  .gallery-container {
    column-count: 1;
  }
  
  #gfx-container {
    grid-template-columns: 1fr; /* Stack download items on mobile */
  }

}