@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --color-accent: #00E5FF;
  --color-success: #00FF88;

  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --bg-tertiary: #F8F8F8;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border: #E8E8E8;
  --overlay: rgba(0, 0, 0, 0.02);
}

.dark {
  --bg-primary: #000000;
  --bg-secondary: #0A0A0A;
  --bg-tertiary: #141414;
  --text-primary: #FFFFFF;
  --text-secondary: #888888;
  --text-tertiary: #666666;
  --border: #1A1A1A;
  --overlay: rgba(255, 255, 255, 0.02);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'ss02', 'cv05', 'cv11';
  letter-spacing: -0.01em;
}

.font-display,
h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.text-display {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.text-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.text-body-lg {
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.text-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.hover-scale {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-scale:hover {
  transform: scale(1.02);
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.accent-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grid-blur {
  position: relative;
}

.grid-blur::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(to right, var(--border) 1px, transparent 1px),
              linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.3;
  pointer-events: none;
}

*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark .glass-effect {
  background: rgba(0, 0, 0, 0.2);
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.gallery-container {
  position: relative;
  overflow: hidden;
}

.gallery-container::before,
.gallery-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

.gallery-container::before {
  left: 0;
  background: linear-gradient(to right, #0A0A0A 0%, transparent 100%);
}

.gallery-container::after {
  right: 0;
  background: linear-gradient(to left, #0A0A0A 0%, transparent 100%);
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
}

.marquee-track-left {
  animation: marquee-left 60s linear infinite;
}

.marquee-track-right {
  animation: marquee-right 60s linear infinite;
}

.gallery-section:hover .marquee-track {
  animation-play-state: paused;
}

.gallery-card {
  position: relative;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0) 0%,
    rgba(0, 229, 255, 0) 40%,
    rgba(0, 229, 255, 0.1) 50%,
    rgba(0, 229, 255, 0) 60%,
    rgba(0, 229, 255, 0) 100%
  );
  background-size: 200% 200%;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.gallery-card::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #00E5FF, #FFD700, #00FF88, #00E5FF);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.5s ease;
}

.gallery-card:hover {
  transform: translateY(-12px) scale(1.05) rotateX(5deg);
  z-index: 20;
}

.gallery-card:hover::before {
  opacity: 1;
  animation: shimmer-sweep 1.5s ease-in-out infinite;
}

.gallery-card:hover::after {
  opacity: 0.6;
}

@keyframes shimmer-sweep {
  0% { background-position: -100% -100%; }
  100% { background-position: 200% 200%; }
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card .view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.gallery-card:hover .view-overlay {
  opacity: 1;
}

.gallery-card .view-btn {
  padding: 12px 24px;
  background: #FFD700;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 8px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
}

.gallery-card:hover .view-btn {
  transform: translateY(0);
  opacity: 1;
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  background: #1A1A1A;
  border: 1px solid #333;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: #FFD700;
  color: #000;
  border-color: #FFD700;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: #1A1A1A;
  border: 1px solid #333;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: #FFD700;
  color: #000;
  border-color: #FFD700;
}

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

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

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-close {
    top: -60px;
    right: 50%;
    transform: translateX(50%);
  }
}

.gallery-row {
  padding: 0.75rem 0;
}

.banner-marquee {
  display: flex;
  width: max-content;
}

.banner-marquee:hover {
  animation-play-state: paused;
}

.banner-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glow-effect {
  position: relative;
}

.glow-effect::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #00E5FF, #00FF88, #FFD700);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.glow-effect:hover::after {
  opacity: 0.5;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-animated {
  background: linear-gradient(-45deg, #0a0a0a, #1a1a2e, #0f0f1a, #0a0a0a);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 229, 255, 0.6); }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card:hover {
  transform: rotateY(5deg) rotateX(5deg);
}
