* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #07142c 0%, #160f3f 100%);
  color: #fff;
}

a {
  color: inherit;
}

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

/* ================= NAV ================= */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 34px;
  background: rgba(5, 10, 30, 0.88);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.logo {
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
}

.main-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #dbe7ff;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: #071322;
  background: #47d8ff;
  border-color: #47d8ff;
}

/* ================= HERO ================= */

.hero {
  display: grid;
  grid-template-columns: 520px 1fr;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: calc(100vh - 90px);
  padding: 40px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-media {
  width: 100%;
  max-width: 520px;
}

.hero-media img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

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

.hero-logo {
  width: 84px;
  margin-bottom: 18px;
  border-radius: 14px;
}

.hero-content h1 {
  font-size: 72px;
  line-height: 0.95;
  margin: 0 0 20px;
}

.hero-content p {
  font-size: 22px;
  color: #d5ddff;
  margin: 0 0 28px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: #47d8ff;
  color: #071322;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #47d8ff;
}

.btn:hover {
  opacity: 0.92;
}

.btn-outline {
  background: transparent;
  color: #47d8ff;
  border: 2px solid #47d8ff;
}

/* ================= SECTIONS ================= */

.section,
.content-section {
  padding: 40px 0;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

/* ================= TEXT ================= */

p {
  line-height: 1.7;
  color: #e6ecff;
}

h2 {
  font-size: 40px;
  margin-top: 0;
}

h3 {
  margin-top: 0;
}

/* ================= PROJECTS ================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.project-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.project-info {
  width: 100%;
  padding: 18px 8px 8px;
}

.project-info h3 {
  margin-bottom: 12px;
}

.project-info p {
  margin: 0;
}

/* ================= PAGE HERO ================= */

.page-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 36px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero-poster {
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 22px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.page-hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.page-hero-text h1 {
  font-size: 52px;
  margin: 0 0 14px;
}

.page-hero-text p {
  font-size: 22px;
  color: #d5ddff;
  max-width: 520px;
  margin: 0;
}

/* ================= REAL PHOTO ================= */

.real-photo {
  width: 100%;
  max-width: 500px;
  border-radius: 18px;
  margin: 20px 0 24px;
  display: block;
}

/* ================= GALLERY ================= */

.gallery {
  padding: 40px 0 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* ================= MOBILE ================= */

@media (max-width: 980px) {
  .topbar {
    padding: 16px 20px;
  }

  .hero,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 32px 20px;
    gap: 28px;
    min-height: auto;
  }

  .hero-media {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-media img {
    max-width: 100%;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .page-hero {
    gap: 28px;
    padding: 32px 20px 16px;
  }

  .page-hero-poster {
    margin: 0 auto;
  }

  .page-hero-text {
    text-align: center;
  }

  .page-hero-text h1 {
    font-size: 38px;
  }

  .page-hero-text p {
    margin: 0 auto;
  }

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