/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: #0b0f17;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* TOP BAR */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* slightly tighter so it doesn’t eat screen space */
  padding: 10px 24px;

  background: rgba(11,15,23,0.80);
  backdrop-filter: blur(10px);
}

/* ✅ BRAND (this becomes the badge, not the image) */
.brand{
  display: flex;
  align-items: center;

  /* badge feel */
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
}

/* ✅ LOGO IMAGE (NO padding/background here) */
.brand__logo {
  height: 44px;     /* main fix: smaller height */
  width: auto;
  max-width: 140px; /* prevents huge rectangle */
  display: block;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* NAV */
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  opacity: 0.85;
}

.nav a:hover {
  opacity: 1;
}

.btn {
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn--primary {
  background: rgba(255,255,255,0.15);
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(
    rgba(0,0,0,0.30),
    rgba(0,0,0,0.75)
  );
}

.hero__content{
  display: grid;
  place-items: center;
  gap: 18px;
}

.hero__title {
  font-size: 72px;
  font-weight: 500;
  text-shadow: 0 20px 60px rgba(0,0,0,0.9);
}

/* NEW: hero View button */
.btn--hero{
  padding: 12px 28px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 18px 60px rgba(0,0,0,0.50);
}

.btn--hero:hover{
  transform: translateY(-2px);
}

/* SECTIONS */
.section {
  padding: 120px 60px;
}

.section--full {
  width: 100%;
}

/* VIDEO */
.video {
  text-align: center;
}

.video__heading {
  font-size: 72px;
  font-weight: 500;
  margin-bottom: 48px;
}

.video__wrap {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.video__player {
  width: 100%;
  display: block;
}

/* ABOUT */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text {
  padding-left: 48px;
}

.about__text p {
  line-height: 1.7;
  opacity: 0.9;
  max-width: 70ch;
  margin-top: 10px;
  margin-bottom: 16px;
}

.about__media img {
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
}

/* PORTFOLIO */
.section-title {
  font-size: 56px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 48px;
}

.grid.portrait {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Vertical (portrait) boxes + text inside */
.card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.24);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(0,0,0,0.10), rgba(0,0,0,0.60));
  pointer-events: none;
}

.card__text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-shadow: 0 18px 40px rgba(0,0,0,0.9);
  z-index: 2;
}

.card__text::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 54px;
  border-radius: 16px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.14);
  z-index: -1;
}

/* CONTACT */
.contact {
  text-align: center;
}

.contact__info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  opacity: 0.9;
}

.contact__info a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* FOOTER */
.footer {
  padding: 26px 24px 40px;
  text-align: center;
  opacity: 0.7;
}

/* ---------- PROJECT PAGES (3D / Model / Prototype / Illustrate) ---------- */

.page {
  padding: 140px 60px 90px;
  max-width: 1200px;
  margin: 0 auto;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
  margin-bottom: 40px;
}

.backlink:hover { opacity: 1; }

.backlink .arrow {
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}

.page-title {
  text-align: center;
  font-size: 56px;
  font-weight: 600;
  margin-bottom: 50px;
  text-shadow: 0 20px 60px rgba(0,0,0,0.9);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .grid.portrait {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .about__content {
    grid-template-columns: 1fr;
  }
  .about__text {
    padding-left: 0;
  }
}

/* ✅ Mobile nav + logo sizing */
@media (max-width: 720px){
  .topbar{
    padding: 10px 14px;
  }

  .brand{
    padding: 6px 8px;
  }

  .brand__logo{
    height: 38px;
    max-width: 120px;
  }

  .nav{
    gap: 12px;
  }

  .nav a{
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .grid.portrait {
    grid-template-columns: 1fr;
  }

  .hero__title,
  .video__heading {
    font-size: 42px;
  }

  .contact__info {
    flex-direction: column;
    gap: 8px;
  }

  .gallery-grid { grid-template-columns: 1fr; }
  .page { padding: 130px 22px 80px; }
  .page-title { font-size: 42px; }
}
