@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Caveat:wght@400..700&display=swap');

body {
  font-family: 'JetBrains Mono', "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Improve responsive behavior */
@media (max-width: 640px) {
  h1 {
    font-size: 1.875rem;
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
/* Animation for page transitions */
main {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Fix for profile image */
img.rounded-full {
  object-fit: cover;
}

/* Button hover effects */
a.bg-gray-800:hover {
  transform: translateY(-2px);
}

#menu-toggle:checked ~ #mobile-menu {
  display: block;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 500;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.active-nav {
  position: relative;
  font-weight: 600;
}

.active-nav::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #3b82f6;
  border-radius: 1px;
}

.dropdown-container {
  position: relative;
}

.dropdown-content {
  display: none;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 50;
  min-width: 12rem;
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

/* Desktop specific styles */
.desktop-nav .nav-item {
  display: flex;
  align-items: center;
}

.desktop-nav .nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}

.desktop-nav .nav-link:hover {
  background-color: #f9fafb;
}

/* Fixed dropdown container - no extra padding */
.desktop-nav .dropdown-container {
  position: relative;
  /* No extra padding here */
}

.desktop-nav .dropdown-container:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.2s ease;
}

.desktop-nav .dropdown-container:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.desktop-nav .dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  padding: 0.5rem 0;
  /* Add a small delay to prevent immediate disappearance */
  transition: display 0.3s;
}

/* Create an invisible hover bridge without affecting layout */
.desktop-nav .dropdown-container::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px; /* Height of the invisible bridge */
  background-color: transparent;
  z-index: 49; /* Just below dropdown z-index */
}

.desktop-nav .dropdown-item {
  display: block;
  padding: 0.5rem 1.25rem;
  text-align: left;
  font-size: 0.875rem;
  white-space: nowrap;
}

.desktop-nav .dropdown-item:hover {
  background-color: #f3f4f6;
}

.mobile-nav-item {
  width: 100%;
}

.mobile-nav-container .nav-item {
  display: block;
  width: 100%;
}

.mobile-nav-container .nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
}

.mobile-nav-container .nav-link:hover {
  background-color: #f9fafb;
}

.mobile-nav-container .active-nav::after {
  display: none;
}

.mobile-nav-container .dropdown-content {
  position: static;
  display: none;
  box-shadow: none;
  border: none;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  background-color: #f9fafb;
  margin: 0;
  padding: 0.5rem 0;
  border-radius: 0;
  animation: slideDown 0.2s ease;
}

.mobile-nav-container .dropdown-content.show {
  display: block;
}

.mobile-nav-container .dropdown-item {
  display: block;
  padding: 0.625rem 1.25rem 0.625rem 2.5rem;
  border-left: 3px solid #e5e7eb;
  margin-left: 1.25rem;
  font-size: 0.875rem;
}

.mobile-nav-container .dropdown-item:hover {
  border-left-color: #3b82f6;
  background-color: #f3f4f6;
}

#mobile-menu {
  max-height: 80vh;
  overflow-y: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}
@media print {
  #download-pdf,
  .text-center:last-child {
    display: none !important;
  }
  body {
    font-size: 12px;
  }
  section {
    page-break-inside: avoid;
    margin-bottom: 15px;
  }
  h1, h2, h3 {
    page-break-after: avoid;
  }
}
/* Loading animation */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.nav-link {
  display: inline-block;
  position: relative;
}

.active-nav::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 2px;
  background: #000000;
  z-index: 1;
}

.collage-container {
  overflow: hidden;
}

.collage-container:hover {
  overflow: visible;
}

/* assets/css/main.scss */
/* Loading state for images */
.group\/poster img {
  transition: opacity 0.3s ease;
}

.group\/poster img[src=""] {
  opacity: 0;
}

/* Enhanced border effects */
.border-white\/40 {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

/* Hover state improvements */
.group:hover .bg-white\/95 {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(147, 51, 234, 0.2);
}

/* Text selection styling */
::selection {
  background: rgba(147, 51, 234, 0.2);
  color: rgb(147, 51, 234);
}

/* Focus states for accessibility */
.group:focus-within .bg-white\/95 {
  outline: 2px solid rgb(147, 51, 234);
  outline-offset: 2px;
}

/*# sourceMappingURL=main.css.map */

/* Brutalist Redesign Styles */
.brutalist-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    background-color: #fff;
    color: #000;
    font-family: 'JetBrains Mono', monospace;
    border: 3px solid #000;
}

.brutalist-panel {
    border: 1.5px solid #000;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}

.brutalist-panel:hover {
    box-shadow: 4px 4px 0px #000;
    transform: translate(-2px, -2px);
}

.font-academic {
    font-family: 'EB Garamond', serif;
}

.font-technical {
    font-family: 'JetBrains Mono', monospace;
}

.font-caption {
    font-family: 'Caveat', cursive;
}

.polaroid-frame {
    background: #fff;
    border: 1.5px solid #000;
    padding: 12px 12px 24px 12px;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.15);
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

.polaroid-frame:hover {
    box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
}

.stamp-badge {
    border: 2px solid currentColor;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    display: inline-block;
    border-radius: 4px;
    font-size: 0.75rem;
}

.stamp-badge.wip {
    color: #e11d48;
    border-color: #e11d48;
}

.stamp-badge.approved {
    color: #000;
    border-color: #000;
}

#floating-hover-card {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    width: 240px;
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    padding: 8px;
    display: none;
    transform: translate(15px, 15px);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.5);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.ascii-art {
    white-space: pre;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.25;
    font-size: 0.7rem;
    overflow-x: auto;
}

/* Employed Mode CRT Terminal Styling */
.employed-mode {
  background-color: #000 !important;
  color: #00FF00 !important;
  font-family: monospace !important;
}
.employed-mode header {
  background-color: #000 !important;
  border-bottom: 2px solid #00FF00 !important;
  color: #00FF00 !important;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  font-family: monospace !important;
}
.employed-mode header a, .employed-mode header span {
  color: #00FF00 !important;
  font-family: monospace !important;
}
.employed-mode header img {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(90deg) !important;
  border-color: #00FF00 !important;
}
.employed-mode header .nav-link {
  color: #00FF00 !important;
}
.employed-mode header .active-nav {
  border-bottom: 2px solid #00FF00 !important;
  padding-bottom: 2px;
}
.employed-mode footer {
  background-color: #000 !important;
  border-top: 2px solid #00FF00 !important;
  color: #00FF00 !important;
  font-family: monospace !important;
}
.employed-mode footer a, .employed-mode footer span {
  color: #00FF00 !important;
}