/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== THEME VARIABLES ========== */
:root {
  --bg: #0f172a;
  --bg-grad: radial-gradient(circle at top, #1f2937 0%, #020617 55%, #000 100%);
  --card: rgba(15, 23, 42, 0.85);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --radius: 1.25rem;
}

/* ========== BASE LAYOUT ========== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-grad);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== TOP BAR ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ========== PAGE WRAPPER ========== */
.wrapper {
  width: min(1100px, 100%);
  margin: 2.5rem auto;
  padding: 0 1.5rem 3.5rem;
}

/* ========== HERO SECTION ========== */
.hero {
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 0.35rem;
}

.hero p {
  color: var(--muted);
  max-width: 40rem;
}

/* ========== CARD ========== */
.card {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

/* ========== ABOUT + LINKS LAYOUT (WITH SIDE IMAGE) ========== */
.about-links-container {
  display: flex;
  align-items: stretch; /* ensures both columns align in height */
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

/* LEFT COLUMN */
.text-sections {
  flex: 1 1 65%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

/* RIGHT COLUMN IMAGE */
.side-image {
  flex: 0 0 30%;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.side-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* ========== LINKS LIST ========== */
.link-list {
  list-style: none;
  margin-top: 0.7rem;
}

.link-list li {
  margin-bottom: 0.6rem;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text);
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.05);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, border 0.15s ease, transform 0.15s ease;
}

.link-list a:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

/* ========== FOOTER ========== */
footer {
  margin-top: auto;
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  color: #64748b;
  font-size: 0.8rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-links-container {
    flex-direction: column;
  }

  .side-image {
    width: 100%;
    align-items: center;
    margin-top: 1rem;
  }

  .side-image img {
    width: 70%;
    height: auto;
    border-radius: 10px;
  }
}

@media (max-width: 600px) {
  .topbar {
    justify-content: center;
  }
}

