/* Custom styles beyond Tailwind */

/* Geometric decorative elements */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.geo-rect {
  position: absolute;
  pointer-events: none;
}

/* Hero section geometric accent - large partial circle */
.hero-geo {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  opacity: 0.1;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-geo {
    width: 250px;
    height: 250px;
    top: -80px;
    right: -80px;
  }
}

/* Logo geometric accent - horizontal bar extending left */
.logo-geo {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.logo-geo::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 8px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 100%);
  opacity: 0.3;
  margin-right: 12px;
  border-radius: 0 4px 4px 0;
}

@media (max-width: 768px) {
  .logo-geo::before {
    width: 60px;
    height: 6px;
    margin-right: 8px;
  }
}

/* Page geometric decorations - Bauhaus inspired */
.page-geo-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Large circle - top right */
.page-geo-circle-1 {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  opacity: 0.08;
}

/* Semi-circle - bottom left */
.page-geo-semicircle {
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--color-secondary);
  opacity: 0.06;
}

/* Tall rectangle with rounded top - right side */
.page-geo-cylinder {
  position: absolute;
  top: 30%;
  right: -60px;
  width: 120px;
  height: 350px;
  background: var(--color-primary);
  opacity: 0.05;
  border-radius: 60px 60px 0 0;
}

/* Small accent circle - left side */
.page-geo-circle-2 {
  position: absolute;
  top: 45%;
  left: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.07;
}

/* Overlapping rectangle - bottom right */
.page-geo-rect {
  position: absolute;
  bottom: 15%;
  right: 5%;
  width: 80px;
  height: 200px;
  background: var(--color-secondary);
  opacity: 0.04;
  transform: rotate(-15deg);
}

@media (max-width: 1024px) {
  .page-geo-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
  }
  .page-geo-semicircle {
    width: 350px;
    height: 350px;
    bottom: -150px;
    left: -150px;
  }
  .page-geo-cylinder {
    width: 80px;
    height: 250px;
    right: -40px;
    border-radius: 40px 40px 0 0;
  }
  .page-geo-circle-2 {
    width: 150px;
    height: 150px;
    left: -60px;
  }
  .page-geo-rect {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-geo-cylinder {
    display: none;
  }
  .page-geo-circle-2 {
    width: 100px;
    height: 100px;
    left: -40px;
  }
}

/* Small geometric accent near headings */
.heading-accent {
  position: relative;
  display: inline-block;
}

.heading-accent::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* Navigation styles */
nav {
  background-color: transparent;
}

.nav-scrolled {
  background-color: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Card hover effects */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
}

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

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-description {
  margin-top: 1rem;
  color: white;
  text-align: center;
  max-width: 600px;
  padding: 0 1rem;
}

.lightbox-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.lightbox-text {
  opacity: 0.8;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-nav {
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 0.5rem 0.75rem;
  }
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

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

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Work list styling */
.work-list-item {
  border-bottom: 1px solid var(--color-surface);
  padding: 1rem 0;
}

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

/* Work list link styling - clear visual distinction */
.work-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-secondary);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.work-link:hover {
  color: var(--color-heading);
  text-decoration-color: var(--color-primary);
}

/* Non-link work titles - uses heading color, no underline */
.work-title-nolink {
  color: var(--color-heading);
  text-decoration: none;
}

/* Simple section divider - centered horizontal bar */
.section-bar {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0;
}

.section-bar::before {
  content: '';
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
  border-radius: 2px;
  opacity: 0.4;
}

/* Type badge */
.type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer - no overflow hidden to prevent icon clipping */
footer {
  position: relative;
}

/* Footer geometric accent */
.footer-geo {
  position: absolute;
  bottom: -75px;
  left: -75px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  opacity: 0.08;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Link underline animation */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.2s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* Main content needs to be above geo elements */
main {
  position: relative;
  z-index: 1;
}

header, section, footer {
  position: relative;
  z-index: 1;
}
