@font-face {
  font-family: Futura;
  src: url(fonts/futura/Futura\ Book\ font.ttf);
  font-weight: 400;
}

@font-face {
  font-family: Futura;
  src: url(fonts/futura/Futura\ Bold\ font.ttf);
  font-weight: 700;
}

@font-face {
  font-family: Bodoni;
  src: url(fonts/BodoniFLF-BoldItalic.ttf);
}

/* CSS Variables for theming */
:root {
  --bg-color: #fafafa;
  --text-color: #1a1a1a;
  --text-secondary: #666;
  --accent-color: #2563eb;
  --card-bg: #ffffff;
  --border-color: #e5e5e5;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  --bg-color: #0f0f0f;
  --text-color: #f5f5f5;
  --text-secondary: #a3a3a3;
  --accent-color: #3b82f6;
  --card-bg: #1a1a1a;
  --border-color: #2a2a2a;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Futura', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(var(--card-bg-rgb, 255, 255, 255), 0.8);
  transition: all 0.3s ease;
}

[data-theme="dark"] header {
  background-color: rgba(26, 26, 26, 0.8);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Bodoni', serif;
  letter-spacing: 2px;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle:hover {
  background-color: var(--border-color);
  transform: rotate(20deg);
}

#theme-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  margin-top: 70px;
  padding: 6rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
}

.hero-content h1 {
  font-family: 'Bodoni', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-description {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Filter Section */
.filter-section {
  padding: 2rem 0;
  background-color: var(--bg-color);
  position: sticky;
  top: 70px;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Futura', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-btn:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.filter-btn.active {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  box-shadow: var(--shadow);
}

/* Gallery */
.gallery {
  padding: 4rem 0;
  min-height: 60vh;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

.gallery-item.hidden {
  display: none;
}

.gallery-item.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

.gallery-item.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Video Item */
.video-item {
  position: relative;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.video-item:hover .play-icon {
  background-color: var(--accent-color);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: none;
}

.lightbox-content img.active,
.lightbox-content video.active {
  display: block;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 8px;
  padding: 1rem 1.5rem;
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 8px;
  padding: 1rem 1.5rem;
}

/* Footer */
footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

footer p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.footer-links a:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 999;
  padding: 0;
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.2);
}

#back-to-top.visible {
  display: flex;
}

#back-to-top img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  nav {
    padding: 1rem;
  }

  .hero {
    padding: 4rem 1rem 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .filter-section {
    padding: 1rem 0;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}
