/* ====== Base, dark only ====== */
:root {
    --bg: #0b0e14;
    --card: #121722;
    --text: #e6e6e6;
    --muted: #a6adbb;
    --accent: #6ea8fe;
    --ring: #2a66ff33;
    --border: #263043;
  }
  
  html, body {
    margin: 0;
    padding: 0;
    font-family: ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
    line-height: 1.6;
    background: radial-gradient(1200px 800px at 20% -10%, #11182b 0%, var(--bg) 60%);
    color: var(--text);
  }
  
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
  
  /* Accessibility skip link */
  .skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: .5rem .75rem;
    background: var(--accent);
    color: white;
    border-radius: .5rem;
  }
  
  /* ====== Layout ====== */
  .site-header {
    padding: 2rem 1rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .hero {
    padding-top: 2rem;
  }
  .hero h1 {
    font-size: clamp(3rem, 6vw, 4rem);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-style: italic;
    margin: 0 0 .25rem 0;
    letter-spacing: .5px;
    text-shadow: 1px 2px 6px #6ea8fe;
  }

  h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
  }
  .subhead { color: var(--muted); }
  
  .hero__cta { margin-top: 1rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
  
  /* Center headings, descriptions, and top content */
  .site-header,
  .hero,
  .section h2,
  .section__lead,
  .section p {
    text-align: center;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: .6rem .9rem;
    border-radius: .6rem;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 1px 10px rgba(255, 255, 255, 0.35);
    text-decoration: none;
  }
  .btn:hover { 
    filter: brightness(1.05); 
    text-decoration: none;
    background: rgba(110, 168, 254, 0.15); /* subtle hover background */

  }
  .btn--ghost {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
  }
  
  /* Contact button text color */ 
  .contact .btn--ghost {
    color: #6ea8fe;              /* example: your accent blue */
    border-color: #6ea8fe;       /* keep border same as text */
  }
  
  .contact .btn--ghost:hover {
    background: rgba(110, 168, 254, 0.15); /* subtle hover background */
  }
  
  
  /* Contact buttons centered */
  .contact {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
  }
  
  /* ====== Sections ====== */
  .section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
  }
  .section h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: .25rem;
  }
  .section__lead { color: var(--muted); margin-bottom: 1.25rem; }
  
  /* ====== Projects grid ====== */
  .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    text-align: left; /* keep cards left aligned */
  }
  .card {
    grid-column: span 12;
    padding: 1rem;
    border-radius: .9rem;
    background: var(--card);
    border: 1px solid var(--border);
  }
  .card h3 { margin: 0 0 .25rem 0; }
  .card p { margin: 0 0 .5rem 0; }
  .card .meta { font-size: .9rem; color: var(--muted); }
  .card .links { margin-top: .75rem; display: flex; gap: .5rem; flex-wrap: wrap; }
  
  @media (min-width: 720px) {
    .card { grid-column: span 6; }
  }
  @media (min-width: 980px) {
    .card { grid-column: span 4; }
  }
  
  /* ====== Timeline ====== */
  .timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
    text-align: left; /* keep items left aligned */
  }
  .timeline li {
    padding: 1rem;
    border-radius: .9rem;
    background: var(--card);
    border: 1px solid var(--border);
  }
  .timeline .meta { color: var(--muted); }
  
  /* ====== Footer ====== */
  .site-footer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    color: var(--muted);
    text-align: center;
  }
  
  /* ====== Hamburger nav, offcanvas drawer ====== */
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .hamburger {
    position: fixed;
    top: 14px;
    right: 24px;
    z-index: 1100;
  
    width: 50px;
    height: 50px;
    cursor: pointer;
  
    display: flex;               /* stack bars manually */
    flex-direction: column;      /* vertical stack */
    justify-content: center;     /* center vertically inside button */
    align-items: center;         /* center horizontally */
    gap: 5px;                    /* spacing between bars */
    
    background: rgba(110, 168, 254, 0.08); /* faint accent background */
    border: 1px solid var(--accent);       /* accent border */
    border-radius: 12px;
    box-shadow: 0 1px 10px rgba(255, 255, 255, 0.35);
  }
  
  .hamburger__bar {
    width: 22px;                 /* bar length */
    height: 2px;                 /* bar thickness */
    background: var(--accent); /* accent bars */
    border-radius: 2px;          /* rounded bars */
  }
  
  /* Keep bars as three lines even when open */
  .hamburger.is-open .hamburger__bar {
    transform: none;
    opacity: 1;
  }
  
  /* Drawer: keep slide from right, ensure content clears behind button */
  .nav__drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100dvh;
    padding: 16px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
    background: var(--card);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(0,0,0,.35);
    transition: right .25s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
  }
  .nav__drawer.open { right: 0; }
  
  /* Backdrop stays as is */
  .nav__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(44, 44, 44, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1000;
  }
  .nav__backdrop[hidden] { display: none; }
  
  /* Scrollable vertical menu */
  .nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
  }
  .nav__menu a {
    display: block;
    padding: .6rem .75rem;
    border-radius: .5rem;
    text-decoration: none;
  }
  .nav__menu a:hover { background: var(--ring); }
  
/* Contact page styles */
  .contact-page h1 {
    font-size: clamp(3rem, 6vw, 4rem);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-shadow: 1px 1px 5px #6ea8fe;
  }
  .contact-page p {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
  }

/* Card container stays the same basics */
  .card--bg {
    position: relative;
    border-radius: .9rem;
    overflow: hidden;
    color: white;
    border: none;
  }
  
  /* Turn the whole card into a link with the background */
  .card__link {
    display: flex;
    flex-direction: column;           /* top + bottom regions */
    justify-content: space-between;   /* push bottom to bottom */
    min-height: 300px;                /* card height */
    background-position: center;
    background-size: 110%;
    transition: background-size .35s ease;  /* zoom effect */
    text-decoration: none;
    color: inherit;
    padding: 1rem;                    /* space for text */
    border-radius: inherit;
  }
  
  /* Readability overlay */
  .card__link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.2));
    z-index: 0;
  }
  
  /* Ensure text sits above overlay */
  .card__overlay {
    position: relative;
    z-index: 1;
  }
  
  /* Title at top */
  .card__top h3 {
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
  }
  
  /* Bottom row: stack only (no button) */
  .card__bottom {
    display: flex;
    justify-content: space-between; /* if you later add anything else */
    align-items: center;
  }
  .card__bottom .meta {
    margin: 0;
    color: #e6e6e6;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
  }
  
  /* Hover/focus zoom */
  .card--bg:hover .card__link,
  .card--bg:focus-within .card__link {
    background-size: 120%;
    text-decoration: none;
  }
  
  /* Keyboard focus ring on the whole card */
  .card__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: inherit;
  }
  
  /* Optional: pointer cursor for clarity */
  .card--bg { cursor: pointer; }