@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
  color: #333;
  background: #fafafa;
  margin: 0;
}

.content {
  max-width: 75%;
  margin: 40px auto;
}

h1,
h2 {
  color: #222;
}

p {
  margin-bottom: 1rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  color: white;
}

.small-hero {
  min-height: 40vh;
}

.small-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-background {
  position: absolute;
  inset: 0;

  background-image: url("assets/images/frederic-koberl-2836IR07ocg-unsplash.jpg");
  background-size: cover;
  background-position: center;

  transform: scale(1.01);
  filter: blur(8px);
}

.hero::after {
  content: "";

  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.hero p {
  margin: 1rem 0 2rem;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
}

.button {
  display: inline-block;

  padding: 14px 30px;

  border-radius: 999px;

  background: #f7d94c;
  color: #000000;

  text-decoration: none;
  font-weight: 600;

  transition: 0.25s;
}

.button:hover {
  background: #c57d00;
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  transition: 0.25s ease;

  display: flex;
  flex-direction: column;
}

.project-card:hover {
  background: #f7d94c;
}

.project-image {
  height: 240px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;

  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-content h3 {
  margin: 0;
  font-size: 1.3rem;
}

.project-content h4 {
  margin: 0.35rem 0 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
}

.project-content a {
  align-self: flex-start;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.placeholder-image {
  height: 180px;
  background: linear-gradient(135deg, #ddd, #bbb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-weight: bold;
}

.card-content {
  padding: 20px;
}

.card h3 {
  margin-top: 0;
}

.card a {
  color: #222;
  text-decoration: none;
  font-weight: bold;
}

.card a:hover {
  text-decoration: underline;
}

.about {
  /* margin: 6rem 0; */
}

.about h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-card {
  background: white;
  padding: 2rem;
  border-radius: 14px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  transition: 0.25s ease;

  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card:hover {
  background: #f7d94c;
}

.about-card p {
  margin: 0;
  line-height: 1.8;
}

.about-footer {
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .about-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table,
th,
td {
  border: 1px solid #ccc;
}

th,
td {
  padding: 12px;
  text-align: left;
}

th {
  background: #f0f0f0;
}

code {
  background: #eee;
  padding: 2px 5px;
  border-radius: 4px;
}

footer {
  margin: 60px 30px 30px;
  padding-top: 25px;

  border-top: 1px solid #ddd;

  font-size: 0.9rem;
  color: #666;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 2rem;
}

.footer-details a {
  color: inherit;
  text-decoration: none;
}

.footer-details a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.social-chip {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;

  border-radius: 999px;

  color: white;
  text-decoration: none;

  font-weight: 600;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.social-chip:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.social-chip i {
  font-size: 1.1rem;
}

/* Brand colours */

.linkedin {
  background: #0a66c2;
}

.github {
  background: #24292f;
}

@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

.back-to-site {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #222;
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease;
  z-index: 1000;
  overflow: hidden;
  white-space: nowrap;
}

.back-to-site:hover {
  background: #444;
}

.back-to-site .hover-text {
  display: none;
}

.back-to-site:hover .default-text {
  display: none;
}

.back-to-site:hover .hover-text {
  display: inline;
}

@media (max-width: 600px) {
  body {
    margin: 20px auto;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

.cookie-banner {
  position: fixed;
  top: 24px;
  left: 24px;

  width: min(520px, calc(100vw - 48px));

  background: white;
  border: 4px solid #f7d94c;
  border-radius: 14px;

  overflow: hidden;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);

  z-index: 10000;

  animation: cookieDrop 0.5s ease;
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #f7d94c;
  color: #222;

  padding: 10px 18px;

  font-size: 1.25rem;
  font-weight: bold;
}

.cookie-close {
  background: none;
  border: none;

  cursor: pointer;

  font-size: 1.5rem;
  font-weight: bold;

  line-height: 1;

  color: #222;

  transition: transform 0.2s ease;
}

.cookie-close:hover {
  transform: scale(1.2);
}

.cookie-body {
  padding: 18px;

  line-height: 1.6;
  color: #444;
}

.cookie-body em {
  font-style: normal;
  font-weight: bold;
}

.cookie-body a {
  color: #f7d94c;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
}

.cookie-body a:hover {
  text-decoration: underline;
  color: #c57d00;
}

@keyframes cookieDrop {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

hr {
  border: none;
  border-top: 3px dotted #333333;
  color: #333333;
  overflow: visible;
  text-align: center;
  height: 5px;
}

.experience {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.experience-card {
  background: white;

  border-radius: 14px;

  overflow: hidden;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  scroll-margin-top: 30px;
}

.experience-card img {
  width: 100%;

  height: 350px;

  object-fit: cover;
}

.experience-content {
  padding: 1.5rem;
}

.experience-content h2 {
  margin-top: 0;
}

.experience-content h3 {
  color: #666;

  font-weight: 500;
}

.experience-content li {
  margin-bottom: 0.5rem;
}

.legal-card {
  background: white;

  padding: 3rem;

  border-radius: 14px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.legal-card h2 {
  margin-top: 3rem;
}

.legal-card h2:first-of-type {
  margin-top: 2rem;
}

.legal-card table {
  margin: 2rem 0;
}

.legal-card li {
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .legal-card {
    padding: 1.5rem;
  }
}
