/* === CSS VARIABLES FOR THEMES === */
:root {
  --bg-primary: #fff;
  --bg-secondary: #f2f3f5;
  --text-primary: #18191a;
  --text-secondary: #555;
  --border-color: #18191a;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --hover-bg: #18191a;
  --hover-text: #fff;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --border-color: #ffffff;
  --shadow-color: rgba(255, 255, 255, 0.1);
  --hover-bg: #ffffff;
  --hover-text: #1a1a1a;
}

/* Dark theme specific overrides */
[data-theme="dark"] .typewriter-text {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

[data-theme="dark"] .chat-bubble {
  color: #ffffff !important;
}

[data-theme="dark"] .profile-intro h1 {
  color: #ffffff !important;
}

[data-theme="dark"] .profile-meta {
  color: #cccccc !important;
}

[data-theme="dark"] .skills-category h4 {
  color: #ffffff !important;
}

[data-theme="dark"] .skill-btn {
  color: #ffffff !important;
  background: #2d2d2d !important;
  border-color: #555 !important;
}

[data-theme="dark"] .skill-btn:hover {
  background: #ffffff !important;
  color: #1a1a1a !important;
}

[data-theme="dark"] .modal-content {
  background: #2d2d2d !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

[data-theme="dark"] .modal-content h2,
[data-theme="dark"] .modal-content h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .modal-content p,
[data-theme="dark"] .modal-content li {
  color: #cccccc !important;
}

[data-theme="dark"] .modal-btn {
  background: #ffffff !important;
  color: #1a1a1a !important;
}

[data-theme="dark"] .modal-btn:hover {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Dark theme for logout button */
[data-theme="dark"] .logout-btn {
  background: #dc3545 !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4) !important;
}

[data-theme="dark"] .logout-btn:hover {
  background: #c82333 !important;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5) !important;
}

/* Dark theme for like button states */
[data-theme="dark"] .like-button.liked {
  background: #ff4757 !important;
  border-color: #ff4757 !important;
  color: #fff !important;
}

[data-theme="dark"] .like-button.liked:hover {
  background: #ff3742 !important;
  border-color: #ff3742 !important;
}

/* Dark theme for theme toggle */
[data-theme="dark"] .theme-toggle {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

[data-theme="dark"] .theme-toggle:hover {
  background: #f39c12 !important;
  border-color: #f39c12 !important;
  color: #fff !important;
}

/* Dark theme responsive button fixes */
[data-theme="dark"] .top-button {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .top-button:hover {
  background: var(--hover-bg) !important;
  color: var(--hover-text) !important;
}

[data-theme="dark"] #hireMeBtn {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] #hireMeBtn:hover {
  background: var(--hover-bg) !important;
  color: var(--hover-text) !important;
}

/* Dark theme for project cards */
[data-theme="dark"] .project-card-bw {
  background: #2d2d2d !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

[data-theme="dark"] .project-card-bw:hover {
  background: #3d3d3d !important;
  transform: scale(1.03);
}

[data-theme="dark"] .project-card-icon-bw {
  background: #1a1a1a !important;
}

[data-theme="dark"] .project-card-content-bw h4 {
  color: #ffffff !important;
}

[data-theme="dark"] .project-card-content-bw p {
  color: #cccccc !important;
}

/* Dark theme for profile card */
[data-theme="dark"] .profile-header {
  background: #2d2d2d !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

[data-theme="dark"] .profile-photo img {
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1) !important;
}

/* === BASE SETUP === */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
   
  }
  
  
  body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
  }
  
  .main-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    height: 100vh;
    position: relative;
  }
  
  /* === TYPEWRITER === */
  #intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px; /* Moved image up by reducing margin */
    padding-top: 20px; /* Extra padding for safety */
  }
  .typewriter-container {
    margin-top: 30px;
    text-align: center;
    height: 100px;
    overflow: hidden;
  }
  .typewriter-text {
    font-size: 36px;
    font-weight: 600;
    border-right: 2px solid var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    color: var(--text-primary);
    animation: blink 0.75s step-end infinite;
    margin-bottom: 20px;
    transition: color 0.3s ease, border-color 0.3s ease;
  }
  @keyframes blink {
    0%, 100% { border-color: var(--text-primary); }
    50% { border-color: transparent; }
  }
  
  /* === LOTTIE === */
  #sarmi-lottie {
    display: block;
    margin: 0 auto;
    margin-top: -20px;
    width: 400px;
    height: 400px;
    pointer-events: none;
  }
  .bottom-ui-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--bg-primary);
    z-index: 150;
    box-shadow: 0 -1px 5px var(--shadow-color);
    transition: background-color 0.3s ease;
  }
  /* === CHAT CONTAINER === */
  .chat-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    height: calc(100vh - 180px);
    overflow-y: auto;
    margin: 0 auto; 
    transition: background-color 0.3s ease;
    z-index: 1;
    box-sizing: border-box;
    padding-bottom: 200px;
    flex: 1;
  }
  
  .chat-bubble {
    background: var(--bg-primary);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  /* === BOTTOM UI CONTAINER (Wraps Input + Quick Buttons) === */
  .bottom-ui-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--bg-primary);
    z-index: 999; /* Higher than everything else */
    box-shadow: 0 -1px 5px var(--shadow-color);
    transition: background-color 0.3s ease;
  }
  
  /* === INPUT AREA === */
  .input-area-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px 20px 0 20px; /* no bottom padding */
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
  }
  
  .input-wrapper {
    display: flex;
    gap: 10px;
    max-width: 700px;
    width: 100%;
  }
  
  #input {
    flex: 1;
    padding: 14px;
    font-size: 16px;
    border-radius: 12px;
    border: 1.5px solid #bbb;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
  
  #input:focus {
    outline: none;
    border-color: var(--border-color);
  }
  
  .send-btn {
    padding: 14px 20px;
    background: var(--hover-bg);
    color: var(--hover-text);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .send-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
  }

  /* === CONTEXT COVERAGE INDICATOR === */
  .context-coverage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom:-1px;
  }

  .context-coverage-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(#3b82f6 0deg, #e5e7eb 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
  }

  .context-coverage-circle::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    z-index: 1;
  }

  .coverage-text {
    font-size: 10px;
    font-weight: 600;
    color: #18191a;
    z-index: 2;
    position: relative;
  }

  .coverage-label {
    font-size: 10px;
    color: #666;
    font-weight: 500;
  }

  .context-coverage-circle.high-coverage {
    background: conic-gradient(#10b981 var(--progress, 0), #e5e7eb var(--progress, 0));
  }

  .context-coverage-circle.medium-coverage {
    background: conic-gradient(#f59e0b var(--progress, 0), #e5e7eb var(--progress, 0));
  }

  .context-coverage-circle.low-coverage {
    background: conic-gradient(#ef4444 var(--progress, 0), #e5e7eb var(--progress, 0));
  }

  /* === REFRESH BUTTON === */
  .refresh-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .refresh-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    color: black;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
  }

  .refresh-btn:hover {
    background: #f9fafb;
    transform: scale(1.05);
    border-color: #d1d5db;
  }

  .refresh-btn:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    border-color: #e5e7eb;
  }

  .refresh-label {
    font-size: 10px;
    color: #666;
    font-weight: 500;
  }
  
  /* === QUICK BUTTONS === */
  .quick-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
  }
  
  .quick-buttons button,
  .quick-buttons .home-btn {
    padding: 10px 16px;
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
  }
  
  .quick-buttons button:hover,
  .quick-buttons .home-btn:hover {
    background: var(--hover-bg);
    color: var(--hover-text);
  }
  
  
  /* === TYPING INDICATOR === */
  .typing-indicator-text {
    font-style: italic;
    color: #888;
    font-size: 14px;
    animation: fadeInOut 1.5s infinite;
  }
  @keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }
  /* === TOP BUTTONS CONTAINER === */
  .top-buttons-container {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Higher z-index to ensure it stays on top */
    gap: 10px;
    /* Removed background, backdrop-filter, border-radius, padding, box-shadow, border */
  }
  
  /* Ensure like button stays in same position when hire button is hidden */
  .right-buttons-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto; /* Always push to the right side */
  }

  .like-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 18px; /* Moved like button down */
  }

  .like-count {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
    min-width: 20px;
    text-align: center;
  }

  .top-button {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }
  
  .top-button:hover {
    background: var(--hover-bg);
    color: var(--hover-text);
    box-shadow: 0 4px 12px var(--shadow-color);
  }

  /* Like Button Specific Styles */
  .like-button {
    padding: 10px 12px;
    min-width: 45px;
    justify-content: center;
  }

  .like-button.liked {
    background: #ff4757 !important;
    border-color: #ff4757 !important;
    color: #fff !important;
  }

  .like-button.liked:hover {
    background: #ff3742 !important;
    border-color: #ff3742 !important;
  }

  /* Theme Toggle Specific Styles */
  .theme-toggle {
    padding: 10px 12px;
    min-width: 45px;
    justify-content: center;
  }

  .theme-toggle:hover {
    background: #f39c12 !important;
    border-color: #f39c12 !important;
    color: #fff !important;
  }
  
  .profile-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* space between image and text */
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  }
  .profile-photo {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .profile-photo img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #f2f3f5;
  }
  .profile-intro {
    flex: 2;
    padding-left: 40px;
    text-align: left;
  }
  .profile-intro h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .profile-meta {
    font-size: 16px;
    color: #555;
  }
  
  .projects-scroll-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #bbb #f2f3f5;
  }
  
  .projects-scroll-row::-webkit-scrollbar {
    height: 10px;
  }
  .projects-scroll-row::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 8px;
  }
  .projects-scroll-row::-webkit-scrollbar-track {
    background: #f2f3f5;
  }
  
  .project-card-bw {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    min-width: 260px;
    max-width: 280px;
    display: flex;
    align-items: center;
    padding: 10px;
    border: 2px solid #18191a;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s;
  }
  
  .project-card-bw:hover {
    transform: scale(1.03);
  }
  
  .project-card-icon-bw {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: #f2f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
  }
  
  .project-card-icon-bw img {
    width: 32px;
    height: 32px;
  }
  
  .project-card-content-bw h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  
  .project-card-content-bw p {
    font-size: 0.95rem;
    color: #555;
  }
  
  .skills-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 10px 0;
  }
  
  .skills-category h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #18191a;
  }
  
  .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .skill-btn {
    display: inline-flex;
    align-items: center;
    background: #e3e5e6;
    color: #070707;
    border-radius: 22px;
    padding: 7px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #bbb;
    transition: background 0.2s, color 0.2s;
  }
  
  .skill-btn:hover {
    background: #f2f3f5;
    color: #18191a;
  }
  
  .skill-level {
    color: #888;
    font-size: 0.9em;
    margin-left: 4px;
  }
  /* General Modal Styling */
  .modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Dim background */
    padding: 20px;
    box-sizing: border-box;
  }
  
  /* Modal Content Styling */
  .modal-content {
    background-color: #fff;
    margin: 40px auto;
    padding: 28px 26px;
    border-radius: 18px;
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 2px solid #18191a;
    animation: fadeIn 0.4s ease;
    box-sizing: border-box;
  }
  
  /* Close Button */
  .close {
    position: sticky;
    top: 0;
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #18191a;
    cursor: pointer;
    z-index: 10;
    background: #fff;
    padding: 6px 12px;
    margin: -10px -10px 10px auto;
    border-bottom-left-radius: 8px;
  }
  
  .close:hover {
    color: #888;
  }
  
  /* Modal Button Layout */
  .modal-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
    justify-content: flex-start;
  }
  
  .modal-btn {
    background-color: #18191a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    border: none;
    font-size: 15px;
  }
  
  .modal-btn:hover {
    background-color: #fff;
    color: #18191a;
    border: 1.5px solid #18191a;
  }
  
  
  .contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    flex-wrap: wrap;
  }
  
  .contact-icons a img {
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease;
  }
  
  .contact-icons a:hover img {
    transform: scale(1.1);
  }
  
/* Responsive Fixes */
  @media (max-width: 480px) {
    .main-area{
      width:100%
    }
    #intro {
      margin-top: 80px; /* Moved typing and photo up for very small devices */
      padding-top: 10px;
    }

    .typewriter-container {
      margin-top: 60px; /* Moved typing up */
    }
  
    .modal-content {
      padding: 20px 16px;
    }
    .modal-btn {
      flex: 1 1 100%;
      text-align: center;
    }
    .modal h2 {
      font-size: 1.4rem;
    }
    .modal p, .modal ul, .modal li {
      font-size: 0.95rem;
    }
    .modal-content {
      max-height: 80vh;
      overflow-y: auto;
      font-size: 0.9rem;
    }
  
    .modal-content h2,
    .modal-content h3 {
      font-size: 1rem;
    }
  
    .modal-links {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 15px;
      justify-content: flex-start;
    }
    
    .modal-btn {
      background-color: #18191a;
      color: #fff;
      padding: 10px 18px;
      border-radius: 8px;
      font-weight: 600;
      text-decoration: none;
      display: inline-block;
      transition: all 0.25s ease;
      border: none;
      font-size: 15px;
    }
    
    /* Hover effects removed for responsive to prevent sticking */
  
    .chat-container {
      padding-bottom: 220px;
    }
    #input, .send-btn {
      font-size: 14px;
      padding: 15px;
      margin-left: 4px;
      margin-right: 4px;
    }
    .quick-buttons button {
      font-size: 8px;
      
      
      transition: none
    }
    .contact-icons a img {
      width: 42px;
      height: 42px;
    }
  
    .contact-icons {
      gap: 16px;
    }
    .profile-photo img {
      width: 250px;
      height: 310px;
      object-fit: cover;
      border-radius: 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      background: #f2f3f5;
    }
    
  
  }
  /* === RESPONSIVE STYLES === */
  
  /* Extra Small Devices (<576px) */
  @media (max-width: 575.98px) {
    .main-area {
      flex-direction: column;
      width: 100%;
      align-items: center;
    }

    #intro {
      margin-top: 70px; /* Moved typing and photo up for extra small devices */
      padding-top: 10px;
    }

    .typewriter-text {
      font-size: 20px;
      margin-bottom: 10px;
    }
  
    #sarmi-lottie {
      width: 200px;
      height: 200px;
      margin-top: -10px;
    }
  
    .chat-container {
      height: calc(100vh - 160px); /* more room for mobile nav/input */
      padding: 14px;
    }
  
    .send-btn, #input {
      font-size: 15px;
    }
  
    .quick-buttons button {
      font-size: 13px;
      
    }
    .top-buttons-container {
      top: 10px;
      left: 10px;
      right: 10px;
      gap: 8px;
    }
    
    .right-buttons-container {
      gap: 3px;
    }
    
    .like-container {
      gap: 1px;
      margin-top: 14px; /* Moved like button a little lower in responsive */
    }
    
    .like-count {
      font-size: 8px;
    }
    
    /* Responsive button styles - merged to avoid conflicts */
    .top-button {
      padding: 8px 12px;
      font-size: 12px;
      background: var(--bg-primary) !important;
      color: var(--text-primary) !important;
      border-color: var(--border-color) !important;
    }
    
    .like-button, .theme-toggle {
      padding: 8px 10px;
      min-width: 40px;
    }
    
    /* Hover effects removed for responsive to prevent sticking */
    
    /* Specific fixes for hire button */
    #hireMeBtn {
      background: var(--bg-primary) !important;
      color: var(--text-primary) !important;
      border-color: var(--border-color) !important;
    }
    
    /* Hover effects removed for responsive to prevent sticking */
    
    /* Dark theme responsive button fixes - explicit colors */
    [data-theme="dark"] .top-button {
      background: #1a1a1a !important;
      color: #ffffff !important;
      border-color: #ffffff !important;
    }
    
    /* Hover effects removed for responsive to prevent sticking */
    
    [data-theme="dark"] #hireMeBtn {
      background: #1a1a1a !important;
      color: #ffffff !important;
      border-color: #ffffff !important;
    }
    
    /* Hover effects removed for responsive to prevent sticking */
    
    /* Fix theme toggle in responsive - override CSS variables */
    /* Light theme responsive */
    .theme-toggle {
      background: #ffffff !important;
      color: #18191a !important;
      border-color: #18191a !important;
      transition: all 0.2s ease !important;
    }
    
    /* Hover effects removed for responsive to prevent sticking */
    
    /* Dark theme responsive */
    [data-theme="dark"] .theme-toggle {
      background: #1a1a1a !important;
      color: #ffffff !important;
      border-color: #ffffff !important;
      transition: all 0.2s ease !important;
    }
    
    /* Hover effects removed for responsive to prevent sticking */
    .chat-container {
      max-height: 85vh;
      margin-bottom: 80px;
    }
    .profile-photo img {
      width: 160px;
      height: 200px;
    }
   
  
    .skills-section {
      gap: 18px;
    }
  
    .skills-category h4 {
      font-size: 0.8rem;
    }
  
    .skill-btn {
      font-size: 0.6rem;
      padding: 6px 14px;
    }
    .modal-links {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 15px;
      justify-content: flex-start;
    }
    
    .modal-btn {
      background-color: #18191a;
      color: #fff;
      padding: 10px 18px;
      border-radius: 8px;
      font-weight: 600;
      text-decoration: none;
      display: inline-block;
      transition: all 0.25s ease;
      border: none;
      font-size: 15px;
    }
    
    /* Hover effects removed for responsive to prevent sticking */
    .profile-header {
      flex-direction: column;
      text-align: center;
      padding: 20px;
    }
  
    
  
    .profile-intro {
      padding-left: 0;
    }
    .profile-photo img {
      width: 250px;
      height: 310px;
      object-fit: cover;
      border-radius: 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      background: #f2f3f5;
    }
  }
  
  /* Small Devices (576px–767.98px) */
  @media (min-width: 576px) and (max-width: 767.98px) {
    .main-area {
      flex-direction: column;
      align-items: center;
    }

    #intro {
      margin-top: 65px; /* Moved typing and photo up for small devices */
      padding-top: 15px;
    }

    .profile-photo img {
      width: 250px;
      height: 310px;
      object-fit: cover;
      border-radius: 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      background: #f2f3f5;
    }

    .typewriter-text {
      font-size: 24px;
    }
  
    #sarmi-lottie {
      width: 260px;
      height: 260px;
    }
    .chat-container {
      max-width: 500px;
      height: 550px;
    }
    .modal-links {
      flex-direction: row;
      align-items: stretch;
    }
  
    .modal-btn {
      width: 100%;
      font-size: 1rem;
    }
    .profile-header {
      flex-direction: column;
      text-align: center;
      padding: 20px;
    }
  
    
  
    .profile-intro {
      padding-left: 0;
    }
    
    /* Hover effects removed for responsive to prevent sticking */
  
  }
  
  /* Medium Devices (768px–991.98px) */
  @media (min-width: 768px) and (max-width: 991.98px) {
    .main-area {
      flex-direction: row;
      justify-content: center;
    }

    #intro {
      margin-top: 65px; /* Moved typing and photo up for medium devices */
      padding-top: 15px;
    }

    .typewriter-container {
      margin-top: 60px; /* Moved typing up */
    }

    .typewriter-text {
      font-size: 30px;
    }
  
    #sarmi-lottie {
      width: 300px;
      height: 300px;
      margin-top: 20px; 
    }
    .chat-container {
      max-width: 700px;
      height: 500px;
    }
    .modal-content {
      width: 95%;
      padding: 18px 16px;
      font-size: 0.95rem;
    }
  
    .modal-content h2,
    .modal-content h3 {
      font-size: 0.7rem;
    }
  
    .modal-content ul li {
      font-size: 0.95rem;
      margin-bottom: 6px;
    }
  
    .modal-links {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 15px;
      justify-content: flex-start;
    }
    
    .modal-btn {
      background-color: #18191a;
      color: #fff;
      padding: 10px 18px;
      border-radius: 8px;
      font-weight: 600;
      text-decoration: none;
      display: inline-block;
      transition: all 0.25s ease;
      border: none;
      font-size: 15px;
    }
    
    /* Hover effects removed for responsive to prevent sticking */
    .profile-header {
      flex-direction: column;
      text-align: center;
      padding: 20px;
    }
  
    .profile-photo {
      margin-bottom: 20px;
    }
  
    .profile-intro {
      padding-left: 0;
    }
    
    /* Hover effects removed for responsive to prevent sticking */
    
  }
  
  
  #sarmi-image {
    animation: float 3s ease-in-out infinite;
    margin-top: 40px; 
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  #sarmi-image:hover {
    filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.3));
    transition: 0.3s;
  }

  /* === ADMIN STATS STYLES === */
  .stats-btn {
    background: #4CAF50;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .stats-btn:hover {
    background: #45a049;
    transform: scale(1.1);
  }

  .stats-label {
    font-size: 10px;
    color: #666;
    text-align: center;
    margin-top: 2px;
    margin-left: 10px;
  }

  .admin-stats-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .admin-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }

  .admin-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    min-width: 60px;
  }

  .logout-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  }

  .admin-stats-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
  }

  .close-stats-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .close-stats-btn:hover {
    color: #333;
  }

  .admin-stats-content {
    font-size: 14px;
  }

  .visitor-count {
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
  }

  .qa-logs {
    margin-top: 20px;
  }

  .qa-logs-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
  }

  .qa-log-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .qa-log-item:last-child {
    margin-bottom: 0;
  }

  .qa-timestamp {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
  }

  .qa-question {
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
  }

  .qa-answer {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  .no-logs, .error {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
  }

  .error {
    color: #dc3545;
  }
  
  
    .profile-intro {
      padding-left: 0;
    }
    .profile-photo img {
      width: 250px;
      height: 310px;
      object-fit: cover;
      border-radius: 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      background: #f2f3f5;
    }
  }
  
  /* Small Devices (576px–767.98px) */
  @media (min-width: 576px) and (max-width: 767.98px) {
    .main-area {
      flex-direction: column;
      align-items: center;
    }

    #intro {
      margin-top: 65px; /* Moved typing and photo up for small devices */
      padding-top: 15px;
    }

    .profile-photo img {
      width: 250px;
      height: 310px;
      object-fit: cover;
      border-radius: 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      background: #f2f3f5;
    }

    .typewriter-text {
      font-size: 24px;
    }
  
    #sarmi-lottie {
      width: 260px;
      height: 260px;
    }
    .chat-container {
      max-width: 500px;
      height: 550px;
    }
    .modal-links {
      flex-direction: row;
      align-items: stretch;
    }
  
    .modal-btn {
      width: 100%;
      font-size: 1rem;
    }
    .profile-header {
      flex-direction: column;
      text-align: center;
      padding: 20px;
    }
  
    
  
    .profile-intro {
      padding-left: 0;
    }
    
    /* Dark theme for small devices */
    [data-theme="dark"] .theme-toggle {
      background: #1a1a1a !important;
      color: #ffffff !important;
      border-color: #ffffff !important;
    }
    
    [data-theme="dark"] .theme-toggle:hover {
      background: #f39c12 !important;
      border-color: #f39c12 !important;
      color: #fff !important;
    }
  
  }
  
  /* Medium Devices (768px–991.98px) */
  @media (min-width: 768px) and (max-width: 991.98px) {
    .main-area {
      flex-direction: row;
      justify-content: center;
    }

    #intro {
      margin-top: 65px; /* Moved typing and photo up for medium devices */
      padding-top: 15px;
    }

    .typewriter-container {
      margin-top: 60px; /* Moved typing up */
    }

    .typewriter-text {
      font-size: 30px;
    }
  
    #sarmi-lottie {
      width: 300px;
      height: 300px;
      margin-top: 20px; 
    }
    .chat-container {
      max-width: 700px;
      height: 500px;
    }
    .modal-content {
      width: 95%;
      padding: 18px 16px;
      font-size: 0.95rem;
    }
  
    .modal-content h2,
    .modal-content h3 {
      font-size: 0.7rem;
    }
  
    .modal-content ul li {
      font-size: 0.95rem;
      margin-bottom: 6px;
    }
  
    .modal-links {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 15px;
      justify-content: flex-start;
    }
    
    .modal-btn {
      background-color: #18191a;
      color: #fff;
      padding: 10px 18px;
      border-radius: 8px;
      font-weight: 600;
      text-decoration: none;
      display: inline-block;
      transition: all 0.25s ease;
      border: none;
      font-size: 15px;
    }
    
    .modal-btn:hover {
      background-color: #fff;
      color: #18191a;
      border: 1.5px solid #18191a;
    }
    .profile-header {
      flex-direction: column;
      text-align: center;
      padding: 20px;
    }
  
    .profile-photo {
      margin-bottom: 20px;
    }
  
    .profile-intro {
      padding-left: 0;
    }
    
    /* Dark theme for medium devices */
    [data-theme="dark"] .theme-toggle {
      background: #1a1a1a !important;
      color: #ffffff !important;
      border-color: #ffffff !important;
    }
    
    [data-theme="dark"] .theme-toggle:hover {
      background: #f39c12 !important;
      border-color: #f39c12 !important;
      color: #fff !important;
    }
    
  }
  
  
  #sarmi-image {
    animation: float 3s ease-in-out infinite;
    margin-top: 40px; 
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  #sarmi-image:hover {
    filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.3));
    transition: 0.3s;
  }

  /* === ADMIN STATS STYLES === */
  .stats-btn {
    background: #4CAF50;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .stats-btn:hover {
    background: #45a049;
    transform: scale(1.1);
  }

  .stats-label {
    font-size: 10px;
    color: #666;
    text-align: center;
    margin-top: 2px;
    margin-left: 10px;
  }

  .admin-stats-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .admin-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }

  .admin-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    min-width: 60px;
  }

  .logout-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  }

  .admin-stats-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
  }

  .close-stats-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .close-stats-btn:hover {
    color: #333;
  }

  .admin-stats-content {
    font-size: 14px;
  }

  .visitor-count {
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
  }

  .qa-logs {
    margin-top: 20px;
  }

  .qa-logs-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
  }

  .qa-log-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .qa-log-item:last-child {
    margin-bottom: 0;
  }

  .qa-timestamp {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
  }

  .qa-question {
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
  }

  .qa-answer {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  .no-logs, .error {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
  }

  .error {
    color: #dc3545;
  }
  
