/* === BASE LAYOUT === */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.content h1 {
  font-size: 24px;
  margin-top: 0;
  font-weight: normal;
  text-transform: uppercase;
}

.content p {
  max-width: 100%;
  font-size: 20px;
}

/* Desktop typography */
@media (min-width: 768px) {
  .content h1 {
    font-size: 32px;
    font-weight: normal;
    text-transform: uppercase;
  }

  .content p {
    max-width: 720px;
    font-size: 17px;
  }
}

.topbar {
  background: #000;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.container {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

@media (min-width: 768px) {
  .container {
    flex-direction: row;
  }
}

.sidebar {
  background: #fff;
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); /* Mobile shadow */
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .sidebar {
    width: 240px;
    padding: 10px;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 8px 0 24px rgba(0,0,0,0.2); /* Desktop shadow to the right */
  }
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #000;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.logo {
  text-align: center;
  flex-shrink: 0;
}

.logo img {
  width: 80px;
  cursor: pointer;
  height: 80px;
  object-fit: cover;
  object-position: top;
}

@media (min-width: 768px) {
  .logo {
    width: 100%;
    margin-bottom: 40px;
  }

  .logo img {
    width: 180px;
    height: auto;
    object-fit: contain;
  }
}

.navigation {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border-radius: 8px;
  min-width: 200px;
  z-index: 1000;
}

.navigation.active {
  display: block;
}

.navigation li {
  border-bottom: 1px solid #f0f0f0;
}

.navigation li:last-child {
  border-bottom: none;
}

.navigation a {
  color: #000;
  text-decoration: none;
  font-weight: 300;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  padding: 15px 20px;
  transition: background 0.3s, color 0.3s;
}

@media (min-width: 768px) {
  .navigation {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    position: static;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    min-width: auto;
  }

  .navigation li {
    margin: 15px 0;
    border-bottom: none;
  }

  .navigation a {
    font-size: 18px;
    padding: 8px 12px;
  }
}

.navigation a.active,
.navigation a:hover {
  background: #f4f4f4;
  color: #000;
  font-weight: 700;
}

body.digital .navigation a.active {
  color: #dc2626;
}

body.studio .navigation a.active {
  color: #eab308;
}

body.clients .navigation a.active {
  color: #2563eb;
}

body.contact .navigation a.active {
  color: #000;
}

body.apparel .navigation a.active {
  color: ##6b7280;
}

/* === MAIN CONTENT === */
.content {
  flex-grow: 1;
  padding: 20px;
  position: relative;
}

/* Watermark for all pages */
.content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    url('images/syllabics.svg'),
    url('images/syllabics.svg');
  background-repeat: repeat, repeat;
  background-size: 180px 81px, 180px 81px;
  background-position: 0 0, 90px 40px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* Text above watermark */
.content > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .content {
    padding: 40px;
  }
}

/* === PAGE BACKGROUNDS === */
body.index .content {
  background-color: #000;
  color: #fff;
}

body.contact .content {
  background-color: #f7f7f7;
  color: #000;
}

body.contact .content::before {
  filter: brightness(0) invert(0.88); /* 10-12% grey tint */
  opacity: 0.40;
}

body.studio .content {
  background-color: #FFD300;
}

body.studio .content::before {
  filter: brightness(0) invert(0.95); /* Nearly white syllabics for visibility on yellow */
  opacity: 0.3;
}

body.digital .content {
  background-color: #dc2626;
}

body.clients .content {
  background-color: #2563eb;
}

body.apparel .content {
  background-color: #a6a6a6;
}

/* Text colors for each page */
body.studio .content p,
body.studio .content h1,
body.contact .content p,
body.contact .content h1 {
  color: #000000;
}

body.digital .content p,
body.digital .content h1,
body.clients .content p,
body.clients .content h1,
body.apparel .content p,
body.apparel .content h1 {
  color: #fff;
}

/* === CONTACT FORM === */
.contact-form {
  max-width: 500px;
  margin: 30px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 300;
  color: #000000;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
}

.submit-btn {
  background: #000;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #333;
}

/* === SOCIAL ICONS === */
.social-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.social-label {
  color: #000000;
  margin-right: 10px;
}

.social-icon {
  display: inline-block;
  transition: opacity 0.3s;
}

.social-icon:hover {
  opacity: 0.7;
}

.social-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

@media (max-width: 768px) {
  .contact-form {
    max-width: 100%;
  }

  .social-icons {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .social-label {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .social-icons .social-icon {
    margin-left: 0;
  }
}

/* === CLIENT GALLERY === */
.client-gallery {
  display: grid;
  grid-template-columns: repeat(4, 200px);
  gap: 0;
  margin: 40px 0;
  justify-content: start;
}

@media (min-width: 768px) {
  .client-gallery {
    grid-template-columns: repeat(4, 200px);
    gap: 0;
  }
}

.thumbnail-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid white;
  width: 200px;
  height: 200px;
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
}

.thumbnail-item img {
  width: 200px;
  height: 200px;
  display: block;
  object-fit: cover;
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
}

.thumbnail-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
  filter: brightness(0.6);
}

.thumbnail-item:hover .caption {
  transform: translateY(0);
}

/* === ECOMMERCE STYLES === */
.cart-header {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
}

.cart-button {
  background: #fff;
  color: #000;
  border: 2px solid #fff;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.cart-button:hover {
  background: transparent;
  color: #fff;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #fff;
  color: #000;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
}

.cart-sidebar.active {
  right: 0;
}

.cart-content {
  padding: 20px;
  position: relative;
}

.cart-content h3 {
  margin-top: 0;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close-cart {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #000;
}

.cart-total {
  margin: 20px 0;
  font-size: 18px;
  text-align: center;
  padding: 15px;
  border-top: 2px solid #eee;
}

.checkout-btn {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 15px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background: #333;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

@media (min-width: 768px) {
  .product-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.product-image .hover-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-item:hover .hover-image {
  opacity: 1;
}

.product-item:hover .main-image {
  opacity: 0;
}

.product-info {
  padding: 20px;
  color: #3d3d3d;
}

.product-info h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0;
  color: #fff;
}

.size-selector {
  margin: 15px 0;
}

.size-selector label {
  display: block;
  margin-bottom: 5px;
  font-weight: 300;
  color: #fff;
}

.size-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  color: #000;
}

.add-to-cart {
  width: 100%;
  background: #fff;
  color: #000;
  border: 2px solid #fff;
  padding: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 15px;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

.add-to-cart:hover {
  background: transparent;
  color: #fff;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 15px;
  border-radius: 4px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 14px;
}

.cart-item-size {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.cart-item-price {
  font-weight: 700;
  color: #000;
}

.cart-item-remove {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 10px;
}

.cart-item-remove:hover {
  background: #b91c1c;
}

@media (max-width: 768px) {
  .cart-sidebar {
    width: 100vw;
    right: -100vw;
  }
  
  .product-gallery {
    grid-template-columns: 1fr;
  }
}

/* === LIGHTBOX === */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-info {
  background: #666;
  color: white;
  padding: 20px;
  margin-top: 0;
  width: 100%;
  text-align: left;
}

.lightbox-info h2 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lightbox-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  text-transform: none;
}

@media (min-width: 768px) {
  .lightbox-content img {
    width: 800px;
    height: 800px;
    object-fit: cover;
  }
  
  .lightbox-info {
    width: 800px;
    height: 80px;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    overflow: hidden;
  }
  
  .lightbox-info h2 {
    font-size: 16px;
    margin: 0 0 6px 0;
    line-height: 1.2;
  }
  
  .lightbox-info p {
    font-size: 13px;
    margin: 0;
    line-height: 1.3;
  }
}