/* CSS Reset & Variables */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #2e3440;
  --bg-light: #3b4252;
  --text: #9aa5b8;
  --text-light: #eceff4;
  --accent: #88c0d0;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  /* Spotlight effect directly on body */
  background-image: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(100, 255, 218, 0.07),
    transparent 40%
  );
  background-attachment: fixed;
}

/* Text selection highlight */
::selection {
  background: var(--accent);
  color: var(--bg);
}

::-moz-selection {
  background: var(--accent);
  color: var(--bg);
}

h1,
h2,
h3 {
  color: var(--text-light);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: rgba(100, 255, 218, 0.1);
}

/* Layout - mobile first */
.layout {
  display: block;
  padding: 3rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

header {
  margin-bottom: 4rem;

  h1 {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 700;
  }

  h2 {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 4px;
  }

  & > div:first-child p {
    margin-top: 1rem;
    font-size: 0.875rem;
  }
}

nav {
  display: none;
}

.social {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;

  a {
    color: var(--text);
    font-size: 1.5rem;
    transition: color 0.2s, transform 0.2s;

    &:hover {
      color: var(--text-light);
      transform: translateY(-2px);
    }
  }
}

section {
  margin-bottom: 4rem;

  p {
    margin-bottom: 1rem;
    font-size: 0.875rem;
  }
}

/* Jobs section */
.job {
  display: block;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  transition: background 0.2s;

  &:hover {
    background: rgba(255, 255, 255, 0.05);

    h3 {
      color: var(--accent);
    }

    .arrow {
      transform: translate(4px, -4px);
    }
  }
}

.job-date {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.job-content {
  h3 {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
  }

  p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
}

.arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;

  li {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    border-radius: 999px;
  }
}

/* Project section */
.project {
  display: block;
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
  transition: background 0.2s;

  &:hover {
    background: rgba(255, 255, 255, 0.05);

    h3 {
      color: var(--accent);
    }
  }
}

.project-image {
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
  }

  &:hover {
    img {
      opacity: 1;
      transform: scale(1.05);
    }
  }
}

.project-content {
  h3 {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
  }

  p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
}

.coming-soon {
  text-align: center;
  padding: 1rem 1rem 3rem 1rem;
  border-radius: 4px;
  margin-top: 1rem;

  p {
    color: var(--text);
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
  }
}

.cta {
  margin-top: 48px;
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);

  p {
    margin-bottom: 16px;
  }
}

/* Footer */
footer {
  font-size: 0.75rem;
  padding-top: 2rem;
  text-align: center;
}

/* Tablet view ( >768px) */
@media (min-width: 768px) {
  .layout {
    padding: 4rem 3rem;
  }

  header h1 {
    font-size: 2.75rem;
  }

  .job,
  .project {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2.6rem;
  }

  .job-date {
    margin-bottom: 0;
    padding-top: 4px;
  }

  .project-image {
    width: 120px;
    height: 80px;
    margin-bottom: 0;
  }
}

/* Desktop view (>1024px) */
@media (min-width: 1024px) {
  .layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 0 3rem;
    min-height: 100vh;
  }

  header {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;

    h1 {
      font-size: 3rem;
    }

    h2 {
      font-size: 1.25rem;
    }

    & > div:first-child p {
      max-width: 300px;
    }

    nav {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-top: 4rem;

      .nav-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        color: var(--text);
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: color 0.2s;
      }

      .nav-line {
        width: 2rem;
        height: 1px;
        background: var(--text);
        transition: width 0.2s, background 0.2s;
      }
    }

    .nav-link:hover,
    .nav-link.active {
      color: var(--text-light);
    }

    .nav-link:hover .nav-line,
    .nav-link.active .nav-line {
      width: 4rem;
      background: var(--text-light);
    }

    .social {
      margin-top: auto;
    }
  }

  main {
    padding: 6rem 0;
  }

  section {
    margin-bottom: 6rem;
  }

  .job,
  .project {
    grid-template-columns: 7rem 1fr;
    padding: 2.5rem;
  }

  .project-image {
    width: 140px;
    height: 90px;
  }
}

/* Large desktop (>1280px) */
@media (min-width: 1280px) {
  .layout {
    gap: 6rem;
    padding: 0 6rem;
  }

  header h1 {
    font-size: 3.5rem;
  }
}
