/* Base styles and variables */
:root {
    --bg-color: #f8f9fa;
    --text-color: #333;
    --accent-color: #4361ee;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --dots-color: rgba(67, 97, 238, 0.3);
    --dots-connect: rgba(67, 97, 238, 0.15);
    --card-dots-color: rgba(67, 97, 238, 0.15);
    --card-dots-connect: rgba(67, 97, 238, 0.08);
    --gradient-1: #833ab4;
    --gradient-2: #fd1d1d;
    --gradient-3: #fcb045;
    --settings-bg: rgba(255, 255, 255, 0.95);
    --settings-border: rgba(0, 0, 0, 0.1);
    --settings-text: #333;
    --settings-option-bg: #f0f0f0;
    --settings-option-active: #4361ee;
    --settings-option-text-active: #ffffff;
  }
  
  .dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #738aff;
    --card-bg: #1e1e1e;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --dots-color: rgba(115, 138, 255, 0.3);
    --dots-connect: rgba(115, 138, 255, 0.15);
    --card-dots-color: rgba(115, 138, 255, 0.15);
    --card-dots-connect: rgba(115, 138, 255, 0.08);
    --settings-bg: rgba(30, 30, 30, 0.95);
    --settings-border: rgba(255, 255, 255, 0.1);
    --settings-text: #e0e0e0;
    --settings-option-bg: #2a2a2a;
    --settings-option-active: #738aff;
    --settings-option-text-active: #ffffff;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
  }
  
  body {
    font-family: "Fira Code", monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
  }
  
  /* Canvas for animated background */
  #dots-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  /* Card dots canvas */
  #card-dots-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    z-index: 0;
    opacity: 0.5;
  }
  
  /* Main container */
  .container {
    width: 100%;
    max-width: 1200px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Profile card */
  .profile-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }
  
  .no-card .profile-card {
    background-color: transparent;
    box-shadow: none;
    padding: 20px;
  }
  
  .no-card #card-dots-canvas {
    display: none;
  }
  
  /* Profile image with Instagram-like gradient */
  .profile-image-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 30px;
    z-index: 1;
  }
  
  /* Profile image with Instagram-like gradient */
  .profile-image-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-1));
    background-size: 400% 400%;
    animation: gradient-rotate 3s ease infinite;
    z-index: 1;
  }
  
  @keyframes gradient-rotate {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  .profile-image {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
  }
  
  .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  
  /* Confetti button */
  .confetti-button {
    width: 40px;
    height: 40px;
    background-color: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .confetti-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
  }
  
  .confetti-button svg {
    width: 24px;
    height: 24px;
    color: white;
  }
  
  /* Canvas for confetti */
  #confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
  }
  
  @media (max-width: 768px) {
    .confetti-button {
      right: -30px;
      width: 35px;
      height: 35px;
    }
  
    .confetti-button svg {
      width: 20px;
      height: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .confetti-button {
      right: -20px;
      width: 30px;
      height: 30px;
    }
  
    .confetti-button svg {
      width: 18px;
      height: 18px;
    }
  }
  
  .profile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    width: 100%;
  }
  
  /* Text animations */
  .animate-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in 0.8s forwards;
  }
  
  .animate-fade:nth-child(1) {
    animation-delay: 0.2s;
  }
  .animate-fade:nth-child(2) {
    animation-delay: 0.4s;
  }
  .animate-fade:nth-child(3) {
    animation-delay: 0.6s;
  }
  .animate-fade:nth-child(4) {
    animation-delay: 0.8s;
  }
  
  @keyframes fade-in {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Waving hand animation */
  .wave {
    display: inline-block;
    animation: wave-animation 2.5s infinite;
    transform-origin: 70% 70%;
  }
  
  @keyframes wave-animation {
    0% {
      transform: rotate(0deg);
    }
    10% {
      transform: rotate(14deg);
    }
    20% {
      transform: rotate(-8deg);
    }
    30% {
      transform: rotate(14deg);
    }
    40% {
      transform: rotate(-4deg);
    }
    50% {
      transform: rotate(10deg);
    }
    60% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(0deg);
    }
  }
  
  /* Rotating text animation */
  .rotating-text {
    color: var(--accent-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
  }
  
  .rotating-text::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--accent-color);
    animation: blink 1s step-end infinite;
  }
  
  @keyframes blink {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
  }
  
  .greeting {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
  }
  
  .title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
  }
  
  .description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 500px;
  }
  
  /* Buttons container */
  .buttons-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Contact button with animation */
  .contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #128c7e, #25d366);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
  }
  
  .contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  }
  
  .contact-btn:hover::before {
    opacity: 1;
  }
  
  .btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }
  
  /* Theme toggle button */
  .theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: var(--text-color);
    padding: 12px;
    border-radius: 50px;
    border: 2px solid var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    z-index: 100;
  }
  
  .theme-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
  }
  
  .moon-icon,
  .sun-icon {
    width: 24px;
    height: 24px;
  }
  
  .moon-icon {
    color: #5e60ce;
  }
  
  .sun-icon {
    color: #ffb703;
  }
  
  .light-mode .sun-icon {
    display: none;
  }
  
  .dark-mode .moon-icon {
    display: none;
  }
  
  /* Button positions */
  .button-position-inline {
    position: relative;
    /* Will be positioned by the buttons container */
  }
  
  .button-position-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
  }
  
  .button-position-side {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }
  
  .button-position-side:hover {
    transform: translateY(-50%) translateX(-5px);
  }
  
  /* Responsive styles */
  @media (max-width: 768px) {
    .profile-image-container {
      width: 180px;
      height: 180px;
      margin-bottom: 25px;
    }
  
    .greeting {
      font-size: 2rem;
    }
  
    .title {
      font-size: 1.5rem;
    }
  
    .description {
      font-size: 1rem;
      margin-bottom: 25px;
    }
  
    .contact-btn {
      padding: 10px 20px;
      font-size: 1rem;
    }
  
    .theme-toggle-btn {
      padding: 10px;
    }
  
    .moon-icon,
    .sun-icon {
      width: 20px;
      height: 20px;
    }
  
    .profile-card {
      padding: 30px 20px;
    }
  }
  
  @media (max-width: 480px) {
    .profile-image-container {
      width: 150px;
      height: 150px;
      margin-bottom: 20px;
    }
  
    .greeting {
      font-size: 1.7rem;
    }
  
    .title {
      font-size: 1.3rem;
    }
  
    .description {
      font-size: 0.9rem;
      line-height: 1.6;
      margin-bottom: 20px;
    }
  
    .contact-btn {
      padding: 8px 16px;
      font-size: 0.9rem;
    }
  
    .theme-toggle-btn {
      padding: 8px;
    }
  
    .moon-icon,
    .sun-icon {
      width: 18px;
      height: 18px;
    }
  
    .profile-card {
      padding: 25px 15px;
    }
  }
  