/* =========================
   Global variables
   ========================= */
:root {
  --bg-main: #0c101a;
  --bg-panel: #26345a;
  --border-panel: #3a4a7a;
  --text-main: #e6e9f2;
  --text-muted: #b8c0e0;
  --accent: #7aa2ff;
}

h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Prevent layout shift */
html {
  overflow-y: scroll;
}

/* =========================
   Base layout
   ========================= */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  background:
    linear-gradient(rgba(31,42,68,0.75), rgba(31,42,68,0.9)),
    url('/images/pagebgr.jpg');

  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  color: var(--text-main);
  line-height: 1.6;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================
   Sidebar social links
   ========================= */
.social-links {
  margin-top: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 1rem;
}

.social-links a:hover {
  color: var(--accent);
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.social-links a:hover .icon {
  opacity: 1;
  transform: scale(1.1);
}

/* =========================
   Navigation
   ========================= */
nav {
  padding: 1.5rem 2rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 1.5rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

/* =========================
   Layout (home page)
   ========================= */
.layout {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex: 1;
  gap: 2.5rem;
  align-items: flex-start;
}

.sidebar {
  width: 180px;
  flex-shrink: 0;
}

.profile-image {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border-panel);
  margin-bottom: 1rem;
}

.sidebar h1 {
  font-size: 1.4rem;
  margin: 0 0 0.25rem 0;
}

.sidebar .muted {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.sidebar a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.sidebar a:hover {
  color: var(--accent);
}

/* =========================
   Main content container
   ========================= */
.container {
  flex: 1;
  max-width: 720px;
  margin: 3rem auto 3rem auto; 
  padding: 2.5rem;

  background-color: rgba(38, 52, 90, 0.85);
  border: 1px solid var(--border-panel);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

/* =========================
   Typography
   ========================= */
h1 {
  margin-top: 0;
  font-size: 2.2rem;
}

.muted {
  color: var(--text-muted);
}

/* =========================
   Footer
   ========================= */
.site-footer {
  position: static;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.25rem 1rem;
  text-align: center;

  background-color: #182036;
  color: var(--text-muted);
  font-size: 0.85rem;

  border-top: 1px solid var(--border-panel);
  z-index: 10;
}

.site-footer p {
  margin: 0;
}

/* =========================
   Buttons
   ========================= */
.download-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1rem;

  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;

  text-decoration: none;
  font-weight: 500;
}

.download-btn:hover {
  background-color: var(--accent);
  color: #1f2a44;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 700px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: auto;
  }
}

/* =========================
   About page layout
   ========================= */
.about-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border-panel);
  flex-shrink: 0;
}

.about-content {
  flex: 1;
}

/* Mobile fallback */
@media (max-width: 700px) {
  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo {
    margin-bottom: 1rem;
  }
}