@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

:root {
  --dark-purple: #1a0933;
  --medium-purple: #330066;
  --light-purple: #6a0dad;
  --accent-purple: #9932cc;
  --text-color: #e6e6fa;
}

body {
  background-color: var(--dark-purple);
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: url("videos/bg.gif") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-blend-mode: overlay;
  cursor: url("images/cursor.png"), default;
  cursor: url("images/cursor.png"), pointer;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--medium-purple);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(26, 9, 51, 0.2); /* Dark purple with slight transparency */
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 35px;
}

header h1,
header h2 {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Profile Image */
.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(45deg, var(--light-purple), var(--accent-purple));
  margin: 0 auto 1rem;
  border: 3px solid #fff; /* Optional: adds a white border */
  box-shadow: 0 0 20px 10px rgba(106, 13, 173, 0.2); /* Purple glow effect */
  transition: box-shadow 0.3s ease-in-out; /* Smooth transition for hover effect */
}

.profile-image:hover {
  box-shadow: 0 0 30px 15px rgba(106, 13, 173, 0.6); /* Intensifies glow on hover */
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

nav {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

a,
a:visited,
a:hover,
a:active {
  color: white;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid var(--light-purple);
  border-radius: 20px;
  transition: all 0.3s ease-out;
}

nav a:hover {
  background-color: var(--light-purple);
}

section {
  background-color: rgba(51, 6, 102, 0.7);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.heart-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.heart {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 10px;
  user-select: none;
  opacity: 0.8;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
  }
}

/* Fade-in effect for sections */
.skill-grid, .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.skill, .project {
  background-color: var(--dark-purple);
  padding: 1rem;
  border-radius: 8px;
}

.project {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.project-text {
  flex: 1;
}

.project-image {
  width: 200px;
  border-radius: 10px;
}

@media (max-width: 700px) {
  .project {
    flex-direction: column;
    text-align: center;
  }
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--dark-purple);
}

/* Fade-in animation */
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 1s ease-in, transform 1s ease-in;
}

.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
