/* Modern styling for Dennis Kjær's portfolio */
:root {
  --primary-color: #00e0ff;
  --bg-color: #0e0e0e;
  --text-color: #f5f5f5;
  --accent-color: #333;
  --hover-color: #00fff2;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: 100% center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Add an overlay to fade out the background image */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(14, 14, 14, 0.92),
    rgba(14, 14, 14, 0.97)
  );
  z-index: -1;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.container {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

h1, h2, h3 {
  margin: 0 0 20px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
  margin-top: 40px;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

h3 {
  font-size: 1.3rem;
  color: #ffffff;
}

p {
  margin: 15px 0;
  font-size: 1.1rem;
}

.section {
  margin-bottom: 80px;
  transition: transform 0.3s ease;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section:hover {
  transform: translateY(-2px);
}

.highlight {
  color: var(--primary-color);
  font-weight: 500;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

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

a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--hover-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

a:hover::after {
  transform: scaleX(1);
}

.contact {
  border-top: 1px solid var(--accent-color);
  padding-top: 30px;
  margin-top: 30px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

ul li {
  margin: 12px 0;
  padding-left: 25px;
  position: relative;
  font-size: 1.1rem;
}

ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  body::before {
    background-image: url('bg-mobile.jpg');
    background-attachment: scroll;
  }
}

@supports (-webkit-overflow-scrolling: touch) {
  body::before {
    background-attachment: scroll;
  }
}
