html {
      font-size: 0.9rem;
    }

    /* Apply Fira Code globally */
    body {
      font-family: 'Fira Code', monospace;
      /* FIX: Prevent horizontal scroll on mobile */
      overflow-x: hidden;
    }

    .bd-placeholder-img {
      font-size: 1.125rem;
      text-anchor: middle;
      -webkit-user-select: none;
      -moz-user-select: none;
      user-select: none;
    }

    @media (min-width: 768px) {
      .bd-placeholder-img-lg {
        font-size: 3.5rem;
      }
    }

    .b-example-divider {
      height: 3rem;
      background-color: rgba(0, 0, 0, .1);
      border: solid rgba(0, 0, 0, .15);
      border-width: 1px 0;
      box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
    }

    .b-example-vr {
      flex-shrink: 0;
      width: 1.5rem;
      height: 100vh;
    }

    .bi {
      vertical-align: -.125em;
      fill: currentColor;
    }

    .nav-scroller {
      position: relative;
      z-index: 2;
      height: 2.75rem;
      overflow-y: hidden;
    }

    .nav-scroller .nav {
      display: flex;
      flex-wrap: nowrap;
      padding-bottom: 1rem;
      margin-top: -1px;
      overflow-x: auto;
      text-align: center;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
    }

    /* Pulsing Dot Animation */
    .pulsing-dot {
      width: 10px;
      height: 10px;
      background-color: #00A36C;
      /* Matches your success color */
      border-radius: 50%;
      display: inline-block;
      box-shadow: 0 0 0 0 rgba(0, 163, 108, 0.7);
      animation: pulse-green 2s infinite;
    }

    @keyframes pulse-green {
      0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 163, 108, 0.7);
      }

      70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 163, 108, 0);
      }

      100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 163, 108, 0);
      }
    }

    /* NEW: Hover Lift Animation for Cards */
    .hover-lift {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .hover-lift:hover {
      transform: translateY(-8px);
      /* UPDATED: Uses black rgba(0,0,0) for a dark shadow in Light Mode */
      box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
    }

    /* UPDATED: Overrides the shadow back to light gray for Dark Mode */
    body.dark-mode .hover-lift:hover {
      box-shadow: 0 1rem 3rem rgba(164, 163, 163, 0.175) !important;
    }

    /* NEW: Permanent Shadow for Profile Picture (No Hover Effect) */
    .profile-shadow {
      /* Matches the shadow from .hover-lift:hover */
      box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
    }

    /* Dark Mode override for permanent shadow */
    body.dark-mode .profile-shadow {
      box-shadow: 0 1rem 3rem rgba(164, 163, 163, 0.175) !important;
    }

    /* NEW: Profile Image Frame Animation */
    @keyframes frame-cycle {
      0% {
        border-color: #00A36C;
      }

      /* Green #00A36C */
      25% {
        border-color: #00A36C;
      }

      /* Blue #0d6efd */
      50% {
        border-color: #00A36C;
      }

      /* Purple #8511FA */
      75% {
        border-color: #00A36C;
      }

      /* Yellow #FFD21E */
      100% {
        border-color: #00A36C;
      }

      /* Back to Green #00A36C */
    }

    .profile-animated-frame {
      border: 2px solid #00A36C;
      /* Default fallback #00A36C */
      animation: frame-cycle 6s infinite linear;
      /* Smooth continuous cycle */
      padding: 5px;
      /* Creates a small gap between image and frame */
      background-clip: content-box;
      /* Ensures background doesn't bleed into border */
      transition: border-color 0.3s ease;
    }

    /* NEW: Profile Image Inner Zoom Animation */
    .profile-img-wrapper {
      overflow: hidden;
      /* Clips the zoomed image so it doesn't break out of the frame */
    }

    .profile-zoom-img {
      transition: transform 0.4s ease-in-out;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .profile-img-wrapper:hover .profile-zoom-img {
      transform: scale(1.1);
      /* Slightly zooms in the inner image only */
    }

    /* NEW: Button Hover Animation */
    .btn {
      transition: all 0.2s ease-in-out;
    }

    .btn:hover {
      transform: scale(1.05);
    }

    /* NEW: Navbar Underline Hover Animation (Left to Right) */
    .navbar-nav .nav-link {
      position: relative;
    }

    .navbar-nav .nav-link::after {
      content: '';
      position: absolute;
      bottom: 5px;
      /* Adjust distance from text */
      left: 0.5rem;
      /* Standard Bootstrap left padding for nav links */
      width: 0;
      height: 2px;
      background-color: #00A36C;
      /* Match theme color */
      transition: width 0.3s ease-in-out;
    }

    .navbar-nav .nav-link:hover::after {
      width: calc(100% - 1rem);
      /* Full width minus standard padding */
    }

    /* NEW: Bullet points for navbar sections in mobile toggle view */
    @media (max-width: 767.98px) {
      #navbarCollapse .navbar-nav {
        list-style-type: disc !important;
        padding-left: 2rem !important;
      }

      #navbarCollapse .navbar-nav .nav-item {
        display: list-item !important;
        text-align: left;
      }

      #navbarCollapse .navbar-nav .nav-link {
        display: inline-block;
        padding-left: 0.25rem;
      }

      /* Adjust underline hover layout for bullet alignment */
      #navbarCollapse .navbar-nav .nav-link::after {
        left: 0.25rem;
      }

      #navbarCollapse .navbar-nav .nav-link:hover::after {
        width: calc(100% - 0.25rem);
      }
    }

    /* Dark mode styles */
    body.dark-mode {
      background-color: #1a1a1a;
      color: #ffffff;
    }

    /* UPDATED: Navbar styles for Scroll Transparency */
    .navbar {
      transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    }

    /* NEW: Match navbar toggler border color with theme button */
    .navbar-toggler {
      border-color: #f8f9fa !important;
    }

    .navbar.scrolled {
      /* Slightly transparent black */
      background-color: rgba(33, 37, 41, 0.85) !important;
      /* Blur effect for content behind navbar */
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    body.dark-mode .navbar-dark {
      background-color: #2c2c2c !important;
    }

    /* Specific override for Dark Mode transparency when scrolled */
    body.dark-mode .navbar.scrolled {
      background-color: rgba(44, 44, 44, 0.85) !important;
    }

    /* Scroll Progress Indicator */
    .scroll-progress-container {
      position: absolute;
      bottom: 0;
      transform: translateY(100%); /* Moves it exactly below based on its own height */
      left: 0;
      width: 100%;
      height: 3px;
      background: transparent;
      z-index: 1032;
    }

    .scroll-progress-bar {
      height: 100%;
      background: #00e676; /* A vibrant light green */
      width: 0%;
      border-radius: 0 2px 2px 0;
    }

    body.dark-mode .text-dark {
      color: #ffffff !important;
    }

    body.dark-mode .btn-dark {
      background-color: #4a4a4a;
      border-color: #4a4a4a;
    }

    body.dark-mode .btn-outline-secondary {
      color: #ffffff;
      border-color: #ffffff;
    }

    body.dark-mode .text-muted {
      color: #cccccc !important;
    }

    body.dark-mode .featurette-divider {
      background-color: #4a4a4a;
    }

    body.dark-mode .form-control {
      background-color: #2c2c2c;
      color: #ffffff;
      border-color: #4a4a4a;
    }

    body.dark-mode .form-control::placeholder {
      color: #cccccc;
    }

    /* Focus glow override: green accent instead of default blue */
    .form-control:focus {
      border-color: #00e676 !important;
      /* Increased opacity from 0.25 to 0.6 so it doesn't look dark on dark backgrounds */
      box-shadow: 0 0 0 0.1rem rgba(0, 230, 118, 0.6) !important;
    }

    body.dark-mode .link-dark {
      color: #cccccc !important;
    }

    /* Fix black icons in dark mode */
    body.dark-mode img[src*="github.svg"],
    body.dark-mode img[src*="x.svg"] {
      filter: invert(1);
    }

    /* Update: Border color fix for project cards in Dark Mode */
    body.dark-mode .project-card-border {
      border-color: #4a4a4a !important;
    }

    /* Fix for status badge border in Dark Mode */
    body.dark-mode .status-badge {
      border-color: #4a4a4a !important;
    }

    /* Skill Progress Bar Custom Styling */
    .progress {
      background-color: #e9ecef;
      height: 12px;
    }

    body.dark-mode .progress {
      background-color: #4a4a4a;
    }

    /* Custom Light Green for Progress Bars */
    .bg-success {
      background-color: #00A36C !important;
    }

    .bg-whatsapp {
      background-color: #25d366 !important;
    }

    .text-stats {
      color: #00FF9C !important;
    }

    .skill-label {
      font-weight: 500;
      margin-bottom: 5px;
      display: flex;
      justify-content: space-between;
    }

    /* NEW: Image Lightbox Modal Styles */
    .lightbox-modal {
      display: none;
      position: fixed;
      z-index: 1050;
      /* Ensuring it sits above the navbar */
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(5px);
      /* Grid layout to perfectly center image and place thumbnails below */
      grid-template-rows: 1fr auto 1fr;
      justify-items: center;
    }

    .lightbox-content {
      grid-row: 2;
      margin: 0;
      display: block;
      max-width: 90%;
      max-height: 80vh;
      object-fit: contain;
      animation: zoomIn 0.3s ease;
      border-radius: 8px;
    }

    @keyframes zoomIn {
      from {
        transform: scale(0.8);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    .lightbox-close {
      position: absolute;
      top: 20px;
      right: 35px;
      color: #f1f1f1;
      font-size: 40px;
      font-weight: bold;
      transition: 0.3s;
      cursor: pointer;
    }

    .lightbox-close:hover,
    .lightbox-close:focus {
      color: #00A36C;
      text-decoration: none;
      cursor: pointer;
    }

    .lightbox-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 3rem;
      color: white;
      cursor: pointer;
      user-select: none;
      padding: 16px;
      transition: 0.3s;
      z-index: 1060;
    }

    .lightbox-arrow:hover {
      color: #00A36C;
    }

    .left-arrow { left: 25px; }
    .right-arrow { right: 25px; }

    .lightbox-thumbnails {
      grid-row: 3;
      align-self: center;
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      width: 100%;
    }

    .lightbox-thumbnail-img {
      width: 60px;
      height: 40px;
      object-fit: cover;
      cursor: pointer;
      opacity: 0.6;
      border: 2px solid transparent;
      border-radius: 4px;
      transition: 0.3s;
    }

    .lightbox-thumbnail-img:hover {
      opacity: 0.8;
    }

    .lightbox-thumbnail-img.active {
      opacity: 1;
      border-color: #00A36C;
    }

    .cert-img {
      transition: 0.3s;
    }

    .cert-img:hover {
      opacity: 0.9;
    }

    /* NEW: Waving Emoji Animation */
    .wave-emoji {
      display: inline-block;
      transform-origin: 70% 70%;
      /* Pivot point for the hand */
      cursor: pointer;
      /* Suggests it can be clicked */
    }

    .wave-emoji.waving {
      animation: wave-animation 1.25s ease-in-out 4;
    }

    @keyframes wave-animation {
      0% {
        transform: rotate(0deg);
      }

      15% {
        transform: rotate(14deg);
      }

      30% {
        transform: rotate(-8deg);
      }

      45% {
        transform: rotate(14deg);
      }

      60% {
        transform: rotate(-4deg);
      }

      75% {
        transform: rotate(10deg);
      }

      100% {
        transform: rotate(0deg);
      }
    }

    /* NEW: Preloader Styles */
    #preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      /* Navbar color with transparency */
      background-color: rgba(33, 37, 41, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index: 9999;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: opacity 0.5s ease-out;
    }

    .loader-profile-pic {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #00A36C;
      margin-bottom: 15px;
      box-shadow: 0 0 15px rgba(0, 163, 108, 0.5);
    }

    .loader-name {
      color: #ffffff;
      font-weight: 600;
      font-size: 1.5rem;
      margin-bottom: 20px;
      letter-spacing: 1px;
    }

    .loader-progress-container {
      width: 250px;
      height: 8px;
      background-color: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      overflow: hidden;
      margin-bottom: 10px;
    }

    .loader-progress-bar {
      height: 100%;
      width: 0%;
      background-color: #00A36C;
      /* Right-leaning white stripes added (-45deg) */
      background-image: linear-gradient(-45deg,
          rgba(255, 255, 255, 0.25) 25%,
          transparent 25%,
          transparent 50%,
          rgba(255, 255, 255, 0.25) 50%,
          rgba(255, 255, 255, 0.25) 75%,
          transparent 75%,
          transparent);
      background-size: 1rem 1rem;
      transition: width 0.2s ease;
      /* Animated stripes */
      animation: progress-stripes 1s linear infinite;
    }

    /* Animation for the stripes */
    @keyframes progress-stripes {
      from {
        background-position: 1rem 0;
      }

      to {
        background-position: 0 0;
      }
    }

    .loader-percentage {
      color: #00A36C;
      font-weight: bold;
      font-size: 1.1rem;
    }

    /* Loading text style */
    .loader-status-text {
      color: #cccccc;
      font-size: 0.95rem;
      margin-top: 10px;
      letter-spacing: 1px;
      font-style: italic;
      animation: pulse-opacity 1.5s infinite;
    }

    @keyframes pulse-opacity {

      0%,
      100% {
        opacity: 0.5;
      }

      50% {
        opacity: 1;
      }
    }
@media (min-width: 992px) {
        .rounded-lg-3 {
          border-radius: .3rem;
        }
      }