* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(92%, 1180px);
  margin: auto;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(15, 23, 42, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.logo span {
  color: #facc15;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  font-size: 14px;
  color: #cbd5e1;
  padding: 8px 10px;
  border-radius: 10px;
}

.menu a:hover,
.menu a.active {
  color: #111827;
  background: #facc15;
}

/* HERO */

.hero {
  padding: 45px 0;
}

.hero-box {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #1e293b, #111827);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  overflow: hidden;
  padding: 32px;
  box-shadow: 0 25px 70px rgba(0,0,0,.25);
}

.badge {
  display: inline-block;
  background: rgba(250,204,21,.14);
  color: #fde68a;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero p {
  color: #cbd5e1;
  max-width: 680px;
}

.hero img,
.card img,
.article-cover {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.hero img {
  max-height: 360px;
  object-fit: cover;
}

/* SECTION */

.section-title {
  margin: 34px 0 20px;
}

.section-title h2 {
  font-size: clamp(24px, 4vw, 30px);
}

.section-title p {
  color: #94a3b8;
}

/* CARD */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #111827;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  transition: .2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(250,204,21,.45);
}

.card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.card p {
  color: #cbd5e1;
  font-size: 15px;
}

.meta {
  color: #94a3b8;
  font-size: 13px;
  margin: 10px 0 14px;
}

/* BUTTON */

.button {
  display: inline-block;
  background: #facc15;
  color: #111827;
  padding: 11px 17px;
  border-radius: 12px;
  font-weight: 700;
  margin-top: 14px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.button.secondary {
  background: #1e293b;
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,.12);
}

/* ARTICLE PAGE */

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  align-items: start;
}

.article {
  background: #111827;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 28px;
  overflow: hidden;
}

.article h1 {
  font-size: clamp(29px, 5vw, 38px);
  line-height: 1.2;
  margin: 18px 0 8px;
}

.article h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: clamp(22px, 4vw, 25px);
}

.article p {
  color: #d1d5db;
  margin-bottom: 15px;
}

.article ul {
  margin-left: 22px;
  color: #d1d5db;
  margin-bottom: 16px;
}

.article li {
  margin-bottom: 8px;
}

.note {
  background: rgba(250,204,21,.1);
  border: 1px solid rgba(250,204,21,.25);
  padding: 16px;
  border-radius: 16px;
  color: #fde68a;
  margin: 20px 0;
}

/* SIDEBAR */

.sidebar {
  background: #111827;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 20px;
  position: sticky;
  top: 90px;
}

.sidebar h3 {
  margin-bottom: 12px;
}

.sidebar a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #cbd5e1;
}

.sidebar a:hover {
  color: #facc15;
}

/* ABOUT HOME */

.about-home {
  margin: 55px 0;
}

.about-box {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 35px;
  align-items: center;
  background: #111827;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  padding: 34px;
}

.about-image img {
  width: 100%;
  max-width: 260px;
  margin: auto;
  display: block;
  border-radius: 18px;
}

.about-text h2 {
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.2;
  margin: 14px 0;
}

.about-text p {
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* FORM */

form {
  margin-top: 20px;
}

form label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  color: #e5e7eb;
  font-weight: 700;
}

form input,
form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: #020617;
  color: #e5e7eb;
  outline: none;
}

form input:focus,
form textarea:focus {
  border-color: #facc15;
}

/* POPUP */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 15px;
}

.popup-box {
  width: 100%;
  max-width: 650px;
  background: #111827;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 70px rgba(0,0,0,.55);
  animation: popupShow .35s ease;
}

.popup-image {
  width: 100%;
  display: block;
}

.popup-content {
  padding: 24px;
  text-align: center;
}

.popup-content h2 {
  margin-bottom: 10px;
  color: #fff;
}

.popup-content p {
  color: #cbd5e1;
  margin-bottom: 18px;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 30px;
  line-height: 42px;
  cursor: pointer;
  z-index: 2;
}

.popup-close:hover {
  background: #dc2626;
}

@keyframes popupShow {
  from {
    opacity: 0;
    transform: scale(.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* FOOTER */

.footer {
  margin-top: 60px;
  padding: 30px 0;
  background: #020617;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* TABLET */

@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .menu {
    justify-content: center;
  }

  .hero {
    padding: 32px 0;
  }

  .hero-box,
  .content-wrap,
  .about-box {
    grid-template-columns: 1fr;
  }

  .hero-box {
    padding: 26px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    position: static;
  }

  .about-box {
    text-align: center;
  }

  .about-image {
    max-width: 240px;
    margin: auto;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .container {
    width: 94%;
  }

  .header {
    position: relative;
  }

  .navbar {
    padding: 14px 0;
  }

  .logo {
    font-size: 20px;
  }

  .menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .menu a {
    text-align: center;
    font-size: 13px;
    background: rgba(255,255,255,.05);
    padding: 9px 8px;
  }

  .hero {
    padding: 24px 0;
  }

  .hero-box {
    padding: 20px;
    border-radius: 18px;
    gap: 20px;
  }

  .hero img {
    max-height: none;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-body {
    padding: 17px;
  }

  .button {
    width: 100%;
  }

  .article {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .article-cover {
    border-radius: 14px;
  }

  .article ul {
    margin-left: 18px;
  }

  .about-home {
    margin: 36px 0;
  }

  .about-box {
    padding: 22px 16px;
    border-radius: 18px;
    gap: 20px;
  }

  .about-image img {
    max-width: 170px;
  }

  .about-text {
    text-align: left;
  }

  .about-text .badge {
    text-align: center;
  }

  .popup-box {
    max-width: 95%;
    border-radius: 18px;
  }

  .popup-content {
    padding: 18px;
  }

  .popup-close {
    width: 36px;
    height: 36px;
    font-size: 26px;
    line-height: 36px;
  }

  .footer {
    font-size: 14px;
    padding: 24px 10px;
  }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
  .menu {
    grid-template-columns: 1fr;
  }

  .hero-box,
  .article,
  .about-box {
    padding: 16px 13px;
  }

  .card h3 {
    font-size: 19px;
  }
}