/*
Theme Name: Logickit
Theme URI: https://logickit.me
Author: logickit
Author URI: https://logickit.me
Description: A software-workspace themed one-page portfolio for logickit, styled like a Photoshop/Figma workspace with an iOS liquid-glass floating toolbar, layers panel, and a scroll-scrubbing timeline. Homepage content is built as a normal WordPress Page (edit with Elementor's HTML widget) — see README.txt for setup.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: logickit
*/

.grid-canvas {
    background-color: #0A0B0D;
    background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: -1px -1px;
  }

  ::selection { background: #3E7BFA; color: #0A0B0D; }
  html { scroll-behavior: smooth; }

  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: #0A0B0D; }
  ::-webkit-scrollbar-thumb { background: #2C313B; border-radius: 0px; border: 2px solid #0A0B0D; }
  ::-webkit-scrollbar-thumb:hover { background: #3E7BFA; }

  .liquid-glass {
    position: relative;
    background: rgba(255,255,255,0.055);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 12px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 0 0 1px rgba(255,255,255,0.03);
  }
  .liquid-glass::before {
    content: '';
    position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
  }

  .crop { position: relative; }
  .handle { width: 9px; height: 9px; background: #0A0B0D; border: 2px solid #3E7BFA; position: absolute; }

  @keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1);} 50% { opacity:.45; transform:scale(.8);} }
  .pulse { animation: pulse-dot 2s ease-in-out infinite; }

  [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pulse { animation: none; }
    [data-reveal] { transition: none; opacity: 1; transform: none; }
  }

  .marching-ants { outline: 1px dashed rgba(62,123,250,.9); outline-offset: 4px; }

  .tool-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: #B7BCC6; border-radius: 10px; transition: background .15s ease, color .15s ease; }
  .tool-btn:hover { background: rgba(255,255,255,0.08); color: #F4F5F7; }
  .tool-btn.active { background: rgba(62,123,250,0.22); color: #3E7BFA; }
  .tool-btn svg { width: 17px; height: 17px; }

  .layer-row { transition: background .15s ease; cursor: pointer; }
  .layer-row:hover { background: rgba(255,255,255,0.06); }
  .layer-row.active { background: rgba(255,106,61,0.14); }
  .layer-dot { width: 7px; height: 7px; border-radius: 999px; border: 1.5px solid #7D838F; flex-shrink:0; }
  .layer-row.active .layer-dot { background: #FF6A3D; border-color: #FF6A3D; }

  #drawOverlay, #textOverlay { touch-action: none; }
  #textOverlay [contenteditable] { pointer-events: auto; }

  #canvasContent { transform-origin: 50% 50%; }

  .drag-handle { cursor: grab; }
  .drag-handle:active { cursor: grabbing; }

  input[type="color"].sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

  .eq-bar { animation: eq 1.4s ease-in-out infinite; transform-origin: bottom; }
  @keyframes eq { 0%,100% { transform: scaleY(0.3);} 50% { transform: scaleY(1);} }
