* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background-color: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

*:focus {
  outline: none !important;
  box-shadow: none !important;
}

*:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#fog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(1px);
  z-index: 1;
}

#hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

#logo {
  width: 150px;
  max-width: 100vw;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
}

h1 {
  font-size: 3em;
  font-weight: 600;
  margin-bottom: 30px;
  max-width: 30ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.social-buttons {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  pointer-events: auto;
}

.social-buttons a {
  text-decoration: none;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  transition: transform 0.2s ease-in-out;
  display: block;
}

.social-buttons a:hover {
  transform: scale(1.25);
}

.social-buttons a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

footer {
  position: absolute;
  bottom: 0;
  font-weight: 500;
  width: 100%;
  color: #fff;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  align-items: center;
  font-size: 0.78em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

/* Nav */
#nav-buttons {
  position: fixed;
  top: 22px;
  right: 28px;
  display: flex;
  gap: 28px;
  z-index: 10;
  align-items: center;
}

.nav-btn {
  background: none;
  border: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0 0 0 10px;
  cursor: pointer;
  padding: 8px 0;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 0px 2px rgba(0, 0, 0, 0.35),
    2px 2px 12px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s;
  position: relative;
}

.nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  transition: width 0.25s ease;
}

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

.nav-btn:hover {
  opacity: 0.85;
}

/* Panel */
.panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  overflow-y: auto;
  background: rgba(5, 8, 12, 0.55);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transform: translateY(-100%);
  visibility: hidden;
}

.panel-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 40px 80px;
}

/* Close btn */
.close-btn {
  position: sticky;
  top: 20px;
  float: right;
  background: none;
  border: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
  flex-shrink: 0;
  padding: 0;
}

.close-btn svg {
  width: 32px;
  height: 32px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.close-btn:hover svg {
  transform: rotate(90deg);
}

/* Panel content */
.panel-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 36px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.panel-title span {
  color: rgba(255, 255, 255, 0.4);
}

.panel p {
  font-size: 1.02rem;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 20px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.highlight-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px 22px;
}

.highlight-box .hb-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.highlight-box .hb-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.highlight-box .hb-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 36px 0 14px;
  display: block;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.project-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.28s,
    border-color 0.28s,
    background 0.28s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

.project-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.04);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 14px
  );
  min-height: 160px;
}

.project-body {
  padding: 20px 22px 22px;
}

.project-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.project-address {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
  line-height: 1.4;
}

.project-desc {
  font-size: 0.88rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.65);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 8px;
}

.project-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  padding: 3px 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.project-link {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  user-select: auto;
  -webkit-user-select: auto;
}

.project-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  #logo {
    position: static;
    margin-top: 40px;
    margin-bottom: 30px;
    width: 180px;
  }

  h1 {
    font-size: 1.5em;
    padding: 0 20px;
    max-width: 90%;
  }

  #hero {
    justify-content: flex-start;
    padding-top: 20px;
  }

  .social-buttons {
    margin-top: 10px;
  }

  .social-buttons a {
    width: 90px;
    height: 90px;
  }

  #nav-buttons {
    top: 14px;
    right: 14px;
    gap: 18px;
  }

  .nav-btn {
    font-size: 1rem;
  }

  .panel-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px 60px;
  }

  .panel-title {
    font-size: 2rem;
  }

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

  .about-highlights {
    grid-template-columns: 1fr 1fr;
  }
}
