/* --- Mobile fixes for hero and about section visibility --- */
@media (max-width: 600px) {
            .hero-text-container {
                max-width: 100vw !important;
                margin: 0 auto 40px;
                padding-top: 48px;
                box-sizing: border-box;
            }
            .hero-text-container .typing-svg {
                max-width: 100vw;
                width: 100vw;
                margin: 0 auto;
                display: block;
                box-sizing: border-box;
            }
    body.loading #about {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
  @import "https://unpkg.com/open-props/easings.min.css";

  :root {
      --bg-color: #000;
      --text-color: #fdfdfd;
      --accent-color: #ffb900;
      --bg-light: #f8f9fa;
      --bg-dark: #0c0c0c;
      --text-light: #1f2937;
      --text-dark: #e5e7eb;
      --card-bg-light: rgba(255, 255, 255, 0.7);
      --card-bg-dark: rgba(26, 26, 26, 0.7);
      --border-light: #e5e7eb;
      --border-dark: #374151;
      --accent-color: #F44336;
      --accent-hover: #d32f2f;
      --shadow-color-light: rgba(0, 0, 0, 0.05);
      --shadow-color-dark: rgba(0, 0, 0, 0.2);
      --loader-bg: #0a192f;


      --bg-color: var(--bg-light);
      --text-color: var(--text-light);
      --card-bg-color: var(--card-bg-light);
      --border-color: var(--border-light);
      --shadow-color: var(--shadow-color-light);
      --icon-fill: var(--text-light);
      --icon-fill-hover: var(--accent-color);
      /* CTA (conversation) palette */
      --cta-color: #22c55e;
      /* emerald-500 */
      --cta-hover: #16a34a;
      /* emerald-600 */
      --cta-accent: #34d399;
      /* emerald-300 */
      --cta-glow: rgba(34, 197, 94, 0.55);
  }

  #video-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      z-index: -2;
  }

  #bg-video {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  .video-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
  }

  [data-theme="dark"] .video-overlay {
      background-color: rgba(12, 12, 12, 0.7);
  }

  [data-theme="light"] .video-overlay {
      background-color: rgba(248, 249, 250, 0.7);
  }

  .section-subtitle {
      text-align: center;

      margin-bottom: 30px;
      color: var(--text-secondary-color);
  }

  .form-row {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
  }

  .form-group {
      position: relative;
      flex: 1;
      margin-bottom: 20px;
  }

  .form-control {
      width: 100%;

      padding: 12px 12px 12px 40px;
      border: 1px solid var(--border-color);
      border-radius: 6px;
      font-size: 1rem;
  }

  textarea.form-control {
      padding-left: 10px;
  }

  .form-icon {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--icon-color);
      pointer-events: none;
      font-size: 1rem;
      pointer-events: none;
  }

  .form-buttons {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 20px;
  }

  .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 20px;
      border: none;
      border-radius: 6px;
      background-color: var(--primary-color);
      color: #fff;
      font-size: 1rem;
      cursor: pointer;
      transition: background-color 0.3s;
  }

  /* Mobile-specific contact form styles */
  @media (max-width: 768px) {
      #contact .card {
          margin: 0 !important;
          border-radius: 0 !important;
      }

      .contact-form input,
      .contact-form textarea {
          font-size: 16px;
          /* Prevents zoom on iOS */
          -webkit-appearance: none;
          appearance: none;
      }

      .contact-form button {
          -webkit-tap-highlight-color: transparent;
          touch-action: manipulation;
      }
  }

  @media (max-width: 480px) {
      #contact {
          padding-left: 8px !important;
          padding-right: 8px !important;
      }

      #contact h2 {
          font-size: 1.875rem !important;
          /* text-3xl */
          line-height: 2.25rem !important;
      }
  }

  /* Contact form container styling */
  .contact-form-container {
      background-color: var(--card-bg-color);
      border: 1px solid var(--border-color);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      box-shadow: 0 8px 32px var(--shadow-color);
      max-width: 920px;
      /* center and constrain form width */
      width: 100%;
      margin-left: auto;
      margin-right: auto;
  }

  /* Contact form input styling */
  .contact-form input,
  .contact-form textarea {
      background-color: var(--card-bg-color);
      color: var(--text-color);
      border-color: var(--border-color);
      border-radius: 12px;
  }

  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
      color: var(--text-color);
      opacity: 0.6;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
      border-color: var(--accent-color);
      box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.25);
  }

  /* Contact form buttons */
  .contact-submit-btn {
      background-color: var(--accent-color);
      color: white;
  }

/* Primary submit button sizing */
#submit-button {
    padding: 10px 18px !important;
    min-height: 48px !important; /* compact desktop height */
    line-height: 1 !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important; /* align with input text scale */
    gap: 10px; /* icon spacing */
    min-width: auto; /* let grid width control sizing */
}

  @media (min-width: 768px) {
      #submit-button {
          width: auto !important;
      }
  }

  #submit-button i {
      font-size: 1rem;
  }

@media (max-width: 768px) {
    #submit-button {
        min-height: 52px !important;
        padding: 12px 18px !important;
    }
}

  .contact-submit-btn:hover {
      background-color: var(--accent-hover);
  }

.contact-ai-btn {
    background-color: var(--card-bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 18px; /* mirror primary for visual balance */
    min-height: 48px; /* match primary height */
    border-radius: 12px;
    font-size: 0.95rem;
}

  .contact-ai-btn:hover {
      background-color: var(--border-color);
  }

  /* Contact Reset button */
  .contact-reset-btn {
      background: transparent;
      color: var(--text-color);
      opacity: 0.8;
      font-size: 0.95rem;
      padding: 8px 10px;
      border-radius: 10px;
      border: 1px solid transparent;
      transition: color .2s ease, opacity .2s ease, border-color .2s ease, background-color .2s ease;
  }

  .contact-reset-btn:hover {
      opacity: 1;
      border-color: var(--border-color);
      background-color: rgba(255, 255, 255, 0.03);
  }

  .contact-reset-btn:focus {
      outline: none;
      box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.25);
  }

  /* AI button loading spinner */
  .ai-loading-spinner {
      border-color: var(--border-color);
      border-top-color: var(--accent-color);
  }

  /* Subject field AI button (single authoritative definition) */
  .contact-subject-ai-btn {
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 14px;
      min-width: 46px;
      color: var(--text-color);
      opacity: 0.8;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.06));
      border-left: 1px solid var(--border-color);
      border-top-right-radius: 12px;
      border-bottom-right-radius: 12px;
      z-index: 2;
      cursor: pointer;
  }

  .contact-subject-ai-btn:hover {
      opacity: 1;
      color: var(--accent-color);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.12));
  }

  .contact-subject-ai-btn:focus {
      outline: none;
      box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.35);
  }

  /* Contact section layout - similar to GitHub Stats */
  .contact-section-container {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
  }

  .contact-form-wrapper {
      width: 100%;
      max-width: 10px;
      margin: 0 auto;
  }

  .contact-intro {
      text-align: center;
      margin-bottom: 2rem;
      padding: 0 1rem;
  }

  .contact-intro p {
      font-size: 1.1rem;
      line-height: 1.6;
      color: var(--text-color);
      opacity: 0.9;
      max-width: 600px;
      margin: 0 auto;
  }

  .contact-form-container {
      background-color: var(--card-bg-color);
      border: 1px solid var(--border-color);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      box-shadow: 0 8px 32px var(--shadow-color);
      border-radius: 1rem;
      padding: 2rem;
      max-width: 920px;
      /* duplicate here to win over earlier rules */
      width: 100%;
      margin-left: auto;
      margin-right: auto;
  }

  @media (max-width: 768px) {

      /* Ensure contact form stays centered on small screens.
         Previous rule used margin:0 0.5rem; which removed auto centering
         and visually pushed the card left when combined with parent padding. */
      .contact-form-container {
          padding: 1.4rem 1.15rem;
          /* slightly reduced inner padding for space */
          margin: 0 auto;
          /* keep it centered */
          width: 100%;
      }

      .contact-intro {
          margin-bottom: 1.5rem;
      }

      .contact-intro p {
          font-size: 1rem;
      }
  }

  /* Contact form grid: enforce two columns from tablets up to avoid awkward stacking */
  @media (min-width: 768px) {
      .contact-form-container .grid {
          display: grid !important;
          grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
          gap: 20px !important;
      }
  }

  /* (Removed duplicate secondary subject AI button block to avoid layout shift) */

  .btn:hover {
      background-color: var(--primary-color-dark);
  }

  .status-message {
      font-size: 0.9em;
      text-align: center;
      color: var(--text-color);
      min-height: 20px;
  }

  .visually-hidden {
      position: absolute;
      left: -9999px;
      top: auto;
      width: 1px;
      height: 1px;
      overflow: hidden;
  }

  [data-theme="dark"] {
      --bg-color: var(--bg-dark);
      --text-color: var(--text-dark);
      --card-bg-color: var(--card-bg-dark);
      --border-color: var(--border-dark);
      --shadow-color: var(--shadow-color-dark);
      --icon-fill: var(--text-dark);
  }


  html {
      scroll-behavior: smooth;
  }

  body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      transition: color 0.5s;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
      background-color: transparent;
      color: var(--text-color);
  }

  ::-webkit-scrollbar {
      width: 10px;
  }

  ::-webkit-scrollbar-track {
      background: var(--bg-color);
  }

  ::-webkit-scrollbar-thumb {
      background: #555;
      border-radius: 5px;
  }

  [data-theme="light"] ::-webkit-scrollbar-thumb {
      background: #ccc;
  }

  ::-webkit-scrollbar-thumb:hover {
      background: var(--accent-color);
  }

  /* --- Responsive Navbar (global) --- */
  .nav-toggle {
      display: none;
      background: none;
      border: 0;
      color: var(--icon-fill);
      padding: 6px;
      cursor: pointer;
  }

  .nav-toggle:focus {
      outline: 2px solid var(--accent-color);
      outline-offset: 2px;
  }

  .hamburger {
      width: 24px;
      height: 24px;
      position: relative;
      display: inline-block;
  }

  .hamburger span {
      position: absolute;
      left: 0;
      right: 0;
      height: 2px;
      background: currentColor;
      border-radius: 1px;
      transition: transform .25s var(--ease-out-3), opacity .2s;
  }

  .hamburger span:nth-child(1) {
      top: 6px;
  }

  .hamburger span:nth-child(2) {
      top: 11px;
  }

  .hamburger span:nth-child(3) {
      top: 16px;
  }

  .nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
      transform: translateY(5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
      opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
      transform: translateY(-5px) rotate(-45deg);
  }

  /* Mobile dropdown container */
  @media (max-width: 768px) {
      .navbar {
          position: fixed !important;
          top: 0 !important;
          bottom: auto !important;
          padding: 12px 0 !important;
          z-index: 1000 !important;
      }

      .nav-toggle {
          display: inline-flex !important;
          align-items: center;
      }

      .nav-container {
          position: relative;
          gap: 8px !important;
          justify-content: center !important; /* center the logo block */
      }

      .nav-logo {
          display: inline-flex !important;
          position: absolute; /* center logo regardless of left/right items */
          left: 50%;
          transform: translateX(-50%);
      }

      /* Keep hamburger at the right edge while logo is centered */
      #nav-toggle.nav-toggle {
          position: absolute;
          right: 12px;
          top: 50%;
          transform: translateY(-50%);
          transition: opacity .25s ease;
      }

      /* Move theme toggle to left on mobile to avoid overlap with hamburger */
      .theme-toggle {
          right: auto;
          left: 12px;
      }

      .nav-links {
          position: absolute !important;
          top: 100% !important;
          left: 0 !important;
          right: 0 !important;
          background: var(--card-bg-color) !important;
          border-bottom: 1px solid var(--border-color) !important;
          box-shadow: 0 6px 18px var(--shadow-color) !important;
          display: none !important;
          flex-direction: column !important;
          padding: 10px 16px 12px !important;
          max-height: calc(100vh - 64px) !important;
          overflow-y: auto !important;
      }

      .nav-links a {
          padding: 10px 8px !important;
          margin: 2px 0 !important;
          display: flex;
          align-items: center;
          gap: 10px;
          font-size: 16px;
          line-height: 1.5;
      }

      .nav-links.open {
          display: flex !important;
      }

      .nav-social-links {
          display: none !important;
      }

      /* Hide the top-level links on mobile only when groups exist (preserves homepage menu) */
      .nav-links:has(.nav-sections-mobile, .nav-site-mobile)>a {
          display: none !important;
      }

      /* Improve readability: stronger background for mobile dropdown by theme */
      [data-theme="dark"] .nav-links {
          background: rgba(26, 26, 26, 0.92) !important;
      }

      [data-theme="light"] .nav-links {
          background: rgba(255, 255, 255, 0.96) !important;
      }

      .nav-sections-mobile {
          display: block !important;
          margin-top: 6px;
          padding-top: 6px;
          border-top: 1px solid var(--border-color);
      }

      .nav-site-mobile {
          display: block !important;
          margin-top: 6px;
          padding-top: 6px;
          border-top: 1px solid var(--border-color);
      }

      .nav-sections-mobile a {
          opacity: 0.9;
      }

      .nav-site-mobile a {
          opacity: 0.9;
      }

      /* Small label divider for mobile groups */
      .nav-links .nav-label {
          font-size: 0.7rem;
          text-transform: uppercase;
          letter-spacing: 0.06em;
          opacity: 0.6;
          margin: 8px 4px 2px;
          font-weight: 600;
      }

      /* Icon alignment in mobile items */
      .nav-links a i {
          width: 16px;
          text-align: center;
          opacity: 0.6;
      }

      .nav-links a:hover i {
          opacity: 0.85;
      }

    /* Hide hamburger on scroll-down; show on scroll-up */
    .navbar.scrolling-down #nav-toggle.nav-toggle { opacity: 0; pointer-events: none; }
    .navbar.scrolling-up #nav-toggle.nav-toggle { opacity: 1; pointer-events: auto; }
  }

  /* Extra-small screens: hide icons to reduce clutter */
  @media (max-width: 380px) {
      .nav-links a i {
          display: none !important;
      }
  }

  /* Hide mobile-only section group on desktop */
  .nav-sections-mobile {
      display: none;
  }

  .nav-site-mobile {
      display: none;
  }



  #preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 10000;
      display: flex;
      justify-content: center;
      align-items: center;
      background: radial-gradient(ellipse at center, #000000 0%, #070a0a 100%);
      transition: opacity 1.2s ease, transform 1.2s ease, visibility 1.2s ease;
      overflow: hidden;
  }

  #preloader.loaded {
      opacity: 0;
      visibility: hidden;
      transform: scale(0.95);
      pointer-events: none;
  }

  .ip {
      width: 100px;
      height: 34px;
      filter: drop-shadow(0 0 10px #ffb900) drop-shadow(0 0 20px #e23838);
      animation: rotateInfinity 4s linear infinite;
  }

  /* DevOps preloader panel */
    .devops-panel {
      position: absolute;
      bottom: 10vh;
      left: 50%;
      transform: translateX(-50%);
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 10px 14px;
      border-radius: 10px;
      background: rgba(10, 25, 47, 0.6);
      -webkit-backdrop-filter: blur(6px);
      backdrop-filter: blur(6px);
            /* Use a light text color to ensure contrast against dark preloader bg in both themes */
            color: var(--text-dark);
      font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 0.9rem;
      box-shadow: 0 6px 24px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.05);
      border: 1px solid rgba(244, 67, 54, 0.3);
      opacity: 0.95;
      animation: panelFloat 4s ease-in-out infinite alternate;
  }

  .devops-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #10b981; /* green */
      box-shadow: 0 0 12px #10b981, 0 0 24px #10b981;
      animation: pulse-green 1.25s ease-out infinite;
  }

  .devops-icon {
      color: #10b981;
      opacity: 0.9;
  }

  @keyframes panelFloat {
      from { transform: translate(-50%, 0); }
      to { transform: translate(-50%, -3px); }
  }


  .ip__track {
      stroke: rgba(255, 255, 255, 0.1);
  }

  .ip__worm1,
  .ip__worm2 {
      animation: worm1 2s ease-in-out infinite;
  }

  .ip__worm2 {
      animation-name: worm2;
  }

  @keyframes worm1 {
      0% {
          stroke-dashoffset: 0;
      }

      50% {
          stroke-dashoffset: -300;
      }

      100% {
          stroke-dashoffset: 0;
      }
  }

  @keyframes worm2 {
      0% {
          stroke-dashoffset: 300;
      }

      50% {
          stroke-dashoffset: 0;
      }

      100% {
          stroke-dashoffset: -350;
      }
  }

  .logo {
      position: absolute;
      top: 45%;
      transform: translateY(-40%);
      text-align: center;
      font-size: 24px;
      font-weight: bold;
      color: var(--text-color);
      text-transform: uppercase;
      letter-spacing: 2px;
      opacity: 0;
      animation: fadeInText 2.5s ease-in-out forwards;
      animation-delay: 0.5s;

      background-image: linear-gradient(89.4deg, rgba(194, 0, 39, 1) 0.8%, rgb(31, 55, 119) 99.4%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;

  }

  @keyframes fadeInText {
      to {
          opacity: 1;
      }
  }

  body.loading #page-container,
  body.loading footer {
      opacity: 0;
      transform: translateY(10px);
  }

  body.loaded #page-container,
  body.loaded footer {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.6s ease, transform 0.6s ease;
  }


  @media (max-width: 768px) {
      .ip {
          width: 80px;
          height: 28px;
      }

      .logo {
          font-size: 18px;
      }

      .devops-panel {
          bottom: 6vh;
          font-size: 0.85rem;
          padding: 8px 12px;
          gap: 8px;
      }
  }

  @media (max-width: 480px) {
      .ip {
          width: 80px;
          height: 52px;
      }

      .logo {
          font-size: 16px;
      }

      .devops-panel {
          bottom: 5vh;
      }
  }

  .custom-cursor {
      position: fixed;
      width: 25px;
      height: 25px;
      border: 2px solid var(--accent-color);
      border-radius: 50%;
      pointer-events: none;
      transform: translate3d(-50%, -50%, 0);
      transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.2s;
      z-index: 9999;
      opacity: 0;
      will-change: transform;
      backface-visibility: hidden;
  }

  @media (min-width: 1024px) {
      .custom-cursor {
          opacity: 1;
      }
  }

  .custom-cursor.pointer {
      width: 50px;
      height: 50px;
      background-color: rgba(244, 67, 54, 0.15);
  }

  .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 40px;
  }

  /* Desktop-specific improvements */
  @media (min-width: 1024px) {
      .container {
          max-width: 1300px;
          padding: 0 60px;
      }
  }

  @media (min-width: 1400px) {
      .container {
          max-width: 1400px;
          padding: 0 80px;
      }
  }

  .section {
      padding: 80px 0;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  /* Desktop-specific section improvements */
  @media (min-width: 1024px) {
      .section {
          padding: 100px 0;
      }
  }

  .section.is-visible {
      opacity: 1;
      transform: translateY(0);
  }

  .section-title {
      font-size: clamp(2rem, 5vw, 2.8rem);
      font-weight: 800;
      text-align: center;
      margin-bottom: 50px;
      position: relative;
  }

  .section-title::after {
      content: '';
      display: block;
      width: 70px;
      height: 4px;
      background: var(--accent-color);
      margin: 15px auto 0;
      border-radius: 2px;
  }

  .navbar {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      padding: 24px 0;
      /* more breathing room on desktop */
      z-index: 1000;
      transition: all 0.3s ease-in-out;
  }

  .navbar.scrolled {
      background: var(--card-bg-color);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      box-shadow: 0 2px 15px var(--shadow-color);
      padding: 15px 0;
  }

  .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
  }

  /* Desktop social links in navbar */
  .nav-social-links {
      display: flex;
      align-items: center;
      gap: 18px;
      /* increased icon spacing */
  }

  .nav-social-links a {
      color: inherit;
      opacity: 0.85;
      font-size: 1.1rem;
      text-decoration: none;
      transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-social-links a:hover {
      color: var(--accent-color);
      opacity: 1;
      transform: translateY(-1px);
  }

  /* Desktop spacing - add more space between nav sections */
  @media (min-width: 769px) {
      .nav-container {
          gap: 40px;
          justify-content: flex-start;
      }

      .nav-links:first-of-type {
          margin-left: auto;
          margin-right: 70px;
      }

      .nav-social-links {
          margin-left: 0;
      }
  }

  .nav-logo {
      font-weight: 700;
      font-size: 1.5rem;
      text-decoration: none;
      color: inherit;
      transition: color 0.3s;
      display: flex;
      align-items: center;
      gap: 12px;
  }

  .nav-logo-icon {
      width: 36px;
      height: 36px;
      border-radius: 6px;
      object-fit: contain;
  }

  .nav-logo:hover {
      color: var(--accent-color);
  }

  .nav-logo span {
      color: #e50914;
      animation: blinkOnline 1s steps(1, end) infinite;
  }

  @keyframes blinkOnline {

      0%,
      100% {
          opacity: 1;
      }

      50% {
          opacity: 0.2;
      }
  }

  /* Desktop navbar - show both logo and text */
  @media (min-width: 769px) {
      .nav-logo .nav-logo-icon {
          display: inline-block;
          width: 36px;
          height: 36px;
      }

      .nav-logo {
          font-size: 1.5rem;
      }
  }

  /* Mobile navbar - show both logo and text, slightly smaller */
  @media (max-width: 768px) {
      .nav-logo {
          font-size: 1.3rem;
      }

      .nav-logo .nav-logo-icon {
          display: inline-block;
          width: 32px;
          height: 32px;
      }
  }

  .nav-links a {
      margin: 0 12px;
      /* more horizontal spacing */
      padding: 8px 12px;
      /* bigger click target */
      text-decoration: none;
      color: inherit;
      font-weight: 500;
      position: relative;
      transition: color 0.3s;
  }

  .nav-links a::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      bottom: -4px;
      /* adjust underline offset for new padding */
      left: 50%;
      transform: translateX(-50%);
      background-color: var(--accent-color);
      transition: width 0.3s;
  }

  .nav-links a:hover,
  .nav-links a.active {
      color: var(--accent-color);
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
      width: 100%;
  }

  .theme-toggle {
      position: fixed;
      top: 21px;
      right: 12px;
      z-index: 1002;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      color: var(--icon-fill);
      transition: color .3s ease, right .3s ease, left .3s ease;
      vertical-align: middle;
  }

  .theme-toggle:hover {
      color: var(--icon-fill-hover);
  }

  .sun-and-moon> :is(.moon, .sun, .sun-beams) {
      transform-origin: center;
  }

  .sun-and-moon> :is(.moon, .sun) {
      fill: var(--icon-fill);
  }

  .theme-toggle:is(:hover, :focus-visible)>.sun-and-moon> :is(.moon, .sun) {
      fill: var(--icon-fill-hover);
  }

  .sun-and-moon>.sun-beams {
      stroke: var(--icon-fill);
      stroke-width: 2px;
  }

  .theme-toggle:is(:hover, :focus-visible) .sun-and-moon>.sun-beams {
      stroke: var(--icon-fill-hover);
  }

  [data-theme="dark"] .sun-and-moon>.sun {
      transform: scale(1.75);
  }

  [data-theme="dark"] .sun-and-moon>.sun-beams {
      opacity: 0;
  }

  [data-theme="dark"] .sun-and-moon>.moon>circle {
      transform: translateX(-7px);
  }

  @supports (cx: 1) {
      [data-theme="dark"] .sun-and-moon>.moon>circle {
          cx: 17;
          transform: translateX(0);
      }
  }

  @media (prefers-reduced-motion: no-preference) {
      .sun-and-moon>.sun {
          transition: transform .5s var(--ease-elastic-3);
      }

      .sun-and-moon>.sun-beams {
          transition: transform .5s var(--ease-elastic-4), opacity .5s var(--ease-3);
      }

      .sun-and-moon .moon>circle {
          transition: transform .25s var(--ease-out-5);
      }

      @supports (cx: 1) {
          .sun-and-moon .moon>circle {
              transition: cx .25s var(--ease-out-5);
          }
      }

      [data-theme="dark"] .sun-and-moon>.sun {
          transition-timing-function: var(--ease-3);
          transition-duration: .25s;
          transform: scale(1.75);
      }

      [data-theme="dark"] .sun-and-moon>.sun-beams {
          transition-duration: .15s;
          transform: rotateZ(-25deg);
      }

      [data-theme="dark"] .sun-and-moon>.moon>circle {
          transition-duration: .5s;
          transition-delay: .25s;
      }
  }

  .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 100px 34px 60px;
      box-sizing: border-box;
  }

  /* Ensure hero content isn't obscured by fixed navbar on small screens */
  @media (max-width: 768px) {
      .hero {
          padding-top: 200px;
      }
  }

  .hero-text-container {
    max-width: 400px; /* match banner base size for alignment */
    width: 100%;
    margin: 0 auto 60px; /* center the text block */
  }

  .hero-banner-container {
      display: block;
    max-width: 400px;
    width: 100%;
      height: 100px;
    margin: 0 auto; /* center to match hero-text-container */
      background-image: url('/assets/img/banner.jpg');
      background-size: cover;
      background-position: center center;
      border-radius: 20px;
      /* box-shadow: 0 15px 40px var(--shadow-color); */
      transition: transform 0.4s, box-shadow 0.4s;
  }

  /* Desktop improvements for hero */
  @media (min-width: 1024px) {
      .hero-text-container {
          max-width: 1000px;
      }

      .hero-banner-container {
          max-width: 1000px;
          height: 450px;
      }
  }

  @media (min-width: 1400px) {
      .hero-text-container {
          max-width: 1100px;
      }

      .hero-banner-container {
          max-width: 1100px;
          height: 500px;
      }
  }

  /* Mobile: swap hero banner image (poster.png) while desktop keeps banner.jpg */
  @media (max-width: 768px) {
      .hero-banner-container {
          background-image: url('/assets/img/poster.webp');
      }
  }

  .hero-banner-container:hover {
      transform: translateY(-5px) scale(1.02);
      box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
  }

  .typing-svg {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Make hero typing text ~20% larger on mobile without causing horizontal scroll */
  @media (max-width: 768px) {
      .hero-text-container { max-width: 480px; }
      .typing-svg {
          width: 83.333%; /* reduce base width so scale keeps net width ~100% */
          transform: scale(1.);
          transform-origin: center center;
          margin: 0 auto; /* keep centered after width change */
      }
  }

  .card {
      background: var(--card-bg-color);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      padding: 30px;
      box-shadow: 0 5px 25px var(--shadow-color);
      transition: transform 0.3s, box-shadow 0.3s;
      -webkit-backdrop-filter: blur(5px);
      backdrop-filter: blur(5px);
      position: relative;
      overflow: hidden;
  }

  /* Desktop card improvements */
  @media (min-width: 1024px) {
      .card {
          padding: 40px;
          border-radius: 24px;
      }
  }

  .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
  }

  .about-me-content strong {
      color: var(--accent-color);
      font-weight: 600;
  }

  /* ===== About Me UX Refresh ===== */
  .about-me-card {
      position: relative;
      max-width: 1200px;
      margin: 0 auto;
      padding: 48px 46px 54px;
      overflow: visible;
      --about-glow: rgba(244, 67, 54, 0.25);
  }

  @media (max-width:900px) {
      .about-me-card {
          padding: 42px 34px 48px;
      }
  }

  @media (max-width:640px) {
      .about-me-card {
          padding: 34px 24px 40px;
      }
  }

  .about-me-card::before {
      content: "";
      position: absolute;
      inset: -2px;
      border-radius: 28px;
      opacity: .22;
      filter: blur(18px);
      z-index: -1;
  }

  [data-theme="light"] .about-me-card::before {
      opacity: .28;
  }

  .about-lede {
      font-size: clamp(1.05rem, 1.25vw + .9rem, 1.55rem);
      font-weight: 500;
      line-height: 1.55;
      text-align: center;
      margin: 0 0 34px;
      letter-spacing: .25px;
  }

  .about-emph {
      font-weight: 600;
      color: var(--accent-color);
      position: relative;
  }

  .about-emph::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      height: 6px;
      width: 100%;
      background: linear-gradient(90deg, var(--accent-color), transparent);
      opacity: .35;
      border-radius: 3px;
  }

  .about-pillars {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 26px 30px;
      margin: 0 0 34px;
  }

  @media (max-width:640px) {
      .about-pillars {
          gap: 20px 18px;
      }
  }

  .pillar {
      background: rgba(0, 0, 0, 0.22);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      padding: 20px 18px 22px;
      text-align: center;
      position: relative;
      transition: transform .35s, box-shadow .35s, border-color .35s;
      outline: none;
  }

  [data-theme="light"] .pillar {
      background: rgba(255, 255, 255, 0.55);
  }

  .pillar-icon {
      width: 40px;
      height: 40px;
      margin: 0 auto 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.15rem;
      color: var(--accent-color);
      background: rgba(244, 67, 54, 0.08);
      border: 1px solid rgba(244, 67, 54, 0.35);
      border-radius: 14px;
      box-shadow: 0 4px 14px -6px rgba(244, 67, 54, 0.4);
  }

  .pillar h3 {
      margin: 0 0 8px;
      font-size: .95rem;
      letter-spacing: .06em;
      text-transform: uppercase;
      font-weight: 600;
      opacity: .85;
  }

  .pillar p {
      margin: 0;
      font-size: .78rem;
      line-height: 1.45;
      opacity: .85;
  }

  .pillar:hover,
  .pillar:focus-visible {
      transform: translateY(-6px);
      box-shadow: 0 10px 28px -8px var(--about-glow), 0 8px 24px -10px rgba(0, 0, 0, .45);
      border-color: var(--accent-color);
  }

  .pillar:active {
      transform: translateY(-2px) scale(.985);
      box-shadow: 0 6px 18px -6px var(--about-glow), 0 4px 14px -8px rgba(0, 0, 0, .5);
  }

  .pillar.is-active {
      border-color: var(--accent-color);
      box-shadow: 0 0 0 2px rgba(244, 67, 54, .35), 0 8px 22px -10px var(--about-glow);
  }

  @media (hover:none) {
      .pillar {
          transition: background .3s, border-color .3s, box-shadow .3s;
      }

      /* remove translate animations on touch */
      .pillar:hover {
          transform: none;
      }

      .pillar:active {
          transform: scale(.975);
      }
  }

  @media (prefers-reduced-motion:reduce) {

      .pillar,
      .pillar:hover,
      .pillar:focus-visible,
      .pillar:active {
          transition: none;
          transform: none;
      }
  }

  /* ---- Contact Form Final Alignment Overrides (ensure perfect centering) ---- */
  #contact .contact-form-container {
      box-sizing: border-box;
      max-width: clamp(320px, 92vw, 860px) !important;
      margin-left: auto !important;
      margin-right: auto !important;
  }

  @media (min-width:1024px) {
      #contact .contact-form-container {
          max-width: clamp(640px, 70vw, 880px) !important;
      }
  }

  @media (max-width:768px) {
      #contact .contact-form-container {
          padding-left: 1.05rem;
          padding-right: 1.05rem;
      }
  }

  @media (max-width:480px) {
      #contact .contact-form-container {
          padding-left: .9rem;
          padding-right: .9rem;
      }
  }

  /* Provide consistent internal layout so buttons row doesn't appear visually off */
  #contact .contact-form-container .contact-form {
      width: 100%;
  }

  .about-closer {
      text-align: center;
      font-size: .9rem;
      line-height: 1.55;
      margin: 0 0 30px;
      opacity: .9;
  }

  @media (max-width:640px) {
      .about-closer {
          font-size: .85rem;
      }
  }

  .about-cta-row {
      display: flex;
      justify-content: center;
  }

  .about-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, var(--accent-color), #d32f2f 55%, #ffb900);
      color: #fff;
      text-decoration: none;
      padding: 14px 26px 15px;
      border-radius: 16px;
      font-size: .85rem;
      font-weight: 600;
      letter-spacing: .5px;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.18);
      box-shadow: 0 6px 22px -8px rgba(244, 67, 54, 0.55), 0 3px 10px -5px rgba(0, 0, 0, .55);
      transition: transform .35s, box-shadow .35s;
  }

  .about-cta:before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 38%);
      mix-blend-mode: overlay;
      opacity: 0;
      transition: opacity .5s;
  }

  .about-cta:hover:before {
      opacity: 1;
  }

  .about-cta:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 34px -10px rgba(244, 67, 54, 0.65), 0 6px 18px -6px rgba(0, 0, 0, .6);
  }

  .about-cta:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 4px;
  }

  @media (max-width:640px) {
      .about-cta {
          padding: 13px 20px 14px;
          font-size: .8rem;
      }
  }

  .work-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
  }

  /* Desktop work grid improvements */
  @media (min-width: 1024px) {
      .work-grid {
          grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
          gap: 40px;
      }
  }

  .blog-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 30px;
  }

  /* Desktop blog grid improvements */
  @media (min-width: 1024px) {
      .blog-grid {
          grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
          gap: 40px;
      }
  }

  .blog-card {
      background: var(--card-bg-color);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: transform 0.3s, box-shadow 0.3s;
  }

  .blog-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
  }

  .blog-card-image-container {
      width: 100%;
      height: 200px;
      overflow: hidden;
  }

  .blog-card-image-container img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      transition: transform 0.4s ease;
  }

  .blog-card:hover .blog-card-image-container img {
      transform: scale(1.05);
  }

  .blog-card-content {
      padding: 25px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
  }

  .blog-card-content h3 {
      margin: 0 0 15px 0;
      font-size: 1.2rem;
      color: var(--accent-color);
      line-height: 1.4;
  }

  .blog-card-content p {
      margin: 0 0 16px 0;
      flex-grow: 1;
      font-size: 0.95rem;
      line-height: 1.55;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  .blog-card-meta {
      display: flex;
      gap: 10px;
      align-items: center;
      margin: -4px 0 10px;
      opacity: .8;
      font-size: .85rem;
  }

  .blog-card-meta span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
  }

  .blog-card-meta .meta-brand {
      gap: 8px;
      padding: 2px 8px;
      border: 1px solid var(--border-color);
      border-radius: 999px;
      font-size: .8rem;
      opacity: 1;
  }

  .blog-card-meta .meta-brand i {
      font-size: .9rem;
  }

  .blog-card-content .read-more {
      font-weight: 600;
      color: var(--accent-color);
      text-decoration: none;
      align-self: flex-start;
      margin-top: auto;
  }

  .blog-cta-row {
      display: flex;
      justify-content: center;
      margin-top: 18px;
  }

  .blog-cta {
      display: inline-block;
      padding: .65rem 1rem;
      border: 1px solid var(--border-color);
      border-radius: 999px;
      text-decoration: none;
      color: var(--text-color);
      background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .07));
  }

  .blog-cta:hover {
      color: #fff;
      background: var(--accent-color);
      border-color: var(--accent-color);
      box-shadow: 0 8px 24px -6px rgba(244, 67, 54, .45);
  }

  /* Mobile tweaks for blog cards */
  @media (max-width: 640px) {
      .blog-grid {
          gap: 16px;
          grid-template-columns: 1fr;
      }

      .blog-card-image-container {
          height: 180px;
      }

      .blog-card-content {
          padding: 16px;
      }

      .blog-card-content h3 {
          font-size: 1.05rem;
          margin-bottom: 10px;
      }

      .blog-card-content p {
          -webkit-line-clamp: 4;
          line-clamp: 4;
          font-size: .92rem;
      }
  }

  .project-card {
      background: var(--card-bg-color);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      padding: 30px;
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      transition: transform 0.3s, box-shadow 0.3s;
  }

  /* Project card header + icon */
  .project-head {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px
  }

  .project-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--accent-color), #ffb900);
      color: #fff;
      box-shadow: 0 6px 18px -6px rgba(244, 67, 54, .45)
  }

  .project-icon i {
      font-size: 16px
  }

  .project-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
  }

  .project-card h3 {
      margin: 0 0 10px 0;
      font-size: 1.25rem;
      color: var(--accent-color);
  }

  .project-card p {
      margin: 0 0 20px 0;
      flex-grow: 1;
  }

  /* Tags + meta */
  .project-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: auto
  }

  .project-tags span {
      display: inline-block;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid var(--border-color);
      font-size: .8rem;
      background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .07))
  }

  .project-meta {
      opacity: .75;
      font-size: .85rem;
      margin: 10px 0 12px;
      display: flex;
      gap: 16px
  }

  .project-meta i {
      opacity: .9;
      margin-right: 6px
  }

  /* Progress */
  .project-progress {
      height: 8px;
      background: rgba(0, 0, 0, .08);
      border: 1px solid var(--border-color);
      border-radius: 999px;
      overflow: hidden;
      margin-bottom: 14px
  }

  .project-progress .bar {
      height: 100%;
      background: linear-gradient(90deg, #ffb900, #d32f2f);
      width: 0;
      transition: width .6s ease
  }

  .project-progress .progress-60 {
      width: 60%
  }

  .project-progress .progress-30 {
      width: 30%
  }

  .project-progress .progress-80 {
      width: 80%
  }

  .project-card .read-more {
      font-weight: 600;
      color: var(--accent-color);
      text-decoration: none;
      align-self: flex-start;
  }

  .project-card.coming-soon {
      cursor: default;
      opacity: 0.6;
      filter: grayscale(50%);
  }

  .project-card.coming-soon:hover {
      transform: none;
      box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
  }

  .status-badge {
      font-weight: 600;
      color: #fff;
      background-color: var(--accent-color);
      padding: 5px 12px;
      border-radius: 12px;
      align-self: flex-start;
      font-size: 0.9em;
  }

  .status-badge.working {
      background-color: #ff9800;
      color: #fff;
  }

  .status-badge.completed {
      background-color: #4caf50;
      color: #fff;
  }

  /* Responsive tweaks for project cards */
  @media (max-width:640px) {
      .project-card {
          padding: 18px
      }

      .project-card h3 {
          font-size: 1.1rem
      }

      .project-meta {
          font-size: .8rem
      }
  }

        .github-stats-container {
                display: block;
                padding: 0; /* Let the outer .card control spacing for consistency */
        }

  /* Projects CTA */
  .projects-cta-row {
      display: flex;
      justify-content: center;
      margin-top: 18px
  }

  .projects-cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: .65rem 1rem;
      border: 1px solid var(--border-color);
      border-radius: 999px;
      text-decoration: none;
      color: var(--text-color);
      background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .07))
  }

  .projects-cta i {
      font-size: 1.1rem
  }

  .projects-cta:hover {
      color: #fff;
      background: var(--accent-color);
      border-color: var(--accent-color);
      box-shadow: 0 8px 24px -6px rgba(244, 67, 54, .45)
  }

.github-stats-card {
        padding: 20px; /* more compact than default */
        max-width: 960px; /* cap the width to reduce footprint */
        margin: 0 auto;
}
@media (min-width: 1024px) {
    .github-stats-card { padding: 28px; }
}

  /* Tabbed GitHub stats */
    .github-stats-tabs {
      display: inline-flex;
      gap: 8px;
        padding: 4px 6px;
            background: transparent; /* Follow base card aesthetic */
      border-radius: 999px;
      border: 1px solid var(--border-color);
        margin: 0 0 10px;
  }
    /* Dark theme uses same transparent tabs; border already adapts via var */
  .stats-tab {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    padding: 6px 10px;
    font-size: 0.9rem;
      font-weight: 600;
      background: transparent;
      color: var(--text-color);
      border: none;
      border-radius: 999px;
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease;
  }
  .stats-tab.is-active {
            background: var(--accent-color);
            color: #fff;
  }
  .stats-tab i { opacity: 0.9; }

.github-stats-frame {
      position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: transparent; /* avoid nested glass; stay consistent */
    border: 1px solid var(--border-color);
    box-shadow: none; /* let outer card shadow stand out */
    min-height: 180px;
    max-width: 860px;
    margin: 0 auto;
  }
  .stats-pane {
      position: relative;
      display: none;
      width: 100%;
      height: auto;
      transition: opacity 0.25s ease;
    border-radius: 12px;
    border: 1px solid var(--border-color);
  }
  .stats-pane.is-active { display: block; opacity: 1; }
  .img-skeleton {
      position: absolute;
      inset: 0;
            background: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 100%);
      animation: shimmer 1.3s infinite;
      z-index: 0;
  }
    [data-theme="dark"] .img-skeleton {
            background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
        }
  @keyframes shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
  }
  .github-stats-frame img { position: relative; z-index: 1; }

    /* Make the Languages pane smaller than Overview */
    #stats #pane-langs.stats-pane {
            width: 86%;
            margin: 6px auto;
    }
    @media (min-width: 1024px) {
        #stats #pane-langs.stats-pane { width: 78%; }
    }
    @media (max-width: 640px) {
        #stats #pane-langs.stats-pane { width: 92%; }
    }

  .form-group {
      position: relative;
      margin-bottom: 25px;
  }

  [data-theme="dark"] .form-icon {
      fill: #777;
  }

  .form-control {
      width: 100%;
      padding: 15px 15px 15px 10px;
      background-color: transparent;
      border: 1px solid;
      border-color: var(--border-color);
      border-radius: 12px;
      font-size: 1rem;
      font-family: 'Inter', sans-serif;
      box-sizing: border-box;
      transition: border-color 0.3s, box-shadow 0.3s;
      color: inherit;
  }

  .form-control:focus {
      outline: none;
      border-color: var(--accent-color);
      box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
  }

  .form-control:focus+.form-icon {
      fill: var(--accent-color);
  }

  .form-row {
      display: flex;
      gap: 20px;
      margin-bottom: 0;
  }

  /* Mobile-friendly improvements */
  @media (max-width: 768px) {
      .form-row {
          flex-direction: column;
      }

      .form-group {
          width: 100%;
      }

      .card {
          padding: 20px;
          margin: 0 15px;
          border-radius: 12px;
      }

      .form-control {
          font-size: 1rem;
          padding: 12px 40px 12px 12px;
          border-radius: 10px;
      }

      .form-buttons {
          flex-direction: column;
          gap: 12px;
          margin-top: 25px;
      }

      .btn {
          width: 100%;
          justify-content: center;
          padding: 14px;
          font-size: 1.1rem;
      }

      .section-subtitle {
          font-size: 1rem;
          margin-bottom: 25px;
      }

      .mobile-tech-grid {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 16px;
          width: 100%;
      }

      .mobile-tech-grid .tech-item {
          min-width: 0;
          padding: 14px 6px;
          font-size: 1rem;
          border-radius: 10px;
          margin: 0;
          box-sizing: border-box;
      }

      .site-footer {
          padding: 20px 0;
      }

      .footer-content {
          gap: 15px;
      }

      .footer-connect-links {
          gap: 16px;
      }

      .footer-social-icon {
          width: 28px;
          height: 28px;
      }

      .footer-copyright {
          font-size: 0.9rem;
          padding: 0 10px;
      }
  }


  .submit-button,
  .ai-button {
      width: 100%;
      padding: 16px;
      border-radius: 12px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      border: none;
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
  }

  .submit-button {
      background-color: var(--accent-color);
  }

  .ai-button {
      background-color: #43A047;
      color: white !important;
  }

  /* Utility classes for better maintainability */
  .text-center {
      text-align: center;
  }

  .mb-18 {
      margin-bottom: 18px;
  }

  .mb-15 {
      margin-bottom: 15px;
  }

  .mb-10 {
      margin-bottom: 10px;
  }

  .mb-30 {
      margin-bottom: 30px;
  }

  .mt-0 {
      margin-top: 0;
  }

  .list-none {
      list-style: none;
      padding-left: 0;
  }

  .line-height-1-8 {
      line-height: 1.8;
  }

  .special-shadow {
      box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
  }

  [data-theme="dark"] .ai-button {
      background-color: #43A047;
      color: white !important;
      border: 1px solid #43A047;
  }

  [data-theme="light"] .ai-button {
      background-color: #43A047;
      color: white !important;
      border: 1px solid #43A047;
  }

  .submit-button .btn-icon,
  .ai-button .btn-icon {
      width: 20px;
      height: 20px;
      transition: transform 0.3s ease-in-out;
  }

  .submit-button:hover {
      background-color: var(--accent-hover);
      box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
  }

  .ai-button:hover {
      background-color: #45a049;
      box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
  }

  .submit-button:hover .btn-icon {
      transform: translateX(5px);
  }

  .modern-footer {
      background: rgba(17, 17, 17, 0.1);
      color: var(--text-dark);
      padding: 30px 0 15px;
      margin-top: 40px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.5s ease;
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      backdrop-filter: blur(20px) saturate(180%);
      position: relative;
  }

  .modern-footer::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg,
              rgba(255, 255, 255, 0.05) 0%,
              rgba(255, 255, 255, 0.02) 50%,
              rgba(0, 0, 0, 0.05) 100%);
      pointer-events: none;
      z-index: -1;
  }

  [data-theme="light"] .modern-footer {
      background: rgba(248, 249, 250, 0.1);
      color: var(--text-light);
      border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  [data-theme="light"] .modern-footer::before {
      background: linear-gradient(135deg,
              rgba(255, 255, 255, 0.8) 0%,
              rgba(255, 255, 255, 0.4) 50%,
              rgba(0, 0, 0, 0.02) 100%);
  }

  .footer-main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 16px;
  }

  .footer-brand {
      margin-bottom: 20px;
  }

  .footer-logo {
      font-size: 2rem;
      font-weight: 700;
      color: #9da0a4;
      display: block;
      margin-bottom: 8px;
      letter-spacing: -0.5px;
  }

  .footer-tagline {
      font-size: 1.1rem;
      color: #9ca3af;
      margin: 0;
      font-weight: 400;
  }

  [data-theme="light"] .footer-tagline {
      color: #6b7280;
  }

  .footer-links-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1.5fr;
      gap: 30px;
      margin-bottom: 25px;
      align-items: start;
  }

  .footer-links-col {
      display: flex;
      flex-direction: column;
      gap: 10px;
  }

  .footer-links-col a {
      color: #d1d5db;
      text-decoration: none;
      font-size: 1rem;
      font-weight: 400;
      transition: all 0.3s ease;
      padding: 4px 0;
      position: relative;
  }

  [data-theme="light"] .footer-links-col a {
      color: #4b5563;
  }

  .footer-links-col a:hover {
      color: var(--accent-color);
      transform: translateX(8px);
  }

  .footer-links-col a::before {
      content: '';
      position: absolute;
      left: -12px;
      top: 50%;
      width: 4px;
      height: 4px;
      background-color: var(--accent-color);
      border-radius: 50%;
      transform: translateY(-50%) scaleX(0);
      transition: transform 0.3s ease;
  }

  .footer-links-col a:hover::before {
      transform: translateY(-50%) scaleX(1);
  }

  .footer-bottom {
      padding-top: 15px;
      border-top: 1px solid rgba(107, 114, 128, 0.2);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 15px;
  }

  [data-theme="light"] .footer-bottom {
      border-top: 1px solid rgba(156, 163, 175, 0.3);
  }

  .footer-bottom span {
      color: #9ca3af;
      font-size: 0.95rem;
      font-weight: 400;
  }

  [data-theme="light"] .footer-bottom span {
      color: #6b7280;
  }

  .footer-legal-links {
      display: flex;
      gap: 24px;
  }

  .footer-legal-links a {
      color: #9ca3af;
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 400;
      transition: color 0.3s ease;
  }

  [data-theme="light"] .footer-legal-links a {
      color: #6b7280;
  }

  .footer-legal-links a:hover {
      color: var(--accent-color);
  }


  @media (max-width: 768px) {
      .modern-footer {
          padding: 20px 0 10px;
          margin-top: 20px;
      }

      .footer-main {
          padding: 0 12px;
      }

      .footer-brand {
          margin-bottom: 15px;
          text-align: center;
      }

      .footer-logo {
          font-size: 1.3rem;
          margin-bottom: 3px;
      }

      .footer-tagline {
          font-size: 0.85rem;
          margin-bottom: 0;
      }

      .footer-links-grid {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 6px;
          margin-bottom: 15px;
          text-align: center;
      }

      .footer-links-col {
          display: contents;
      }

      .footer-links-col a {
          font-size: 0.9rem;
          padding: 4px 0;
          background: none;
          border: none;
          border-radius: 0;
          transition: all 0.3s ease;
          color: #d1d5db;
          text-decoration: none;
          display: block;
          width: auto;
      }

      [data-theme="light"] .footer-links-col a {
          background: none;
          border: none;
          color: #4b5563;
      }

      .footer-links-col a::before {
          display: none;
      }

      .footer-links-col a:hover {
          transform: none;
          background: none;
          border: none;
          color: var(--accent-color);
      }

      .footer-bottom {
          flex-direction: column;
          text-align: center;
          padding-top: 10px;
          gap: 6px;
          border-top: 1px solid rgba(255, 255, 255, 0.1);
      }

      [data-theme="light"] .footer-bottom {
          border-top: 1px solid rgba(0, 0, 0, 0.1);
      }

      .footer-bottom span {
          font-size: 0.85rem;
      }

      .footer-legal-links {
          gap: 16px;
      }

      .footer-legal-links a {
          font-size: 0.85rem;
      }
  }

  .timeline {
      position: relative;
      max-width: 1200px;
      margin: 0 auto;
  }

  .timeline::after {
      content: '';
      position: absolute;
      width: 6px;
      background-color: var(--border-color);
      top: 0;
      bottom: 0;
      left: 50%;
      margin-left: -3px;
  }

  .timeline-container {
      padding: 10px 40px;
      position: relative;
      background-color: inherit;
      width: 50%;
      opacity: 0;
      transition: opacity 0.6s, transform 0.6s;
      box-sizing: border-box;
  }

  .timeline-container.left {
      left: 0;
      transform: translateX(-30px);
  }

  .timeline-container.right {
      left: 50%;
      transform: translateX(30px);
  }

  .timeline-container.is-visible {
      opacity: 1;
      transform: translateX(0);
  }

  .timeline-container::after {
      content: '';
      position: absolute;
      width: 25px;
      height: 25px;
      right: -13px;
      background-color: var(--bg-color);
      border: 4px solid var(--accent-color);
      top: 32px;
      border-radius: 50%;
      z-index: 1;
  }

  .right::after {
      left: -12px;
  }

  .timeline-content {
      padding: 20px 30px;
      background: var(--card-bg-color);
      border: 1px solid var(--border-color);
      position: relative;
      border-radius: 24px;
  }

  .timeline-content h3 {
      margin-top: 0;
      color: var(--accent-color);
  }

  .timeline-content h4 {
      margin-top: 0;
      font-weight: 600;
  }

  .timeline-content p {
      font-size: 0.9rem;
      color: #6c757d;
  }

  [data-theme="dark"] .timeline-content p {
      color: #adb5bd;
  }

  .skills-certs-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
  }

  .skills-list,
  .certs-list {
      background: var(--card-bg-color);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      padding: 30px;
  }

  .skills-list h3,
  .certs-list h3 {
      margin-top: 0;
      text-align: center;
      font-size: 1.5rem;
      margin-bottom: 20px;
      color: var(--accent-color);
  }

  .skills-list ul,
  .certs-list ul {
      list-style: none;
      padding: 0;
  }

  .skills-list li,
  .certs-list li {
      padding: 12px 14px;
      margin-bottom: 12px;
      border-radius: 8px;
      background-color: rgba(0, 0, 0, 0.1);
      border: 1px solid var(--border-dark);
      text-align: center;
  }

  .skills-list li i,
  .certs-list li i {
      margin-right: 8px;
      opacity: .9;
  }

  /* Enhanced GitHub Stats split layout */
  .gh-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
  }

  .gh-quick {
      display: flex;
      flex-direction: column;
      gap: 12px;
  }

  .gh-title {
      margin: 0 0 6px 0;
      font-size: 1.1rem;
      color: var(--accent-color);
  }

  .gh-metrics {
      list-style: none;
      margin: 0 0 10px 0;
      padding: 0;
      display: grid;
      gap: 10px;
  }

  .gh-metrics li {
      display: flex;
      align-items: center;
      gap: 10px;
  }

  .gh-metrics li i {
      opacity: .8;
  }

  .gh-graphs {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      justify-content: center;
  }

  .gh-graphs img {
      max-width: 100%;
      flex: 1 1 300px;
      height: auto;
      border-radius: 10px;
  }

  @media (max-width: 860px) {
      .gh-stats {
          grid-template-columns: 1fr;
      }
  }

  [data-theme="light"] .skills-list li,
  [data-theme="light"] .certs-list li {
      background-color: rgba(255, 255, 255, 0.5);
      border: 1px solid var(--border-light);
  }

  .tech-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 80px;
  }

  /* --- New Professional Tool Grid (replaces legacy badge grid) --- */
  .tools-filter {
      display: flex;
      flex-wrap: wrap;
      gap: .55rem;
      justify-content: center;
      margin: 0 0 1.75rem;
  }

  .tool-filter {
      position: relative;
      font: 600 0.8rem/1.1 'Inter', system-ui, sans-serif;
      letter-spacing: .5px;
      text-transform: uppercase;
      padding: .55rem .9rem;
      border: 1px solid var(--border-color);
      background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .08));
      color: var(--text-color);
      border-radius: 999px;
      cursor: pointer;
      transition: background .25s, border-color .25s, color .25s, box-shadow .25s;
  }

  .tool-filter:hover {
      color: var(--accent-color);
      border-color: var(--accent-color);
  }

  .tool-filter.active {
      background: var(--accent-color);
      color: #fff;
      box-shadow: 0 4px 18px -4px rgba(244, 67, 54, .45);
      border-color: var(--accent-color);
  }

  .tool-grid {
      --cols: 1;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.2rem;
  }

  @media (min-width:640px) {
      .tool-grid {
          gap: 1.35rem;
      }
  }

  @media (min-width:1024px) {
      .tool-grid {
          gap: 1.5rem;
      }
  }

  .tool-card {
      --tool-accent: var(--accent-color);
      position: relative;
      display: flex;
      gap: .9rem;
      align-items: flex-start;
      padding: 1rem 1rem 1rem .95rem;
      border: 1px solid var(--border-color);
      background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(0, 0, 0, .15));
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      border-radius: 20px;
      text-decoration: none;
      color: var(--text-color);
      overflow: hidden;
      isolation: isolate;
      min-height: 110px;
      transition: transform .35s var(--ease-out-3), box-shadow .4s var(--ease-out-3), border-color .35s, background .4s;
  }

  [data-theme="light"] .tool-card {
      background: linear-gradient(145deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .35));
  }

  .tool-card:before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 18% 20%, var(--tool-accent)11%, transparent 65%);
      opacity: .18;
      transition: opacity .4s;
      z-index: -1;
  }

  .tool-card:after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0));
      mix-blend-mode: overlay;
      pointer-events: none;
  }

  .tool-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 8px 28px -4px rgba(0, 0, 0, .4), 0 0 0 1px var(--tool-accent), 0 0 20px 4px color-mix(in srgb, var(--tool-accent) 55%, transparent);
      border-color: var(--tool-accent);
  }

  .tool-card:hover:before {
      opacity: .34;
  }

  .tool-icon {
      flex: 0 0 48px;
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      font-size: 1.4rem;
      font-weight: 600;
      background: linear-gradient(135deg, var(--tool-accent), color-mix(in srgb, var(--tool-accent) 55%, transparent));
      color: #fff;
      box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--tool-accent) 60%, transparent);
  }

    /* Ensure inline SVGs inside tool-icon render crisp and centered */
    .tool-icon svg {
            width: 70%;
            height: 70%;
            display: block;
    }

  .tool-meta h3 {
      margin: 0 0 .25rem;
      font: 600 1rem/1.2 'Inter', system-ui, sans-serif;
      letter-spacing: .3px;
  }

  /* Allow text block to shrink within flexed tool-card without forced breaking */
  .tool-card .tool-meta { flex: 1 1 auto; min-width: 0; }

  .tool-meta p {
      margin: 0;
      font: 400 .78rem/1.25 'Inter', system-ui, sans-serif;
      opacity: .8;
      max-width: 100%;
      white-space: normal;
      word-break: normal;
      overflow-wrap: break-word;
      hyphens: auto;
  }

  /* Override generic .card p rules inside Tools section to avoid center/odd breaks */
  .tech-section-content.card .tool-card .tool-meta p {
      margin: 0 !important;
      text-align: left !important;
      word-break: normal !important;
      overflow-wrap: break-word !important;
      hyphens: auto !important;
  }

  .tool-card[data-hidden="true"] {
      display: none !important;
  }

  .tool-intro {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
  }

  /* --- Mobile refinements for Tools section --- */
  @media (max-width: 640px) {
      /* Hide selected cards on mobile as requested */
    .tool-card.accent-aws,
    .tool-card.accent-nginx {
          display: none !important;
      }

      .tech-section-content {
          padding: 18px 14px 24px;
      }

      .tool-filter-toggle {
          display: inline-flex;
          align-items: center;
          gap: 6px;
          font: 600 .7rem/1 'Inter', system-ui, sans-serif;
          letter-spacing: .5px;
          text-transform: uppercase;
          background: var(--accent-color);
          color: #fff;
          padding: .55rem .75rem;
          border: none;
          border-radius: 10px;
          margin: 0 0 .75rem;
          box-shadow: 0 4px 14px -4px rgba(244, 67, 54, .45);
      }

      .tool-filter-toggle[aria-expanded="false"] {
          opacity: .85;
      }

      #tool-filters[data-open="false"] {
          max-height: 0;
          opacity: 0;
          overflow: hidden;
          transition: max-height .35s ease, opacity .3s ease;
      }

      #tool-filters[data-open="true"] {
          max-height: 240px;
          opacity: 1;
          transition: max-height .45s ease, opacity .4s ease;
      }

      .tool-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: .75rem;
      }

      .tool-card {
          padding: .75rem .65rem .7rem;
          min-height: 84px;
          border-radius: 16px;
      }

      .tool-icon {
          width: 40px;
          height: 40px;
          font-size: 1.15rem;
          border-radius: 12px;
      }

      .tool-meta h3 {
          font-size: .92rem;
      }

      .tool-meta p {
          font-size: .64rem;
          line-height: 1.3;
          max-width: 100%;
          display: -webkit-box;
          -webkit-line-clamp: 2; /* fewer lines to reduce awkward wrapping */
          -webkit-box-orient: vertical;
          overflow: hidden;
          line-clamp: 2;
      }

      .tools-filter {
          gap: .45rem;
          margin-bottom: 1.1rem;
          overflow-x: auto;
          white-space: nowrap;
          padding-bottom: 4px;
      }

      .tools-filter::-webkit-scrollbar {
          display: none;
      }

      .tool-filter {
          flex: 0 0 auto;
          font-size: .65rem;
          padding: .45rem .7rem;
      }

      .tool-intro {
          font-size: .85rem !important;
          line-height: 1.35;
      }
  }

  @media (max-width:420px) {
      .tool-card {
          padding: .75rem .8rem;
      }

      .tool-icon {
          width: 36px;
          height: 36px;
          font-size: 1rem;
      }

      .tool-meta h3 {
          font-size: .9rem;
      }

      .tool-meta p {
          font-size: .7rem;
      }
  }

  /* Accent color tokens (for no-inline-style alternative) */
  .accent-gcp {
      --tool-accent: #4285F4;
  }

  .accent-aws {
      --tool-accent: #FF9900;
  }

  .accent-docker {
      --tool-accent: #2496ED;
  }

  .accent-k8s {
      --tool-accent: #326CE5;
  }

  .accent-nginx {
      --tool-accent: #009639;
  }

  .accent-terraform {
      --tool-accent: #623CE4;
  }

  .accent-jenkins {
      --tool-accent: #D24939;
  }

  .accent-gha {
      --tool-accent: #24292F;
  }

  .accent-grafana {
      --tool-accent: #F46800;
  }

  .accent-prom {
      --tool-accent: #E6522C;
  }

  .accent-dynatrace {
      --tool-accent: #27A7E7;
  }

  .accent-nexus {
      --tool-accent: #555555;
  }

  .accent-python {
      --tool-accent: #3776AB;
  }

  .accent-linux {
      --tool-accent: #FCC624;
  }

  .accent-copilot {
      --tool-accent: #000000;
  }

  @media (max-width:600px) {
      .tool-card {
          padding: .85rem .9rem;
          border-radius: 18px;
      }

      .tool-icon {
          width: 44px;
          height: 44px;
          font-size: 1.25rem;
      }

      .tool-meta p {
          font-size: .72rem;
      }
  }

  /* Reduce motion preference */
  @media (prefers-reduced-motion:reduce) {

      .tool-card,
      .tool-card:hover {
          transition: none;
      }
  }

  a.tech-item {
      background: rgba(0, 0, 0, 0.2);
      border: 1px solid var(--border-dark);
      border-radius: 10px;
      padding: 12px;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: transform 0.3s, box-shadow 0.3s;
      min-height: 20px;
      text-decoration: none;
      color: inherit;
  }

  [data-theme="light"] a.tech-item {
      background: rgba(255, 255, 255, 0.6);
      border: 1px solid var(--border-light);
  }

  .tech-section-content {
      background: var(--card-bg-color);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      padding: 30px;
      box-shadow: 0 5px 25px var(--shadow-color);
      -webkit-backdrop-filter: blur(5px);
      backdrop-filter: blur(5px);
  }

  /* Desktop tech section improvements */
  @media (min-width: 1024px) {
      .tech-section-content {
          padding: 40px;
          border-radius: 24px;
      }
  }

  a.tech-item:hover {
      transform: translateY(-5px);
  }

  /* Brand-specific glow colors for each technology */
  a.tech-item[href*="google-cloud"]:hover {
      box-shadow: 0 0 48px 16px #4285f477, 0 0 96px 32px #4285f444;
  }

  a.tech-item[href*="linux"]:hover {
      box-shadow: 0 0 48px 16px #fcc62477, 0 0 96px 32px #fcc62444;
  }

  a.tech-item[href*="docker"]:hover {
      box-shadow: 0 0 48px 16px #2496ed77, 0 0 96px 32px #2496ed44;
  }

  a.tech-item[href*="kubernetes"]:hover {
      box-shadow: 0 0 48px 16px #326ce577, 0 0 96px 32px #326ce544;
  }

  a.tech-item[href*="terraform"]:hover {
      box-shadow: 0 0 48px 16px #623ce477, 0 0 96px 32px #623ce444;
  }

  a.tech-item[href*="jenkins"]:hover {
      box-shadow: 0 0 48px 16px #d2493977, 0 0 96px 32px #d2493944;
  }

  a.tech-item[href*="python"]:hover {
      box-shadow: 0 0 48px 16px #3776ab77, 0 0 96px 32px #3776ab44;
  }

  a.tech-item[href*="nginx"]:hover {
      box-shadow: 0 0 48px 16px #00963977, 0 0 96px 32px #00963944;
  }

  a.tech-item[href*="grafana"]:hover {
      box-shadow: 0 0 48px 16px #f4680077, 0 0 96px 32px #f4680044;
  }

  a.tech-item[href*="prometheus"]:hover {
      box-shadow: 0 0 48px 16px #e6522c77, 0 0 96px 32px #e6522c44;
  }

  a.tech-item[href*="aws"]:hover {
      box-shadow: 0 0 48px 16px #39373577, 0 0 96px 32px #ff990044;
  }

  a.tech-item[href*="sonatype"]:hover,
  a.tech-item[href*="nexus-repository"]:hover {
      box-shadow: 0 0 48px 16px #28a745, 0 0 96px 32px #4e4e4e44;
  }

  a.tech-item[href*="copilot"]:hover {
      box-shadow: 0 0 48px 16px #18171777, 0 0 96px 32px #18171744;
  }

  a.tech-item[href*="dynatrace"]:hover {
      box-shadow: 0 0 48px 16px #27a7e777, 0 0 96px 32px #27a7e744;
  }

  .tech-item img {
      max-width: 100%;
      height: auto;
  }

  #tech-grid-container {
      display: grid !important;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
      gap: 20px !important;
      width: 100%;
  }

  @media (min-width: 640px) {
      #tech-grid-container {
          grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
          gap: 24px !important;
      }
  }

  @media (min-width: 1024px) {
      #tech-grid-container {
          grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
          gap: 28px !important;
      }
  }

  @media (min-width: 1400px) {

      /* Keep 4 columns to avoid sparse last row when item count is 12 */
      #tech-grid-container {
          grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
          gap: 32px !important;
      }
  }

  /* Restored #scrollTopBtn block (was corrupted during edit) */
  #scrollTopBtn {
      position: fixed;
      bottom: 50px;
      right: 50px;
      z-index: 1001;
      border: none;
      outline: none;
      background-color: var(--accent-color);
      color: white;
      cursor: pointer;
      padding: 1px;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 15px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
      transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
  }

  #scrollTopBtn.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
  }

  #scrollTopBtn:hover {
      background-color: var(--accent-hover);
  }

  @media (max-width: 768px) {
      body {

          padding-bottom: 10px;
      }

      .container {
          padding: 0 15px;
      }

      .navbar {
          top: auto;
          bottom: 0;
          padding: 0;
          background: var(--card-bg-color);
          -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
          box-shadow: 0 -2px 15px var(--shadow-color);
      }

      .nav-container {
          justify-content: center;
          padding: 8px 0;
      }

      .nav-links {
          display: flex;
          justify-content: center;
          width: 100%;
      }

      .nav-links a {
          margin: 0 15px;
      }

      .theme-toggle {

          bottom: 95px;
          left: 20px;
          right: auto;
          top: auto;
      }

      .nav-logo,
      .nav-social-links {
          display: none;
      }

      /* Mobile card width fix: remove horizontal margins that could cause sideways scroll */
      .card {
          width: 100%;
          margin-left: 0;
          margin-right: 0;
          box-sizing: border-box;
      }

      .hero {
          min-height: 50vh;
          padding: 120px 24px 60px;
      }

      .hero-banner-container {
          max-width: 70%;
          margin: 0 auto;
          height: 350px;
      }

      .form-row {
          flex-direction: column;
          gap: 0;
          margin-bottom: 0;
      }

      .skills-certs-grid {
          grid-template-columns: 1fr;
      }

      .section {
          padding: 40px 0;
      }

      .card {
          padding: 25px;
      }

      #scrollTopBtn {
          right: 20px;
          bottom: 93px;
      }


      .timeline::after {
          left: 28px;
      }

      .timeline-container {
          width: 100%;
          padding-left: 70px;
          padding-right: 25px;
          transform: translateX(0) !important;
      }

      .timeline-container.left,
      .timeline-container.right {
          left: 0%;
      }

      .timeline-container::after {
          left: 15px;
      }

      .right::after {
          left: 15px;
      }

      .footer__container {
          text-align: center;
      }

      .footer__container h3 {
          margin-bottom: 1rem;
          font-size: 1.5rem;
          font-weight: 700;
      }

      .footer__socials {
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 2rem;
          flex-wrap: wrap;
      }

      .footer__socials a {
          font-size: 1.5rem;
          color: var(--text-color);
      }

      .footer__socials a:hover {
          color: var(--accent-color);
      }

      .footer__bar {
          padding: 1rem;
          font-size: 1rem;
          color: var(--text-light);
          text-align: center;
      }

  }

  .mobile-nav-logo {
      display: none !important;
  }

  @media (max-width: 768px) {
      .nav-logo:not(.mobile-nav-logo) {
          display: none;
      }

      .mobile-nav-logo {
          display: block;
          text-align: center;
          margin: 1.5rem 0 0.5rem 0;
          font-size: 2rem;
          font-weight: bold;
          color: inherit;
          text-decoration: none;
      }
  }

  .desktop-tech-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 25px;
  }

  .desktop-tech-grid .tech-item {
      min-width: 0;
      padding: 35px 0;
      font-size: 1rem;
      border-radius: 12px;
      margin: 0;
      box-sizing: border-box;
  }

  /* Desktop tech grid improvements */
  @media (min-width: 1024px) {
      .desktop-tech-grid {
          grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
          gap: 30px;
      }

      .desktop-tech-grid .tech-item {
          padding: 40px 0;
          border-radius: 16px;
      }
  }

  @media (max-width: 768px) {
      .desktop-tech-grid {
          grid-template-columns: unset;
          gap: unset;
      }

      .mobile-tech-grid {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 12px;
          width: 100%;
      }

      .mobile-tech-grid .tech-item {
          min-width: 0;
          padding: 12px 6px;
          font-size: 1rem;
          border-radius: 10px;
          margin: 0;
          box-sizing: border-box;
      }
  }

  @media (max-width: 600px) {
      .hero-banner-container {
          border-radius: 20px !important;
      }

      .hero-banner-container::before {
          border-radius: 20px !important;
          inset: -2px !important;
          padding: 2px !important;
      }

      .hero-banner-container:hover {
          box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44 !important;
      }
  }

  .hero-banner-container::before {
      content: "";
      position: absolute;
      inset: -4px;
      border-radius: 32px;
      padding: 4px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s;
      z-index: 1;
  }

  .hero-banner-container:hover::before {
      opacity: 1;
      animation: hero-banner-glow 1.5s linear infinite;
  }

  .hero-banner-container {
      position: relative;
  }

  .hero-banner-container:hover {
      box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
  }

  /* === Mobile UX Enhancements (added) === */
  @media (max-width: 768px) {
      .navbar {
          padding: 10px 0 !important;
      }

      .nav-links {
          max-height: 82vh !important;
      }
  }

  /* Two-column tech grid on small screens for denser layout */
  @media (max-width: 640px) {
      #tech-grid-container {
          grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }

      #tech-grid-container a.tech-item {
          padding: 6px 4px;
          border-radius: 10px;
      }
  }

  /* Even on very small screens reduce min width so it doesn't collapse to one column */
  @media (max-width: 400px) {
      #tech-grid-container {
          grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
          gap: 12px !important;
      }
  }

  /* Nav overlay */
  .nav-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
      opacity: 0;
      visibility: hidden;
      transition: opacity .25s ease, visibility .25s ease;
      z-index: 998;
  }

  body.nav-open .nav-overlay {
      opacity: 1;
      visibility: visible;
  }

  body.nav-open {
      overflow: hidden;
  }

  /* Reverted: removed consolidated layout override block for tech grid & contact form */


  @keyframes hero-banner-glow {
      0% {
          filter: hue-rotate(0deg);
      }

      100% {
          filter: hue-rotate(360deg);
      }
  }

    /* Medium feed skeleton */
    .blog-feed-skeleton { display: grid; margin-bottom: 1.5rem; }
    .blog-skel-row { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 24px; }
    .blog-skel-card { background: var(--card-bg-color); border: 1px solid var(--border-color); border-radius: 20px; padding: 16px; position: relative; overflow: hidden; }
    .blog-skel-card::after { content:""; position:absolute; inset:0; background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.08) 40%, transparent 80%); animation: blog-shimmer 1.6s linear infinite; }
    .skel-img { width:100%; aspect-ratio: 16/9; background: var(--border-color); border-radius:12px; margin-bottom:12px; }
    .skel-line { height:10px; background: var(--border-color); border-radius:6px; margin-bottom:10px; }
    .skel-line.w1 { width:70%; }
    .skel-line.w2 { width:50%; }
    .skel-meta { width:40%; height:10px; background: var(--border-color); border-radius:6px; }
    @keyframes blog-shimmer { 0% { transform: translateX(-60%); } 100% { transform: translateX(120%); } }

  .project-card.card::before {
      content: "";
      position: absolute;
      inset: -2px;
      border-radius: 22px;
      padding: 3px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s;
      z-index: 1;
  }

  .project-card.card:hover::before {
      opacity: 1;
      animation: project-card-glow 1.5s linear infinite;
  }

  .project-card.card {
      position: relative;
  }

  .project-card.card:hover {
      box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
  }

  @keyframes project-card-glow {
      0% {
          filter: hue-rotate(0deg);
      }

      100% {
          filter: hue-rotate(360deg);
      }
  }

  .card p {
      word-break: break-word;
      white-space: normal;
      overflow-wrap: anywhere;
      margin: 0 8px 16px 8px;
      text-align: center;
  }

  @media (max-width: 600px) {
      .card p {
          font-size: 0.98rem;
          padding: 0 4px;
      }
  }

  @media (max-width: 600px) {
      .card {
          width: 95% !important;
          margin: 16px auto !important;
          padding: 16px 8px !important;
          border-radius: 16px !important;
          font-size: 1rem !important;
      }

      .card::before {
          border-radius: 16px !important;
          inset: -1px !important;
          padding: 1px !important;
      }

      .card:hover {
          box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
      }
  }

  body {
      font-family: 'Inter', sans-serif;
  }

  .ai-loading-spinner {
      border-top-color: #3498db;
      -webkit-animation: spin 1s linear infinite;
      animation: spin 1s linear infinite;
  }

  @keyframes spin {
      0% {
          transform: rotate(0deg);
      }

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

  .status-message {
            display: block;
            opacity: 0;
            transform: scale(0.98);
            border-radius: 14px;
    }
    .status-content { display: flex; gap: 12px; align-items: flex-start; }
    .status-icon { line-height: 1; margin-top: 2px; }
    .status-title { font-size: 0.95rem; }
    .status-desc { line-height: 1.25; }
    .status-dismiss { background: transparent; border: 0; cursor: pointer; font-size: 1rem; }
    @media (max-width: 600px) {
        .status-desc { font-size: 0.875rem; }
  }

  .status-message.success {
      background-color: #d1fae5;
      color: #065f46;
  }

  .status-message.error {
      background-color: #fee2e2;
      color: #991b1b;
  }

  .status-message.animate-success-pulse {
    animation: successPulse 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
      box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  .status-message.animate-success-pulse:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    border-radius: 14px;
      border: 4px solid #10b981;
      opacity: 0;
      animation: pulseGlow 1s infinite;
  }

  @keyframes successPulse {
      0% {
          opacity: 0;
          transform: scale(0.8);
      }

      100% {
          opacity: 1;
          transform: scale(1);
      }
  }

  @keyframes pulseGlow {
      0% {
          transform: scale(0.9);
          opacity: 0;
      }

      50% {
          transform: scale(1.1);
          opacity: 1;
      }

      100% {
          transform: scale(1.2);
          opacity: 0;
      }
  }

  .card::before {
      content: "";
      position: absolute;
      inset: -2px;
      border-radius: 22px;
      padding: 2px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s;
      z-index: 1;
  }

  .card:hover::before {
      opacity: 1;
      animation: card-glow 1.5s linear infinite;
  }

  .card:hover {
      box-shadow: 0 0 48px 16px #d32f2f77, 0 0 96px 32px #d32f2f44;
  }

  @keyframes card-glow {
      0% {
          filter: hue-rotate(0deg);
      }

      100% {
          filter: hue-rotate(360deg);
      }
  }

  .modern-footer {
      background: rgba(248, 249, 250, 0.45);
      color: #222;
      padding: 30px 0 15px 0;
      border-top: 1px solid #e5e7eb;
      font-family: 'Inter', Arial, sans-serif;
      transition: background 0.3s, color 0.3s;
      -webkit-backdrop-filter: blur(8px) saturate(120%);
      backdrop-filter: blur(8px) saturate(120%);
      box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.06);
      border-radius: 18px 18px 0 0;
  }

  [data-theme="dark"] .modern-footer {
      background: rgba(24, 26, 27, 0.92);
      color: #f3f4f6;
      border-top: 1px solid #23272a;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      box-shadow: none;
  }

  .modern-footer .footer-main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .modern-footer .footer-content-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 50%;
      margin-bottom: 0;
  }

  @media (max-width: 768px) {
      .modern-footer .footer-content-wrapper {
          flex-direction: column;
          align-items: center;
          gap: 15px;
      }
  }

  .modern-footer .footer-brand {
      text-align: left;
      width: auto;
      margin-bottom: 0;
      margin-top: 0;
      flex-shrink: 0;
  }

  @media (max-width: 768px) {
      .modern-footer .footer-brand {
          text-align: center;
          width: 100%;
      }
  }

  .modern-footer .footer-logo {
      font-size: 1.4rem;
      font-weight: 700;
      letter-spacing: 1px;
      color: inherit;
      display: block;
      margin-bottom: 8px;
  }

  .modern-footer .footer-tagline {
      font-size: 1.15rem;
      color: #6c757d;
      margin-bottom: 0;
  }

  [data-theme="dark"] .modern-footer .footer-tagline {
      color: #b0b3b8;
  }

  .modern-footer .footer-links-grid {
      display: flex;
      justify-content: flex-end;
      gap: 30px;
      width: auto;
      margin-bottom: 0;
      flex-wrap: wrap;
  }

  @media (max-width: 768px) {
      .modern-footer .footer-links-grid {
          justify-content: center;
          width: 100%;
          gap: 20px;
      }
  }

  .modern-footer .footer-links-col {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 140px;
      font-size: 1.08rem;
  }

  .modern-footer .footer-links-col a {
      color: var(--text-color);
      text-decoration: none;
      font-size: 16px;
      line-height: 1.75;
      position: relative;
      padding-left: 16px;
      transition: all 0.3s ease;
      display: inline-block;
  }

  .modern-footer .footer-links-col a::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 4px;
      height: 4px;
      background-color: var(--accent-color);
      border-radius: 50%;
      opacity: 0;
      transition: all 0.3s ease;
      transform: translateY(-50%) scale(0);
  }

  .modern-footer .footer-links-col a:hover::before {
      opacity: 1;
      transform: translateY(-50%) scale(1);
  }

  .modern-footer .footer-links-col a:hover {
      color: var(--accent-color);
      padding-left: 20px;
  }

  .modern-footer .footer-logo-container {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 8px;
  }

  .modern-footer .footer-logo-icon {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
      transform: translateY(4px);
      filter: drop-shadow(0 2px 4px rgba(244, 67, 54, 0.3));
  }

  [data-theme="dark"] .modern-footer .footer-logo {
      color: #f3f4f6;
  }

  [data-theme="dark"] .modern-footer .footer-logo-icon {
      filter: drop-shadow(0 2px 4px rgba(255, 185, 0, 0.4)) brightness(1.1);
  }

  .footer-main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 16px;
  }

  .footer-content-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 50%;
      margin-bottom: 0;
  }

  .footer-brand {
      margin-bottom: 20px;
  }

  .footer-logo {
      font-size: 2rem;
      font-weight: 700;
      color: #9da0a4;
      display: block;
      margin-bottom: 8px;
      letter-spacing: -0.5px;
  }

  .footer-logo-icon {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
      transform: translateY(4px);
      filter: drop-shadow(0 2px 4px rgba(244, 67, 54, 0.3));
  }

  .footer-logo-container {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 8px;
  }

  [data-theme="dark"] .footer-logo-icon {
      filter: drop-shadow(0 2px 4px rgba(255, 185, 0, 0.4)) brightness(1.1);
  }

  .footer-tagline {
      font-size: 1.1rem;
      color: #9ca3af;
      margin: 0;
      font-weight: 400;
  }

  .footer-links-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1.5fr;
      gap: 30px;
      margin-bottom: 25px;
      align-items: start;
  }

  .footer-links-col {
      display: flex;
      flex-direction: column;
      gap: 10px;
  }

  .footer-links-col a {
      color: var(--text-color);
      text-decoration: none;
      font-size: 16px;
      line-height: 1.75;
      position: relative;
      padding-left: 16px;
      transition: all 0.3s ease;
      display: inline-block;
  }

  .footer-links-col a::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 4px;
      height: 4px;
      background-color: var(--accent-color);
      border-radius: 50%;
      opacity: 0;
      transition: all 0.3s ease;
      transform: translateY(-50%) scale(0);
  }

  .footer-links-col a:hover::before {
      opacity: 1;
      transform: translateY(-50%) scale(1);
  }

  .footer-links-col a:hover {
      color: var(--accent-color);
      padding-left: 20px;
  }

  .footer-bottom {
      padding-top: 15px;
      border-top: 1px solid rgba(107, 114, 128, 0.2);
      text-align: center;
  }

  .footer-bottom span {
      color: #9ca3af;
      font-size: 0.95rem;
      font-weight: 400;
  }

  .modern-footer .status-dot {
      display: inline-block;
      width: 12px;
      height: 12px;
      background: #b6f34a;
      border-radius: 50%;
      margin-right: 10px;
      border: 2px solid #e5e7eb;
  }

  [data-theme="dark"] .modern-footer .status-dot {
      border: 2px solid #23272a;
  }

  .modern-footer .footer-bottom {
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
      justify-content: flex-end;
      align-items: center;
      font-size: 0.92rem;
      color: #6c757d;
      margin-top: 0px;
      min-height: 32px;
  }

  [data-theme="dark"] .modern-footer .footer-bottom {
      color: #b0b3b8;
  }

  .modern-footer .footer-bottom a {
      color: #6c757d;
      text-decoration: none;
      transition: color 0.2s;
      font-size: 0.92rem;
      font-weight: 400;
      letter-spacing: 0.01em;
  }

  [data-theme="dark"] .modern-footer .footer-bottom a {
      color: #b0b3b8;
  }

  .modern-footer .footer-bottom a:hover {
      color: #F44336;
  }

  [data-theme="dark"] .modern-footer .footer-bottom a:hover {
      color: #ffb900;
  }

  @media (max-width: 900px) {
      .modern-footer .footer-links-grid {
          gap: 40px;
      }
  }

  /* ===== Footer V2 Enhancements ===== */
  .footer-v2 {
      position: relative;
      overflow: hidden;
  }

  /* === Utility classes extracted from subpages (docs/privacy/terms) === */
  .accent-heading {
      color: var(--accent-color);
      font-weight: 700;
      font-size: 1.25rem;
  }

  .mt-reset {
      margin-top: 0;
  }

  .spaced-list {
      margin: 20px 0;
      padding-left: 20px;
  }

  .accent-link {
      color: var(--accent-color);
      text-decoration: none;
  }

  .accent-link:hover {
      text-decoration: underline;
  }

  .strong-link {
      font-weight: 600;
  }

  .footer-v2 .footer-main {
      max-width: 1240px;
      padding: 56px 32px 40px;
  }

  .footer-v2 .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 48px 40px;
      width: 100%;
  }

  .footer-v2 .footer-section {
      min-width: 0;
  }

  .footer-v2 .footer-logo-row {
      display: flex;
      gap: 16px;
      align-items: center;
      margin-bottom: 10px;
  }

  .footer-v2 .official-footer-logo {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      object-fit: cover;
      box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4);
      background: #1f1f1f;
  }

  [data-theme="light"] .footer-v2 .official-footer-logo {
      background: #fff;
      box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .25);
  }

  .footer-v2 .brand-text-stack {
      display: flex;
      flex-direction: column;
      gap: 4px;
  }

  .footer-v2 .accent-dot {
      color: var(--accent-color);
  }

  .footer-v2 .footer-logo-text {
      font-size: 1.4rem;
      font-weight: 700;
      letter-spacing: .5px;
  }

  .footer-v2 .footer-status-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: .7rem;
      padding: 4px 9px;
      background: linear-gradient(145deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.08));
      color: #0f4f35;
      border: 1px solid #2e6b54;
      border-radius: 999px;
      font-weight: 500;
      letter-spacing: .5px;
      -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 4px 8px -4px rgba(0, 0, 0, 0.35);
  }

  .footer-v2 .pulse-dot {
      width: 10px;
      height: 10px;
      background: #22c55e;
      border-radius: 50%;
      position: relative;
      display: inline-block;
      box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
      animation: pulse-green 1.25s ease-out infinite;
      transform: translateX(-1px);
  }

  .footer-v2 .pulse-dot::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 50%;
      box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
      animation: pulse-green-ring 1.25s ease-out infinite;
  }

  @keyframes pulse-green {
      0% {
          box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
          transform: scale(1);
      }

      60% {
          box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
          transform: scale(.9);
      }

      100% {
          box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
          transform: scale(1);
      }
  }

  @keyframes pulse-green-ring {
      0% {
          transform: scale(.4);
          opacity: .9;
      }

      60% {
          transform: scale(1.9);
          opacity: 0;
      }

      100% {
          transform: scale(.4);
          opacity: 0;
      }
  }

  .footer-v2 .footer-heading {
      font-size: .85rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin: 0 0 14px;
      font-weight: 600;
      opacity: .75;
  }

  .footer-v2 .footer-tagline {
      font-size: .9rem;
      max-width: 260px;
      line-height: 1.5;
      margin: 4px 0 0;
  }

  .footer-v2 .footer-link-list,
  .footer-v2 .footer-social-list,
  .footer-v2 .footer-meta-links {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
  }

  .footer-v2 .footer-link-list a,
  .footer-v2 .footer-social-list a,
  .footer-v2 .footer-meta-links a {
      position: relative;
      color: var(--text-color);
      text-decoration: none;
      font-size: .9rem;
      padding-left: 0;
      transition: color .25s, transform .25s;
      display: inline-flex;
      align-items: center;
      gap: 8px;
  }

  .footer-v2 .footer-link-list a:before,
  .footer-v2 .footer-meta-links a:before {
      content: "";
      position: absolute;
      left: -14px;
      top: 50%;
      width: 6px;
      height: 6px;
      background: var(--accent-color);
      border-radius: 50%;
      transform: translateY(-50%) scale(0);
      transition: transform .3s cubic-bezier(.65, .05, .36, 1);
  }

  .footer-v2 .footer-link-list a:hover:before,
  .footer-v2 .footer-meta-links a:hover:before {
      transform: translateY(-50%) scale(1);
  }

  .footer-v2 .footer-link-list a:hover,
  .footer-v2 .footer-meta-links a:hover {
      color: var(--accent-color);
      transform: translateX(4px);
  }

  .footer-v2 .footer-social-list a {
      font-weight: 500;
  }

  .footer-v2 .footer-social-list a i {
      font-size: 1rem;
      opacity: .85;
      transition: opacity .25s, transform .25s;
  }

  .footer-v2 .footer-social-list a:hover i {
      opacity: 1;
      transform: scale(1.15) rotate(-5deg);
  }

  .footer-v2 .footer-cta {
      display: flex;
      flex-direction: column;
      gap: 14px;
  }

  .footer-v2 .footer-cta-button {
      display: inline-block;
      background: linear-gradient(135deg, var(--cta-color) 0%, var(--cta-hover) 55%, var(--cta-accent) 100%);
      color: #fff;
      padding: 11px 22px;
      border-radius: 14px;
      font-size: .82rem;
      font-weight: 600;
      text-decoration: none;
      letter-spacing: .55px;
      box-shadow: 0 5px 18px -6px var(--cta-glow), 0 2px 4px -2px rgba(0, 0, 0, .35);
      border: 1px solid rgba(255, 255, 255, 0.18);
      position: relative;
      overflow: hidden;
      -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
  }

  .footer-v2 .footer-cta-button:before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0) 35%);
      opacity: 0;
      transition: opacity .4s;
  }

  .footer-v2 .footer-cta-button:hover:before {
      opacity: 1;
  }

  .footer-v2 .footer-cta-button:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 32px -8px var(--cta-glow), 0 4px 10px -4px rgba(0, 0, 0, .4);
  }

  .footer-v2 .footer-cta-button:focus-visible {
      outline: 2px solid #ffffff;
      outline-offset: 3px;
      box-shadow: 0 0 0 4px var(--cta-glow);
  }

  .footer-v2 .footer-mini-copy {
      font-size: .8rem;
      line-height: 1.5;
      opacity: .8;
      max-width: 240px;
  }

  .footer-v2 .footer-mini-copy-standalone {
      display: none;
  }

  .footer-v2 .footer-mini-copy-alt {
      font-size: .8rem;
      line-height: 1.5;
      opacity: .8;
      max-width: 240px;
      margin: 0;
  }

  .footer-v2 .footer-bottom-row {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: space-between;
      align-items: center;
      margin-top: 50px;
      padding-top: 20px;
      border-top: 1px solid rgba(120, 120, 120, .25);
      width: 100%;
  }

  .footer-v2 .copyright {
      margin: 0;
      font-size: .75rem;
      letter-spacing: .5px;
      opacity: .7;
  }

  .footer-v2 .heart {
      display: inline-block;
      animation: beat 1.6s infinite ease-in-out;
      transform-origin: center;
  }

  @keyframes beat {

      0%,
      100% {
          transform: scale(1);
      }

      50% {
          transform: scale(1.25);
      }
  }

  .footer-v2 .footer-meta-links {
      flex-direction: row;
      gap: 18px;
  }

  .footer-v2 .footer-meta-links a {
      font-size: .75rem;
      opacity: .75;
  }

  .footer-v2 .footer-meta-links a:hover {
      opacity: 1;
  }

  [data-theme="dark"] .footer-v2 .footer-status-chip {
      background: linear-gradient(145deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.12));
      color: #d1fae5;
      border: 1px solid #34a36a;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 4px 10px -5px rgba(0, 0, 0, 0.5);
  }

  @media (prefers-reduced-motion: reduce) {

      .footer-v2 .pulse-dot,
      .footer-v2 .pulse-dot::after {
          animation: none !important;
          box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
      }
  }

  [data-theme="dark"] .footer-v2 .footer-cta-button {
      background: linear-gradient(140deg, var(--cta-color) 0%, var(--cta-hover) 45%, var(--cta-accent) 100%);
  }

  [data-theme="dark"] .footer-v2 .footer-mini-copy {
      opacity: .65;
  }

  @media (max-width:920px) {
      .footer-v2 .footer-grid {
          gap: 44px 32px;
      }
  }

  @media (max-width:820px) {
      .footer-v2 .footer-grid {
          gap: 40px 28px;
      }
  }

  @media (max-width:720px) {
      .footer-v2 .footer-grid {
          gap: 38px 26px;
      }
  }

  @media (max-width:640px) {
      .footer-v2 .footer-main {
          padding: 48px 22px 34px;
      }

      .footer-v2 .footer-grid {
          grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
          gap: 34px 24px;
      }

      .footer-v2 .footer-bottom-row {
          flex-direction: column;
          align-items: center;
          justify-content: center;
          text-align: center;
          gap: 14px;
      }

      .footer-v2 .footer-meta-links {
          justify-content: center;
      }
  }

  /* Small tablets / large phones */
  @media (max-width:560px) {

      /* Reduce required column min width so first nav column (Explore) doesn't squeeze & wrap awkwardly */
      .footer-v2 .footer-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 26px 18px;
          align-items: start;
      }

      .footer-v2 .footer-brand-block {
          grid-column: 1/-1;
          text-align: center;
      }

      .footer-v2 .footer-logo-row {
          justify-content: center;
      }

      .footer-v2 .footer-status-chip {
          margin: 0 auto;
      }

      /* Use full width for Connect row to avoid empty space */
      .footer-v2 .footer-social {
          grid-column: 1/-1;
      }

      .footer-v2 .footer-social-list {
          flex-direction: row;
          flex-wrap: wrap;
          justify-content: center;
          gap: 10px 16px;
      }

      /* Slightly denser layout for social items so they fit nicely in a row */
      .footer-v2 .footer-social-list a {
          padding: 6px 10px;
      }

      /* Make CTA full-width and center its content for consistent alignment */
      .footer-v2 .footer-cta {
          grid-column: 1/-1;
          align-items: center;
          text-align: center;
      }

      .footer-v2 .footer-cta-button {
          width: 100%;
          max-width: 420px;
          display: block;
          text-align: center;
          margin: 0 auto;
      }

      /* Keep descriptive copy inside CTA on small screens; hide standalone copy */
      .footer-v2 .footer-mini-copy-standalone {
          display: none;
      }

      .footer-v2 .footer-cta .footer-mini-copy {
          display: block;
          max-width: 520px;
          margin: 0 auto;
      }

      /* Allow wrapping to avoid overflow */
      .footer-v2 .footer-tagline {
          max-width: 100%;
          white-space: normal;
          font-size: .82rem;
      }

      /* Remove decorative bullets that can misalign compact layouts */
      .footer-v2 .footer-link-list a:before,
      .footer-v2 .footer-meta-links a:before {
          display: none;
      }
  }

  /* Phones */
  @media (max-width:420px) {
      .footer-v2 .footer-grid {
          grid-template-columns: 1fr 1fr;
          gap: 24px 16px;
      }

      .footer-v2 .footer-cta {
          grid-column: 1/-1;
      }
  }

  /* Very small phones */
  @media (max-width:360px) {
      .footer-v2 .footer-grid {
          grid-template-columns: 1fr;
      }

      .footer-v2 .footer-section,
      .footer-v2 .footer-cta,
      .footer-v2 .footer-brand-block {
          text-align: center;
      }

      .footer-v2 .footer-link-list,
      .footer-v2 .footer-social-list {
          align-items: center;
      }

      .footer-v2 .footer-bottom-row {
          align-items: center;
      }

      .footer-v2 .footer-meta-links {
          flex-wrap: wrap;
          justify-content: center;
      }

      /* Allow wrapping again on very small phones to prevent overflow */
      .footer-v2 .footer-tagline {
          white-space: normal;
      }
  }

  /* Mobile-friendly slimmer CTA button (override earlier full-width) */
  @media (max-width:560px) {
      .footer-v2 .footer-cta-button {
          width: auto !important;
          max-width: none !important;
          padding: 10px 20px !important;
          display: inline-block !important;
      }
  }

  @media (max-width: 600px) {
      .modern-footer .footer-main {
          padding: 0 8px;
      }

      .modern-footer .footer-links-grid {
          flex-direction: column;
          gap: 24px;
          align-items: center;
      }

      .modern-footer .footer-brand {
          text-align: center;
      }

      .modern-footer .footer-logo-container {
          justify-content: center;
      }

      .modern-footer .footer-logo {
          font-size: 1rem;
      }

      .modern-footer .footer-logo-icon {
          width: 28px;
          height: 28px;
      }
  }

  .modern-footer .footer-main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .modern-footer .footer-brand {
      text-align: left;
      width: 100%;
      margin-bottom: 32px;
  }

  .modern-footer .footer-logo-container {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 8px;
  }

  .modern-footer .footer-logo {
      font-size: 1.4rem;
      font-weight: 700;
      letter-spacing: 1px;
      color: #222;
      margin-bottom: 0;
  }

  .modern-footer .footer-logo-icon {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
      transform: translateY(4px);
      filter: drop-shadow(0 2px 4px rgba(244, 67, 54, 0.3));
  }

  [data-theme="dark"] .modern-footer .footer-logo {
      color: #f3f4f6;
  }

  [data-theme="dark"] .modern-footer .footer-logo-icon {
      filter: drop-shadow(0 2px 4px rgba(255, 185, 0, 0.4)) brightness(1.1);
  }

  .modern-footer .footer-tagline {
      font-size: 1rem;
      color: #6c757d;
      margin-bottom: 0;
  }

  .modern-footer .footer-links-grid {
      display: flex;
      justify-content: right;
      gap: 30px;
      width: 100%;
      margin-bottom: 10px;
      flex-wrap: wrap;
  }

  .modern-footer .footer-links-col {
      display: flex;
      flex-direction: column;
      gap: 16px;
      min-width: 140px;
      font-size: 1.08rem;
  }

  .modern-footer .footer-links-col a {
      color: var(--text-color);
      text-decoration: none;
      font-size: 16px;
      line-height: 1.75;
      position: relative;
      padding-left: 16px;
      transition: all 0.3s ease;
      display: inline-block;
  }

  .modern-footer .footer-links-col a::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 4px;
      height: 4px;
      background-color: var(--accent-color);
      border-radius: 50%;
      opacity: 0;
      transition: all 0.3s ease;
      transform: translateY(-50%) scale(0);
  }

  .modern-footer .footer-links-col a:hover::before {
      opacity: 1;
      transform: translateY(-50%) scale(1);
  }

  .modern-footer .footer-links-col a:hover {
      color: var(--accent-color);
      padding-left: 20px;
  }

  .modern-footer .footer-status {
      margin: 32px 0 18px 0;
      font-size: 1rem;
      color: #222;
      display: flex;
      align-items: center;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      padding: 8px 18px;
      font-weight: 500;
  }

  .modern-footer .status-dot {
      display: inline-block;
      width: 12px;
      height: 12px;
      background: #b6f34a;
      border-radius: 50%;
      margin-right: 10px;
      border: 2px solid #e5e7eb;
  }

  .modern-footer .footer-bottom {
      display: flex;
      flex-wrap: wrap;
      gap: 24px;
      justify-content: center;
      align-items: center;
      font-size: 1rem;
      color: #6c757d;
      margin-top: 18px;
  }

  .modern-footer .footer-bottom a {
      color: #6c757d;
      text-decoration: none;
      transition: color 0.2s;
  }

  .modern-footer .footer-bottom a:hover {
      color: #F44336;
  }

  @media (max-width: 900px) {
      .modern-footer .footer-links-grid {
          gap: 40px;
      }
  }

  @media (max-width: 600px) {
      .modern-footer .footer-main {
          padding: 0 8px;
      }

      .modern-footer .footer-links-grid {
          flex-direction: column;
          gap: 24px;
          align-items: center;
      }

      .modern-footer .footer-brand {
          text-align: center;
      }
  }
