/* DESIGN SYSTEM — Clean Studio White & Liquid Glass */
    :root {
      --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
      --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
      --container-width: 1200px;
      
      /* Light: warm studio gray inspired by Behance CV layouts */
      --bg: #f3f6fc;
      --bg-rgb: 243, 246, 252;
      --bg-top: #f8fafc;
      --bg-top-rgb: 248, 250, 252;
      --bg-bottom: #e8f0fe;
      --bg-bottom-rgb: 232, 240, 254;
      --bg-gradient: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
      --surface: rgba(255, 255, 255, 0.68);
      --surface-opaque: #ffffff;
      --surface-hover: rgba(255, 255, 255, 0.92);
      --line: rgba(0, 0, 0, 0.06);
      --line-highlight: rgba(255, 255, 255, 0.85);
      --text: #111113;
      --muted: #6e6e73;
      
      /* Accents: soft warm tones */
      --accent: #1d1d1f;
      --accent-rgb: 29, 29, 31;
      --accent-2: #7c5cfc;
      --accent-2-rgb: 124, 92, 252;
      
      /* Google Keynote 2026 Colors - Gemini 3.5 Aurora Spectrum */
      --google-blue: #4285F4;
      --google-purple: #9B72CB;
      --google-red: #7C5CFC;
      --google-yellow: #60A5FA;
      --google-green: #A78BFA;
      
      /* Liquid Glass Shadows */
      --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
      --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 36px rgba(0, 0, 0, 0.06);
      --shadow-widget: 0 4px 16px rgba(0, 0, 0, 0.05), 0 24px 48px rgba(0, 0, 0, 0.08);
      
      --blur-glass: blur(28px) saturate(190%);
      --radius-lg: 28px;
      --radius-md: 18px;
      
      --transition-fluid: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    body[data-theme="dark"] {
      --bg: #030712;
      --bg-rgb: 3, 7, 18;
      --bg-top: #090e1a;
      --bg-top-rgb: 9, 14, 26;
      --bg-bottom: #03050c;
      --bg-bottom-rgb: 3, 5, 12;
      --bg-gradient: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
      --surface: rgba(28, 28, 30, 0.72);
      --surface-opaque: #1c1c1e;
      --surface-hover: rgba(44, 44, 46, 0.85);
      --line: rgba(255, 255, 255, 0.08);
      --line-highlight: rgba(255, 255, 255, 0.14);
      --text: #f5f5f7;
      --muted: #86868b;
      
      --accent: #f5f5f7;
      --accent-rgb: 245, 245, 247;
      --accent-2: #a78bfa;
      --accent-2-rgb: 167, 139, 250;
      
      --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
      --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3), 0 24px 64px rgba(0, 0, 0, 0.4);
      --shadow-widget: 0 8px 32px rgba(0, 0, 0, 0.4), 0 32px 80px rgba(0, 0, 0, 0.5);
    }

    /* GENERAL RESET & SECTIONS */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    @media (hover: hover) and (pointer: fine) {
      * {
        cursor: none !important;
      }
      .custom-cursor, .custom-cursor-ring {
        display: block;
      }
    }
    @media (hover: none) or (pointer: coarse) {
      * {
        cursor: auto !important;
      }
      a, button, select, input, textarea, [role="button"], .work-card, .btn, .nav-link, .lang-btn, .theme-btn, .project-gallery-item {
        cursor: pointer !important;
      }
      .custom-cursor, .custom-cursor-ring {
        display: none !important;
      }
    }
    
    /* 3D Parallax GPU Motion optimization class — completely disabled transition during mouse movement */
    .parallax-moving,
    .parallax-moving *,
    .parallax-moving > * {
      transition: none !important;
    }
    
    html {
      scroll-behavior: smooth;
      scroll-padding-top: 90px;
    }
    
    body {
      background: var(--bg);
      background-image: var(--bg-gradient);
      color: var(--text);
      font-family: var(--font-sans);
      font-size: 16px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      transition: background-color var(--transition-fluid), color var(--transition-fluid);
      overflow-x: hidden;
      min-height: 100vh;
    }

    /* ONE UI 8.5 VIEWPORT EDGE FADES */
    .viewport-edge-fade-top, .viewport-edge-fade-bottom {
      position: fixed;
      left: 0;
      right: 0;
      pointer-events: none;
      z-index: 99;
    }
    .viewport-edge-fade-top {
      top: 0;
      height: 120px;
      opacity: 0;
      background: linear-gradient(to bottom, var(--bg-top) 0%, rgba(var(--bg-top-rgb), 0) 100%);
    }
    .viewport-edge-fade-bottom {
      bottom: 0;
      height: 50px;
      opacity: 1;
      background: linear-gradient(to top, var(--bg-bottom) 0%, rgba(var(--bg-bottom-rgb), 0) 100%);
    }

    a {
      text-decoration: none !important;
      color: inherit;
    }

    /* CUSTOM DYNAMIC GLASS CURSOR */
    .custom-cursor {
      width: 8px;
      height: 8px;
      background-color: var(--accent);
      border-radius: 50%;
      position: fixed;
      left: 0;
      top: 0;
      transform: translate3d(0, 0, 0) translate(-50%, -50%);
      pointer-events: none;
      z-index: 99999;
      transition: width 0.2s, height 0.2s, background-color var(--transition-fluid);
      will-change: transform;
    }

    .custom-cursor-ring {
      width: 40px;
      height: 40px;
      border: 1.5px solid rgba(var(--accent-rgb), 0.5);
      border-radius: 50%;
      position: fixed;
      left: 0;
      top: 0;
      transform: translate3d(0, 0, 0) translate(-50%, -50%);
      pointer-events: none;
      z-index: 99998;
      transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                  height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                  background-color 0.3s, 
                  border-color 0.3s;
      will-change: transform;
    }

    /* Cursor hover active states */
    .cursor-hovered .custom-cursor {
      width: 4px;
      height: 4px;
      background-color: #fff;
    }

    .cursor-hovered .custom-cursor-ring {
      width: 64px;
      height: 64px;
      background-color: rgba(var(--accent-rgb), 0.12);
      border-color: var(--accent);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
    }

    /* GRID LINES — hidden (legacy) */
    .stripe-grid-lines { display: none; }

    /* HERO AMBIENT GLOW BACKGROUND — flat, clean studio gradient */
    .stripe-hero-bg {
      position: absolute;
      inset: 0;
      z-index: -1;
      overflow: hidden;
      background: linear-gradient(180deg, #f2f2f2 0%, #e6e6e6 60%, var(--bg) 100%);
      transition: background var(--transition-fluid);
    }

    body[data-theme="dark"] .stripe-hero-bg {
      background: linear-gradient(180deg, #151518 0%, #0d0d10 60%, var(--bg) 100%);
    }

    .hero-ambient-glow {
      position: absolute;
      inset: 0;
      z-index: -2;
      pointer-events: none;
      background: radial-gradient(circle 500px at var(--glow-x, 50%) var(--glow-y, 50%), rgba(124, 92, 252, 0.1), transparent 80%);
      opacity: 0;
      transition: opacity 0.8s ease;
    }

    body[data-theme="dark"] .hero-ambient-glow {
      background: radial-gradient(circle 600px at var(--glow-x, 50%) var(--glow-y, 50%), rgba(167, 139, 250, 0.16), transparent 80%);
    }

    .hero:hover .hero-ambient-glow {
      opacity: 1;
    }

    .stripe-blob {
      position: absolute;
      filter: blur(120px);
      border-radius: 50%;
      will-change: opacity;
      opacity: 0.22;
      transition: background-color var(--transition-fluid);
    }

    /* Parent container for about section ambient blobs */
    .stripe-about-bg {
      position: absolute;
      inset: 0;
      z-index: -1;
      overflow: hidden;
      pointer-events: none;
    }

    body[data-theme="dark"] .stripe-blob {
      opacity: 0.08;
      filter: blur(140px);
    }

    /* Soft celestial blobs — premium Gemini tones */
    .stripe-blob-1 {
      width: 50vw; height: 50vw;
      background: #4285f4;
      top: -20%; left: -10%;
      animation: amb-1 20s infinite alternate ease-in-out;
    }
    .stripe-blob-2 {
      width: 40vw; height: 40vw;
      background: #9b72cb;
      top: -5%; right: 10%;
      animation: amb-2 26s infinite alternate ease-in-out;
    }
    .stripe-blob-3 {
      width: 35vw; height: 35vw;
      background: #7c5cfc;
      top: 10%; right: -5%;
      animation: amb-3 22s infinite alternate ease-in-out;
    }
    .stripe-blob-4 {
      width: 30vw; height: 30vw;
      background: #60a5fa;
      bottom: -15%; left: 15%;
      animation: amb-4 18s infinite alternate ease-in-out;
    }

    @keyframes amb-1 { 0%{transform:translate(0,0)}100%{transform:translate(5%,8%)} }
    @keyframes amb-2 { 0%{transform:translate(0,0)}100%{transform:translate(-6%,-5%)} }
    @keyframes amb-3 { 0%{transform:translate(0,0)}100%{transform:translate(4%,-7%)} }
    @keyframes amb-4 { 0%{transform:translate(0,0)}100%{transform:translate(-5%,6%)} }

    @keyframes google-keynote-gradient {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* SCROLL PROGRESS INDICATOR */
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 3px;
      background: linear-gradient(90deg, #4285f4 0%, #9b72cb 50%, #7c5cfc 100%);
      z-index: 1000;
      transition: width 0.1s ease-out;
    }

    /* SHELL GRID SETUP */
    .shell {
      width: min(var(--container-width), calc(100% - 48px));
      margin-inline: auto;
    }

    /* UTILITY LIQUID GLASS BUTTONS */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 28px;
      border-radius: var(--radius-md);
      font-family: var(--font-sans);
      font-size: 14px;
      font-weight: 600;
      border: 1px solid var(--line);
      background: var(--surface);
      color: var(--text);
      box-shadow: var(--shadow-inset), var(--shadow-card);
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
    }

    .btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
      pointer-events: none;
    }

    .btn:hover {
      border-color: rgba(var(--accent-rgb), 0.4);
      background: var(--surface-hover);
      box-shadow: var(--shadow-inset), 0 12px 28px rgba(0, 0, 0, 0.05);
      transform: translateY(-2px) scale(1.02);
    }

    .btn-primary {
      background: #1d1d1f;
      color: #fff;
      border-color: #1d1d1f;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), var(--shadow-card);
    }

    body[data-theme="dark"] .btn-primary {
      background: #f5f5f7;
      color: #111;
      border-color: #f5f5f7;
    }

    .btn-primary::before {
      background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%);
    }

    .btn-primary:hover {
      background: #7c5cfc;
      border-color: #7c5cfc;
      color: #fff;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 30px rgba(124, 92, 252, 0.25);
    }

    body[data-theme="dark"] .btn-primary:hover {
      background: #a78bfa;
      border-color: #a78bfa;
      color: #111;
    }

    /* LIQUID GLASS WIDGET PANELS (optimized: removed backdrop-filter from cards to yield 60fps scrolling) */
    .glass-widget {
      background: var(--surface);
      border: 1px solid var(--line);
      border-top-color: var(--line-highlight);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-inset), var(--shadow-widget);
      transition: transform var(--transition-fluid), box-shadow var(--transition-fluid), background var(--transition-fluid);
    }

    /* SITE NAVIGATION HEADER (Retains backdrop-filter as overlay) */
    .site-header {
      position: fixed;
      top: 20px;
      left: 0;
      right: 0;
      z-index: 100;
      transition: transform 0.4s ease, background 0.4s ease;
    }

    .site-header.scrolled {
      transform: translateY(-8px);
    }

    .topbar-widget {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
      padding: 0 24px;
      backdrop-filter: var(--blur-glass);
      -webkit-backdrop-filter: var(--blur-glass);
      position: relative;
    }

    .brand img {
      height: 18px;
      width: auto;
    }

    /* Hide logo based on theme using standard class */
    body[data-theme="light"] .logo-dark { display: none; }
    body[data-theme="light"] .logo-light { display: block; }
    body[data-theme="dark"] .logo-dark { display: block; }
    body[data-theme="dark"] .logo-light { display: none; }

    .nav {
      display: flex;
      background: rgba(var(--accent-rgb), 0.03);
      border: 1px solid var(--line);
      padding: 4px;
      border-radius: 50px;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }

    .nav a {
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
      padding: 8px 18px;
      border-radius: 50px;
      position: relative;
      z-index: 2;
      transition: color 0.2s;
    }

    .nav a.active, .nav a:hover {
      color: var(--text);
    }

    /* Sliding pill indicator for navigation */
    .nav-indicator {
      position: absolute;
      top: 4px;
      bottom: 4px;
      left: 4px;
      width: 0;
      background: var(--surface-opaque);
      box-shadow: var(--shadow-inset), 0 3px 8px rgba(0, 0, 0, 0.08);
      border-radius: 50px;
      z-index: 1;
      transition: all var(--transition-fluid);
      pointer-events: none;
    }

    /* Action widgets on the header right side */
    .header-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    /* iOS 26 Pill Language Switcher */
    .lang-pill-switch {
      background: rgba(var(--accent-rgb), 0.03);
      border: 1px solid var(--line);
      padding: 4px;
      border-radius: 50px;
      display: flex;
      position: relative;
    }

    .lang-btn {
      height: 32px;
      padding: 0 12px;
      font-size: 11px;
      font-weight: 800;
      border: none;
      background: none;
      color: var(--muted);
      z-index: 2;
      transition: color 0.2s;
      border-radius: 50px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: none !important;
    }

    .lang-btn.active {
      color: var(--text);
    }

    .flag-circle {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(var(--accent-rgb), 0.15);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
      flex-shrink: 0;
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .flag-circle svg {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .lang-btn:hover .flag-circle {
      transform: scale(1.15);
    }

    .lang-indicator {
      position: absolute;
      top: 4px;
      bottom: 4px;
      left: 4px;
      width: 0;
      background: var(--surface-opaque);
      box-shadow: var(--shadow-inset), 0 3px 8px rgba(0, 0, 0, 0.08);
      border-radius: 50px;
      z-index: 1;
      transition: all var(--transition-fluid);
    }

    /* iOS 26 Pill Theme Switcher */
    .theme-pill-switch {
      background: rgba(var(--accent-rgb), 0.03);
      border: 1px solid var(--line);
      padding: 4px;
      border-radius: 50px;
      display: flex;
      position: relative;
    }

    .theme-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: none;
      background: none;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      z-index: 2;
      transition: color 0.2s;
    }

    .theme-btn.active {
      color: var(--text);
    }

    .theme-indicator {
      position: absolute;
      top: 4px;
      bottom: 4px;
      left: 4px;
      width: 0;
      background: var(--surface-opaque);
      box-shadow: var(--shadow-inset), 0 3px 8px rgba(0, 0, 0, 0.08);
      border-radius: 50px;
      z-index: 1;
      transition: all var(--transition-fluid);
    }

    /* HERO SECTION — Behance-style centered visual-first */
    .hero {
      padding-top: 140px;
      padding-bottom: 60px;
      min-height: 100vh;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
    }

    .hero .shell {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }

    .hero-grid {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 100%;
      gap: 36px;
      position: relative;
      z-index: 2;
    }

    .hero-header-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      position: relative;
      z-index: 2;
      text-align: center;
    }

    .ios-status-badge {
      align-self: center;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 18px;
      border-radius: 40px;
      background: rgba(255,255,255,0.6);
      border: 1px solid rgba(0,0,0,0.06);
      font-size: 13px;
      font-weight: 700;
      color: #1d1d1f;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    body[data-theme="dark"] .ios-status-badge {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.1);
      color: #f5f5f7;
    }

    .pulse-dot {
      width: 8px;
      height: 8px;
      background-color: #34c759;
      border-radius: 50%;
      display: inline-block;
      box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
      animation: pulse-green 1.8s infinite;
    }

    @keyframes pulse-green {
      0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
      70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
      100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
    }

    @keyframes google-keynote-gradient {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    .hero-title {
      font-family: var(--font-display);
      font-size: clamp(38px, 6.5vw, 92px);
      font-weight: 900;
      line-height: 0.94;
      letter-spacing: -0.04em;
      color: var(--text);
      text-transform: uppercase;
      margin-bottom: 0;
    }

    .hero-title span {
      background: linear-gradient(90deg, var(--google-blue), var(--google-purple), var(--google-red), var(--google-yellow), var(--google-green), var(--google-blue));
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: google-keynote-gradient 15s ease infinite;
    }

    /* FULL-WIDTH CENTERED PORTRAIT ZONE (Redesigned for Scattered luxury orbits) */
    .hero-visual-wrapper {
      perspective: 1200px;
      display: flex;
      justify-content: center;
      align-items: flex-end;
      position: relative;
      width: 100%;
      max-width: 1100px;
      min-height: 520px;
      margin-top: -110px; /* True overlap on desktop */
      z-index: 5; /* Sit in front of text */
      pointer-events: none; /* Let pointer events pass through to header below if needed */
    }

    .parallax-scene {
      width: 100%;
      max-width: 1100px;
      height: 500px;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: none; /* Let pointer events pass through */
    }

    .liquid-portrait-card {
      position: absolute;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%) translateZ(30px);
      width: 100%;
      max-width: 440px;
      height: 100%;
      border-radius: 0;
      overflow: visible;
      border: none;
      background: none;
      box-shadow: none;
      transform-style: preserve-3d;
      display: flex;
      justify-content: center;
      align-items: flex-end;
      z-index: 5;
      pointer-events: none; /* Portrait image wrapper doesn't block events */
    }

    .liquid-portrait-card img {
      width: auto;
      height: 100%;
      max-height: 500px;
      object-fit: contain;
      transform: translateZ(30px);
      filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.18));
      transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter var(--transition-fluid);
      pointer-events: none;
    }

    /* Relocated Parallax Actions overlaying chest area */
    .hero-actions {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) translateZ(80px);
      z-index: 30;
      display: flex;
      gap: 16px;
      justify-content: center;
      pointer-events: auto; /* Enable click tracking on buttons */
      width: max-content;
    }

    .hero-actions .btn {
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    body[data-theme="dark"] .liquid-portrait-card img {
      filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.55));
    }

    /* DYNAMIC CARDLESS FLOATING ITEMS (PNGs with filter: drop-shadow) */
    .hero-floating-item {
      position: absolute;
      pointer-events: auto;
      z-index: 4;
      transform-style: preserve-3d;
      transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: transform;
    }

    .hero-floating-item img {
      width: 100%;
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.14));
      transition: filter var(--transition-fluid), transform 0.4s var(--transition-bounce);
    }

    body[data-theme="dark"] .hero-floating-item img {
      filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.45));
    }

    /* Target child images for organic rotations so LERP transforms do not override them */
    .item-notebook img {
      transform: rotate(-5deg);
    }
    .item-keyboard img {
      transform: rotate(-12deg);
    }
    .item-camera img {
      transform: rotate(8deg);
    }
    .item-mouse img {
      transform: rotate(15deg);
    }

    /* Smooth scale and maintain rotation on hover */
    .item-notebook:hover img {
      transform: scale(1.08) translateY(-5px) rotate(-3deg);
      filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.22));
    }
    .item-keyboard:hover img {
      transform: scale(1.08) translateY(-5px) rotate(-9deg);
      filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.22));
    }
    .item-camera:hover img {
      transform: scale(1.08) translateY(-5px) rotate(11deg);
      filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.22));
    }
    .item-mouse:hover img {
      transform: scale(1.08) translateY(-5px) rotate(18deg);
      filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.22));
    }

    body[data-theme="dark"] .hero-floating-item:hover img {
      filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
    }

    /* Scattered premium coordinates (Desktop) */
    .item-notebook {
      width: 125px;
      top: -4%;
      left: 16%;
    }

    .item-keyboard {
      width: 115px;
      bottom: -5%;
      left: 14%;
    }

    .item-camera {
      width: 110px;
      bottom: 5%;
      right: 5%;
    }

    .item-mouse {
      width: 65px;
      top: 2%;
      right: 18%;
    }

    /* OPERATING SYSTEM STYLE PREMIUM GLASS WIDGETS */
    /* OPERATING SYSTEM STYLE PREMIUM GLASS WIDGETS */
    .hero-widget-float-wrapper {
      transform-style: preserve-3d;
      will-change: transform;
      pointer-events: none;
    }

    .hero-widget-perspective-wrapper {
      transform-style: preserve-3d;
      perspective: 1000px;
      will-change: transform;
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: auto !important;
    }

    /* Pause float on hover */
    .hero-floating-item:hover .hero-widget-float-wrapper {
      animation-play-state: paused;
    }

    /* Float animations for hero widgets */
    .widget-call .hero-widget-float-wrapper {
      animation: hero-float-1 6s ease-in-out infinite alternate;
    }
    .widget-bio .hero-widget-float-wrapper {
      animation: hero-float-2 7s ease-in-out infinite alternate;
    }
    .widget-skills .hero-widget-float-wrapper {
      animation: hero-float-3 6.5s ease-in-out infinite alternate;
    }
    .widget-safari .hero-widget-float-wrapper {
      animation: hero-float-4 7.5s ease-in-out infinite alternate;
    }

    @keyframes hero-float-1 {
      0% { transform: translateY(0px); }
      100% { transform: translateY(-8px); }
    }
    @keyframes hero-float-2 {
      0% { transform: translateY(0px); }
      100% { transform: translateY(8px); }
    }
    @keyframes hero-float-3 {
      0% { transform: translateY(0px); }
      100% { transform: translateY(-7px); }
    }
    @keyframes hero-float-4 {
      0% { transform: translateY(0px); }
      100% { transform: translateY(6px); }
    }

    /* Flanking rotation skews for hero widgets */
    .widget-call .hero-widget-perspective-wrapper {
      transform: rotateY(16deg) rotateX(3deg) rotateZ(-2deg);
    }
    .widget-bio .hero-widget-perspective-wrapper {
      transform: rotateY(14deg) rotateX(-3deg) rotateZ(2deg);
    }
    .widget-skills .hero-widget-perspective-wrapper {
      transform: rotateY(-16deg) rotateX(3deg) rotateZ(2deg);
    }
    .widget-safari .hero-widget-perspective-wrapper {
      transform: rotateX(8deg);
    }

    /* Unfolding hover scaling/reset */
    .widget-call:hover .hero-widget-perspective-wrapper {
      transform: scale(1.03) rotateY(6deg) rotateX(1deg) rotateZ(-1deg) !important;
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
    }
    .widget-bio:hover .hero-widget-perspective-wrapper {
      transform: scale(1.03) rotateY(6deg) rotateX(-1deg) rotateZ(1deg) !important;
      box-shadow: 0 30px 60px rgba(124, 92, 252, 0.15);
    }
    .widget-skills:hover .hero-widget-perspective-wrapper {
      transform: scale(1.03) rotateY(-6deg) rotateX(1deg) rotateZ(1deg) !important;
      box-shadow: 0 30px 60px rgba(124, 92, 252, 0.15);
    }
    .widget-safari:hover .hero-widget-perspective-wrapper {
      transform: scale(1.03) rotateX(2deg) !important;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
    }

    .widget-call {
      width: 240px;
      top: 15%;
      left: 0%;
      z-index: 10;
    }
    .widget-call .hero-widget-perspective-wrapper {
      background: rgba(18, 18, 22, 0.82);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 40px;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      gap: 12px;
      color: #fff;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }
    body[data-theme="light"] .widget-call .hero-widget-perspective-wrapper {
      background: rgba(255, 255, 255, 0.82);
      border-color: rgba(0, 0, 0, 0.08);
      color: #111;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.65);
    }
    .widget-call .call-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      overflow: hidden;
      background: #3a3a3c;
      flex-shrink: 0;
    }
    .widget-call .call-text {
      display: flex;
      flex-direction: column;
      text-align: left;
      flex-grow: 1;
      line-height: 1.25;
    }
    .widget-call .call-name {
      font-size: 12px;
      font-weight: 700;
      font-family: var(--font-display);
    }
    .widget-call .call-status {
      font-size: 9.5px;
      color: #8e8e93;
      font-weight: 500;
    }
    .widget-call .call-actions {
      display: flex;
      gap: 6px;
    }
    .widget-call .call-btn {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: none !important;
      transition: transform 0.2s;
    }
    .widget-call .call-btn svg {
      width: 12px;
      height: 12px;
    }
    .widget-call .call-btn:hover {
      transform: scale(1.15);
    }
    .widget-call .btn-decline {
      background: #ff3b30;
      color: #fff;
    }
    .widget-call .btn-accept {
      background: #34c759;
      color: #fff;
    }

    .widget-bio {
      width: 210px;
      bottom: 12%;
      left: 2%;
      z-index: 9;
    }
    .widget-bio .hero-widget-perspective-wrapper {
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 24px;
      padding: 16px;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.7);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      text-align: left;
    }
    body[data-theme="dark"] .widget-bio .hero-widget-perspective-wrapper {
      background: rgba(28, 28, 30, 0.72);
      border-color: rgba(255, 255, 255, 0.08);
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .widget-bio .bio-title {
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--accent-2);
      margin-bottom: 6px;
      display: block;
    }
    .widget-bio .bio-desc {
      font-size: 10.5px;
      color: var(--muted);
      line-height: 1.4;
      margin-bottom: 12px;
      display: block;
      font-weight: 600;
    }
    .widget-bio .bio-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 8px 14px;
      background: #7c5cfc;
      color: #fff !important;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 700;
      text-align: center;
      transition: all 0.3s;
      box-shadow: 0 4px 12px rgba(124, 92, 252, 0.2);
    }
    .widget-bio .bio-btn:hover {
      background: #6244df;
      transform: translateY(-1px);
    }

    .widget-skills {
      width: 210px;
      top: 15%;
      right: 2%;
      z-index: 10;
      color: var(--text);
    }
    .widget-skills .hero-widget-perspective-wrapper {
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 24px;
      padding: 16px;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.7);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }
    body[data-theme="dark"] .widget-skills .hero-widget-perspective-wrapper {
      background: rgba(28, 28, 30, 0.72);
      border-color: rgba(255, 255, 255, 0.08);
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .widget-skills .skills-badge {
      display: inline-block;
      padding: 4px 10px;
      background: rgba(124, 92, 252, 0.12);
      border-radius: 20px;
      font-size: 9px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--accent-2);
      margin-bottom: 10px;
    }
    .widget-skills .skills-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      text-align: left;
    }
    .widget-skills .skill-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 11px;
      font-weight: 700;
      color: var(--text);
      padding: 6px 10px;
      background: rgba(124, 92, 252, 0.04);
      border-radius: 10px;
      transition: transform 0.2s, background 0.2s;
    }
    .widget-skills .skill-item:hover {
      background: rgba(124, 92, 252, 0.08);
      transform: translateX(2px);
    }
    body[data-theme="dark"] .widget-skills .skill-item {
      background: rgba(255, 255, 255, 0.04);
    }
    body[data-theme="dark"] .widget-skills .skill-item:hover {
      background: rgba(255, 255, 255, 0.08);
    }
    .skill-icon-micro {
      width: 16px;
      height: 16px;
      object-fit: contain;
      border-radius: 3px;
    }
    .skill-desc-tag {
      font-size: 8px;
      font-weight: 800;
      padding: 2px 6px;
      border-radius: 6px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .skill-desc-tag.expert { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
    .skill-desc-tag.fullstack { background: rgba(16, 185, 129, 0.2); color: #34d399; }
    .skill-desc-tag.mtcna { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
    .skill-desc-tag.creative { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
    
    body[data-theme="light"] .skill-desc-tag.expert { background: rgba(245, 158, 11, 0.12); color: #b45309; }
    body[data-theme="light"] .skill-desc-tag.fullstack { background: rgba(16, 185, 129, 0.12); color: #047857; }
    body[data-theme="light"] .skill-desc-tag.mtcna { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
    body[data-theme="light"] .skill-desc-tag.creative { background: rgba(139, 92, 246, 0.12); color: #6d28d9; }

    .widget-safari {
      width: 270px;
      bottom: 4%;
      left: 50%;
      margin-left: -135px;
      z-index: 10;
    }
    .widget-safari .hero-widget-perspective-wrapper {
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 50px;
      padding: 8px 16px;
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.7);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    body[data-theme="dark"] .widget-safari .hero-widget-perspective-wrapper {
      background: rgba(28, 28, 30, 0.72);
      border-color: rgba(255, 255, 255, 0.08);
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .widget-safari .safari-icon {
      font-size: 11px;
      color: var(--muted);
      font-weight: 700;
      display: flex;
      align-items: center;
    }
    .widget-safari .safari-address {
      font-size: 11px;
      font-weight: 600;
      color: var(--text);
      letter-spacing: -0.01em;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .widget-safari .safari-lock {
      width: 9px;
      height: 9px;
      color: #34c759;
    }
    .widget-safari .safari-refresh {
      width: 12px;
      height: 12px;
      color: var(--muted);
      cursor: none !important;
    }

    /* GIANT BACKGROUND DEPTH TYPOGRAPHY */
    .hero-bg-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-family: var(--font-display);
      font-size: clamp(80px, 14vw, 220px);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: -0.04em;
      background: linear-gradient(120deg, 
        rgba(66, 133, 244, 0.06) 0%, 
        rgba(155, 114, 203, 0.06) 25%, 
        rgba(124, 92, 252, 0.06) 50%, 
        rgba(96, 165, 250, 0.06) 75%, 
        rgba(167, 139, 250, 0.06) 100%
      );
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.03);
      text-align: center;
      pointer-events: none;
      z-index: 1;
      white-space: nowrap;
      user-select: none;
      transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), -webkit-text-stroke var(--transition-fluid);
      will-change: transform;
      animation: watermark-gradient 25s linear infinite;
    }

    body[data-theme="dark"] .hero-bg-text {
      -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
      background: linear-gradient(120deg, 
        rgba(66, 133, 244, 0.08) 0%, 
        rgba(155, 114, 203, 0.08) 25%, 
        rgba(124, 92, 252, 0.08) 50%, 
        rgba(96, 165, 250, 0.08) 75%, 
        rgba(167, 139, 250, 0.08) 100%
      );
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    @keyframes watermark-gradient {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* DUAL STACK SOFTWARE DOCK */
    .dual-dock-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      margin-top: 20px;
      width: 100%;
      z-index: 10;
      position: relative;
    }
    .software-dock-shelf {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-top-color: var(--line-highlight);
      border-radius: 18px;
      box-shadow: var(--shadow-inset), var(--shadow-card);
      backdrop-filter: var(--blur-glass);
      -webkit-backdrop-filter: var(--blur-glass);
      transition: all 0.3s var(--transition-fluid);
      max-width: 100%;
    }
    .dock-shelf-label {
      font-family: var(--font-display);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      padding: 0 10px 0 4px;
      border-right: 1px solid var(--line);
      margin-right: 4px;
      white-space: nowrap;
      user-select: none;
    }

    .dock-icon {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      border: 1px solid var(--line);
      border-top-color: var(--line-highlight);
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, background-color 0.2s, border-color 0.2s;
      box-shadow: var(--shadow-inset), 0 4px 12px rgba(0, 0, 0, 0.04);
      position: relative;
      transform-origin: bottom center; /* Scale up from bottom center like macOS */
    }

    .dock-icon img, .dock-icon svg {
      width: 60%;
      height: 60%;
      object-fit: contain;
      pointer-events: none;
    }

    .dock-icon:hover {
      background: var(--surface-hover);
      border-color: rgba(124, 92, 252, 0.4);
      transform: scale(1.18) translateY(-10px);
      box-shadow: 0 12px 28px rgba(124, 92, 252, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
      z-index: 10;
    }

    /* Brand-specific glows for dock icons */
    .dock-icon.dock-figma:hover { border-color: rgba(242, 78, 30, 0.5); box-shadow: 0 12px 28px rgba(242, 78, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-photoshop:hover { border-color: rgba(49, 168, 255, 0.5); box-shadow: 0 12px 28px rgba(49, 168, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-illustrator:hover { border-color: rgba(255, 154, 0, 0.5); box-shadow: 0 12px 28px rgba(255, 154, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-lightroom:hover { border-color: rgba(49, 168, 255, 0.5); box-shadow: 0 12px 28px rgba(49, 168, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-indesign:hover { border-color: rgba(255, 20, 147, 0.5); box-shadow: 0 12px 28px rgba(255, 20, 147, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-xd:hover { border-color: rgba(255, 97, 246, 0.5); box-shadow: 0 12px 28px rgba(255, 97, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-premiere:hover { border-color: rgba(234, 119, 255, 0.5); box-shadow: 0 12px 28px rgba(234, 119, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-ae:hover { border-color: rgba(209, 165, 255, 0.5); box-shadow: 0 12px 28px rgba(209, 165, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-camera:hover { border-color: rgba(124, 92, 252, 0.5); box-shadow: 0 12px 28px rgba(124, 92, 252, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-html:hover { border-color: rgba(227, 79, 38, 0.5); box-shadow: 0 12px 28px rgba(227, 79, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-css:hover { border-color: rgba(21, 114, 182, 0.5); box-shadow: 0 12px 28px rgba(21, 114, 182, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-js:hover { border-color: rgba(247, 223, 30, 0.6); box-shadow: 0 12px 28px rgba(247, 223, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-php:hover { border-color: rgba(119, 123, 179, 0.5); box-shadow: 0 12px 28px rgba(119, 123, 179, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-sql:hover { border-color: rgba(0, 117, 143, 0.5); box-shadow: 0 12px 28px rgba(0, 117, 143, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-laravel:hover { border-color: rgba(255, 45, 32, 0.5); box-shadow: 0 12px 28px rgba(255, 45, 32, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-astro:hover { border-color: rgba(188, 82, 238, 0.5); box-shadow: 0 12px 28px rgba(188, 82, 238, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-tailwind:hover { border-color: rgba(6, 182, 212, 0.5); box-shadow: 0 12px 28px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-android:hover { border-color: rgba(61, 220, 132, 0.5); box-shadow: 0 12px 28px rgba(61, 220, 132, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-arduino:hover { border-color: rgba(0, 151, 157, 0.5); box-shadow: 0 12px 28px rgba(0, 151, 157, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-mikrotik:hover { border-color: rgba(63, 81, 181, 0.5); box-shadow: 0 12px 28px rgba(63, 81, 181, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-office:hover { border-color: rgba(216, 59, 1, 0.5); box-shadow: 0 12px 28px rgba(216, 59, 1, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-english:hover { border-color: rgba(124, 92, 252, 0.5); box-shadow: 0 12px 28px rgba(124, 92, 252, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    .dock-icon.dock-canva:hover { border-color: rgba(0, 194, 203, 0.5); box-shadow: 0 12px 28px rgba(0, 194, 203, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

    /* Custom Glassmorphic Tooltips */
    .dock-icon::after {
      content: attr(data-title);
      position: absolute;
      bottom: 120%;
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      background: rgba(15, 15, 20, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: #fff;
      padding: 5px 12px;
      border-radius: 8px;
      font-size: 11px;
      font-weight: 600;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s, transform 0.2s;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      z-index: 100;
    }

    .dock-icon::before {
      content: '';
      position: absolute;
      bottom: 110%;
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      border-width: 5px;
      border-style: solid;
      border-color: rgba(15, 15, 20, 0.85) transparent transparent transparent;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s, transform 0.2s;
      z-index: 100;
    }

    .dock-icon:hover::after, .dock-icon:hover::before {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* PORTFOLIO GRID SECTION */
    .section {
      padding: 120px 0;
      position: relative;
      overflow: hidden;
    }

    .section-head {
      margin-bottom: 60px;
      max-width: 600px;
      margin-inline: auto;
      text-align: center;
    }

    .section-head h2 {
      font-family: var(--font-display);
      font-size: clamp(30px, 4.5vw, 42px);
      font-weight: 800;
      line-height: 1.15;
      letter-spacing: -0.02em;
      margin-bottom: 16px;
      color: var(--text);
    }

    .section-head p {
      color: var(--muted);
      font-size: 17px;
    }

    .works-control-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
      margin-bottom: 40px;
      width: 100%;
    }

    /* Apple-style Sliding Segment Control Grid Filter */
    .segment-bar {
      display: inline-flex;
      background: rgba(var(--accent-rgb), 0.03);
      border: 1px solid var(--line);
      padding: 5px;
      border-radius: 16px;
      position: relative;
      margin-bottom: 0;
      max-width: 100%;
      overflow-x: auto;
      scrollbar-width: none;
    }
    
    .segment-bar::-webkit-scrollbar {
      display: none;
    }

    .segment-tab {
      background: none;
      border: none;
      padding: 10px 24px;
      font-family: var(--font-sans);
      font-size: 14px;
      font-weight: 600;
      color: var(--muted);
      border-radius: 12px;
      z-index: 2;
      transition: color 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: none !important;
    }

    .segment-tab.active {
      color: var(--text);
    }

    .segment-tab .tab-icon {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      stroke-width: 2.5;
      flex-shrink: 0;
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .segment-tab:hover .tab-icon {
      transform: scale(1.1);
    }

    .segment-pill-indicator {
      position: absolute;
      top: 5px;
      bottom: 5px;
      left: 5px;
      width: 0;
      background: var(--surface-opaque);
      box-shadow: var(--shadow-inset), 0 3px 8px rgba(0, 0, 0, 0.08);
      border-radius: 12px;
      z-index: 1;
      transition: all var(--transition-fluid);
      pointer-events: none;
    }

    /* Cohesive Segemented Layout Switcher Pill */
    .layout-toggle-pill {
      display: inline-flex;
      background: rgba(var(--accent-rgb), 0.03);
      border: 1px solid var(--line);
      padding: 5px;
      border-radius: 16px;
      position: relative;
      z-index: 5;
    }

    .layout-pill-indicator {
      position: absolute;
      top: 5px;
      bottom: 5px;
      left: 5px;
      width: 0;
      background: var(--surface-opaque);
      box-shadow: var(--shadow-inset), 0 3px 8px rgba(0, 0, 0, 0.08);
      border-radius: 12px;
      z-index: 1;
      transition: all var(--transition-fluid);
      pointer-events: none;
    }

    .layout-tab {
      background: none;
      border: none;
      padding: 10px 20px;
      font-family: var(--font-sans);
      font-size: 14px;
      font-weight: 600;
      color: var(--muted);
      border-radius: 12px;
      z-index: 2;
      transition: color 0.2s;
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: none !important;
    }

    .layout-tab.active {
      color: var(--text);
    }

    .layout-tab svg {
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .layout-tab:hover svg {
      transform: scale(1.1);
    }

    .works-view-container {
      position: relative;
      width: 100%;
      margin-top: 30px;
      display: flex;
      flex-direction: column;
    }

    /* Carousel nav buttons — HIDDEN per user request */
    .carousel-nav-btn {
      display: none !important;
    }

    .carousel-nav-btn.btn-prev {
      left: 16px;
    }

    .carousel-nav-btn.btn-next {
      right: 16px;
    }

    .carousel-nav-btn:hover {
      transform: translateY(-50%) scale(1.1);
      background: var(--surface-high);
      border-color: var(--accent);
      box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.15), var(--shadow-md);
      color: var(--accent);
    }

    .carousel-nav-btn.disabled {
      opacity: 0 !important;
      pointer-events: none !important;
    }

    /* Hide arrows when grid mode is active */
    .works-view-container.works-grid-mode .carousel-nav-btn {
      opacity: 0 !important;
      pointer-events: none !important;
    }

    .works-view-container::before,
    .works-view-container::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      width: 80px;
      z-index: 5;
      pointer-events: none;
      transition: opacity 0.3s;
      opacity: 1;
    }
    .works-view-container::before {
      left: 0;
      background: linear-gradient(90deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 100%);
    }
    .works-view-container::after {
      right: 0;
      background: linear-gradient(270deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 100%);
    }
    .works-view-container.works-grid-mode::before,
    .works-view-container.works-grid-mode::after {
      opacity: 0;
    }

    /* CAROUSEL MODE */
    .works-carousel {
      display: flex;
      gap: 24px;
      overflow-x: auto;
      padding: 10px 4px 30px;
      scroll-snap-type: none;
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none;  /* IE 10+ */
      scroll-behavior: smooth;
      transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      max-height: 310px;
      opacity: 1;
      visibility: visible;
      -webkit-mask-image: linear-gradient(to right, transparent 0px, black 60px, black calc(100% - 60px), transparent 100%);
      mask-image: linear-gradient(to right, transparent 0px, black 60px, black calc(100% - 60px), transparent 100%);
    }
    
    .works-carousel::-webkit-scrollbar {
      display: none; /* Safari and Chrome */
    }

    .works-carousel .work-card {
      flex: 0 0 auto;
      width: auto;
      height: 260px;
      scroll-snap-align: start;
      margin-bottom: 0;
    }
    
    .works-carousel .work-thumb {
      height: 100%;
      width: auto;
    }
    
    .works-carousel .work-thumb img, 
    .works-carousel .work-thumb video {
      width: auto;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .works-grid {
      display: flex;
      gap: 32px;
      transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      opacity: 0;
      visibility: hidden;
      max-height: 0;
      overflow: hidden;
      width: 100%;
      align-items: flex-start;
    }

    .works-col {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 32px;
      min-width: 0;
    }

    .works-grid .work-card {
      margin-bottom: 0;
      width: 100%;
    }

    .works-grid .work-thumb {
      width: 100%;
      height: auto;
      border-radius: var(--radius-md);
      position: relative;
    }

    .works-grid .work-thumb img,
    .works-grid .work-thumb video {
      width: 100%;
      height: auto;
      display: block;
    }

    /* Mode switching styles */
    .works-view-container.works-grid-mode .works-carousel {
      opacity: 0;
      visibility: hidden;
      max-height: 0;
      padding: 0;
      overflow: hidden;
    }

    .works-view-container.works-grid-mode .works-grid {
      opacity: 1;
      visibility: visible;
      max-height: none;
      overflow: visible;
    }

    .works-toggle-wrapper {
      display: flex;
      justify-content: center;
      margin-top: 30px;
    }
    
    .works-toggle-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      font-size: 14px;
      font-weight: 700;
      cursor: none !important;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* VISUAL-FIRST MASONRY CARD */
    .work-card {
      break-inside: avoid;
      display: inline-flex;
      width: 100%;
      flex-direction: column;
      position: relative;
      cursor: none !important;
      background: transparent;
      border: none;
      border-radius: var(--radius-md);
      box-shadow: none;
      margin-bottom: 20px;
      overflow: hidden;
      transition: transform var(--transition-fluid), box-shadow var(--transition-fluid);
      will-change: transform;
      transform: translate3d(0, 0, 0);
    }

    .work-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    }

    .work-thumb {
      position: relative;
      border-bottom: none;
      background-color: #e0e0e0;
      width: 100%;
      height: auto;
      overflow: hidden;
      border-radius: var(--radius-md);
    }

    .work-thumb img, .work-thumb video {
      width: 100%;
      height: auto;
      display: block;
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: transform;
      transform: translate3d(0, 0, 0);
      backface-visibility: hidden;
    }

    .work-thumb video {
      pointer-events: none;
    }

    .work-card:hover .work-thumb img,
    .work-card:hover .work-thumb video {
      transform: scale(1.05) translate3d(0, 0, 0);
    }

    /* Hover overlay — dark gradient fades up with title */
    .work-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 20px;
      border-radius: var(--radius-md);
      background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.0) 55%);
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
    }

    .work-card:hover .work-overlay {
      opacity: 1;
    }

    .work-overlay-title {
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 700;
      color: #fff;
      line-height: 1.3;
      transform: translateY(8px);
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .work-overlay-cat {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: rgba(255,255,255,0.7);
      margin-bottom: 4px;
      transform: translateY(8px);
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.04s;
    }

    .work-card:hover .work-overlay-title,
    .work-card:hover .work-overlay-cat {
      transform: translateY(0);
    }

    /* Video play button — HIDDEN per user request */
    .card-play-overlay {
      display: none !important;
    }

    /* Legacy info-box — hidden, data in overlay now */
    .work-info-box { display: none; }

    .work-tags { display: flex; align-items: center; gap: 8px; }
    .work-cat-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
    .work-type-tag { font-size: 10px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 20px; }
    .work-info-box h3 { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--text); line-height: 1.25; }
    .work-info-box p { font-size: 14px; color: var(--muted); line-height: 1.5; }

    /* Mobile: always show overlay for touch devices */
    @media (hover: none) {
      .work-overlay {
        opacity: 1;
      }
      .work-overlay-title, .work-overlay-cat {
        transform: translateY(0);
      }
    }

    /* EDITORIAL ABOUT WIDGET DASHBOARD */
    .about-dashboard {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 28px;
    }

    .about-main-widget {
      grid-column: span 2;
      padding: 0;
      display: grid;
      grid-template-columns: 1.2fr 0.9fr 0.8fr;
      gap: 0;
      align-items: stretch;
      overflow: hidden;
      position: relative;
    }
    .about-main-widget::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
      background-size: 200% auto;
      animation: google-keynote-gradient 8s ease infinite;
      z-index: 2;
    }
    .about-bio {
      padding: 44px 40px;
      border-right: 1px solid var(--line);
    }
    .about-metadata {
      border: none;
      border-right: 1px solid var(--line);
      padding: 36px 32px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      background: transparent;
      border-radius: 0;
      box-shadow: none;
    }
    .about-avatar-container {
      padding: 36px 32px;
    }

    .meta-item {
      display: flex;
      flex-direction: column;
      gap: 4px;
      background: rgba(var(--accent-rgb), 0.02);
      border: 1px solid rgba(var(--accent-rgb), 0.06);
      border-radius: 14px;
      padding: 14px 16px;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s, border-color 0.4s, box-shadow 0.4s;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
      position: relative;
      overflow: hidden;
    }
    body[data-theme="dark"] .meta-item {
      background: rgba(255, 255, 255, 0.02);
      border-color: rgba(255, 255, 255, 0.05);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
    .meta-item:hover {
      transform: translateY(-2px);
      background: rgba(var(--accent-rgb), 0.05);
      border-color: rgba(var(--accent-rgb), 0.2);
      box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.08);
    }
    .meta-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      font-weight: 700;
      display: flex;
      align-items: center;
      position: relative;
      z-index: 2;
    }
    .meta-label svg {
      color: var(--accent);
      transition: transform 0.3s ease;
    }
    .meta-item:hover .meta-label svg {
      transform: scale(1.2) rotate(5deg);
    }
    .meta-value {
      font-size: 14px;
      color: var(--text);
      font-weight: 600;
      line-height: 1.35;
      position: relative;
      z-index: 2;
    }

    .about-bio {
      display: flex;
      flex-direction: column;
      gap: 18px;
      justify-content: center;
    }

    .about-bio h3 {
      font-family: var(--font-display);
      font-size: 26px;
      font-weight: 800;
      color: var(--text);
    }

    .about-bio p {
      font-size: 16px;
      color: var(--muted);
      line-height: 1.6;
    }

    /* Dropcap editorial style with premium gradient text */
    .about-bio p:first-of-type::first-letter {
      font-family: var(--font-display);
      font-size: 52px;
      font-weight: 900;
      float: left;
      line-height: 0.8;
      margin-right: 8px;
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* Professional Experience Timeline Widget (From CV) */
    .exp-widget {
      grid-column: span 2;
      padding: 0;
      overflow: hidden;
      position: relative;
    }
    .exp-widget::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-2));
      background-size: 200% auto;
      animation: google-keynote-gradient 8s ease infinite;
      z-index: 2;
    }

    .exp-widget-title {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 800;
      color: var(--text);
      padding: 32px 40px 0;
      margin-bottom: 24px;
    }

    .exp-timeline {
      display: flex;
      flex-direction: column;
      gap: 0;
      position: relative;
      padding: 0 40px 32px;
    }

    /* Timeline vertical line removed — clean card design */
    .exp-timeline::before {
      display: none;
    }

    .exp-item {
      display: grid;
      grid-template-columns: 200px 1fr;
      gap: 24px;
      position: relative;
      padding: 20px 20px 20px 24px;
      margin-inline: 0;
      border-radius: 0;
      border: none;
      border-bottom: 1px solid var(--line);
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: transform;
    }
    .exp-item:last-child {
      border-bottom: none;
    }
    .exp-item:hover {
      background: rgba(var(--accent-rgb), 0.03);
      border-bottom-color: rgba(var(--accent-rgb), 0.15);
    }
    body[data-theme="dark"] .exp-item:hover {
      background: rgba(var(--accent-rgb), 0.02);
    }

    /* Accent left-border stripe on hover instead of circle bullets */
    .exp-item::before {
      content: "";
      position: absolute;
      left: 0;
      top: 16px;
      bottom: 16px;
      width: 3px;
      border-radius: 3px;
      background: transparent;
      transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .exp-item:hover::before {
      background: linear-gradient(to bottom, var(--accent), var(--accent-2));
    }

    .exp-time-badge {
      display: flex;
      flex-direction: column;
      gap: 4px;
      align-items: flex-end;
      text-align: right;
      padding-top: 6px;
    }

    .exp-period {
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #7c5cfc;
      background: rgba(124, 92, 252, 0.08);
      padding: 4px 10px;
      border-radius: 30px;
    }

    .exp-loc {
      font-size: 11px;
      color: var(--muted);
      font-weight: 600;
    }

    .exp-details {
      display: flex;
      flex-direction: column;
      gap: 8px;
      position: relative;
      padding-left: 0;
    }

    .exp-detail-wrapper {
      display: flex;
      gap: 16px;
      align-items: flex-start;
    }
    .exp-logo {
      width: 44px;
      height: 44px;
      object-fit: cover;
      border-radius: 12px;
      border: 1px solid var(--line);
      flex-shrink: 0;
      background: var(--surface);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .exp-item:hover .exp-logo {
      transform: scale(1.08) rotate(-3deg);
    }
    .exp-info {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .exp-details h4 {
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 800;
      color: var(--text);
      line-height: 1.25;
    }

    .exp-details p {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.6;
    }

    .exp-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 10px;
    }
    .exp-tag {
      font-size: 11px;
      font-weight: 700;
      background: rgba(var(--accent-rgb), 0.05);
      border: 1px solid rgba(var(--accent-rgb), 0.1);
      color: var(--accent);
      padding: 4px 10px;
      border-radius: 20px; /* rounded pill style */
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .exp-tag:hover {
      transform: translateY(-2px) scale(1.05);
      background: rgba(var(--accent-rgb), 0.1);
      border-color: var(--accent);
      color: var(--accent);
      box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.15);
    }
    .exp-item:hover .exp-tag {
      border-color: rgba(var(--accent-rgb), 0.25);
    }

    /* Pulse dot active position indicator */
    .active-dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #10b981; /* Green */
      margin-left: 6px;
      vertical-align: middle;
      box-shadow: 0 0 8px #10b981;
      animation: pulse-active 1.5s infinite ease-in-out;
    }
    @keyframes pulse-active {
      0%, 100% { opacity: 0.5; transform: scale(0.9); }
      50% { opacity: 1; transform: scale(1.2); }
    }

    @media (max-width: 767px) {
      .exp-timeline::before {
        left: 20px;
        top: 10px;
        bottom: 10px;
      }
      .exp-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 40px;
        margin-inline: 0;
      }
      .exp-item::before {
        left: 16px;
        top: 24px;
      }
      .exp-time-badge {
        align-items: flex-start;
        text-align: left;
        padding-top: 0;
      }
      .exp-details {
        padding-left: 0;
      }
    }

    /* Mini Dashboard Widgets */
    .widget-half {
      padding: 36px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .widget-head-row {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .widget-icon-bg {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: rgba(var(--accent-rgb), 0.06);
      border: 1px solid rgba(var(--accent-rgb), 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
    }

    .widget-head-row h4 {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 800;
      color: var(--text);
    }

    .widget-body-text {
      font-size: 14.5px;
      color: var(--muted);
      line-height: 1.6;
    }

    /* Key Metric widgets inside the widgets */
    .widget-metrics {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 8px;
    }

    .metric-box {
      background: rgba(var(--accent-rgb), 0.03);
      border: none;
      border-radius: 14px;
      padding: 12px;
      text-align: center;
      box-shadow: none;
    }

    .metric-box strong {
      display: block;
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 800;
      color: var(--accent);
      line-height: 1.1;
    }

    .metric-box span {
      font-size: 11px;
      font-weight: 600;
      color: var(--muted);
    }

    /* SKILLS DASHBOARD FLEX CLOUD */
    .skills-widget {
      grid-column: span 2;
      padding: 0;
      overflow: hidden;
      position: relative;
    }
    .skills-widget::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
      background-size: 200% auto;
      animation: google-keynote-gradient 8s ease infinite;
      z-index: 2;
    }

    .skills-widget-head {
      margin-bottom: 0;
      padding: 32px 40px 24px;
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 800;
      color: var(--text);
      text-align: left;
    }

    .skills-deck-wrapper {
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 0 40px 36px;
    }

    .skills-group {
      display: flex;
      flex-direction: column;
      gap: 14px;
      align-items: flex-start;
      padding: 20px 0;
      border-bottom: 1px solid var(--line);
    }
    .skills-group:last-child {
      border-bottom: none;
    }

    .skills-group-title {
      font-family: var(--font-display);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--accent-2);
      border-bottom: none;
      padding-bottom: 0;
      width: auto;
      text-align: left;
      display: inline-flex;
      background: rgba(var(--accent-rgb), 0.06);
      padding: 5px 12px;
      border-radius: 6px;
    }

    .skills-cloud {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      gap: 8px;
    }

    .skill-pill-card {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 7px 14px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-top-color: var(--line-highlight);
      border-radius: 10px;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      position: relative;
    }

    .skill-pill-card:hover {
      transform: translateY(-3px);
      background: var(--surface-hover);
    }

    .software-logo {
      width: 16px;
      height: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .software-logo img, .software-logo svg {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* Brand Colored Glows */
    .skill-pill-card.pill-figma:hover { border-color: rgba(242, 78, 30, 0.5); box-shadow: 0 8px 24px rgba(242, 78, 30, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-photoshop:hover { border-color: rgba(49, 168, 255, 0.5); box-shadow: 0 8px 24px rgba(49, 168, 255, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-illustrator:hover { border-color: rgba(255, 154, 0, 0.5); box-shadow: 0 8px 24px rgba(255, 154, 0, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-lightroom:hover { border-color: rgba(49, 168, 255, 0.5); box-shadow: 0 8px 24px rgba(49, 168, 255, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-indesign:hover { border-color: rgba(255, 20, 147, 0.5); box-shadow: 0 8px 24px rgba(255, 20, 147, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-xd:hover { border-color: rgba(255, 97, 246, 0.5); box-shadow: 0 8px 24px rgba(255, 97, 246, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-premiere:hover { border-color: rgba(234, 119, 255, 0.5); box-shadow: 0 8px 24px rgba(234, 119, 255, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-ae:hover { border-color: rgba(209, 165, 255, 0.5); box-shadow: 0 8px 24px rgba(209, 165, 255, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-camera:hover { border-color: rgba(124, 92, 252, 0.5); box-shadow: 0 8px 24px rgba(124, 92, 252, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-html:hover { border-color: rgba(227, 79, 38, 0.5); box-shadow: 0 8px 24px rgba(227, 79, 38, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-css:hover { border-color: rgba(21, 114, 182, 0.5); box-shadow: 0 8px 24px rgba(21, 114, 182, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-js:hover { border-color: rgba(247, 223, 30, 0.6); box-shadow: 0 8px 24px rgba(247, 223, 30, 0.20), var(--shadow-inset); }
    .skill-pill-card.pill-php:hover { border-color: rgba(119, 123, 179, 0.5); box-shadow: 0 8px 24px rgba(119, 123, 179, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-sql:hover { border-color: rgba(0, 117, 143, 0.5); box-shadow: 0 8px 24px rgba(0, 117, 143, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-laravel:hover { border-color: rgba(255, 45, 32, 0.5); box-shadow: 0 8px 24px rgba(255, 45, 32, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-astro:hover { border-color: rgba(188, 82, 238, 0.5); box-shadow: 0 8px 24px rgba(188, 82, 238, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-tailwind:hover { border-color: rgba(6, 182, 212, 0.5); box-shadow: 0 8px 24px rgba(6, 182, 212, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-android:hover { border-color: rgba(61, 220, 132, 0.5); box-shadow: 0 8px 24px rgba(61, 220, 132, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-arduino:hover { border-color: rgba(0, 151, 157, 0.5); box-shadow: 0 8px 24px rgba(0, 151, 157, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-mikrotik:hover { border-color: rgba(63, 81, 181, 0.5); box-shadow: 0 8px 24px rgba(63, 81, 181, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-office:hover { border-color: rgba(216, 59, 1, 0.5); box-shadow: 0 8px 24px rgba(216, 59, 1, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-english:hover { border-color: rgba(124, 92, 252, 0.5); box-shadow: 0 8px 24px rgba(124, 92, 252, 0.18), var(--shadow-inset); }
    .skill-pill-card.pill-canva:hover { border-color: rgba(0, 194, 203, 0.5); box-shadow: 0 8px 24px rgba(0, 194, 203, 0.18), var(--shadow-inset); }

    /* About Education Meta Logo Styles */
    .edu-meta-value {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .edu-logo {
      height: 18px;
      width: auto;
      object-fit: contain;
      vertical-align: middle;
    }
    .skill-pill-card.pill-gear:hover { border-color: rgba(var(--accent-rgb), 0.35); box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.12), var(--shadow-inset); }

    /* Google 2026 Keynote Gradient & Ambient Card Glows */
    #contact h2 span {
      background: linear-gradient(90deg, var(--google-blue), var(--google-purple), var(--google-red), var(--google-yellow), var(--google-green), var(--google-blue));
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: google-keynote-gradient 15s ease infinite;
    }

    .contact-card-horizontal.card-gmail:hover {
      border-color: rgba(234, 67, 53, 0.35) !important;
      background: rgba(234, 67, 53, 0.04) !important;
      box-shadow: 0 12px 32px rgba(234, 67, 53, 0.08), var(--shadow-inset) !important;
    }
    .contact-card-horizontal.card-whatsapp:hover {
      border-color: rgba(37, 211, 102, 0.35) !important;
      background: rgba(37, 211, 102, 0.04) !important;
      box-shadow: 0 12px 32px rgba(37, 211, 102, 0.08), var(--shadow-inset) !important;
    }
    .contact-card-horizontal.card-instagram:hover {
      border-color: rgba(225, 48, 108, 0.35) !important;
      background: rgba(225, 48, 108, 0.04) !important;
      box-shadow: 0 12px 32px rgba(225, 48, 108, 0.08), var(--shadow-inset) !important;
    }
    .contact-card-horizontal.card-linkedin:hover {
      border-color: rgba(0, 119, 181, 0.35) !important;
      background: rgba(0, 119, 181, 0.04) !important;
      box-shadow: 0 12px 32px rgba(0, 119, 181, 0.08), var(--shadow-inset) !important;
    }

    @media (min-width: 992px) {
      .hero-visual-wrapper {
        margin-top: -70px !important;
      }
    }

    /* REDESIGNED 2-COLUMN CONTACT GRID & POSES */
    .contact-dashboard {
      background: var(--surface);
      border: 1px solid var(--line);
      border-top-color: var(--line-highlight);
      border-radius: 32px;
      box-shadow: var(--shadow-inset), 0 30px 70px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      margin-top: 30px;
      backdrop-filter: var(--blur-glass);
      -webkit-backdrop-filter: var(--blur-glass);
    }
    
    .contact-dashboard-header {
      display: flex;
      align-items: center;
      padding: 16px 24px;
      border-bottom: 1px solid var(--line);
      background: rgba(var(--accent-rgb), 0.02);
    }
    
    .contact-dashboard-dots {
      display: flex;
      gap: 8px;
    }
    
    .contact-dashboard-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
    }
    
    .contact-dashboard-dot.red { background: #ff5f56; }
    .contact-dashboard-dot.yellow { background: #ffbd2e; }
    .contact-dashboard-dot.green { background: #27c93f; }
    
    .contact-dashboard-title {
      margin-left: auto;
      margin-right: auto;
      font-size: 11px;
      font-weight: 800;
      color: var(--muted);
      letter-spacing: 0.15em;
      text-transform: uppercase;
      transform: translateX(-18px);
    }
    
    .contact-dashboard-body {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 40px;
      padding: 40px;
      align-items: center;
    }

    .contact-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .contact-card-horizontal {
      display: flex;
      align-items: center;
      padding: 18px 24px;
      gap: 20px;
      text-decoration: none !important;
      color: inherit;
      background: var(--surface);
      border: 1px solid var(--line);
      border-top-color: var(--line-highlight);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-inset), var(--shadow-card);
      transition: transform var(--transition-fluid), border-color var(--transition-fluid), background-color var(--transition-fluid);
      cursor: none !important;
    }

    .contact-card-horizontal:hover {
      transform: translateX(8px) translateY(-2px);
      border-color: rgba(var(--accent-rgb), 0.3);
      background: var(--surface-hover);
      box-shadow: var(--shadow-inset), 0 16px 36px rgba(0,0,0,0.06);
    }

    .contact-card-icon-small {
      width: 48px;
      height: 48px;
      border-radius: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      padding: 0;
      flex-shrink: 0;
      transition: transform 0.3s ease;
    }

    .contact-card-horizontal:hover .contact-card-icon-small {
      transform: scale(1.08) rotate(-5deg);
    }

    .contact-card-icon-small img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .contact-text-details {
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    .contact-label {
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 800;
      color: var(--text);
    }

    .contact-value {
      font-size: 13px;
      color: var(--muted);
      word-break: break-all;
    }

    .contact-arrow {
      font-size: 12px;
      font-weight: 700;
      color: #7c5cfc;
      white-space: nowrap;
      transition: transform 0.3s var(--transition-bounce);
    }

    body[data-theme="dark"] .contact-arrow {
      color: #a78bfa;
    }

    .contact-card-horizontal:hover .contact-arrow {
      transform: translateX(4px);
    }

    .contact-portrait-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      perspective: 1200px;
      position: relative;
      width: 100%;
      background: none;
      border-radius: 24px;
      padding: 10px;
      overflow: hidden;
    }

    .contact-portrait-img {
      height: 372px;
      width: auto;
      max-width: 100%;
      object-fit: contain;
      filter: none;
      transition: filter var(--transition-fluid);
      pointer-events: auto;
    }

    body[data-theme="dark"] .contact-portrait-img {
      filter: none;
    }

    .contact-portrait-wrapper:hover .contact-portrait-img {
      filter: none;
    }

    body[data-theme="dark"] .contact-portrait-wrapper:hover .contact-portrait-img {
      filter: none;
    }

    /* ABOUT ME SWITCH & COLLAGES */
    .about-avatar-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      width: 100%;
    }

    .about-avatar-wrapper {
      width: 200px;
      height: 270px;
      aspect-ratio: 3 / 4;
      border-radius: 20px;
      overflow: hidden;
      border: 2px solid rgba(var(--accent-rgb), 0.25);
      background: var(--surface-opaque);
      position: relative;
      box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.12), var(--shadow-card);
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .about-avatar-wrapper:hover {
      transform: scale(1.04) rotate(1deg);
      border-color: var(--accent);
      box-shadow: 0 20px 40px rgba(var(--accent-rgb), 0.2);
    }

    .about-avatar-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      inset: 0;
      transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .about-avatar-wrapper:hover .about-avatar-img {
      transform: scale(1.06);
    }

    .about-avatar-img.hidden {
      opacity: 0;
      transform: scale(0.95);
      pointer-events: none;
    }

    .about-toggle-container {
      display: inline-flex;
      background: rgba(var(--accent-rgb), 0.03);
      border: 1px solid var(--line);
      padding: 4px;
      border-radius: 50px;
      position: relative;
    }

    .about-switch-btn {
      padding: 6px 18px;
      font-size: 12px;
      font-weight: 700;
      border: none;
      background: none;
      color: var(--muted);
      cursor: none !important;
      z-index: 2;
      transition: color 0.3s;
      border-radius: 50px;
    }

    .about-switch-btn.active {
      color: var(--text);
      font-weight: 800;
    }

    .about-switch-indicator {
      position: absolute;
      top: 4px;
      bottom: 4px;
      left: 4px;
      width: 0;
      background: var(--surface-opaque);
      box-shadow: var(--shadow-inset), 0 3px 8px rgba(0, 0, 0, 0.08);
      border-radius: 50px;
      z-index: 1;
      transition: all var(--transition-fluid);
      pointer-events: none;
    }

    /* CARDLESS ABOUT DETAILS */
    .project-detail-block {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .project-title-row {
      display: flex;
      align-items: center;
      gap: 12px;
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 800;
      color: var(--text);
    }

    .project-title-row img {
      width: 28px;
      height: 28px;
      object-fit: contain;
    }

    .project-gallery-collage {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-top: 8px;
    }

    .project-gallery-item {
      aspect-ratio: 4 / 3;
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid var(--line);
      cursor: none !important;
      position: relative;
      background: rgba(var(--accent-rgb), 0.04);
    }

    .project-gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s var(--transition-fluid);
    }

    .project-gallery-item:hover img {
      transform: scale(1.08);
    }

    .project-action-row {
      display: flex;
      gap: 16px;
      margin-top: 10px;
    }

    /* HERO PORTRAIT POSE CYCLER & FLASH */
    .pose-cycler-btn {
      position: absolute;
      bottom: 24px;
      right: 24px;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--surface);
      border: 1px solid var(--line);
      border-top-color: var(--line-highlight);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow-inset), var(--shadow-card);
      cursor: none !important;
      z-index: 20;
      transition: transform var(--transition-bounce), background-color 0.2s;
    }

    .pose-cycler-btn img {
      width: 24px !important;
      height: 24px !important;
      object-fit: contain;
      transform: none !important;
      filter: none !important;
    }

    .pose-cycler-btn:hover {
      transform: scale(1.15) rotate(15deg);
      background: var(--surface-hover);
    }

    .camera-flash {
      position: fixed;
      inset: 0;
      background: #ffffff;
      opacity: 0;
      pointer-events: none;
      z-index: 99999;
      mix-blend-mode: normal;
    }

    @keyframes flash-animation {
      0% { opacity: 0.95; }
      100% { opacity: 0; }
    }

    .camera-flash.flashing {
      animation: flash-animation 0.4s ease-out forwards;
    }

    /* SOFTWARE IMAGE LOGOS */
    .software-logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .software-logo {
      width: 24px;
      height: 24px;
      border-radius: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      background: transparent;
      border: none;
      padding: 0;
    }

    .widget-icon-bg img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* Pointer Events for Switch Indicators */
    .nav-indicator, .lang-indicator, .theme-indicator, .segment-pill-indicator {
      pointer-events: none !important;
    }

    /* SITE FOOTER */
    .footer {
      border-top: 1px solid var(--line);
      padding: 40px 0;
      font-size: 13.5px;
      color: var(--muted);
      font-weight: 500;
    }

    .footer-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    /* iOS 26 LIQUID GLASS LIGHTBOX (overlay retains backdrop-filter) */
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background-color: rgba(12, 11, 8, 0.7);
      backdrop-filter: blur(36px) saturate(220%);
      -webkit-backdrop-filter: blur(36px) saturate(220%);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--transition-fluid);
      padding: 24px;
    }

    .lightbox.active {
      opacity: 1;
      pointer-events: auto;
    }

    .lightbox-wrapper {
      position: relative;
      width: min(1040px, 100%);
      display: grid;
      grid-template-columns: 1.35fr 0.65fr;
      background: var(--surface);
      backdrop-filter: var(--blur-glass);
      -webkit-backdrop-filter: var(--blur-glass);
      border: 1px solid var(--line);
      border-top-color: var(--line-highlight);
      border-radius: 24px;
      overflow: hidden;
      box-shadow: var(--shadow-inset), 0 32px 80px rgba(0, 0, 0, 0.3);
      transform: scale(0.95) translate3d(0, 20px, 0);
      transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
      max-height: 85vh;
    }

    .lightbox.active .lightbox-wrapper {
      transform: scale(1) translate3d(0, 0, 0);
    }

    .lightbox-close-btn {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 36px;
      height: 36px;
      background: var(--surface-opaque);
      border: 1px solid var(--line);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: none !important;
      color: var(--text);
      z-index: 10;
      box-shadow: var(--shadow-sm);
      transition: all 0.2s;
    }

    .lightbox-close-btn:hover {
      transform: scale(1.05);
      border-color: var(--text);
    }

    .lightbox-media-panel {
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      aspect-ratio: 4 / 3;
      max-height: 85vh;
    }

    .lightbox-media-panel img, .lightbox-media-panel video {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .lightbox-info-panel {
      padding: 40px;
      display: flex;
      flex-direction: column;
      gap: 24px;
      justify-content: space-between;
      overflow-y: auto;
      background: rgba(var(--accent-rgb), 0.01);
      border-left: 1px solid var(--line);
    }

    /* Premium Dynamic Tag Chips */
    .lightbox-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 4px;
    }

    .tag-chip {
      font-size: 11px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 12px;
      background: rgba(var(--accent-rgb), 0.08);
      color: var(--accent);
      border: 1px solid rgba(var(--accent-rgb), 0.15);
      transition: all 0.2s;
      animation: tag-pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }

    .tag-chip:hover {
      background: rgba(var(--accent-rgb), 0.15);
      transform: translateY(-1px);
    }

    @keyframes tag-pop-in {
      0% {
        opacity: 0;
        transform: scale(0.85) translateY(4px);
      }
      100% {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    .lightbox-desc-box {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .lightbox-cat {
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--accent);
    }

    .lightbox-title {
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 800;
      color: var(--text);
      line-height: 1.25;
    }

    .lightbox-desc {
      font-size: 14.5px;
      color: var(--muted);
      line-height: 1.6;
    }

    .lightbox-controls {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .lightbox-nav-row {
      display: flex;
      gap: 12px;
    }

    .lightbox-nav-btn {
      flex-grow: 1;
      padding: 12px;
      font-size: 13.5px;
    }

    /* SCROLL REVEAL CLASSIFICATION */
    .reveal-elem {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                  transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-elem.revealed {
      opacity: 1;
      transform: translateY(0);
    }

    /* RESPONSIVE LAYOUT */
    @media (max-width: 991px) {
      .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
      }

      .ios-status-badge {
        align-self: center;
      }

      .hero-desc {
        margin-inline: auto;
      }

      .hero-visual-wrapper {
        height: 380px;
        margin-top: 20px;
        z-index: 5;
      }

      .about-dashboard {
        grid-template-columns: 1fr;
      }

      .about-main-widget {
        grid-column: span 1;
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 32px;
      }

      .about-avatar-widget {
        max-width: 320px;
        margin-inline: auto;
      }

      .exp-widget {
        grid-column: span 1;
        padding: 32px;
      }

      .skills-widget {
        grid-column: span 1;
        padding: 32px;
      }

      .skills-deck {
        grid-template-columns: 1fr;
        gap: 20px;
      }

      .lightbox-wrapper {
        grid-template-columns: 1fr;
        max-height: 90vh;
      }

      .lightbox-info-panel {
        padding: 24px;
        border-left: none;
        border-top: 1px solid var(--line);
      }

      .lightbox-media-panel {
        aspect-ratio: 16 / 9;
      }

      .carousel-nav-btn {
        display: none !important;
      }

      .works-control-row {
        justify-content: center;
        gap: 16px;
        margin-bottom: 24px;
      }
    }

    @media (max-width: 767px) {
      body {
        cursor: default !important; /* Restore cursor on mobile */
      }
      .custom-cursor, .custom-cursor-ring {
        display: none !important;
      }

      .site-header {
        top: 10px;
      }

      .topbar-widget {
        padding: 0 16px;
      }

      .nav {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        z-index: 10000;
        background: var(--surface);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--line-highlight);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        padding: 6px;
        border-radius: 50px;
      }

      .hero {
        padding-top: 110px;
        padding-bottom: 40px;
      }

      .hero-visual-wrapper {
        min-height: auto;
        height: auto;
        margin-top: 20px;
      }

      .parallax-scene {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        transform: none !important;
      }

      .liquid-portrait-card {
        height: auto;
        max-height: 380px;
        margin-bottom: 10px;
      }

      .liquid-portrait-card img {
        max-height: 320px;
      }

      .hero-actions {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 16px !important;
        margin-bottom: 8px !important;
        z-index: 10 !important;
        display: flex !important;
        gap: 12px !important;
        justify-content: center !important;
        width: 100% !important;
        pointer-events: auto !important;
      }

      .hero-widget,
      .hero-widget-float-wrapper,
      .hero-widget-perspective-wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 290px !important;
        margin: 0 auto !important;
        animation: none !important;
      }

      .dual-dock-container {
        gap: 10px;
        margin-top: 24px;
        width: 100%;
      }

      .software-dock-shelf {
        padding: 5px 10px;
        border-radius: 12px;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
      }

      .software-dock-shelf::-webkit-scrollbar {
        display: none;
      }

      .dock-shelf-label {
        font-size: 8px;
        padding: 0 6px 0 0;
        margin-right: 2px;
      }

      .dock-icon {
        width: 28px !important;
        height: 28px !important;
        border-radius: 6px !important;
        flex-shrink: 0;
      }

      .section {
        padding: 80px 0;
      }

      .works-grid {
        flex-direction: column;
        gap: 24px;
      }
      
      .works-col {
        gap: 24px;
      }

      .contact-widget {
        padding: 60px 20px;
      }

      .footer-row {
        flex-direction: column;
        gap: 12px;
        text-align: center;
      }

      /* Hide floating items on mobile to avoid viewport clutter */
      .item-notebook, .item-keyboard, .item-camera, .item-mouse {
        display: none !important;
      }
    }

    /* Riset Aeroponik IoT Spanned Glass Widget */
    .about-iot-widget {
      grid-column: span 2;
      padding: 0;
      overflow: hidden;
      position: relative;
    }
    .about-iot-widget::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #10b981, var(--accent), var(--accent-2));
      background-size: 200% auto;
      animation: google-keynote-gradient 8s ease infinite;
      z-index: 2;
    }
    .about-iot-widget .iot-terminal-header {
      padding: 24px 40px 12px;
      margin-bottom: 0;
    }
    .about-iot-widget .iot-widget-grid {
      padding: 20px 40px 40px;
    }
    
    .iot-widget-grid {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 40px;
      align-items: center;
    }
    
    .iot-widget-left {
      display: flex;
      flex-direction: column;
    }

    .iot-terminal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
      padding-bottom: 12px;
      margin-bottom: 20px;
    }
    .terminal-dots {
      display: flex;
      gap: 6px;
    }
    .dot-red, .dot-yellow, .dot-green {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }
    .dot-red { background: #ff5f56; }
    .dot-yellow { background: #ffbd2e; }
    .dot-green { background: #27c93f; }
    .terminal-status {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: monospace;
      font-size: 11px;
      color: #27c93f;
      font-weight: 700;
    }
    .status-pulse-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background-color: #27c93f;
      box-shadow: 0 0 8px #27c93f;
      animation: pulse-green-glow 1.5s infinite;
    }
    @keyframes pulse-green-glow {
      0% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7); }
      70% { box-shadow: 0 0 0 6px rgba(39, 201, 63, 0); }
      100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
    }
    
    .iot-metrics-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    
    .iot-metric-box {
      background: rgba(var(--accent-rgb), 0.03);
      border: 1px solid rgba(var(--accent-rgb), 0.06);
      border-radius: 16px;
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 14px;
      box-shadow: var(--shadow-inset);
      transition: all 0.3s var(--transition-fluid);
    }
    
    .iot-metric-box:hover {
      background: rgba(var(--accent-rgb), 0.05);
      border-color: rgba(var(--accent-rgb), 0.12);
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03), var(--shadow-inset);
    }
    
    .metric-icon-wrapper {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: var(--surface-opaque);
      box-shadow: 0 4px 10px rgba(0,0,0,0.03);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    
    .metric-icon {
      font-size: 18px;
    }
    
    .metric-info {
      display: flex;
      flex-direction: column;
      line-height: 1.25;
    }
    
    .metric-val {
      font-family: monospace;
      font-size: 16px;
      font-weight: 700;
      color: var(--text);
    }
    
    .metric-lbl {
      font-size: 11px;
      color: var(--muted);
      font-weight: 600;
      margin-top: 2px;
    }

    /* Clean Editorial Captions inside Research Collage */
    .research-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 14px 18px;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 100%);
      z-index: 3;
      display: flex;
      flex-direction: column;
      pointer-events: none;
      transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .caption-title {
      font-family: var(--font-sans);
      font-size: 11px;
      font-weight: 700;
      color: #fff;
      letter-spacing: 0.03em;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }
    
    .project-gallery-item:hover .research-caption {
      padding-bottom: 20px;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.88) 100%);
    }

    /* Mobile override for IoT grid */
    @media (max-width: 991px) {
      .iot-widget-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }
      
      .about-iot-widget {
        padding: 32px;
      }
    }
    
    @media (max-width: 575px) {
      .iot-metrics-grid {
        grid-template-columns: 1fr;
      }
      
      .works-carousel .work-card {
        flex: 0 0 auto;
        width: auto;
        height: 200px;
      }
      .works-carousel {
        max-height: 250px;
      }
      .exp-details {
        padding-left: 0 !important;
      }
      .exp-logo {
        width: 36px;
        height: 36px;
      }
      .exp-detail-wrapper {
        gap: 12px;
      }
    }

    #contact {
      position: relative;
      overflow: hidden;
      background: transparent;
      transition: background var(--transition-fluid);
      padding: 60px 0; /* Compact top & bottom padding */
    }

    /* REDESIGNED CONTACT 3D PARALLAX SCENE STYLE */
    .contact-ambient-glow {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: min(800px, 90vw);
      height: 400px;
      background: radial-gradient(circle, rgba(124, 92, 252, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
      pointer-events: none;
      z-index: 1;
    }

    .contact-scene-container {
      position: relative;
      width: 100%;
      height: 600px; /* Increased height for bigger portrait breathing room */
      background: transparent;
      border: none;
      box-shadow: none;
      overflow: visible;
      margin-top: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
    }

    .stripe-contact-bg {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: -2; /* Set to -2 to sit behind ambient glow and content */
      overflow: hidden;
      background: linear-gradient(180deg, var(--bg) 0%, #e6e6e6 60%, #f2f2f2 100%);
      transition: background var(--transition-fluid);
    }
    
    body[data-theme="dark"] .stripe-contact-bg {
      background: linear-gradient(180deg, var(--bg) 0%, #0d0d10 60%, #151518 100%);
    }

    /* GIANT BACKGROUND DEPTH TYPOGRAPHY FOR CONTACT (Perfect match to Hero) */
    .contact-bg-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) translate3d(0, 0, -80px);
      font-family: var(--font-display);
      font-size: clamp(80px, 14vw, 220px);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: -0.04em;
      background: linear-gradient(120deg, 
        rgba(66, 133, 244, 0.06) 0%, 
        rgba(155, 114, 203, 0.06) 25%, 
        rgba(124, 92, 252, 0.06) 50%, 
        rgba(96, 165, 250, 0.06) 75%, 
        rgba(167, 139, 250, 0.06) 100%
      );
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.03);
      text-align: center;
      pointer-events: none;
      z-index: 1;
      white-space: nowrap;
      user-select: none;
      transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), -webkit-text-stroke var(--transition-fluid);
      will-change: transform;
      animation: watermark-gradient 25s linear infinite;
    }

    body[data-theme="dark"] .contact-bg-text {
      -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
      background: linear-gradient(120deg, 
        rgba(66, 133, 244, 0.08) 0%, 
        rgba(155, 114, 203, 0.08) 25%, 
        rgba(124, 92, 252, 0.08) 50%, 
        rgba(96, 165, 250, 0.08) 75%, 
        rgba(167, 139, 250, 0.08) 100%
      );
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .contact-scene {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      transform-style: preserve-3d;
      perspective: 1200px;
      z-index: 6; /* Lowered to sit behind portrait */
      pointer-events: none; /* Make container click-through to background */
      transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Portrait made much larger to overlap text and widgets for dramatic, premium effect */
    .contact-portrait-card {
      position: absolute;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 440px;
      height: 580px;
      z-index: 10; /* Elevated to stack in front of cards */
      pointer-events: none;
      bottom: -30px; /* Slight overflow at the bottom */
    }

    .contact-static-img {
      max-height: 100%;
      width: auto;
      object-fit: contain;
      pointer-events: none;
      transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.12));
    }

    /* Floating Interactive Contact Cards — EXTREMELY PREMIUM GLASSMORPHISM */
    .contact-floating-widget {
      position: absolute;
      z-index: 10;
      transform-style: preserve-3d;
      will-change: transform;
      pointer-events: auto !important; /* Ensure hover fires flawlessly */
      transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Float wrapper to isolate infinite CSS float translateY translations */
    .contact-widget-float-wrapper {
      transform-style: preserve-3d;
      will-change: transform;
      pointer-events: none;
    }

    /* Inner 3D perspective flanking layout wrapper */
    .contact-widget-perspective-wrapper {
      transform-style: preserve-3d;
      perspective: 1000px;
      will-change: transform;
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: auto !important;
      border-radius: 24px;
    }

    .contact-widget-link {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      padding: 18px 22px;
      background: rgba(255, 255, 255, 0.76); /* Highly readable, high-contrast glass! */
      border: 1px solid rgba(255, 255, 255, 0.5);
      border-top: 1px solid rgba(255, 255, 255, 0.85);
      border-radius: 24px;
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
      text-decoration: none !important;
      color: var(--text) !important;
      transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                  border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                  box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      width: 290px; /* Perfect width for one continuous line */
      backdrop-filter: blur(28px) saturate(210%); /* Super strong premium blur & saturation! */
      -webkit-backdrop-filter: blur(28px) saturate(210%);
      position: relative;
      overflow: hidden;
      pointer-events: auto !important; /* Force pointer-events on entire card surface */
    }
    
    body[data-theme="dark"] .contact-widget-link {
      background: rgba(18, 18, 24, 0.78); /* High contrast dark glass! */
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-top: 1px solid rgba(255, 255, 255, 0.16);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    /* Card Header: Brand App Tile & Label */
    .contact-widget-link .card-header {
      display: flex;
      align-items: center;
      gap: 12px;
      background: none;
      border: none;
      padding: 0;
    }

    .widget-lbl {
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 800;
      color: var(--text);
      line-height: 1.2;
    }

    /* Card Body: Details displayed fully on one continuous line */
    .contact-widget-link .card-body {
      padding: 0;
      min-width: 0;
      background: none;
      border: none;
    }

    .widget-val {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      word-break: normal;
      overflow: hidden;
      text-overflow: ellipsis;
      display: block;
      line-height: 1.3;
    }
    
    body[data-theme="dark"] .widget-val {
      color: rgba(255, 255, 255, 0.95);
    }

    /* Card Footer: Reworked Action CTA */
    .contact-widget-link .card-footer {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      border-top: 1px solid rgba(var(--accent-rgb), 0.08);
      padding-top: 10px;
      margin-top: 2px;
      background: none;
    }

    body[data-theme="dark"] .contact-widget-link .card-footer {
      border-top-color: rgba(255, 255, 255, 0.08);
    }

    .widget-action {
      font-size: 12px;
      font-weight: 700;
      color: #7c5cfc;
      white-space: nowrap;
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    body[data-theme="dark"] .widget-action {
      color: #a78bfa;
    }

    .contact-widget-link:hover .widget-action {
      transform: translateX(4px);
    }

    /* Micro-interaction: glowing vertical left border stripe */
    .contact-widget-link::before {
      content: '';
      position: absolute;
      left: 0;
      top: 15%;
      bottom: 15%;
      width: 4px;
      border-radius: 0 4px 4px 0;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .widget-gmail .contact-widget-link::before { background: #ea4335; box-shadow: 0 0 10px rgba(234, 67, 53, 0.6); }
    .widget-whatsapp .contact-widget-link::before { background: #25d366; box-shadow: 0 0 10px rgba(37, 211, 102, 0.6); }
    .widget-instagram .contact-widget-link::before { background: linear-gradient(180deg, #f9ce34, #ee2a7b, #6228d7); box-shadow: 0 0 10px rgba(225, 48, 108, 0.6); }
    .widget-linkedin .contact-widget-link::before { background: #0077b5; box-shadow: 0 0 10px rgba(0, 119, 181, 0.6); }

    .contact-widget-link:hover::before {
      top: 0;
      bottom: 0;
      width: 5px;
    }

    /* NO card transforms to avoid glitchy cursor tracking loop */
    .contact-widget-link:hover {
      background: rgba(255, 255, 255, 0.88); /* Even more solid on hover! */
    }
    
    body[data-theme="dark"] .contact-widget-link:hover {
      background: rgba(26, 26, 34, 0.88);
    }

    /* Premium iOS Square Tile icon with soft shadow */
    .widget-icon {
      width: 36px;
      height: 36px;
      background: #ffffff;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px;
      flex-shrink: 0;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    body[data-theme="dark"] .widget-icon {
      background: rgba(255, 255, 255, 0.95);
    }

    .contact-widget-link:hover .widget-icon {
      transform: scale(1.1) rotate(-6deg);
    }

    .widget-icon img, .widget-icon svg {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .widget-details {
      display: flex;
      flex-direction: column;
      flex-grow: 1;
      min-width: 0; /* Ensures inner flex layouts can collapse cleanly without overflow */
    }

    /* Position contact widgets aligned beautifully with the upper portrait */
    .widget-gmail {
      top: 8%;
      left: 14%;
    }
    .widget-gmail .contact-widget-float-wrapper {
      animation: contact-float-1 6s ease-in-out infinite alternate;
    }
    .widget-gmail .contact-widget-perspective-wrapper {
      transform: rotateY(16deg) rotateX(3deg) rotateZ(-2deg);
    }

    .widget-whatsapp {
      top: 50%;
      left: 12%;
    }
    .widget-whatsapp .contact-widget-float-wrapper {
      animation: contact-float-2 7s ease-in-out infinite alternate;
    }
    .widget-whatsapp .contact-widget-perspective-wrapper {
      transform: rotateY(14deg) rotateX(-3deg) rotateZ(2deg);
    }

    .widget-instagram {
      top: 8%;
      right: 14%;
    }
    .widget-instagram .contact-widget-float-wrapper {
      animation: contact-float-3 6.5s ease-in-out infinite alternate;
    }
    .widget-instagram .contact-widget-perspective-wrapper {
      transform: rotateY(-16deg) rotateX(3deg) rotateZ(2deg);
    }

    .widget-linkedin {
      top: 50%;
      right: 12%;
    }
    .widget-linkedin .contact-widget-float-wrapper {
      animation: contact-float-4 7.5s ease-in-out infinite alternate;
    }
    .widget-linkedin .contact-widget-perspective-wrapper {
      transform: rotateY(-14deg) rotateX(-3deg) rotateZ(-2deg);
    }

    /* Gorgeous Brand-Specific Glows on Hover */
    .widget-gmail:hover .contact-widget-link { border-color: rgba(234, 67, 53, 0.4); box-shadow: 0 20px 40px rgba(234, 67, 53, 0.15), var(--shadow-inset); }
    .widget-whatsapp:hover .contact-widget-link { border-color: rgba(37, 211, 102, 0.4); box-shadow: 0 20px 40px rgba(37, 211, 102, 0.15), var(--shadow-inset); }
    .widget-instagram:hover .contact-widget-link { border-color: rgba(225, 48, 108, 0.4); box-shadow: 0 20px 40px rgba(225, 48, 108, 0.15), var(--shadow-inset); }
    .widget-linkedin:hover .contact-widget-link { border-color: rgba(0, 119, 181, 0.4); box-shadow: 0 20px 40px rgba(0, 119, 181, 0.15), var(--shadow-inset); }

    /* Stunning 3D Tactile Unfolding Hovers on Static Rotations (Pauses Float on Hover) */
    .contact-floating-widget:hover .contact-widget-float-wrapper {
      animation-play-state: paused;
    }
    .widget-gmail:hover .contact-widget-perspective-wrapper {
      transform: scale(1.03) rotateY(6deg) rotateX(1deg) rotateZ(-1deg) !important;
      box-shadow: 0 30px 60px rgba(234, 67, 53, 0.12);
    }
    .widget-whatsapp:hover .contact-widget-perspective-wrapper {
      transform: scale(1.03) rotateY(6deg) rotateX(-1deg) rotateZ(1deg) !important;
      box-shadow: 0 30px 60px rgba(37, 211, 102, 0.12);
    }
    .widget-instagram:hover .contact-widget-perspective-wrapper {
      transform: scale(1.03) rotateY(-6deg) rotateX(1deg) rotateZ(1deg) !important;
      box-shadow: 0 30px 60px rgba(225, 48, 108, 0.12);
    }
    .widget-linkedin:hover .contact-widget-perspective-wrapper {
      transform: scale(1.03) rotateY(-6deg) rotateX(-1deg) rotateZ(-1deg) !important;
      box-shadow: 0 30px 60px rgba(0, 119, 181, 0.12);
    }

    /* Clean Infinite Float Keyframes (vertical transition only, avoiding rotation fights) */
    @keyframes contact-float-1 {
      0% { transform: translateY(0px); }
      100% { transform: translateY(-8px); }
    }
    @keyframes contact-float-2 {
      0% { transform: translateY(0px); }
      100% { transform: translateY(8px); }
    }
    @keyframes contact-float-3 {
      0% { transform: translateY(0px); }
      100% { transform: translateY(-7px); }
    }
    @keyframes contact-float-4 {
      0% { transform: translateY(0px); }
      100% { transform: translateY(7px); }
    }

    /* COMPREHENSIVE RESPONSIVE MOBILE OVERRIDES */
    @media (max-width: 991px) {
      .contact-ambient-glow {
        width: 100%;
        height: 100%;
      }
      
      .contact-scene-container {
        height: auto;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
      }

      .contact-bg-text {
        font-size: 80px;
        opacity: 0.015;
      }

      .contact-scene {
        flex-direction: column;
        gap: 20px;
        height: auto;
        transform: none !important;
        z-index: 6 !important;
      }

      .contact-portrait-card {
        position: relative;
        bottom: auto;
        width: 220px; /* Slightly larger on mobile */
        height: 280px;
        margin-bottom: 10px;
        order: -1;
        z-index: 10 !important;
      }

      .contact-floating-widget, .contact-widget-float-wrapper, .contact-widget-perspective-wrapper {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        animation: none !important;
        width: 100%;
        max-width: 290px;
      }

      .contact-widget-link {
        width: 100%;
        padding: 12px 16px;
      }
    }
