@import url('https://fonts.googleapis.com/css?family=Khula');

/* Disable text selection by default */
body * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Enable text selection for links */
a {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

body {
  background-color: white;
  font-family: 'Khula', sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card {
  max-width: 600px;
  margin: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s ease;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  will-change: transform;
}

/* Add subtle shadow animation */
.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
  body {
    padding: 0;
  }
  
  .card {
    border-radius: 0;
  }
}

h1, h4 {
  margin-bottom: 0 !important;
}

.tech-item {
  padding: 10px;
  white-space: nowrap;
  position: relative;
  transition: transform 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
}

.tech-item:hover .tech-icon {
  filter: drop-shadow(0 0 8px rgba(66, 135, 245, 0.6));
}

.tech-item:hover .tech-label {
  color: #4287f5;
  font-weight: 500;
}

.card .card-header,
.card .card-footer {
  background-image: url('img/bg.png');
  background-repeat: repeat;
}

.tech-item .tech-icon {
  height:35px;
}

.portrait-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portrait-img:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Link styles */
.card-link {
  text-decoration: none;
  position: relative;
  padding: 2px 0;
  transition: color 0.3s ease;
}

.card-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.card-link:hover {
  color: #4287f5 !important;
}

.card-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
