/* ----- RESET / BASE ----- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer,
header, hgroup, menu, nav, output, ruby, section,
summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* ----- BODY / GLOBAL STYLES ----- */
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 20px;
  color: black;
  background: white;
  margin: 0;
  padding: 0;
}

/* Add General Sans font */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@700,400,600,500,300&display=swap');

/* REMOVE BULLETS */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Default link styles for Light Mode */
a {
  color: #000; /* Black for light mode */
  text-decoration: underline; /* Underlined by default */
  transition: color 0.3s ease, text-decoration 0.3s ease; /* Smooth transitions */
}

a:hover {
  text-decoration: none; /* Removes underline on hover */
}

/* Dark Mode link styles */
.dark a {
  color: #fff; /* White for dark mode */
}


/* HEADINGS / PARAGRAPH STYLES */
.h1, .h2 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.p {
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
  margin-bottom: 1rem;
  font-weight: 400;
}

.faded-text {
  color: #808080;
}

.li {
  font-size: 16px;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

/* ----- RESPONSIVE GRID LAYOUT ----- */
.container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  padding: 2rem;
  min-height: 100vh; /* Full viewport height */
  align-content: end; /* Aligns content to bottom */
}

.column {
  grid-column: span 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    grid-template-columns: 1fr;
  }
}

/* >= 768px => 3 columns */
@media (min-width: 768px) {
  .container {
    grid-template-columns: repeat(3, 1fr);
    /* Let it fill 100% of the viewport width, still fluid */
    width: 100%;
  }
}

/* >= 992px => 4 columns */
@media (min-width: 992px) {
  .container {
    grid-template-columns: repeat(4, 1fr);
    /* Still fluid, up to that breakpoint */
    width: 100%;
  }
}

/* >= 1280px => 5 columns */
@media (min-width: 1280px) {
  .container {
    grid-template-columns: repeat(5, 1fr);
    /* Still fluid, up to that breakpoint */
    width: 100%;
  }
}

/* >= 1440px => 6 columns */
@media (min-width: 1440px) {
  .container {
    grid-template-columns: repeat(6, 1fr);
    /* STILL fluid */
    width: 100%;
  }
}

/* 
  Finally, above 1900px or 2000px or 2200px (pick your point),
  clamp the container so it does not exceed 2200px
*/
@media (min-width: 2200px) {
  .container {
    max-width: 2200px; /* clamp the container */
    margin: 2rem auto; /* still center it horizontally */
  }
}


/* ----- LOGO GRID ----- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  list-style: none;
  margin: 0;
}

.logo-grid li {
  position: relative;
  aspect-ratio: 1; /* Makes items square */
  overflow: hidden;
}

.logo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logo-grid li:hover img {
  filter: grayscale(0%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }
}

/* ----- LIGHTBOX (white overlay) ----- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-info {
  color: white;
  text-align: center;
  margin-top: 1rem;
}

.lightbox-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.lightbox-description {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.lightbox-price {
  font-size: 1.25rem;
}

.lightbox-close {
  position: absolute;
  top: -2rem;
  right: -2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
}

.lightbox-arrow {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 1rem;
}

.lightbox-arrow svg {
  width: 24px;
  height: 24px;
}

.lightbox-variations-wrapper {
  position: absolute;
  bottom: -2rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.lightbox-variations {
  display: flex;
  gap: 0.5rem;
}

.variation-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0.5;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.variation-dot.active {
  opacity: 1;
}

/* ----- LIGHTBOX VARIATIONS ----- */
.lightbox-variations-wrapper {
  margin-top: 1rem;
  text-align: center;
  position: relative;
}
.lightbox-variations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.lightbox-variations button {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.lightbox-variations button:hover {
  background: rgba(0, 0, 0, 0.05); /* Subtle hover effect with light gray background */
  color: #000; /* Ensure text remains black */
  border-color: rgba(0, 0, 0, 0.3); /* Optional: Slightly darker border for emphasis */
}
.lightbox-variations button.active {
  background: #000;
  color: #fff;
}

/* ----- LIGHTBOX (dark mode adjustments) ----- */
.dark .lightbox {
  background-color: rgba(0, 0, 0, 0.9); /* Darker background for better contrast */
}

/* ----- LIGHTBOX CONTENT ----- */
.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 5% auto;
  text-align: center;
}

/* Title and Price Styles */
.lightbox-title {
  margin: 1rem 0 0.5rem;
  font-size: 16px;
  color: var(--text-color, #000); /* Dynamic color */
}

.lightbox-price {
  margin-bottom: 1rem;
  font-size: 14px;
  color: var(--text-color, #000); /* Dynamic color */
}

/* Dark mode adjustments for text */
.dark .lightbox-title,
.dark .lightbox-price {
  color: #fff; /* White text for better visibility */
}

/* ----- LIGHTBOX NAVIGATION ARROWS ----- */
.lightbox-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.lightbox-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease, stroke 0.3s ease;
}

.lightbox-arrow:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.lightbox-arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--text-color, #000); /* Dynamic color for light mode */
  stroke-width: 1.5;
  transition: stroke 0.3s ease;
}

/* Dark mode adjustments for arrows */
.dark .lightbox-arrow svg {
  stroke: #fff; /* White for better visibility in dark mode */
}



/* Mobile Adjustments */
@media (max-width: 480px) {
  .tooltip {
    top: 50px; /* Increase space below dots on smaller screens */
    font-size: 0.85rem; /* Maintain good readability */
    padding: 0.5rem 1rem; /* Keep padding consistent */
  }
}


/* Dots for Variations */
.lightbox-dots {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #000;
}

.dot:hover {
  background: #555;
}
.lightbox-dots-wrapper:hover .tooltip {
  display: flex; /* Show tooltip on hover */
}


/* Add rounded corners to images inside .logo-grid li */
.logo-grid li img {
  border-radius: 0.375rem; /* Rounded corners */
}

/* Logo Items */
.logo-grid-action li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-grid-action img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;

}

.logo-grid-action img:hover {
  transform: scale(1.05);
  filter: grayscale(0);
}

/* Logo Titles */
.logo-title {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
}

/* Logo Descriptions */
.logo-description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #555;
}

/* Theme variables */
:root {
    /* Light theme (default) */
    --bg-color: #ffffff;
    --text-color: #000000;
    --color-background-muted: rgb(249, 249, 249);
    --color-text-primary: rgb(12, 30, 33);
    --color-text-secondary: rgba(6, 39, 44, 0.6);
    --color-border: rgb(232, 232, 232);
    --font-size-tag: 16px;
    --font-size-heading: 32px;
    --font-size-subheading: 20px;
    --font-size-body: 16px;
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2rem;
    /* Typography System */
    --font-family-base: "General Sans", "General Sans Placeholder", sans-serif;
    --line-height-base: 130%;
    --paragraph-spacing: 20px;
    --letter-spacing-base: 0px;
}

/* Dark theme */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --color-background-muted: rgb(28, 28, 28);
    --color-text-primary: rgb(255, 255, 255);
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-border: rgb(38, 38, 38);
    --font-size-tag: 16px;
    --font-size-heading: 32px;
    --font-size-subheading: 20px;
    --font-size-body: 16px;
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2rem;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.fixed {
  position: fixed;
}

/* Theme Toggle Styles */
.theme-toggle-container {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 1000;
}

.theme-toggle-button {
  background-color: var(--color-background-muted);
  width: 40px;
  height: 24px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative; /* Add position relative for absolute positioning of icons */
  transition: background-color 0.3s ease;
}

/* Icon container that slides */
.theme-toggle-icon {
  width: 16px;
  height: 16px;
  position: absolute; /* Position absolute within the button */
  left: 4px; /* Initial position from left */
  transition: transform 0.3s ease;
}

/* Move icon to right in dark mode */
[data-theme="dark"] .theme-toggle-icon {
  transform: translateX(16px); /* Adjust translation to stay within container */
}

/* Icon styles */
.theme-toggle-button svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-primary);
}

/* Focus styles for keyboard navigation */
.theme-toggle-button:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

/* Dark mode specific styles */
[data-theme="dark"] .theme-toggle-button {
  border-color: var(--color-border);
}

[data-theme="dark"] .nav-title {
  color: var(--color-text-primary);
  background-color: var(--color-background-muted);
}

[data-theme="dark"] .nav-title:hover {
  background-color: var(--color-border);
}

/* Ensure Archives and Logos links are visible in dark mode */
[data-theme="dark"] .nav-content .nav-title {
  color: var(--color-text-primary);
  background-color: var(--color-background-muted);
}

[data-theme="dark"] .nav-content .nav-title:hover {
  background-color: var(--color-border);
}

/* General text color and theme variables */
body {
  color: var(--text-color, #000000);
}

/* Dark mode colors */
.dark {
  --text-color: #ffffff; /* White text in dark mode */
  --bg-color: #1a1a1a; /* Dark background */
}

/* Default styles for Light Mode */
.parent-class {
  color: #000; /* Black in light mode */
}

/* Dark mode styles */
.dark .parent-class {
  color: #fff; /* White in dark mode */
}

/* Accordion Wrapper */
.accordion {
  margin: 2rem auto; /* Center horizontally */
  width: 70%; /* Set a fixed width, you can adjust as needed */
  max-width: 1440px; /* Prevent it from becoming too wide */
  background: var(--bg-color, #fff); /* Match lightbox style */
  border: 1px solid var(--border-color, #ccc); /* Border similar to lightbox */
  border-radius: 8px; /* Same rounded corners */
  overflow: hidden; /* Hide overflow */
  text-align: le; /* Align text to center */
}


/* Accordion Header */
.accordion-header {
  padding: 1rem 1.5rem; /* Add padding similar to lightbox */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-color, #fff); /* Match lightbox background */
  cursor: pointer; /* Indicate clickable */
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background: rgba(0, 0, 0, 0.05); /* Subtle hover effect */
}

/* Accordion Icon */
.accordion-icon {
  width: 1.5rem; /* Match lightbox icons */
  height: 1.5rem;
  stroke: var(--text-color, #000); /* Match text color */
  transition: transform 0.3s ease; /* Smooth rotation on toggle */
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg); /* Rotate icon when expanded */
}

/* Accordion Content */
.accordion-content {
  display: none; /* Hide content by default */
  padding: 1rem 1.5rem; /* Add padding for content */
  background: var(--bg-color, #fff); /* Match lightbox background */
  animation: slideDown 0.3s ease forwards;
  border-top: 1px solid var(--border-color, #ccc); /* Top border for separation */
}

.accordion-content h3 {
  font-size: 1rem; /* Similar heading size */
  font-weight: 500; /* Match weight */
  margin-bottom: 0.5rem; /* Add spacing */
}

.accordion-content p,
.accordion-content ul {
  font-size: 0.875rem; /* Match lightbox text size */
  line-height: 1.5; /* Better readability */
  color: var(--text-color-secondary, #555); /* Slightly muted color */
}

/* Accordion List Items */
.accordion-content ul {
  list-style-type: disc;
  margin-left: 1.5rem; /* Indent list items */
}

.accordion-content ul li {
  margin-bottom: 0.5rem; /* Add spacing between items */
}

/* Keyframes for Slide Down */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.accordion-content {
  padding: 24px;
  display: none;
  background-color: #fff;
}

.accordion-content.open {
  display: block;
}

.accordion-section {
  margin-bottom: 16px;
}

.accordion-section h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.accordion-section p {
  font-size: 16px;
  color: rgba(128, 128, 128, 1);
font-weight: 300;
}

.accordion-section ul {
  list-style: none;
  padding: 0;
}

.accordion-section ul li {
  font-size: 16px;
  color: rgba(128, 128, 128, 1);
  margin-bottom: 4px;
}
/* ----- ACCORDION SECTION HEADINGS ----- */
.accordion-section h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text-color); /* Default dynamic text color */
}

/* Override for dark mode */
.dark .accordion-section h3 {
  color: #000; /* Set to black in dark mode */
}

/* Updated container styles */
.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 48px;
}

/* Header section styles */
.header-section {
  width: 100%;
}

/* Content section styles */
.content-section {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.content-section .grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto;
  gap: 48px;
  width: 100%;
  padding: 0;
}

/* Ensure items stay in first row on desktop */
@media (min-width: 1025px) {
  .content-section .grid-item {
    grid-row: 1;
  }
  
  .content-section .grid-item:nth-child(1) { grid-column: 1; }
  .content-section .grid-item:nth-child(2) { grid-column: 2; }
  .content-section .grid-item:nth-child(3) { grid-column: 3; }
  .content-section .grid-item:nth-child(4) { grid-column: 4; }
  .content-section .grid-item:nth-child(5) { grid-column: 5; }
}

/* Responsive behavior with consistent padding */
@media (max-width: 1024px) {
  .main-container {
    padding: 32px;
  }

  .content-section {
    justify-content: flex-start;
  }

  .content-section .grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  
  .content-section .grid-item {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 20px;
  }
  
  .content-section .grid-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 16px;
  }
  
  .content-section .grid-container {
    gap: 24px;
  }
}

/* Content text styles */
.content-text {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.section-title {
  margin-bottom: 1rem;
}

/* Typography styles */
.intro-block {
  margin-bottom: 20px;
}

.name {
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-s);
  letter-spacing: -0.02em;
}

.title,
.subtitle,
.section-title {
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 500;
  -webkit-font-weight: 500; /* Safari specific */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  margin: 0;
  padding: 0;
}

.nav-title {
  font-size: 14px;
  line-height: var(--line-height-body);
  font-weight: 400;
  color: var(--color-text-primary);
  padding: 8px;
  display: inline-block;
  background-color: var(--color-background-muted);
  border-radius: 6px;
}

.nav-title:hover {
  color: var(--color-text-secondary);
}

/* Navigation styles */
.nav-block {
  margin: 48px 0;
}

.nav-content {
  display: flex;
  gap: 16px;
}


/* Mobile adjustments with increased horizontal padding */
@media (max-width: 768px) {
  .nav-title {
    padding: 8px;  /* Keep padding consistent */
  }
  
  .nav-content {
    gap: 16px;  /* Slightly reduced gap for mobile */
  }
}

/* Additional mobile adjustments */
@media (max-width: 480px) {
  .nav-block {
    flex-wrap: wrap;
  }
  
  .nav-title {
    padding: 8px 16px; /* Maintain padding */
    width: auto;
  }
}

/* Section styles */
.section-title {
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 500;
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  margin-bottom: var(--space-m);
}

/* Safari-only styles using a more specific selector */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    _::-webkit-full-page-media, _:future, :root .section-title,
    _::-webkit-full-page-media, _:future, :root .title {
        font-weight: 600;
    }
}

/* Content text stays at 400 for all browsers */
.content-text {
    font-family: var(--font-family-base);
    font-size: 16px;
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--color-text-primary);
    margin-bottom: var(--space-s);
}

/* Emphasized text (like company names) */
.content-text em {
  font-family: var(--font-family-base);
  font-style: normal;
  color: var(--color-text-secondary);
}

/* Links in content */
.content-text a {
  color: var(--color-text-primary);
  text-decoration: none;
}

.content-text a:hover {
  opacity: 0.7;
}

/* Copyright text */
.copyright {
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
}

/* Archives grid styles */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-item {
    width: 100%;
}

.image-container {
    width: 100%;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* Responsive breakpoints */
@media screen and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media screen and (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

/* Add smooth scrolling to page */
html {
    scroll-behavior: smooth;
}

/* Base transitions for all interactive elements */
* {
    transition: all 0.3s ease-in-out;
}

/* Optimize for larger screens */
@media (min-width: 1440px) {
    .main-container {
        padding: 60px;
        margin: 0 auto;
    }
    
    .grid-container {
        gap: 80px;
    }
}

/* Additional optimization for extra large screens (iMac, etc) */
@media (min-width: 2000px) {
    .main-container {
        padding: 80px;
    }
    
    .grid-container {
        gap: 100px;
    }
}

/* Ultra-wide screens */
@media (min-width: 2560px) {
    .main-container {
        padding: 100px;
    }
    
    .grid-container {
        gap: 120px;
    }
}

/* Add page transition styles */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhance responsive transitions */
@media (max-width: 768px) {
    .grid-container {
        transition: gap 0.3s ease, grid-template-columns 0.3s ease;
    }
    
    .content-section {
        transition: align-items 0.3s ease;
    }
}

/* Update grid layout for logos to match index */
.grid-container,
.logos-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 56px;
}

/* Logo specific styles */
.logo-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.logo-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logos-grid,
    .footer-grid {
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Add to existing CSS */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.footer-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px;
    margin-top: auto;
}

@media (max-width: 768px) {
    .content-section {
        align-items: flex-start;
    }
    
    .logos-grid,
    .footer-grid {
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .logos-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Tag styles */
.tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--color-background-muted);
  border-radius: 4px;
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-s);
}

/* Main heading */
.name {
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-s);
  letter-spacing: -0.02em;
}

/* Subheading */
.title {
  font-size: var(--font-size-subheading);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

/* Description */
.subtitle {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-m);
}

/* Navigation */
.nav-block {
  margin: 48px 0;
}

.nav-content {
  display: flex;
  gap: 16px;
}

.nav-title {
  font-size: 14px;
  line-height: var(--line-height-body);
  font-weight: 400;
  color: var(--color-text-primary);
  padding: 8px;
  display: inline-flex;
  align-items: center;
  height: 44px;
  box-sizing: border-box;
  background-color: var(--color-background-muted);
  border-radius: 6px;
}

.nav-title:hover {
  color: var(--color-text-secondary);
}

/* Base text styles */
.text-base {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-style: normal;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Name/Main heading */
.name {
  font-size: var(--font-size-heading);
  line-height: var(--line-height-base);
  font-weight: 400;
  color: var(--color-text-primary);
}

/* Section titles */
.section-title {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-display);
  font-weight: 400;
  color: var(--color-text-primary);
}

/* Base styles for navigation and tags */
.nav-title, .tag {
  font-size: var(--font-size-small);
  line-height: var(--line-height-body);
  font-weight: 400;
  color: var(--color-text-primary);
  margin: 0;
  text-decoration: none;
}

/* Specific nav-title styling */
.nav-title {
  padding: 8px;
  display: inline-flex;
  align-items: center;
  height: 44px;
  box-sizing: border-box;
  background-color: rgb(249, 249, 249);
  border-radius: 6px;
}

.nav-block {
  margin: 48px 0;
}

.nav-content {
  display: flex;
  gap: 16px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-title {
    padding: 8px;
  }
  
  .nav-content {
    gap: 16px;
  }
}

/* Responsive adjustments */
@media (max-width: 1199px) and (min-width: 810px) {
  :root {
    --font-size-heading: 36px;
    --font-size-h2: 20px;
  }
}

@media (max-width: 809px) {
  :root {
    --font-size-heading: 28px;
    --font-size-h2: 18px;
  }
}

/* Text variations */
.text-bold {
  font-weight: 700;
}

.text-italic {
  font-style: italic;
}

.text-bold-italic {
  font-weight: 700;
  font-style: italic;
}

/* Additional text properties */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: inherit;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

/* Header content with consistent typography */
.tag,
.subtitle {
  font-family: var(--font-family-base);
  font-size: var(--font-size-small); /* 14px */
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  margin: 0;
  padding: 0;
}

/* Tag specific styles (Design & Direction) */
.tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--color-background-muted);
  border-radius: 4px;
  margin-bottom: var(--space-s);
}

/* Subtitle specific styles (Beyond design...) */
.subtitle {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-m);
  max-width: 32ch; /* For better readability */
}

/* Keep the name styling as is */
.name {
  font-size: var(--font-size-display);
  line-height: var(--line-height-display);
  font-weight: 400;
  color: var(--color-text-primary);
  margin: var(--space-s) 0;
}

/* Make description match h2 section-title styling */
.description {
  margin-bottom: var(--space-m);
}

.title,
.subtitle,
.section-title {
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 500; /* Changed from 400 to 500 */
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  margin: 0;
  padding: 0;
}

/* Subtitle variation */
.subtitle {
  color: var(--color-text-secondary);
  display: block;
  margin-top: var(--space-xs);
}

/* Section title specific spacing */
.section-title {
  margin-bottom: var(--space-m);
}

/* Consistent mobile styling */
@media (max-width: 768px) {
  .title,
  .subtitle,
  .section-title {
    font-size: var(--font-size-small); /* Maintain 14px */
  }
}

/* Content text em styling */
.content-text em {
  font-family: var(--font-family-base);
  font-style: normal;
  color: var(--color-text-secondary);
}

/* Update subtitle to match em styling */
.subtitle {
  font-family: var(--font-family-base);
  font-style: normal;
  color: var(--color-text-secondary);
  font-weight: 400;  /* Changed from 300 to 400 to match em */
}

/* Update dark mode colors */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --color-background-muted: rgb(249, 249, 249);
  --color-text-primary: rgb(12, 30, 33);
  --color-text-secondary: rgba(6, 39, 44, 0.6);
  --color-border: rgb(232, 232, 232);
}

.dark {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --color-background-muted: rgb(28, 28, 28);
  --color-text-primary: rgb(255, 255, 255);
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-border: rgb(38, 38, 38);
}

/* Ensure text colors update in dark mode */
.dark .content-text,
.dark .section-title,
.dark .title,
.dark .subtitle,
.dark .nav-title {
  color: var(--text-color);
}

/* Update background colors */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

/* Update nav items in dark mode */
.dark .nav-title {
  background-color: var(--color-background-muted);
  color: var(--text-color);
}

.dark .nav-title:hover {
  background-color: var(--color-border);
}

/* Update accordion in dark mode */
.dark .accordion {
  background-color: var(--bg-color);
  border-color: var(--color-border);
}

.dark .accordion-header {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.dark .accordion-content {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Update links in dark mode */
.dark a {
  color: var(--text-color);
}

.dark a:hover {
  opacity: 0.7;
}

/* Update faded text in dark mode */
.dark .faded-text {
  color: var(--color-text-secondary);
}

/* Archives Page Specific Styles */
.archives-page .archives-container {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.archives-page .header-section {
    margin-bottom: 48px;
    border-bottom: none;
    padding-bottom: 0;
}

.archives-page .header-section h1 {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 8px;
}

.archives-page .header-section .tag {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.archives-page .header-section .subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 48px;
}

.archives-page .nav-title {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    background-color: #f9f9f9;
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 14px;
}

/* Filter Section */
.archives-page .filter-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.archives-page .filter-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.archives-page .filter-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.archives-page .filter-btn.active {
    background-color: #000;
    color: #fff;
}

/* Archives container and grid styles */
.archives-container {
    width: 100%;
    padding: 0;
}

#imageGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: auto;
    grid-auto-flow: dense;
    gap: 16px;
    width: 100%;
}

#imageGrid .grid-item {
    width: 100%;
}

#imageGrid .image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

#imageGrid .image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Make every 3rd and 7th item wider */
#imageGrid .grid-item:nth-child(3n+1) {
    grid-column: span 2;
}

/* Responsive breakpoints */
@media (min-width: 2560px) {
    #imageGrid {
        gap: 24px;
    }
}

@media (max-width: 1440px) {
    #imageGrid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 1024px) {
    #imageGrid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    #imageGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding-left: 0;
        padding-right: 0;
    }
    
    #imageGrid .grid-item:nth-child(n) {
        grid-column: span 1; /* Reset wider items on mobile */
    }
}

@media (max-width: 480px) {
    #imageGrid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Handle notched phones */
@supports (padding: max(0px)) {
    .archives-container {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* Archives page specific grid styles */
.archives-page .archives-container {
    width: 100%;
    padding: 0;
}

.archives-page #imageGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: auto;
    grid-auto-flow: dense;
    gap: 16px;
    width: 100%;
}

.archives-page #imageGrid .grid-item {
    width: 100%;
}

.archives-page #imageGrid .image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.archives-page #imageGrid .image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Make every 3rd and 7th item wider */
.archives-page #imageGrid .grid-item:nth-child(3n+1) {
    grid-column: span 2;
}

/* Responsive breakpoints for archives */
@media (min-width: 2560px) {
    .archives-page #imageGrid {
        gap: 24px;
    }
}

@media (max-width: 1440px) {
    .archives-page #imageGrid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .archives-page #imageGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .archives-page #imageGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .archives-page #imageGrid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Handle notched phones for archives */
@supports (padding: max(0px)) {
    .archives-page .archives-container {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* Main container responsive padding */
.main-container {
    padding: 48px;
}

@media (max-width: 1024px) {
    .main-container {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 16px;
    }
}

/* Archives page specific styles */
.archives-page .main-container {
    padding: 48px;
}

.archives-page .archives-container {
    width: calc(100% + 96px); /* Full width plus padding compensation */
    margin-left: -48px;
    margin-right: -48px;
}

.archives-page #imageGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
    padding: 0 48px;
}

.archives-page #imageGrid .grid-item {
    width: 100%;
}

.archives-page #imageGrid .image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.archives-page #imageGrid .image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive breakpoints for archives */
@media (max-width: 1024px) {
    .archives-page .main-container {
        padding: 32px;
    }
    
    .archives-page .archives-container {
        width: calc(100% + 64px);
        margin-left: -32px;
        margin-right: -32px;
    }
    
    .archives-page #imageGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .archives-page .main-container {
        padding: 20px;
    }
    
    .archives-page .archives-container {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .archives-page #imageGrid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;  /* Remove padding on mobile for full-width images */
    }
}

@media (max-width: 480px) {
    .archives-page .main-container {
        padding: 16px;
    }
    
    .archives-page .archives-container {
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
    }
    
    .archives-page #imageGrid {
        padding: 0;
    }
}

/* Content Section for archives */
.content-section {
    width: 100%;
}

/* Archives specific grid styles */
.archives-page .grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.archives-page .grid-item {
    display: block;
    width: 100%;
}

.archives-page .image-container {
    display: block;
    width: 100%;
}

.archives-page .image-container img {
    display: block;
    width: 100%;
    height: auto;
}

/* Archives breakpoints */
@media screen and (max-width: 1024px) {
    .archives-page .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .archives-page .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media screen and (max-width: 480px) {
    .archives-page .grid-container {
        grid-template-columns: 1fr;
    }
}

/* Debug styles specifically for archives */
.archives-grid-section {
    width: 100%;
    margin-top: 48px;
    display: block; /* Ensure block display */
}

.archives-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    grid-auto-rows: min-content; /* Important for stacking */
}

.archives-grid .grid-item {
    display: block; /* Force block display */
    width: 100%;
    margin-bottom: 24px; /* Add space between items */
}

.archives-grid .image-container {
    width: 100%;
    display: block;
}

.archives-grid .image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive breakpoints */
@media (max-width: 1440px) {
    .archives-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .archives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archives-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .archives-grid .grid-item {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .archives-grid {
        grid-template-columns: 1fr;
    }
}

/* Debug styles */
.grid-item-debug {
    border: 1px solid red;
    min-height: 100px;
    background: rgba(255, 0, 0, 0.1);
}

.grid-item-debug .image-container {
    border: 1px solid blue;
}

.grid-item-debug img {
    border: 1px solid green;
}

/* Refined archives grid styles */
.archives-grid-section {
    width: 100%;
    overflow: visible;
}

.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    width: 100%;
    grid-auto-flow: row;
    grid-auto-rows: min-content;
}

.archives-grid .grid-item {
    display: block;
    width: 100%;
    height: auto;
}

.archives-grid .image-container {
    display: block;
    width: 100%;
    height: auto;
}

.archives-grid .image-container img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Archive grid styles */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.archive-item {
    width: 100%;
}

.archive-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive breakpoints */
@media (max-width: 1440px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr; /* Changed to single column */
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Styleguide specific styles */
.styleguide-section {
    margin-top: 48px;
    padding: 0 0;
    margin-left: 0;  /* Remove auto margin */
    margin-right: 0; /* Remove auto margin */
}

/* Dark mode styles */
[data-theme="dark"] .type-example > div {
    background: var(--background-dark);
}

[data-theme="dark"] .placeholder-box {
    background-color: var(--border-color-dark);
}

[data-theme="dark"] .color-swatch.bg-light {
    border: 1px solid var(--border-color-dark);
}

/* Rest of your existing styleguide CSS */
.styleguide-title {
    font-size: 32px;
    margin-bottom: 48px;
}

.style-block {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.style-block h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.style-block h3 {
    font-size: 18px;
    margin: 24px 0 16px;
}

/* Typography examples */
.type-group {
    margin-bottom: 32px;
}

.type-example > div {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--background-light);
    border-radius: 8px;
}

.text-size-example > div {
    margin-bottom: 16px;
    padding: 8px;
}

/* Color swatches */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.color-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-swatch {
    width: 100%;
    height: 100px;
    border-radius: 8px;
}

.color-label {
    font-size: 14px;
    font-weight: 500;
}

.color-value {
    font-size: 12px;
    opacity: 0.7;
}

/* Navigation examples */
.nav-examples {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Grid examples */
.example-grid {
    margin-top: 16px;
    margin-bottom: 32px;
}

.placeholder-box {
    width: 100%;
    height: 200px;
    background-color: var(--border-color);
    border-radius: 8px;
}

/* Component description */
.component-description {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .styleguide-section {
        padding: 0 24px;
    }

    .style-block {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .styleguide-section {
        padding: 0 16px;
    }
}

/* Grid Layouts */
.archives-grid,
.logos-grid {
    display: grid;
    gap: 2rem;
    width: 100%;
    padding: 2rem;
}

/* Archives Grid - Larger images with more detail */
.archives-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* Logos Grid */
.logos-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Image Items */
.archives-item,
.logos-item {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%;
    overflow: hidden;
}

/* Image Styling */
.archives-item img,
.logos-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.archives-item img:hover,
.logos-item img:hover {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .archives-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .logos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Logo Scroll */
.logo-scroll-container {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 12.5%,
        black 87.5%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 12.5%,
        black 87.5%,
        transparent
    );
}

.logo-scroll {
    width: 100%;
    padding: 10px 0;  /* Reduced padding */
}

.logo-scroll-track {
    display: flex;
    gap: 68px;
    width: max-content;
    animation: scroll 30s linear infinite;  /* Increased duration for more logos */
}

.logo-scroll-track .logo-item {
    width: 74px;  /* Exact size from Badejo's site */
    height: 72px;
    background: var(--background-color);
    border-radius: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-scroll-track .logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;  /* Added padding for inner content */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 34px));  /* Adjusted for new gap */
    }
}

/* Add to your existing dark mode styles */
[data-theme="dark"] .logo-scroll-track .logo-item {
    background: var(--dark-background-color);
}

/* Archives Grid Layout */
.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.grid-item {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Cursor Follower Styles */
.cursor-follower {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: black;
    padding: 10px 20px;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.grid-item a:hover .cursor-follower {
    opacity: 1;
}

/* Archive Detail Page Styles */
.archive-detail {
    width: 100%;
    padding: 24px;
    margin: 0 auto;
}

.archive-detail .archive-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Info Column Styles */
.archive-detail .col-info {
    grid-column: 1 / span 2;
}

/* Images Column Styles */
.archive-detail .col-images {
    grid-column: 3 / -1;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Added 16px vertical spacing between images */
}

.archive-detail .image-wrapper {
    width: 100%;
    margin: 0; /* Removed margin-bottom since we're using gap */
}

/* Info Column Styles */
.archive-detail .info-block {
    margin-bottom: 2rem;
}

.archive-detail .info-block h2 {
    font-family: var(--font-family-base);
    font-size: 0.875rem;  /* 14px */
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.archive-detail .info-block p {
    font-family: var(--font-family-base);
    font-size: 0.875rem;  /* 14px */
    line-height: 1.5;
    font-weight: 300;
    color: var(--color-text-primary);
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .archive-detail .col-info {
        grid-column: 1 / span 3;
    }
    
    .archive-detail .col-images {
        grid-column: 4 / -1;
    }
}

@media (max-width: 767px) {
    .archive-detail .archive-grid {
        display: block;
    }
    
    .archive-detail .col-info,
    .archive-detail .col-images {
        width: 100%;
    }
}

/* WIP GIF Container */
.wip-gif-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 0 1rem;
    text-align: center;
}

.wip-gif {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Icon Examples */
.icon-examples {
    padding: 2rem;
    background: var(--color-background-muted);
    border-radius: 8px;
}

.icon-group {
    margin-bottom: 2rem;
}

.icon-group h3 {
    margin-bottom: 1rem;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.icon-row {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.icon-solid,
.icon-outline {
    width: 24px;
    height: 24px;
    color: var(--color-text-primary);
}

.icon-label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Dark mode adjustments */
[data-theme="dark"] .icon-examples {
    background: var(--color-background-muted);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px;
    color: var(--color-text-primary);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Dark mode styles */
[data-theme="dark"] .back-to-top {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

/* Icon size utility class */
.size-6 {
    width: 24px;
    height: 24px;
}

/* Back to Top Button adjustments */
.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Info Icon Button */
.info-icon {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--color-text-primary);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    vertical-align: middle;
    margin-left: 4px;
}

.info-icon:hover {
    opacity: 1;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal.visible {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.modal-content {
    background: var(--color-background);
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-primary);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    margin-top: 16px;
}

.modal-body h3 {
    margin: 24px 0 12px;
    font-weight: 500;
}

.modal-body p, 
.modal-body li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.modal-body ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

/* Dark mode adjustments */
[data-theme="dark"] .modal-content {
    background: var(--color-surface);
}

/* Info Overlay Styles */
.info-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95); /* Light background */
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.info-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    background: white;
    padding: 32px;
    border-radius: 12px;
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: auto;
    border: 1px solid var(--color-border); /* Replace shadow with border */
}

.info-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: black;
}

.info-body {
    margin-top: 20px;
}

.info-body h2,
.info-body h3 {
    color: black;
    font-weight: 500;
}

.info-body p, 
.info-body li {
    color: #333;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Dark mode adjustments */
[data-theme="dark"] .info-overlay {
    background: rgba(0, 0, 0, 0.95); /* Dark background */
}

[data-theme="dark"] .info-content {
    background: #1a1a1a;
    border-color: var(--color-border); /* Use theme border color in dark mode */
}

[data-theme="dark"] .info-close {
    color: white;
}

[data-theme="dark"] .info-body h2,
[data-theme="dark"] .info-body h3 {
    color: white;
}

[data-theme="dark"] .info-body p,
[data-theme="dark"] .info-body li {
    color: rgba(255, 255, 255, 0.8);
}

/* Email link styles */
.info-body a {
    color: inherit; /* Inherit from parent text color */
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.info-body a:hover {
    opacity: 0.7;
}

/* Dark mode email link */
[data-theme="dark"] .info-body a {
    color: white; /* White color in dark mode */
}

/* Disclaimer Section */
.disclaimer-section {
    margin-top: 48px;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.disclaimer-text {
    font-family: var(--font-family-base);
    font-size: 16px;
    color: var(--color-text-primary);
}

.disclaimer-section .info-icon {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-text-primary);
    display: inline-flex;
    align-items: center;
    animation: pulse-icon 1.5s ease-in-out infinite;
    /* Add these to keep icon crisp during animation */
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    transform: translateZ(0);
}

.disclaimer-section .info-icon:hover {
    opacity: 1;
}

.disclaimer-section .info-icon svg {
    width: 24px;
    height: 24px;
}

/* Updated animation */
@keyframes pulse-icon {
    0% {
        transform: scale(1) translateZ(0);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.15) translateZ(0);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateZ(0);
        opacity: 0.7;
    }
}