body {
  background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

.side-nav {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 1.25rem;
  border-radius: 1rem;
  z-index: 1000;
}

.nav-item {
  width: 45px;
  height: 45px;
  margin: 0.625rem 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-img-wrapper {
  width: 450px;
  /* Increased base width */
  height: 450px;
  /* Added height to maintain aspect ratio */
  position: relative;
  margin: 0 auto;
}

.profile-blob {
  border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  animation: morphShape 8s ease-in-out infinite;
}

.blob-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #a855f7, #6366f1);
}

.profile-image {
  position: relative;
  width: 95%;
  height: 95%;
  object-fit: cover;
}

@keyframes morphShape {
  0%,
  100% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
  }
}

.gradient-text {
  background: linear-gradient(45deg, #a855f7, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-content {
  margin-left: 120px;
  padding-right: 20px;
  /* Add padding to prevent image overflow */
}

@media (max-width: 1200px) {
  .profile-img-wrapper {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 992px) {
  .profile-img-wrapper {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .profile-img-wrapper {
    width: 300px;
    height: 300px;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .side-nav {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    padding: 0.75rem;
    gap: 0.5rem;
    width: auto;
    max-width: 90%;
  }

  .nav-item {
    margin: 0;
  }

  .main-content {
    margin-left: 0;
    padding-left: 20px;
    padding-bottom: 100px;
    /* Space for bottom navigation */
  }

  .nav-item:hover {
    transform: translateY(-5px) !important;
  }
}

/* Add glass effect for mobile nav */
.glass-effect {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Dark mode styles - Updated */
[data-theme="dark"] {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #fff !important;
}

[data-theme="dark"] .text-dark {
  color: #fff !important;
}

[data-theme="dark"] .nav-item {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-item i {
  color: #fff !important;
}

[data-theme="dark"] .btn-outline-primary {
  border-color: #fff;
  color: #fff;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(45deg, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .profile-blob.blob-bg {
  background: linear-gradient(45deg, #60a5fa, #a855f7);
}

[data-theme="dark"] .glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .side-nav {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(45deg, #60a5fa, #a855f7);
  border: none;
}

[data-theme="dark"] .btn-outline-primary:hover {
  background: linear-gradient(45deg, #60a5fa, #a855f7);
  border-color: transparent;
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Dark mode button animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.theme-toggle i {
  animation: rotate 0.5s ease;
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleAnimation {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-title {
  opacity: 0;
  animation: titleAnimation 1.2s ease forwards;
  animation-delay: 0.3s;
}

.animate-fade-in-delay {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.6s;
}
