@font-face {
    font-family: 'Hk Grotesk';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/HKGrotesk-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/Jost-Regular.ttf') format('woff');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-size-small: 1.6rem;
    --font-size-normal: 2rem;
    --font-size-medium: 2.6rem;
    --font-size-large: 4rem;
    --font-size-huge: 6rem;

    --font-stack: 'Hk Grotesk', sans-serif;

    --line-height-normal: 1.6;
    --line-height-small: 1.2;

    /* Noir Palette */
    --black: #0a0a0a;
    --gray: #1a1a1a;
    --gray-light: #2b2b2b;
    --white: #e6e6e6;
    --accent: #8b0000;

    --container-max-width: 1000px;
    --gutter-large: 6rem;
    --gutter-medium: 3rem;
    --gutter-small: 1.5rem;

    --border-light: 1px solid rgba(255, 255, 255, 0.08);
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
  font-size: var(--font-size-small);
  font-family: var(--font-stack);
  font-weight: 400;
  color: var(--white);
  line-height: var(--line-height-normal);
  background: var(--black) url('./images/noircitybg.jpg') no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

section {
  padding: var(--gutter-large) 0;
  margin-bottom: var(--gutter-medium);
  background: rgba(10, 10, 10, 0.92);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.row {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--gutter-medium);
}

/* Typography */

h1, h2, h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    color: var(--white);
    line-height: var(--line-height-small);
}

.heading-primary {
    font-size: var(--font-size-huge);
    line-height: 1.1;
}

h2 {
    font-size: var(--font-size-large);
    margin-bottom: var(--gutter-medium);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: var(--font-size-medium);
    margin-bottom: var(--gutter-small);
}

p {
    margin: var(--gutter-small) 0;
    max-width: 70ch;
    color: var(--white);
}

/* Links & Buttons */

a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--white);
    transition: all 0.2s;
}

.btn:hover {
    background: var(--accent);
    color: var(--white);
}

/* Navigation */

.nav {
    display: flex;
    justify-content: flex-end;
    padding: var(--gutter-medium) 0;
}

.nav__items {
    display: flex;
    list-style: none;
    gap: var(--gutter-medium);
}

.nav__link {
    padding: .5rem;
    font-size: var(--font-size-normal);
}

/* Header */

.header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('./images/header.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header__text p {
    font-size: var(--font-size-medium);
    margin: var(--gutter-small) 0 var(--gutter-medium);
}

/* About */

.about__content {
    display: flex;
    gap: var(--gutter-large);
    align-items: center;
    flex-wrap: wrap;
}

.about__photo {
    border-radius: 50%;
    max-width: 200px;
    border: 2px solid var(--accent);
}

.repository__links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.repository__label {
  font-size: var(--font-size-normal);
  color: var(--white);
}

.repository__image {
  max-width: 60%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin: 1rem auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.repository__image:hover {
  transform: scale(1.05);
}

.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-lightbox.active {
  visibility: visible;
  opacity: 1;
}

.image-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

/* Resume */

.resume__links {
    margin: var(--gutter-medium) 0;
    display: flex;
    gap: var(--gutter-small);
}

.resume__image {
  max-width: 48%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  background: var(--gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.resume__image:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Projects */

.projects__content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: rgba(42, 42, 42, 0.6);
  border: 1px dashed var(--accent);
  border-radius: 8px;
}

.projects__coming-soon {
  font-size: var(--font-size-medium);
  font-weight: 500;
  color: var(--accent);
  text-align: center;
}

/* Contact */

.contact__info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
  margin-top: var(--gutter-small);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gutter-small);
}

.social-links a {
    font-size: var(--font-size-normal);
    color: var(--white);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent);
}

.social-label {
  font-weight: 500;
  margin-right: var(--gutter-small);
}

.email-links,
.other-links {
  display: inline-flex;
  gap: var(--gutter-small);
}

/* Footer */

.template.credit {
    text-align: center;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    border-top: var(--border-light);
    color: var(--white);
}

/* ========================= */
/*   Responsive Adjustments  */
/* ========================= */

@media (max-width: 1024px) {
  .heading-primary {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 3rem;
  }

  p {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1.4rem;
  }

  .nav__items {
    flex-direction: column;
    gap: var(--gutter-small);
    align-items: center;
  }

  .nav {
    justify-content: center;
    text-align: center;
  }

  .about__content {
    flex-direction: column;
    text-align: center;
  }

  .about__photo {
    max-width: 150px;
  }

  .resume__image {
    max-width: 100%;
  }

  .social-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .social-label {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .heading-primary {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .btn {
    padding: 0.8rem 2rem;
    font-size: 1.4rem;
  }

  .resume__image {
    max-width: 90%;
  }
}
