*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: #050609;
  color: #f5f5f5;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(3, 7, 18, 0.92);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f5f5f5, #cfb07a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050609;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.5);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a0aec0;
}

/* NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #f5f5f5, #cfb07a);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Burger for mobile */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 18px;
  height: 2px;
  background: #f5f5f5;
  border-radius: 999px;
}

/* Language switch */
.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: #e5e7eb;
  color: #050609;
}

/* HERO */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 8%;
  color: #f9fafb;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 0.4s ease-out;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(207,176,122,0.18), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(15,23,42,0.35), rgba(2,6,23,0.45) 65%);
  mix-blend-mode: multiply;
  z-index: -1;
}

.hero-content {
  max-width: 560px;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #e5e7eb;
  opacity: 0.9;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin: 0;
}

.hero .highlight {
  color: #fefce8;
}

.hero-sub {
  margin-top: 18px;
  max-width: 480px;
  color: #e5e7eb;
  font-size: 0.98rem;
}

.hero-buttons {
  margin-top: 26px;
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: #f9fafb;
  color: #050609;
  box-shadow: 0 12px 20px rgba(15,23,42,0.55);
}

.btn-primary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148,163,184,0.8);
}

.btn-outline:hover {
  background: rgba(15,23,42,0.7);
}

/* Sections */
.section {
  padding: 90px 8%;
}

.section-light {
  background: radial-gradient(circle at top left, #020617, #050609 60%, #020617);
}

.section-dark {
  background: #020617;
}

.section-inner {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.section-sub {
  max-width: 600px;
  color: #cbd5f5;
  margin-bottom: 40px;
}

/* Two columns */
.two-cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* About */
.about-points {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.about-points li {
  margin-bottom: 8px;
  color: #e5e7eb;
}

.photo-card img {
  width: 100%;
  border-radius: 18px;
  display: block;
  box-shadow: 0 26px 70px rgba(0,0,0,0.65);
}

/* Services cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background: radial-gradient(circle at top, #111827, #020617);
  border-radius: 18px;
  overflow: hidden;
  padding-bottom: 18px;
  box-shadow: 0 22px 40px rgba(15,23,42,0.7);
  transform-style: preserve-3d;
  transform: translateY(18px);
  opacity: 0;
}

.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 18px 20px;
  font-size: 0.95rem;
}

/* Portfolio */
.portfolio-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: transparent;
  color: #e5e7eb;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.filter-btn.active {
  background: #e5e7eb;
  color: #020617;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.portfolio-card {
  background: radial-gradient(circle at top, #111827, #020617);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transform: translateY(18px);
  opacity: 0;
}

.portfolio-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.portfolio-info {
  padding: 14px 16px 16px;
  font-size: 0.9rem;
}

/* Portfolio modal */
.portfolio-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.portfolio-modal.open {
  display: flex;
}

.portfolio-modal-inner {
  width: min(900px, 90%);
  background: #020617;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,0.8);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

.modal-image {
  background-size: cover;
  background-position: center;
  min-height: 260px;
}

.modal-text {
  padding: 22px 22px 18px;
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Contact */
.contact-inner {
  align-items: flex-start;
}

.contact-data {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: rgba(15,23,42,0.85);
  color: #f5f5f5;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 24px 10%;
  text-align: center;
  background: #000;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Animations */
.fade-in-up,
.fade-in,
.service-card,
.project-card,
.portfolio-card {
  opacity: 0;
  transform: translateY(26px);
}

.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

@media (max-width: 840px) {
  .two-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    width: 92%;
  }

  .main-nav {
    position: absolute;
    inset: 64px 0 auto;
    padding: 14px 18px 18px;
    margin: 0;
    background: rgba(3,7,18,0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .burger {
    display: flex;
  }

  .lang-switch {
    display: none;
  }

  .hero {
    padding: 0 6%;
    align-items: flex-end;
    padding-bottom: 80px;
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .portfolio-modal-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

