@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

:root {
  --bg: #F8FAFC;
  --text: #1E293B;
  --text-secondary: #475569;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Didact Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Poiret One', cursive;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.header.scrolled {
  background: rgba(248,250,252,0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.header.scrolled .logo,
.header.scrolled .nav a,
.header.scrolled .lang-btn {
  color: var(--text);
}

.header.scrolled .menu-toggle span {
  background: var(--text);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

.logo img { height: 56px; width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }

.logo-text {
  font-family: 'Poiret One', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.nav a {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.lang-btn {
  color: rgba(255,255,255,0.85);
}

.menu-toggle span {
  background: #fff;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav a:hover, .nav a.active {
  color: var(--text);
}

.nav a:hover::after, .nav a.active::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(248,250,252,0.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: 'Poiret One', cursive;
  font-size: 2rem;
  text-decoration: none;
  color: var(--text);
}

.mobile-lang {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.mobile-lang .lang-btn {
  font-size: 1rem;
  color: var(--text-secondary);
}

body.menu-open { overflow: hidden; }

/* Hero Video */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  max-width: 900px;
}

.hero-logo {
  width: clamp(280px, 50vw, 520px);
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 44px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero .btn-primary {
  background: #fff;
  color: #1E293B;
}

.hero .btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.hero .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 32px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text);
}

/* Section */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 48px;
}

/* Works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.work-card {
  position: relative;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s, box-shadow 0.4s;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.work-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
}

.work-card:hover img {
  transform: scale(1.04);
}

.work-info {
  padding: 20px;
}

.work-title {
  font-family: 'Poiret One', cursive;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.work-size {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* About Collage */
.about-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px 200px;
  gap: 16px;
  margin-bottom: 60px;
}

.collage-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

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

.collage-large {
  grid-column: span 2;
  grid-row: span 2;
}

.collage-wide {
  grid-column: span 2;
}

.about-text-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.about-block h3 {
  font-family: 'Poiret One', cursive;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text);
}

.about-block p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Gallery page */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.4s, box-shadow 0.4s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.gallery-item-info {
  padding: 16px;
}

.gallery-item-title {
  font-family: 'Poiret One', cursive;
  font-size: 1.1rem;
}

.gallery-item-size {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-caption {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover { color: #fff; }

.footer-title {
  font-family: 'Poiret One', cursive;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

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

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about-collage { grid-template-columns: repeat(2, 1fr); grid-template-rows: 240px 160px 160px; }
  .collage-large { grid-column: span 2; grid-row: span 1; }
  .collage-wide { grid-column: span 2; }
  .about-text-blocks { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: 500px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .works-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .header-inner { height: 76px; }
  .about-photo { max-width: 400px; margin: 0 auto; }
  .section { padding: 60px 0; }
  .section-title { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .lang-btn { padding: 4px 8px; font-size: 0.75rem; }
  .hero { min-height: 450px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; max-width: 280px; }
  .work-card img { height: 300px; }
  .gallery-item img { height: 280px; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
