/* =============================================
   style.css — Portfolio stylesheet
   Path: resources/css/style.css
   ============================================= */

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #111111;
  --bg-nav:     #0d0d0d;
  --surface:    #1a1a1a;
  --border:     #2a2a2a;
  --text:       #de85f5;
  --text-muted: #736e7a;
  --accent:     #bd53d8;
  --link:       #d59af0;    /* aligned with the purple theme */
  --link-hover: #f1b55b;    /* warm amber hover — nice contrast */
  --font:       'Georgia', serif;
  --font-body:  system-ui, sans-serif;
  --max-width:  860px;      /* wider to fit two columns */
  --gap:        1.75rem;    /* tighter than before (was 2.5rem) */
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  padding-bottom: 4rem;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: var(--font);
  font-weight: normal;
  line-height: 1.2;
  color: #d59af0;
}

h1 { font-size: 2rem;   margin-bottom: 0.4rem; }
h2 { font-size: 1.3rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; }
h3 { font-size: 1rem;   margin-top: 1.25rem; margin-bottom: 0.4rem; color: var(--text-muted); }

p  { margin-bottom: 0.85rem; color: var(--text-muted); }

a  { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

ul li {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

ul li a {
  color: var(--text);
  font-weight: 500;
}

ul li span {
  font-size: 0.9rem;
}

/* ── LAYOUT ── */
header, main, footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── PROFILE IMAGE ── */
img {
  display: block;
  max-width: 55%;
  height: auto;
  border-radius: 90px;
  border: 2px solid var(--accent);
  margin: 0.75rem 0 0.4rem;
}

/* ── SUBTITLE under h1 ── */
.also-known {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.small-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* ── NAV ── */
header {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: var(--font);
  font-size: 1.1rem;
  color: #d59af0;
  text-decoration: none;
}

.site-title:hover {
  color: var(--accent);
  text-decoration: none;
}

#lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}

#lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── MAIN & SECTIONS ── */
main {
  margin-top: 2rem;
}

section {
  margin-bottom: var(--gap);
}

/* ── TWO-COLUMN: intro + experience/interests ── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: var(--gap);
}

/* Stacks experience and interests vertically in the right column */
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.side-stack section {
  margin-bottom: var(--gap);
}

/* ── TWO-COLUMN: links + support ── */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: var(--gap);
}

/* ── FOOTER ── */
footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

footer nav {
  display: block;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--accent);
}

/* ── RESPONSIVE: collapse to single column on small screens ── */
@media (max-width: 600px) {
  .main-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  img {
    max-width: 45%;
  }

  h1 { font-size: 1.6rem; }
  body { font-size: 0.95rem; }
}
