* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #121212;
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
  min-height: 100vh;
}

#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.2s ease forwards;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #00ffcc;
  box-shadow: 0 0 20px #00ffcc44;
  object-fit: cover;
  transition: transform 0.2s ease;
  will-change: transform;
  animation: popIn 1s ease-out forwards;
}

.name {
  margin-top: 20px;
  font-size: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInName 1s ease-out 1s forwards;
}

.links {
  margin-top: 20px;
  transform: translateY(30px);
  animation: fadeInLinks 1s ease-out 2s forwards;
}

.link {
  margin: 0 10px;
  padding: 10px 20px;
  background: #222;
  border: 1px solid #00ffcc;
  color: #00ffcc;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.link:hover {
  background: #00ffcc;
  color: #121212;
  transform: scale(1.1);
}

.info-section {
  min-height: 100vh;
  background: #1a1a1a;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-section h2 {
  color: #00ffcc;
  font-size: 2rem;
  margin-bottom: 20px;
}

.info-section p, .info-section a {
  font-size: 1.2rem;
  color: #fff;
  margin: 10px 0;
  text-decoration: none;
}

.cv-image {
  width: 100%;
  max-width: 600px; /* limits width to 800px */
  max-height: 900px; /* optional: limits height */
  height: auto;
  margin: 20px auto 0; /* top 20px, auto center horizontally */
  border: 2px solid #00ffcc;
  box-shadow: 0 0 20px #00ffcc44;
  border-radius: 12px;
}

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

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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