   
      /* --- CORE THEME VARIABLES (DARK MODE - Default) --- */
      :root {
        --bg-main: #0a0a0c; /* Darker background for contrast */
        --bg-card: #18181a;
        --color-primary: #3b82f6; /* Standard Blue Accent */
        --color-secondary: #8b5cf6; /* Soft Purple Accent */
        --color-text: #e5e7eb;
        --color-muted: #9ca3af;
        --border-color: rgba(255, 255, 255, 0.1);
        --shadow-primary: 0 5px 20px rgba(59, 130, 246, 0.2);
        --font-body: "Inter", sans-serif;
      }

      /* --- LIGHT MODE VARIABLES --- */
      [data-theme="light"] {
        --bg-main: #f9fafb;
        --bg-card: #ffffff;
        --color-primary: #2563eb;
        --color-secondary: #7c3aed;
        --color-text: #1f2937;
        --color-muted: #6b7280;
        --border-color: #e5e7eb;
        --shadow-primary: 0 5px 15px rgba(0, 0, 0, 0.1);
      }

      /* --- GLOBAL STYLES --- */
      body {
        background-color: var(--bg-main);
        color: var(--color-text);
        font-family: var(--font-body);
        transition: background-color 0.5s, color 0.5s;
        overflow-x: hidden;
        min-height: 100vh;
        position: relative;
      }

      h1,
      h2,
      h3,
      h4,
      .navbar-brand {
        font-family: var(--font-body);
        font-weight: 700;
      }

      .section-padding {
        padding: 80px 0;
      }

      .gradient-text {
        background: linear-gradient(
          90deg,
          var(--color-primary),
          var(--color-secondary));
        
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      /* --- BACKGROUND CANVAS (Wavy Grid) --- */
      #bg-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        opacity: 0.8;
        /* Ensures canvas covers the viewport for the background effect */
      }
      
     /* --- LOADING OVERLAY (ORION Animation) --- */ 
      #loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--bg-main);
        z-index: 10000;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden; /* Important for animation */
      }

      #loading-text {
        font-size: 10vw; /* Very large text that scales */
        font-weight: 900;
        opacity: 0; /* Starts hidden, GSAP controls visibility */
        /* Ensure the text color is always the primary accent for boldness */
        color: var(--color-primary);
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.5); /* Subtle glow */
        letter-spacing: 0.1em;
      }

      /* General styles (Same as before) */

      .navbar {
        background: var(--bg-main);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--border-color);
        transition: background 0.5s, border-bottom 0.5s;
      }
      .nav-link {
        color: var(--color-text) !important;
        transition: color 0.3s;
      }
      .nav-link:hover {
        color: var(--color-primary) !important;
      }

      #theme-toggle-btn {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        color: var(--color-text);
        padding: 8px 12px;
        border-radius: 8px;
        transition: all 0.3s;
      }
      #theme-toggle-btn:hover {
        color: var(--color-primary);
        border-color: var(--color-primary);
      }

      .custom-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 2rem;
        height: 100%;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
          0 2px 4px -2px rgba(0, 0, 0, 0.1);
      }
      [data-theme="light"] .custom-card {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
          0 2px 4px -2px rgba(0, 0, 0, 0.05);
      }

      .custom-card:hover {
        box-shadow: var(--shadow-primary);
        border-color: var(--color-primary);
        transform: translateY(-5px);
      }

      .feature-icon {
        font-size: 2rem;
        color: var(--color-primary);
        margin-bottom: 1rem;
      }

      .magnetic-btn {
        display: inline-block;
        padding: 15px 30px;
        border: 2px solid var(--color-primary);
        color: var(--color-primary);
        font-weight: 700;
        border-radius: 50px;
        position: relative;
        z-index: 1;
        overflow: hidden;
        transition: color 0.3s, transform 0.1s;
      }

      .magnetic-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--color-primary);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease-out;
        z-index: -1;
      }

      .magnetic-btn:hover {
        color: var(--bg-main);
      }
      .magnetic-btn:hover::before {
        transform: scaleX(0.5);
      }

      .blog-card {
        display: block;
        text-decoration: none !important;
        color: var(--color-text);
      }

      .blog-card-img-container {
        height: 180px;
        overflow: hidden;
        border-radius: 8px;
        margin-bottom: 1rem;
        position: relative;
      }

      .blog-card-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
      }

      .blog-card:hover img {
        transform: scale(1.1);
      }

      .hero-image-placeholder {
        height: 400px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        
        background-size: cover;
        background-position: center;
      }

      /* Fixed text color styles */
      .text {
        color: var(--color-text);
      }

      .text-muted {
        color: var(--color-muted) !important;
      }

      .accordion-body {
        color: var(--color-muted);
      }

      .form-label {
        color: var(--color-text);
      }

      .form-control {
        background-color: var(--bg-card);
        border-color: var(--border-color);
        color: var(--color-text);
      }

      .form-control:focus {
        background-color: var(--bg-card);
        border-color: var(--color-primary);
        color: var(--color-text);
        box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
      }

      .accordion-button {
        color: var(--color-text);
      }

      .accordion-button:not(.collapsed) {
        background-color: var(--bg-card);
        color: var(--color-primary);
      }

      .accordion-button:focus {
        box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
        border-color: var(--color-primary);
      }

      ul li {
        color: var(--color-text);
      }

      .project-img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        transition: transform 0.5s ease;
      }

      .custom-card:hover .project-img {
        transform: scale(1.05);
      }
      .tech-tag {
        display: inline-block;
        background: rgba(59, 130, 246, 0.1);
        color: var(--color-primary);
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        margin: 0.2rem;
        border: 1px solid rgba(59, 130, 246, 0.3);
      }
           .logo-marquee { width: 100%; }
          .logo-track { display: flex; align-items: center; gap: 24px; will-change: transform; }
          .logo-track .client-item { flex: 0 0 auto; }
          /* make logos a bit smaller on small screens */
          @media (max-width: 576px) {
        .logo-track .client-item { width: 110px; }
        .logo-track img { width: 90px; height: 36px; }
          }
          .hero-layered-2 {
            overflow: visible;
            position: relative; /* ensure absolute children center relative to this container */
          }

          /* Shared layer sizing & centering so both layers perfectly overlap */
          .hero-layered-2 .layer {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            will-change: transform;
            transition: transform .25s ease, filter .25s ease;
            display: block;
            user-select: none;
            pointer-events: none;

            /* same size for both layers */
            width: 100%;
            max-width: 500px;
            border-radius: 12px;
            height: 100%; /* ensure both layers exactly match the container height */
          }

          /* Base layer floats subtly */
          .hero-layered-2 .layer.base {
            z-index: 1;
            box-shadow: 0 18px 40px rgba(10, 10, 20, 0.35);
            filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
            animation: heroFloatBase 8s ease-in-out infinite;
            animation-delay: -2s; /* offset phase from overlay */
          }

          /* Overlay layer sits exactly over base (same size/center) */
          .hero-layered-2 .layer.overlay {
            z-index: 2;
            mix-blend-mode: screen;
            animation: heroFloatOverlay 6s ease-in-out infinite;
            animation-delay: 0s;
          }

          /* Floating animations keep the same centered transform baseline */
          @keyframes heroFloatOverlay {
            0%   { transform: translate(-50%, -50%) translateY(0) rotate(-1deg) scale(1); }
            25%  { transform: translate(-50%, -50%) translateY(-6px) rotate(1deg) scale(1.01); }
            50%  { transform: translate(-50%, -50%) translateY(-12px) rotate(-1deg) scale(1); }
            75%  { transform: translate(-50%, -50%) translateY(-6px) rotate(1deg) scale(1.01); }
            100% { transform: translate(-50%, -50%) translateY(0) rotate(-1deg) scale(1); }
          }

          @keyframes heroFloatBase {
            0%   { transform: translate(-50%, -50%) translateY(0) rotate(0.5deg) scale(1); }
            25%  { transform: translate(-50%, -50%) translateY(-4px) rotate(-0.3deg) scale(1.002); }
            50%  { transform: translate(-50%, -50%) translateY(-8px) rotate(0.5deg) scale(1); }
            75%  { transform: translate(-50%, -50%) translateY(-4px) rotate(-0.3deg) scale(1.002); }
            100% { transform: translate(-50%, -50%) translateY(0) rotate(0.5deg) scale(1); }
          }

          /* responsive tweak keeps both layers same (smaller) size */
          @media (max-width: 767px) {
            .hero-layered-2 { height: 300px; }
            .hero-layered-2 .layer { max-width: 320px; }
          }
          
    :root {
      --cursor-size: 24px;
      --cursor-color: #2b6ef5;
      --cursor-z: 99999;
    }

    /* hide native cursor where custom cursor is active */
    @media (hover: hover) and (pointer: fine) {
      body { cursor: none; }
    }

    .blue-cursor {
      position: fixed;
      left: 0;
      top: 0;
      width: var(--cursor-size);
      height: var(--cursor-size);
      background: var(--cursor-color);
      border-radius: 50%;
      pointer-events: none;
      transform: translate(-50%, -50%) scale(1);
      transition: transform 140ms cubic-bezier(.2,.9,.3,1), opacity 160ms;
      z-index: var(--cursor-z);
      mix-blend-mode: normal;
      box-shadow: 0 6px 18px rgba(43,110,245,0.25);
      will-change: transform, opacity;
    }

    .blue-cursor--hover {
      transform: translate(-50%, -50%) scale(2.2);
      box-shadow: 0 14px 36px rgba(43,110,245,0.22);
    }

    .blue-cursor--press {
      transform: translate(-50%, -50%) scale(0.85);
      opacity: 0.9;
    }

    /* subtle expanding ring animation */
    .blue-cursor::after {
      content: "";
      position: absolute;
      inset: calc(var(--cursor-size) / -2);
      border-radius: 50%;
      pointer-events: none;
    }

    @keyframes blueCursorRing {
      from { transform: scale(.6); opacity: .5; }
      to   { transform: scale(1.6); opacity: 0; }
    }

    .blue-cursor--ring::after {
      border: 2px solid rgba(43,110,245,0.22);
      animation: blueCursorRing 520ms ease-out forwards;
    }

    /* disable custom cursor on touch/small devices */
    @media (hover: none), (pointer: coarse) {
      .blue-cursor { display: none !important; }
      body { cursor: auto !important; }
    }
  