* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 100vh;
}

body {
  min-height: 100vh;

  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-y: auto;
}

/* Animated background elements */
body::before {
  content: "";
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -150px;
  right: -150px;
  animation: float 8s ease-in-out infinite, pulse 4s ease-in-out infinite;
  pointer-events: none;
  filter: blur(40px);
}

body::after {
  content: "";
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 70%
  );
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse,
    pulse 6s ease-in-out infinite;
  pointer-events: none;
  filter: blur(40px);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Mode Toggle Button */
#mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
  z-index: 1000;
}

#mode-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

/* Main Container */
.container {
  width: calc(100% - 40px);
  max-width: 480px;
  background: rgba(40, 40, 40, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 40px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out;
  overflow: hidden;
}

/* Additional animated shapes */
.container::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 10%;
  right: -50px;
  animation: morph 8s ease-in-out infinite, rotate 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.container::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: linear-gradient(225deg, rgba(255, 255, 255, 0.02), transparent);
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  bottom: 15%;
  left: -40px;
  animation: morph 10s ease-in-out infinite reverse,
    rotate 25s linear infinite reverse;
  pointer-events: none;
  z-index: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

/* Profile Section */
.profile {
  position: relative;
  margin-bottom: 20px;
  z-index: 2;
}

.profile-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  animation: profilePulse 3s ease-in-out infinite;
}

@keyframes profilePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.profile img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #2d2d2d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.profile-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #888);
  animation: rotate 3s linear infinite;
  z-index: 1;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Name and Title */
.name {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  position: relative;
  z-index: 2;
}

.tagline {
  font-size: 1.05rem;
  font-weight: 500;
  color: #b0b0b0;
  margin-bottom: 25px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.3s both;
  position: relative;
  z-index: 2;
}

.tagline .emoji {
  font-size: 1.1rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.8s ease-out 0.4s both;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  padding: 10px;
  animation: scaleIn 0.6s ease-out both;
}

.stat-item:nth-child(1) {
  animation-delay: 0.5s;
}
.stat-item:nth-child(2) {
  animation-delay: 0.6s;
}
.stat-item:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.85rem;
  color: #888;
  margin-top: 5px;
  word-wrap: break-word;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
  position: relative;
  z-index: 2;
}

.social-icons a {
  text-decoration: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #555, #333);
  color: #fff;
  font-size: 1.3rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: socialPop 0.6s ease-out both;
}

.social-icons a:nth-child(1) {
  animation-delay: 0.6s;
}
.social-icons a:nth-child(2) {
  animation-delay: 0.7s;
}
.social-icons a:nth-child(3) {
  animation-delay: 0.8s;
}
.social-icons a:nth-child(4) {
  animation-delay: 0.9s;
}

@keyframes socialPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  60% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.social-icons a:hover {
  background: linear-gradient(135deg, #fff, #ccc);
  color: #1a1a1a;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Link List */
.link-list {
  list-style: none;
  padding: 0;
  position: relative;
  z-index: 2;
}

.link-list li {
  margin-bottom: 15px;
  animation: slideInRight 0.6s ease-out both;
}

.link-list li:nth-child(1) {
  animation-delay: 0.7s;
}
.link-list li:nth-child(2) {
  animation-delay: 0.8s;
}
.link-list li:nth-child(3) {
  animation-delay: 0.9s;
}
.link-list li:nth-child(4) {
  animation-delay: 1s;
}
.link-list li:nth-child(5) {
  animation-delay: 1.1s;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.link-button {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 18px 20px;
  border-radius: 15px;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.link-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.link-button:hover::before {
  left: 100%;
}

.link-button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.link-button .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff, #ccc);
  color: #1a1a1a;
  border-radius: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
  z-index: 1;
}

.link-button .text {
  white-space: nowrap;
  flex-grow: 1;
  text-align: left;
  z-index: 1;
}

.link-button .arrow {
  font-size: 1.2rem;
  color: #fff;
  transition: transform 0.3s ease;
  z-index: 1;
}

.link-button:hover .arrow {
  transform: translateX(5px);
}

/* Light Mode */
body.light-mode {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  background-attachment: fixed;
}

body.light-mode::before {
  background: rgba(0, 0, 0, 0.03);
}

body.light-mode::after {
  background: rgba(0, 0, 0, 0.02);
}

body.light-mode #mode-toggle {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode #mode-toggle:hover {
  background: rgba(0, 0, 0, 0.15);
}

body.light-mode .container {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .profile img {
  border-color: #fff;
}

body.light-mode .profile-ring {
  background: linear-gradient(135deg, #1a1a1a, #555);
}

body.light-mode .name {
  background: linear-gradient(135deg, #1a1a1a, #444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .tagline {
  color: #666;
}

body.light-mode .stats {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .stat-number {
  color: #1a1a1a;
}

body.light-mode .stat-label {
  color: #666;
}

body.light-mode .social-icons a {
  background: linear-gradient(135deg, #e0e0e0, #ccc);
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .social-icons a:hover {
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body.light-mode .link-button {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .link-button:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .link-button .icon {
  background: linear-gradient(135deg, #1a1a1a, #444);
  color: #fff;
}

body.light-mode .link-button .arrow {
  color: #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
  #mode-toggle {
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .container {
    padding: 30px 20px;
    max-width: 95%;
  }

  .profile-wrapper {
    width: 120px;
    height: 120px;
  }

  .profile img {
    width: 120px;
    height: 120px;
  }

  .profile-ring {
    width: 140px;
    height: 140px;
  }

  .name {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 8px 10px;
  }

  .stat-item {
    padding: 8px 5px;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .social-icons {
    gap: 12px;
  }

  .social-icons a {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .link-button {
    padding: 15px 18px;
    font-size: 0.95rem;
  }

  .link-button .icon {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .link-button .arrow {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 25px 15px;
  }

  .name {
    font-size: 1.2rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .stats {
    padding: 12px 8px;
    gap: 8px;
  }

  .stat-item {
    padding: 6px 3px;
  }

  .stat-number {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .link-button {
    padding: 14px 15px;
    font-size: 0.9rem;
  }

  .social-icons a {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  /* //////////// */
  /* Decorative floating particles */
  .decorative-particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
  }

  .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
  }

  .particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
  }

  .particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 15s;
  }

  .particle:nth-child(3) {
    top: 40%;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 18s;
  }

  .particle:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 14s;
  }

  .particle:nth-child(5) {
    top: 15%;
    left: 90%;
    animation-delay: 3s;
    animation-duration: 16s;
  }

  @keyframes particleFloat {
    0%,
    100% {
      transform: translate(0, 0) scale(1);
      opacity: 0.3;
    }
    25% {
      transform: translate(20px, -30px) scale(1.2);
      opacity: 0.6;
    }
    50% {
      transform: translate(-20px, -60px) scale(0.8);
      opacity: 0.4;
    }
    75% {
      transform: translate(30px, -40px) scale(1.1);
      opacity: 0.5;
    }
  }

  /* Decorative geometric shapes around container */
  .geometric-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
  }

  .shape-circle {
    width: 80px;
    height: 80px;
    border: 2px solid #fff;
    border-radius: 50%;
    top: -20px;
    left: -30px;
    animation: rotateShape 20s linear infinite;
  }

  .shape-square {
    width: 60px;
    height: 60px;
    border: 2px solid #fff;
    top: 50%;
    right: -40px;
    transform: rotate(45deg);
    animation: rotateShape 15s linear infinite reverse;
  }

  .shape-triangle {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(255, 255, 255, 0.15);
    bottom: 10%;
    left: -20px;
    animation: rotateShape 18s linear infinite;
  }

  @keyframes rotateShape {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

  /* Glowing dots decoration */
  .glow-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
  }

  .glow-dot:nth-child(4) {
    top: 15%;
    right: 10%;
    animation-delay: 0s;
  }

  .glow-dot:nth-child(5) {
    top: 45%;
    right: 5%;
    animation-delay: 1s;
  }

  .glow-dot:nth-child(6) {
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
  }

  @keyframes glowPulse {
    0%,
    100% {
      opacity: 0.4;
      transform: scale(1);
    }
    50% {
      opacity: 1;
      transform: scale(1.5);
    }
  }

  /* Decorative lines */
  .deco-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent
    );
    animation: lineSlide 4s ease-in-out infinite;
    pointer-events: none;
  }

  .deco-line-1 {
    width: 100px;
    top: 25%;
    right: 0;
    animation-delay: 0s;
  }

  .deco-line-2 {
    width: 80px;
    bottom: 35%;
    left: 0;
    animation-delay: 2s;
  }

  @keyframes lineSlide {
    0%,
    100% {
      opacity: 0;
      transform: translateX(-20px);
    }
    50% {
      opacity: 1;
      transform: translateX(20px);
    }
  }

  /* Light mode adjustments for decorations */
  body.light-mode .particle {
    background: rgba(0, 0, 0, 0.5);
  }

  body.light-mode .geometric-shape {
    opacity: 0.2;
  }

  body.light-mode .shape-circle,
  body.light-mode .shape-square {
    border-color: #1a1a1a;
    border-width: 3px;
  }

  body.light-mode .shape-triangle {
    border-bottom-color: rgba(0, 0, 0, 0.2);
  }

  body.light-mode .glow-dot {
    background: #1a1a1a;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  }

  body.light-mode .deco-line {
    background: linear-gradient(
      90deg,
      transparent,
      rgba(0, 0, 0, 0.3),
      transparent
    );
  }
}
