/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9fff9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
  
  .container {
    width: 100%;
    max-width: 400px;
  }
  
  .card {
    background-color: #e9fced;
    border-radius: 15px;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  .header {
    height: 10px;
    background-color: #98f7b9;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    margin: -30px -20px 30px -20px;
  }
  
  /* Coin Flip Animation */
  .coin-flip {
    width: 100px;
    height: 100px;
    margin: -50px auto 15px auto;
    perspective: 1000px; /* Adds 3D perspective */
  }
  
  .profile-image {
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
  }
  
  .coin-flip:hover .profile-image {
    animation: coinFlip 0.8s ease-in-out; /* Trigger animation on hover */
  }
  
  /* Keyframes for Coin Flip Animation */
  @keyframes coinFlip {
    0% {
      transform: rotateY(0deg);
    }
    100% {
      transform: rotateY(360deg);
    }
  }
  
  .profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  }
  
  /* Text Styling */
  h1 {
    margin: 10px 0 5px;
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
  }
  
  .intro {
    font-size: 14px;
    color: #333;
    margin: 10px 0;
    line-height: 1.5;
  }
  
  .intro span {
    font-weight: bold;
    color: #0047ab;
  }
  
  .connect-text {
    margin: 15px 0 10px;
    font-weight: 500;
    font-size: 14px;
  }
  
  /* Social Icons */
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
  }
  
  .social-icons a {
    font-size: 24px;
    color: #000;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  .social-icons a:hover {
    color: #1d9bf0;
    transform: scale(1.2);
  }
  
  /* Resume Button */
  .resume-btn {
    display: inline-block;
    margin: 15px auto;
    padding: 10px 25px;
    background-color: #0073e6;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
  }
  
  .resume-btn:hover {
    background-color: #005bb5;
  }
  
  /* Footer */
  footer {
    font-size: 12px;
    color: #666;
    margin-top: 20px;
  }
  
  /* Dark Mode Toggle */
  .theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  /* Dark Mode Styling */
  body.dark {
    background: #121212;
    color: #f0f0f0;
  }
  
  body.dark .card {
    background-color: #1e1e1e;
  }
  
  body.dark .resume-btn {
    background-color: #333;
  }
  
  body.dark .resume-btn:hover {
    background-color: #444;
  }
  
  /* Slider for Dark Mode Toggle */
  .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:checked + .slider:before {
    transform: translateX(20px);
  }