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

::selection {
  background-color: #3b82f6;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  color: #fff;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

input {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.nav-links a {
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-mobile-contact {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  pointer-events: none;
}

@media (min-width: 768px) {
  .nav-left {
    display: none;
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-cta {
  display: none;
  background: #007AFF;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  transition: background 0.3s;
}

.nav-cta:hover {
  background: #2563eb;
}

.nav-office-link {
  display: none;
  font-size: 0.875rem;
  color: #9ca3af;
  transition: color 0.3s;
}

.nav-office-link:hover {
  color: #fff;
}

.nav-icon-btn {
  color: #9ca3af;
  transition: color 0.3s;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-btn:hover {
  color: #fff;
}

.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  margin-top: 1rem;
  background: #111;
  border-radius: 0;
  padding: 0.75rem 0.5rem;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Triangle Arrow */
.lang-dropdown::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #111 transparent;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #fff;
  transition: background 0.2s;
  white-space: nowrap;
  font-weight: 400;
  border-radius: 4px;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-flag {
  display: inline-block;
  font-size: 1rem;
}

.menu-toggle {
  z-index: 1010;
  position: relative;
}

/* ===== MOBILE MENU OVERLAY ===== */
.menu-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  background: #000;
  padding: 2rem 1.5rem 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.menu-overlay.active .menu-panel {
  transform: translateX(0);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.25rem;
}

.menu-nav a {
  transition: color 0.3s;
}

.menu-nav a:hover {
  color: #9ca3af;
}

.menu-info {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.menu-info .city-label {
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.menu-contact {
  padding-top: 1rem;
}

.menu-contact .phone {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.menu-contact .email {
  color: #fff;
}

.menu-btns {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
}

.btn-blue-pill {
  background: #007AFF;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: background 0.3s;
}

.btn-blue-pill:hover {
  background: #2563eb;
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero h1 {
  font-size: 12vw;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-align: center;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 2rem;
  width: 100%;
}

.hero-text {
  max-width: 300px;
  line-height: 1.4;
  text-align: center;
}

.hero-cta {
  border: 1px solid #1f2937;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  color: #9ca3af;
  transition: background 0.3s;
  font-size: 0.875rem;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ===== PORTFOLIO HEADER ===== */
.portfolio-header {
  padding: 8rem 0 4rem;
  text-align: center;
}

.portfolio-header h1 {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .portfolio-header {
    padding: 12rem 0 6rem;
  }

  .portfolio-header h1 {
    font-size: 3rem;
  }
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: 6rem 0;
}

.projects-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.projects-footer {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.project-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.05);
}

.project-card-info {
  padding: 1.5rem 1rem 3rem;
}

.project-card-info h3 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.project-card-info p {
  color: #6b7280;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
  color: #6b7280;
}

.pagination .page-active {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
}

.pagination button {
  transition: color 0.3s;
  font-size: 0.875rem;
}

.pagination button:hover {
  color: #fff;
}

/* ===== ARCHITECTS SECTION ===== */
.architects {
  padding: 6rem 0;
  background: #000;
}

.architects h2 {
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 4rem;
}

.architects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.category-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  opacity: 0.8;
}

.category-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.category-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.5s;
}

.category-card:hover .overlay,
.category-card.active .overlay {
  background: transparent;
}

.category-card .label {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
}

.category-card .cat-btn {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}

.category-card:hover .cat-btn,
.category-card.active .cat-btn {
  opacity: 1;
  transform: translateY(0);
}

.category-card .cat-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== EXCURSION FORM ===== */
.excursion {
  padding: 6rem 1rem;
}

.excursion-inner {
  max-width: 72rem;
  margin: 0 auto;
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
}

.excursion-bg {
  aspect-ratio: 16 / 9;
}

.excursion-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.excursion-bg .dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.excursion-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.excursion-content h2 {
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: 3rem;
  max-width: 32rem;
  line-height: 1.2;
}

.phone-input-group {
  max-width: 42rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.phone-field {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: 1;
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.25rem;
}

.phone-prefix .arrow {
  color: #d1d5db;
  font-size: 0.75rem;
}

.phone-field input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
  font-size: 1rem;
}

.phone-field input::placeholder {
  color: #9ca3af;
}

.btn-submit {
  background: #007AFF;
  color: #fff;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  transition: background 0.3s;
  white-space: nowrap;
  font-size: 1rem;
}

.btn-submit:hover {
  background: #2563eb;
}

.consent {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 32rem;
}

.consent-check {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  border-radius: 9999px;
  border: 1px solid #007AFF;
  background: rgba(0, 122, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.consent-check svg {
  width: 12px;
  height: 12px;
  color: #007AFF;
}

.consent p {
  font-size: 0.75rem;
  color: #d1d5db;
  line-height: 1.4;
}

.consent a {
  text-decoration: underline;
  color: #9ca3af;
  transition: color 0.3s;
}

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

/* ===== OFFICE SECTION ===== */
.office {
  padding: 6rem 0;
  overflow: hidden;
}

.office h2 {
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 4rem;
}

.office-carousel-wrap {
  position: relative;
}

.office-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 2rem;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.office-carousel::-webkit-scrollbar {
  display: none;
}

.office-slide {
  min-width: 80vw;
  aspect-ratio: 16 / 10;
  scroll-snap-align: center;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.office-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  color: #fff;
  border: none;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.left {
  left: 2rem;
}

.carousel-btn.right {
  right: 2rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 6rem 1.5rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
}

.footer-grid h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-grid p {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-grid .label-sm {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  font-weight: 700;
  font-size: 0.875rem;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #6b7280;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #d1d5db;
}

/* ===== SVG ICONS ===== */
.icon {
  display: inline-block;
  vertical-align: middle;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 {
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-bottom {
  animation: fadeInUp 1s ease 0.6s both;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: block;
  }

  .nav-office-link {
    display: block;
  }

  .hero h1 {
    font-size: 8vw;
  }

  .hero-bottom {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    flex-direction: row;
    gap: 3rem;
    margin-top: 0;
  }

  .hero-text {
    text-align: left;
    max-width: 200px;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card-info {
    padding: 1.5rem 2rem 3rem;
  }

  .architects h2 {
    font-size: 4.5rem;
  }

  .architects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .excursion-bg {
    aspect-ratio: 21 / 9;
  }

  .excursion-content {
    padding: 4rem;
  }

  .excursion-content h2 {
    font-size: 3rem;
  }

  .phone-input-group {
    flex-direction: row;
    align-items: center;
  }

  .btn-submit {
    width: auto;
  }

  .office-slide:first-child {
    min-width: 60vw;
  }

  .office-slide {
    min-width: 40vw;
  }

  .office-carousel {
    padding: 0 3rem 2rem;
  }

  .carousel-btn {
    display: flex;
  }

  .office h2 {
    font-size: 3rem;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .menu-panel {
    max-width: 400px;
    padding: 6rem 3rem 3rem;
  }
}