/* ===== Variables ===== */
:root {
  --gold: #c8a84e;
  --dark: #1a1a1a;
  --darker: #111111;
  --gray: #2a2a2a;
  --light: #f5f5f5;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--darker);
  color: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ===== Utility ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}
.section-heading::before {
  content: '';
  width: 3rem;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.section-heading h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
@media (min-width: 1024px) {
  .section-heading h2 { font-size: 2.25rem; }
}

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(17,17,17,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.logo { flex-shrink: 0; }
.logo svg { height: 3.5rem; width: auto; }

/* Desktop nav */
.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.nav-desktop a:hover { color: var(--gold); }

/* Language switcher */
.lang-switcher { display: none; align-items: center; gap: 0.25rem; }
.lang-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--gold); color: var(--darker); }

/* Mobile menu button */
.menu-btn {
  display: block;
  padding: 0.5rem;
  color: #fff;
}
.menu-btn svg { width: 1.5rem; height: 1.5rem; }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  padding: 0.75rem 0;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-lang {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .lang-switcher { display: flex; }
  .menu-btn { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/odessa/itown-primorskaya.jpeg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17,17,17,0.8), rgba(17,17,17,0.6), var(--darker));
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.hero-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}
.hero-subtitle-art {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
}
.hero-tagline {
  font-size: 1.125rem;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.5s;
}
.hero-cta:hover { background: var(--gold); color: var(--darker); }
.hero-cta svg { width: 1rem; height: 1rem; }
.hero-motto {
  margin-top: 4rem;
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, transparent, rgba(200,168,78,0.4));
}

@media (min-width: 640px) {
  .hero h1 { font-size: 4.5rem; }
  .hero-subtitle-art { font-size: 1.5rem; }
  .hero-tagline { font-size: 1.25rem; }
  .hero-desc { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 6rem; }
  .hero-subtitle-art { font-size: 1.875rem; }
}

/* ===== About ===== */
.about { padding: 6rem 0; background: var(--dark); }
@media (min-width: 1024px) { .about { padding: 8rem 0; } }
.about-grid {
  display: grid;
  gap: 4rem;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-description {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.about-date {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.about-date .number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
}
.about-date .label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
  white-space: pre-line;
}
.about-points { display: flex; flex-direction: column; gap: 1.5rem; }
.about-point {
  display: flex;
  gap: 1rem;
}
.about-point-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(200,168,78,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
}
.about-point p {
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  padding-top: 0.25rem;
}

/* ===== Services ===== */
.services { padding: 6rem 0; background: var(--darker); }
@media (min-width: 1024px) { .services { padding: 8rem 0; } }
.services-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  padding: 2rem;
  background: rgba(26,26,26,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.5s;
}
.service-card:hover { border-color: rgba(200,168,78,0.3); }
.service-card .icon {
  color: var(--gold);
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}
.service-card:hover .icon { transform: scale(1.1); }
.service-card .icon svg { width: 2rem; height: 2rem; }
.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.service-card:hover h3 { color: var(--gold); }
.service-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.75;
}

/* ===== Projects Preview (home) ===== */
.projects-preview { padding: 6rem 0; background: var(--dark); }
@media (min-width: 1024px) { .projects-preview { padding: 8rem 0; } }
.projects-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
}
.projects-preview-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.projects-preview-link:hover { color: #fff; }
.projects-preview-link svg { width: 1rem; height: 1rem; }
@media (min-width: 640px) { .projects-preview-link { display: inline-flex; } }

.projects-preview-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .projects-preview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-preview-grid { grid-template-columns: repeat(3, 1fr); } }

.projects-preview-mobile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.projects-preview-mobile-link:hover { background: var(--gold); color: var(--darker); }
.projects-preview-mobile-cta { margin-top: 3rem; text-align: center; }
@media (min-width: 640px) { .projects-preview-mobile-cta { display: none; } }

/* ===== Project Card (shared) ===== */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.project-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.project-card:hover img { transform: scale(1.05); }
.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
  pointer-events: none;
  transition: all 0.3s;
}
.project-card:hover .overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2), transparent);
}
.project-card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  pointer-events: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background: rgba(0,0,0,0.2);
}
.project-card .city-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.project-card h3 {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}
.project-card .hover-border {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s;
  pointer-events: none;
}
.project-card:hover .hover-border { border-color: rgba(200,168,78,0.3); }

/* ===== Projects Page ===== */
.projects-page { padding-top: 5rem; min-height: 100vh; background: var(--darker); }
.projects-page-header { padding: 4rem 0 4rem; background: var(--dark); }
@media (min-width: 1024px) { .projects-page-header { padding: 6rem 0 6rem; } }
.projects-page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
@media (min-width: 1024px) { .projects-page-header h1 { font-size: 3rem; } }
.projects-page-header .heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.projects-page-header .heading::before {
  content: '';
  width: 3rem;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.projects-page-desc {
  color: rgba(255,255,255,0.4);
  max-width: 42rem;
}

/* Filters */
.filters-bar {
  position: sticky;
  top: 5rem;
  z-index: 30;
  background: rgba(17,17,17,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.filters-inner {
  display: flex;
  gap: 0.25rem;
  padding: 1rem 0;
}
.filter-btn {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s;
}
.filter-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.filter-btn.active {
  background: var(--gold);
  color: var(--darker);
  font-weight: 600;
}
.filter-btn .count {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Projects grid */
.projects-grid-section { padding: 3rem 0; }
.projects-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
  padding: 0.5rem;
}
.lightbox-close:hover { color: #fff; }
.lightbox-close svg { width: 2rem; height: 2rem; }
.lightbox-content {
  max-width: 64rem;
  width: 100%;
  cursor: default;
}
.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}
.lightbox-info {
  margin-top: 1rem;
  text-align: center;
}
.lightbox-info .city-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.lightbox-info h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
  margin-top: 0.25rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--darker);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  padding: 3rem 0;
}
.footer-top {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: repeat(3, 1fr); }
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.footer-contact-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(200,168,78,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-contact-icon svg { width: 1.125rem; height: 1.125rem; color: var(--gold); }
.footer-contact-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.footer-contact-value {
  font-size: 0.9375rem;
  color: #fff;
  transition: color 0.3s;
}
a.footer-contact-value:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-logo svg { height: 3rem; width: auto; opacity: 0.6; }
.footer-motto {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}
.footer-copy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

/* ===== Animations ===== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  animation: fade-in-up 0.6s ease-out forwards;
}
