        /* ── Theme Variables ───────────────────────────── */
        :root {
            --bg-body: #0a0a12;
            --text-primary: #fff;
            --text-soft: rgba(255, 255, 255, 0.7);
            --text-muted: rgba(255, 255, 255, 0.5);
            --text-faint: rgba(255, 255, 255, 0.35);
            --glass-bg: rgba(255, 255, 255, 0.08);
            --glass-bg-hover: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.12);
            --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
            --glass-shadow-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.35);
            --input-bg: rgba(255, 255, 255, 0.06);
            --input-border: rgba(255, 255, 255, 0.12);
            --divider: rgba(255, 255, 255, 0.1);
            --scrollbar-thumb: rgba(255, 255, 255, 0.15);
            --bg-wallpaper-brightness: 0.3;
            --bg-overlay: linear-gradient(135deg, rgba(10, 10, 18, 0.5) 0%, transparent 50%, rgba(10, 10, 18, 0.6) 100%);
            --accent: #667eea;
            --accent-glow: rgba(102, 126, 234, 0.4);
            --tag-bg: rgba(255, 255, 255, 0.08);
            --tag-border: rgba(255, 255, 255, 0.1);
            --tag-color: rgba(255, 255, 255, 0.65);
        }

        [data-theme="light"] {
            --bg-body: #e8ecf1;
            --text-primary: #1e293b;
            --text-soft: rgba(30, 41, 59, 0.72);
            --text-muted: rgba(30, 41, 59, 0.52);
            --text-faint: rgba(30, 41, 59, 0.38);
            --glass-bg: rgba(255, 255, 255, 0.45);
            --glass-bg-hover: rgba(255, 255, 255, 0.6);
            --glass-border: rgba(255, 255, 255, 0.5);
            --glass-shadow: 0 8px 32px 0 rgba(100, 120, 160, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
            --glass-shadow-hover: 0 12px 40px 0 rgba(100, 120, 160, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
            --input-bg: rgba(255, 255, 255, 0.5);
            --input-border: rgba(0, 0, 0, 0.08);
            --divider: rgba(30, 41, 59, 0.08);
            --scrollbar-thumb: rgba(30, 41, 59, 0.18);
            --bg-wallpaper-brightness: 1.05;
            --bg-overlay: linear-gradient(135deg, rgba(232, 236, 241, 0.25) 0%, transparent 50%, rgba(232, 236, 241, 0.3) 100%);
            --accent: #4f6ce5;
            --accent-glow: rgba(79, 108, 229, 0.3);
            --tag-bg: rgba(79, 108, 229, 0.08);
            --tag-border: rgba(79, 108, 229, 0.15);
            --tag-color: rgba(30, 41, 59, 0.65);
        }

        /* ── Reset & Base ──────────────────────────────── */
        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            font-size: 16px;
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            color: var(--text-primary);
            min-height: 100vh;
            overflow: auto;
            background: var(--bg-body);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.4s ease, background 0.4s ease;
        }

        /* ── Glowing Border Around Page ────────────────── */
        .glow-border {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border: 2px solid rgba(255, 255, 255, 0.15);
            border-radius: 18px;
            pointer-events: none;
            z-index: 99999;
            animation: borderGlow 3s ease-in-out infinite;
        }

        @keyframes borderGlow {

            0%,
            100% {
                border-color: rgba(255, 255, 255, 0.08);
                box-shadow:
                    inset 0 0 25px rgba(255, 255, 255, 0.03),
                    0 0 15px rgba(255, 255, 255, 0.05);
            }

            50% {
                border-color: rgba(255, 255, 255, 0.55);
                box-shadow:
                    inset 0 0 60px rgba(255, 255, 255, 0.1),
                    0 0 35px rgba(255, 255, 255, 0.2),
                    0 0 80px rgba(255, 255, 255, 0.08);
            }
        }

        [data-theme="light"] .glow-border {
            animation: borderGlowLight 3s ease-in-out infinite;
        }

        @keyframes borderGlowLight {

            0%,
            100% {
                border-color: rgba(255, 255, 255, 0.2);
                box-shadow:
                    inset 0 0 20px rgba(255, 255, 255, 0.05),
                    0 0 10px rgba(255, 255, 255, 0.08);
            }

            50% {
                border-color: rgba(255, 255, 255, 0.75);
                box-shadow:
                    inset 0 0 60px rgba(255, 255, 255, 0.15),
                    0 0 40px rgba(255, 255, 255, 0.25),
                    0 0 80px rgba(255, 255, 255, 0.12);
            }
        }

        /* ── Background Wallpaper Layers (crossfade) ──── */
        .wallpaper-night,
        .wallpaper-day {
            position: fixed;
            inset: 0;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            z-index: -2;
            transition: opacity 0.8s ease;
        }

        .wallpaper-night {
            background-image: url('https://9to5mac.com/wp-content/uploads/sites/6/2018/06/mojave-night.jpg');
            filter: brightness(0.3) saturate(1.2);
            opacity: 1;
        }

        .wallpaper-day {
            background-image: url('https://9to5mac.com/wp-content/uploads/sites/6/2018/06/mojave-day.jpg');
            filter: brightness(1.05) saturate(1.1);
            opacity: 0;
        }

        [data-theme="light"] .wallpaper-night {
            opacity: 0;
        }

        [data-theme="light"] .wallpaper-day {
            opacity: 1;
        }

        body::before {
            display: none;
        }

        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background: var(--bg-overlay);
            z-index: -1;
            transition: background 0.6s ease;
        }

        /* ── Scrollbar ─────────────────────────────────── */
        ::-webkit-scrollbar {
            width: 4px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--scrollbar-thumb);
            border-radius: 3px;
        }

        /* ── Glass Panel Utility ───────────────────────── */
        .glass-panel {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 18px;
            box-shadow: var(--glass-shadow);

            transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
        }

        .glass-panel:hover {
            background: var(--glass-bg-hover);
            box-shadow: var(--glass-shadow-hover);
        }

        /* ── Typography ────────────────────────────────── */
        .text-muted {
            color: var(--text-muted);
        }

        .text-soft {
            color: var(--text-soft);
        }

        .text-white {
            color: var(--text-primary);
        }

        /* ── Dashboard Shell ───────────────────────────── */
        .dashboard {
            display: flex;
            flex-direction: column;
            max-width: 1200px;
            width: 100%;
            height: auto;
            max-height: none;
            padding: 16px 20px 70px;
            gap: 12px;
            margin: auto;
        }

        /* ── Top Nav ───────────────────────────────────── */
        .top-nav {
            position: relative;
            display: flex;
            justify-content: center;
            flex-shrink: 0;
            z-index: 100;
        }

        .top-nav-inner {
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 5px 12px;
            border-radius: 50px;
        }

        .top-nav-inner .nav-icon {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 0.78rem;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: visible;
        }

        .top-nav-inner .nav-icon:hover {
            color: var(--text-primary);
            background: var(--glass-bg);
        }

        .top-nav-inner .nav-icon.active {
            color: var(--text-primary);
            background: var(--glass-bg-hover);
        }

        .nav-icon .badge {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 6px;
            height: 6px;
            background: #ff4757;
            border-radius: 50%;
            border: 1.5px solid rgba(0, 0, 0, 0.3);
        }

        /* ── Top Nav: Search Overlay ──────────────────── */
        .topnav-search-overlay {
            position: fixed;
            inset: 0;
            z-index: 2000;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 12vh;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }

        .topnav-search-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        [data-theme="light"] .topnav-search-overlay {
            background: rgba(200, 210, 225, 0.5);
        }

        .topnav-search-box {
            width: 520px;
            max-width: 90vw;
            padding: 0;
            overflow: hidden;
            transform: translateY(-12px) scale(0.97);
            transition: transform 0.25s ease;
        }

        .topnav-search-overlay.open .topnav-search-box {
            transform: translateY(0) scale(1);
        }

        .topnav-search-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 18px;
            border-bottom: 1px solid var(--divider);
        }

        .topnav-search-header i {
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .topnav-search-header input {
            flex: 1;
            background: none;
            border: none;
            outline: none;
            color: var(--text-primary);
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
        }

        .topnav-search-header input::placeholder {
            color: var(--text-faint);
        }

        .topnav-search-header kbd {
            padding: 2px 8px;
            border-radius: 5px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            font-size: 0.6rem;
            font-family: 'Inter', sans-serif;
            color: var(--text-faint);
        }

        .topnav-search-results {
            padding: 10px;
            max-height: 320px;
            overflow-y: auto;
        }

        .topnav-search-hint {
            text-align: center;
            padding: 20px;
            font-size: 0.72rem;
            color: var(--text-faint);
        }

        .topnav-search-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .topnav-search-item:hover,
        .topnav-search-item.focused {
            background: var(--glass-bg);
        }

        .topnav-search-item-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: rgba(79, 108, 229, 0.12);
            color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            flex-shrink: 0;
        }

        .topnav-search-item-title {
            font-size: 0.78rem;
            font-weight: 500;
            color: var(--text-primary);
        }

        .topnav-search-item-desc {
            font-size: 0.62rem;
            color: var(--text-faint);
        }

        .topnav-search-no-results {
            text-align: center;
            padding: 24px;
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        /* ── Top Nav: Dropdowns ──────────────────────── */
        .topnav-dropdown {
            position: absolute;
            top: calc(100% + 12px);
            right: -10px;
            width: 280px;
            border-radius: 14px;
            padding: 0;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-6px) scale(0.96);
            transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
            z-index: 200;
            background: rgba(20, 20, 35, 0.92);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
        }

        [data-theme="light"] .topnav-dropdown {
            background: rgba(255, 255, 255, 0.88);
            border: 1px solid rgba(0, 0, 0, 0.08);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
        }

        .topnav-dropdown.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .topnav-dropdown-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px 10px;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .topnav-dropdown-badge {
            font-size: 0.6rem;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 50px;
            background: rgba(255, 71, 87, 0.15);
            color: #ff4757;
        }

        .topnav-dropdown-divider {
            height: 1px;
            background: var(--divider);
            margin: 4px 12px;
        }

        .topnav-dropdown-items {
            padding: 6px 8px;
            max-height: 300px;
            overflow-y: auto;
        }

        /* Notification items */
        .topnav-notif-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .topnav-notif-item:hover {
            background: var(--glass-bg);
        }

        .topnav-notif-item.unread {
            background: rgba(79, 108, 229, 0.05);
        }

        .topnav-notif-item.unread:hover {
            background: rgba(79, 108, 229, 0.1);
        }

        .topnav-notif-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            flex-shrink: 0;
        }

        .topnav-notif-body {
            flex: 1;
            min-width: 0;
        }

        .topnav-notif-text {
            font-size: 0.72rem;
            font-weight: 500;
            color: var(--text-primary);
            line-height: 1.3;
        }

        .topnav-notif-time {
            font-size: 0.6rem;
            color: var(--text-faint);
            margin-top: 2px;
        }

        /* User dropdown */
        .topnav-dropdown-user {
            width: 240px;
        }

        .topnav-user-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
        }

        .topnav-user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), #764ba2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            color: #fff;
            flex-shrink: 0;
        }

        .topnav-user-name {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .topnav-user-role {
            font-size: 0.62rem;
            color: var(--text-muted);
        }

        .topnav-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            border-radius: 8px;
            font-size: 0.72rem;
            color: var(--text-soft);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .topnav-menu-item:hover {
            background: var(--glass-bg);
            color: var(--text-primary);
        }

        .topnav-menu-item i {
            width: 16px;
            text-align: center;
            font-size: 0.75rem;
        }

        /* ── Bento Grid (Pixel-based Absolute Positioning) ── */
        .bento-grid {
            position: relative;
            max-width: 1160px;
            width: 100%;
            flex: 1;
            min-height: 0;
        }

        .widget {
            position: absolute;
            padding: 12px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            min-height: 0;
        }

        /* ── A. Bio Card ──────────────────────────────── */

        .widget-header .greeting {
            font-size: 0.7rem;
            font-weight: 400;
            margin-bottom: 2px;
        }

        .widget-header .title {
            font-size: 1.15rem;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 8px;
        }

        .widget-header .members-label {
            font-size: 0.6rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 5px;
        }

        .social-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }

        .social-icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            color: var(--text-soft);
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .social-icon:hover {
            background: var(--glass-bg-hover);
            color: var(--text-primary);
            transform: scale(1.1);
        }

        /* ── B. Featured Project ──────────────────────── */
        .camera-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .camera-select {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.08);
            padding: 4px 10px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .camera-select i {
            font-size: 0.6rem;
            color: rgba(255, 255, 255, 0.5);
        }

        .live-badge {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.65rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.8);
        }

        .live-dot {
            width: 7px;
            height: 7px;
            background: #2ed573;
            border-radius: 50%;
            animation: pulse-live 1.5s ease-in-out infinite;
        }

        @keyframes pulse-live {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.5);
            }

            50% {
                box-shadow: 0 0 0 5px rgba(46, 213, 115, 0);
            }
        }

        .camera-feed {
            flex: 1;
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            background: rgba(0, 0, 0, 0.3);
            min-height: 0;
        }

        .camera-feed img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .camera-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 8px;
            padding: 10px;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
        }

        .cam-btn {
            padding: 6px 14px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: #fff;
            font-size: 0.7rem;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            text-decoration: none;
            font-weight: 500;
        }

        .cam-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: scale(1.05);
        }

        .cam-btn.primary {
            background: rgba(102, 126, 234, 0.5);
            border-color: rgba(102, 126, 234, 0.4);
        }

        .cam-btn.primary:hover {
            background: rgba(102, 126, 234, 0.7);
        }

        /* ── C. Weather ───────────────────────────────── */
        .weather-current {
            margin-bottom: 4px;
        }

        .weather-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 4px;
        }

        .weather-icon {
            font-size: 1.4rem;
            color: #ffd32a;
            filter: drop-shadow(0 0 10px rgba(255, 211, 42, 0.4));
        }

        .weather-temp {
            text-align: right;
        }

        .weather-temp .degrees {
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1;
        }

        .weather-temp .unit-toggle {
            font-size: 0.65rem;
            margin-left: 2px;
        }

        .weather-temp .unit-toggle .inactive {
            opacity: 0.4;
        }

        .weather-location {
            font-size: 0.75rem;
            font-weight: 500;
            margin-bottom: 1px;
        }

        .weather-date {
            font-size: 0.65rem;
        }

        .weather-stats {
            display: flex;
            gap: 12px;
            margin-top: 4px;
        }

        .weather-stat {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.7rem;
        }

        .weather-stat i {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .weather-divider {
            height: 1px;
            background: var(--divider);
            margin: 6px 0;
        }

        .forecast-title {
            font-size: 0.6rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 6px;
        }

        .forecast-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 4px;
        }

        .forecast-day {
            text-align: center;
            padding: 6px 2px;
            border-radius: 10px;
            transition: background 0.3s ease;
            cursor: default;
        }

        .forecast-day:hover {
            background: var(--glass-bg);
        }

        .forecast-day .day {
            font-size: 0.6rem;
            margin-bottom: 4px;
        }

        .forecast-day i {
            font-size: 0.95rem;
            margin-bottom: 4px;
            display: block;
        }

        .forecast-day .hi {
            font-size: 0.75rem;
            font-weight: 600;
        }

        .forecast-day .lo {
            font-size: 0.6rem;
        }

        /* ── D. Skills ────────────────────────────────── */
        .widget-top-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 4px;
        }

        .status-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 6px;
        }

        .status-dot.on {
            background: #2ed573;
            box-shadow: 0 0 8px rgba(46, 213, 115, 0.5);
        }

        .status-dot.off {
            background: #ff4757;
        }

        .widget-title-text {
            font-size: 0.8rem;
            font-weight: 600;
        }

        .widget-subtitle {
            font-size: 0.62rem;
            margin-bottom: 2px;
        }

        /* Skill Gauge Layout */
        .skill-gauges {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 10px;
            padding: 2px 0;
            overflow: hidden;
            min-height: 0;
        }

        .skill-gauge {
            display: flex;
            flex-direction: column;
            gap: 4px;
            opacity: 0;
            transform: translateX(-10px);
            animation: gaugeSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        }

        .skill-gauge:nth-child(1) {
            animation-delay: 0.15s;
        }

        .skill-gauge:nth-child(2) {
            animation-delay: 0.3s;
        }

        .skill-gauge:nth-child(3) {
            animation-delay: 0.45s;
        }

        @keyframes gaugeSlideIn {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .skill-gauge-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .skill-gauge-label {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .skill-gauge-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .skill-gauge-dot.dot-green {
            background: #2ed573;
            box-shadow: 0 0 8px rgba(46, 213, 115, 0.6);
        }

        .skill-gauge-dot.dot-blue {
            background: #667eea;
            box-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
        }

        .skill-gauge-dot.dot-pink {
            background: #ff6b81;
            box-shadow: 0 0 8px rgba(255, 107, 129, 0.6);
        }

        .skill-gauge-name {
            font-size: 0.65rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.85);
        }

        .skill-gauge-value {
            font-size: 0.6rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.5);
        }

        /* Gauge track & fill */
        .skill-gauge-track {
            width: 100%;
            height: 6px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.06);
            overflow: hidden;
            position: relative;
        }

        .skill-gauge-fill {
            height: 100%;
            border-radius: 6px;
            position: relative;
            width: 0%;
            animation: gaugeFillGrow 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        .skill-gauge:nth-child(1) .skill-gauge-fill {
            animation-delay: 0.3s;
        }

        .skill-gauge:nth-child(2) .skill-gauge-fill {
            animation-delay: 0.5s;
        }

        .skill-gauge:nth-child(3) .skill-gauge-fill {
            animation-delay: 0.7s;
        }

        @keyframes gaugeFillGrow {
            to {
                width: var(--fill-pct);
            }
        }

        .skill-gauge-fill.fill-green {
            background: linear-gradient(90deg, #2ed573, #7bed9f);
            box-shadow: 0 0 12px rgba(46, 213, 115, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }

        .skill-gauge-fill.fill-blue {
            background: linear-gradient(90deg, #667eea, #a29bfe);
            box-shadow: 0 0 12px rgba(102, 126, 234, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }

        .skill-gauge-fill.fill-pink {
            background: linear-gradient(90deg, #ff6b81, #ffb8c6);
            box-shadow: 0 0 12px rgba(255, 107, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }

        /* Glowing tip on the fill bar */
        .skill-gauge-fill::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #fff;
            opacity: 0;
            animation: gaugeTipAppear 0.3s ease forwards;
        }

        .skill-gauge:nth-child(1) .skill-gauge-fill::after {
            animation-delay: 1.4s;
        }

        .skill-gauge:nth-child(2) .skill-gauge-fill::after {
            animation-delay: 1.6s;
        }

        .skill-gauge:nth-child(3) .skill-gauge-fill::after {
            animation-delay: 1.8s;
        }

        @keyframes gaugeTipAppear {
            to {
                opacity: 0.7;
            }
        }

        .skill-gauge-fill.fill-green::after {
            box-shadow: 0 0 6px #2ed573, 0 0 12px rgba(46, 213, 115, 0.5);
        }

        .skill-gauge-fill.fill-blue::after {
            box-shadow: 0 0 6px #667eea, 0 0 12px rgba(102, 126, 234, 0.5);
        }

        .skill-gauge-fill.fill-pink::after {
            box-shadow: 0 0 6px #ff6b81, 0 0 12px rgba(255, 107, 129, 0.5);
        }

        /* Hover: brighten the gauge */
        .skill-gauge:hover .skill-gauge-name {
            color: #fff;
        }

        .skill-gauge:hover .skill-gauge-value {
            color: rgba(255, 255, 255, 0.8);
        }

        .skill-gauge:hover .skill-gauge-fill::after {
            opacity: 1;
        }

        /* ── E. Tech Stack ────────────────────────────── */
        .app-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            margin-top: auto;
        }

        .app-tile {
            aspect-ratio: 1;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.55rem;
            font-weight: 700;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            line-height: 1.2;
            padding: 4px;
            flex-direction: column;
            gap: 3px;
        }

        .app-tile i {
            font-size: 1.1rem;
        }

        .app-tile:hover {
            transform: scale(1.06);
        }

        .app-vscode {
            background: linear-gradient(135deg, #0078d4, #005a9e);
        }

        .app-figma {
            background: linear-gradient(135deg, #a259ff, #7c3aed);
        }

        .app-docker {
            background: linear-gradient(135deg, #0db7ed, #0a85b5);
        }

        .app-react {
            background: linear-gradient(135deg, #61dafb, #21a1c9);
            color: #1a1a2e;
        }

        .app-git {
            background: linear-gradient(135deg, #f05032, #c03e24);
        }

        .app-add {
            background: rgba(255, 255, 255, 0.06);
            border: 2px dashed rgba(255, 255, 255, 0.15);
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.4);
        }

        .app-add:hover {
            border-color: rgba(255, 255, 255, 0.35);
            color: rgba(255, 255, 255, 0.7);
        }

        /* ── F. Theme Switcher ────────────────────────── */
        .led-slider-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 0;
        }

        .led-visual {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
        }

        .led-bulb {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            animation: glow-pulse 3s ease-in-out infinite;
            position: relative;
        }

        @keyframes glow-pulse {

            0%,
            100% {
                filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.4));
            }

            50% {
                filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.7));
            }
        }

        .led-slider-track {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: linear-gradient(90deg, #1a1a2e, #667eea, #fff);
            position: relative;
            cursor: pointer;
        }

        .led-slider-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #fff;
            border: 3px solid rgba(255, 255, 255, 0.9);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
            position: absolute;
            top: 50%;
            left: 60%;
            transform: translate(-50%, -50%);
            cursor: grab;
            transition: box-shadow 0.3s ease;
        }

        .led-slider-thumb:hover {
            box-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
        }

        .led-label {
            text-align: center;
            margin-top: 8px;
            font-size: 0.6rem;
        }

        /* Light theme LED bulb — warm sun glow */
        [data-theme="light"] .led-bulb {}

        [data-theme="light"] .led-slider-track {
            background: linear-gradient(90deg, #1e293b, #4f6ce5, #fbbf24);
        }

        /* ── Light theme additional polish ──────────────── */
        [data-theme="light"] .glass-panel {
            backdrop-filter: blur(20px) saturate(1.4);
            -webkit-backdrop-filter: blur(20px) saturate(1.4);
        }

        [data-theme="light"] .loader-spinner {
            border-color: rgba(30, 41, 59, 0.1);
            border-top-color: #4f6ce5;
        }

        [data-theme="light"] .loader-text {
            color: rgba(30, 41, 59, 0.4);
        }

        [data-theme="light"] .weather-icon {
            color: #f59e0b;
            filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
        }

        [data-theme="light"] .cam-btn {
            background: rgba(255, 255, 255, 0.35);
            border-color: rgba(255, 255, 255, 0.5);
            color: #1e293b;
        }

        [data-theme="light"] .cam-btn:hover {
            background: rgba(255, 255, 255, 0.6);
        }

        [data-theme="light"] .cam-btn.primary {
            background: rgba(79, 108, 229, 0.7);
            border-color: rgba(79, 108, 229, 0.6);
            color: #fff;
        }

        [data-theme="light"] .music-ctrl.play-btn {
            background: rgba(30, 41, 59, 0.08);
            border-color: rgba(30, 41, 59, 0.12);
            color: #1e293b;
        }

        [data-theme="light"] .music-ctrl.play-btn:hover {
            background: rgba(30, 41, 59, 0.15);
        }

        [data-theme="light"] .skill-gauge-name {
            color: rgba(30, 41, 59, 0.85);
        }

        [data-theme="light"] .skill-gauge-value {
            color: rgba(30, 41, 59, 0.5);
        }

        [data-theme="light"] .skill-gauge-track {
            background: rgba(30, 41, 59, 0.06);
        }

        [data-theme="light"] .app-add {
            background: rgba(30, 41, 59, 0.04);
            border-color: rgba(30, 41, 59, 0.15);
            color: rgba(30, 41, 59, 0.4);
        }

        [data-theme="light"] .app-add:hover {
            border-color: rgba(30, 41, 59, 0.3);
            color: rgba(30, 41, 59, 0.65);
        }

        [data-theme="light"] .nav-icon .badge {
            border-color: rgba(255, 255, 255, 0.6);
        }

        [data-theme="light"] .contact-map {
            background: rgba(30, 41, 59, 0.04);
            border-color: rgba(30, 41, 59, 0.08);
        }

        [data-theme="light"] .contact-map i {
            color: rgba(30, 41, 59, 0.15);
        }

        [data-theme="light"] .wifi-icon-wrap i {
            color: #16a34a;
            filter: drop-shadow(0 0 6px rgba(22, 163, 74, 0.3));
        }

        [data-theme="light"] .progress-track {
            background: rgba(30, 41, 59, 0.1);
        }

        /* ── G. Contact CTA ───────────────────────────── */
        .alexa-content {
            flex: 1;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 10px;
            min-height: 0;
        }

        .alexa-device {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .alexa-device:hover {
            transform: scale(1.1);
        }

        .alexa-device::after {
            content: '';
            position: absolute;
            inset: -3px;
            border-radius: 50%;
            border: 2px solid transparent;
            border-top-color: #667eea;
            border-right-color: #764ba2;
            animation: alexa-ring 3s linear infinite;
        }

        @keyframes alexa-ring {
            to {
                transform: rotate(360deg);
            }
        }

        .alexa-device i {
            font-size: 0.9rem;
            color: #fff;
        }

        .alexa-time {
            font-size: 1.1rem;
            font-weight: 700;
        }

        .alexa-status {
            font-size: 0.6rem;
        }

        .contact-link {
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            font-size: 0.6rem;
            transition: color 0.3s ease;
        }

        .contact-link:hover {
            color: #fff;
        }

        /* Contact CTA — multi-platform list */
        .widget-alexa {
            overflow-y: auto;
        }

        .cta-contact-list {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 2px 0;
            min-height: 0;
        }

        .cta-contact-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 8px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid transparent;
            text-decoration: none;
            color: inherit;
            cursor: pointer;
        }

        .cta-contact-item:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--glass-border);
        }

        .cta-contact-icon {
            width: 28px;
            height: 28px;
            border-radius: 7px;
            background: linear-gradient(135deg, #667eea33, #764ba233);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .cta-contact-icon i {
            font-size: 0.7rem;
            color: #667eea;
        }

        .cta-contact-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
        }

        .cta-contact-label {
            font-size: 0.55rem;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: var(--text-muted);
            line-height: 1.2;
        }

        .cta-contact-value {
            font-size: 0.65rem;
            color: var(--text-soft);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.3;
        }

        .cta-contact-item:hover .cta-contact-value {
            color: var(--text-primary);
        }

        .cta-dot-online {
            font-size: 5px;
            color: #2ed573;
            flex-shrink: 0;
        }

        .cta-dot-link {
            font-size: 0.5rem;
            color: var(--text-muted);
            flex-shrink: 0;
            transition: color 0.25s ease;
        }

        .cta-contact-item:hover .cta-dot-link {
            color: #667eea;
        }

        /* scrollbar for contact list */
        .cta-contact-list::-webkit-scrollbar {
            width: 3px;
        }

        .cta-contact-list::-webkit-scrollbar-track {
            background: transparent;
        }

        .cta-contact-list::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }

        /* ── H. Performance Stats ─────────────────────── */
        .wifi-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            min-height: 0;
        }

        .wifi-icon-wrap {
            position: relative;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .wifi-icon-wrap i {
            font-size: 1.8rem;
            color: #2ed573;
            filter: drop-shadow(0 0 8px rgba(46, 213, 115, 0.4));
        }

        .wifi-waves {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 2px solid rgba(46, 213, 115, 0.15);
            animation: wifi-wave-anim 2s ease-out infinite;
        }

        .wifi-waves:nth-child(2) {
            animation-delay: 0.6s;
        }

        .wifi-waves:nth-child(3) {
            animation-delay: 1.2s;
        }

        @keyframes wifi-wave-anim {
            0% {
                transform: scale(0.8);
                opacity: 1;
            }

            100% {
                transform: scale(1.6);
                opacity: 0;
            }
        }

        .wifi-speed {
            font-size: 1.1rem;
            font-weight: 700;
        }

        .wifi-label {
            font-size: 0.6rem;
        }

        .wifi-details {
            display: flex;
            gap: 12px;
            margin-top: 2px;
        }

        .wifi-detail {
            text-align: center;
        }

        .wifi-detail .val {
            font-size: 0.7rem;
            font-weight: 600;
        }

        .wifi-detail .lbl {
            font-size: 0.55rem;
        }

        /* ── I. Music Player ──────────────────────────── */
        .music-platform-iframe {
            display: block;
            border: none;
            border-radius: 12px;
        }

        /* ── Premium Glass Music Player ───────────────── */
        .widget.premium-glass {
            overflow: hidden !important;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
            background: #1a1a1a;
            display: flex;
            flex-direction: column;
        }

        .music-bg-layer {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            filter: blur(20px) brightness(0.6);
            transform: scale(1.1);
            z-index: 0;
        }

        .music-content {
            position: relative;
            z-index: 2;
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 12px;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
            min-height: 0;
            border-radius: 12px;
        }

        .music-top-section {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: auto;
            min-height: 0;
        }

        .album-art-premium {
            width: 56px;
            height: 56px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.15);
            flex-shrink: 0;
        }

        .album-art-premium img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .music-info-premium {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 2px;
        }

        .music-track-premium {
            font-size: 0.85rem;
            font-weight: 700;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .music-artist-premium {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.75);
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Controls */
        .music-controls-premium {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            margin-top: 8px;
        }

        .music-ctrl-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #fff;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            backdrop-filter: blur(4px);
        }

        .music-ctrl-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        .music-ctrl-btn.small {
            width: 32px;
            height: 32px;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.7);
        }

        .music-ctrl-btn.main-play {
            width: 44px;
            height: 44px;
            font-size: 1.1rem;
            background: rgba(255, 255, 255, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        /* ── Music Progress Bar (Bottom) ──────────────── */
        .progress-bar-container {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-top: auto;
        }

        .progress-time-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2px;
        }

        .progress-time {
            font-size: 0.65rem;
            font-variant-numeric: tabular-nums;
            color: rgba(255, 255, 255, 0.6);
        }

        .progress-track {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: visible;
            /* Allow handle to protrude */
            position: relative;
            cursor: pointer;
            transition: height 0.2s ease, background 0.2s ease;
        }

        .progress-track:hover {
            height: 8px;
            background: rgba(255, 255, 255, 0.15);
        }

        .progress-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 10px;
            position: relative;
            pointer-events: none;
            /* Let clicks pass to track */
        }

        /* Draggable Handle */
        .progress-fill::after {
            content: '';
            position: absolute;
            right: -6px;
            top: 50%;
            transform: translateY(-50%) scale(0);
            width: 14px;
            height: 14px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
            opacity: 0;
            transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
        }

        .progress-track:hover .progress-fill::after,
        .progress-track.dragging .progress-fill::after {
            opacity: 1;
            transform: translateY(-50%) scale(1);
        }

        .progress-track.dragging .progress-fill {
            background: linear-gradient(90deg, #764ba2, #667eea);
        }

        /* ── J. Navigation ────────────────────────────── */
        .rooms-list {
            display: flex;
            flex-direction: row;
            gap: 6px;
            flex: 1;
            align-items: center;
            flex-wrap: wrap;
            min-height: 0;
        }

        .room-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 7px 10px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.75rem;
        }

        .room-item:hover {
            background: var(--glass-bg);
        }

        .room-item.active {
            background: var(--glass-bg-hover);
            font-weight: 600;
        }

        .room-item i {
            width: 16px;
            text-align: center;
            font-size: 0.8rem;
        }

        /* ── Bottom Dock ───────────────────────────────── */
        .bottom-dock {
            position: fixed;
            bottom: 28px;
            left: 50%;
            transform: translateX(-50%) translateY(0);
            z-index: 1000;
            display: flex;
            justify-content: center;
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
            will-change: transform, opacity;
        }

        .bottom-dock.dock-hidden {
            transform: translateX(-50%) translateY(calc(100% + 40px));
            opacity: 0;
            pointer-events: none;
        }

        /* Invisible hover trigger zone at the very bottom of the screen */
        .dock-hover-zone {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 18px;
            z-index: 999;
            pointer-events: auto;
        }

        /* Peek state: dock slides up partially when hovering the trigger zone */
        .bottom-dock.dock-peek {
            transform: translateX(-50%) translateY(60%);
            opacity: 0.6;
            pointer-events: auto;
        }

        /* Full reveal on direct dock hover */
        .bottom-dock.dock-peek:hover,
        .bottom-dock.dock-hover {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

        .dock-inner {
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 5px 10px;
            border-radius: 50px;
        }

        .dock-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 7px 12px;
            border-radius: 50px;
            font-size: 0.7rem;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-muted);
            white-space: nowrap;
            text-decoration: none;
        }

        .dock-item:hover {
            color: var(--text-primary);
            background: var(--glass-bg);
        }

        .dock-item.active {
            background: var(--glass-bg-hover);
            color: var(--text-primary);
            font-weight: 500;
        }

        .dock-item i {
            font-size: 0.85rem;
        }

        /* ── Page Section Switching (Crossfade) ────────── */
        .page-sections-wrapper {
            position: relative;
            overflow: hidden;
            flex: 1;
            min-height: 0;
        }

        .page-section {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            flex: 1;
            min-height: 0;
            opacity: 0;
            visibility: hidden;
            transform: scale(0.97) translateY(12px);
            transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.45s;
            will-change: opacity, transform;
        }

        .page-section.active {
            position: relative;
            opacity: 1;
            visibility: visible;
            transform: scale(1) translateY(0);
            z-index: 1;
        }

        .page-section.fade-out {
            position: absolute;
            opacity: 0;
            visibility: hidden;
            transform: scale(0.96) translateY(-10px);
            pointer-events: none;
            z-index: 0;
        }

        /* ── Projects Page ────────────────────────────── */
        .page-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 2px;
        }

        .page-subtitle {
            font-size: 0.72rem;
            color: var(--text-muted);
            margin-bottom: 14px;
        }

        .filter-bar {
            display: flex;
            gap: 6px;
            margin-bottom: 14px;
            flex-wrap: wrap;
        }

        .filter-pill {
            padding: 5px 14px;
            border-radius: 50px;
            border: 1px solid var(--glass-border);
            background: var(--glass-bg);
            color: var(--text-muted);
            font-size: 0.68rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-pill:hover {
            background: var(--glass-bg-hover);
            color: var(--text-primary);
        }

        .filter-pill.active {
            background: rgba(102, 126, 234, 0.4);
            border-color: rgba(102, 126, 234, 0.5);
            color: #fff;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .project-card {
            border-radius: 16px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .project-thumb {
            width: 100%;
            height: 140px;
            object-fit: cover;
            display: block;
        }

        .project-body {
            padding: 12px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .project-name {
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .project-desc {
            font-size: 0.68rem;
            color: var(--text-muted);
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .project-tags {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }

        .project-tag {
            padding: 2px 8px;
            border-radius: 50px;
            background: var(--tag-bg);
            border: 1px solid var(--tag-border);
            font-size: 0.58rem;
            color: var(--tag-color);
        }

        .project-links {
            display: flex;
            gap: 6px;
            margin-top: auto;
        }

        .project-link {
            padding: 5px 12px;
            border-radius: 50px;
            font-size: 0.65rem;
            text-decoration: none;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s ease;
            border: 1px solid var(--glass-border);
            background: var(--glass-bg);
        }

        .project-link:hover {
            background: var(--glass-bg-hover);
        }

        .project-link.primary {
            background: rgba(102, 126, 234, 0.4);
            border-color: rgba(102, 126, 234, 0.4);
        }

        .project-link.primary:hover {
            background: rgba(102, 126, 234, 0.6);
        }

        /* ── Resume Page ──────────────────────────────── */
        .resume-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 12px;
        }

        .resume-card {
            padding: 16px;
            border-radius: 16px;
        }

        .resume-section-title {
            font-size: 0.78rem;
            font-weight: 600;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .resume-section-title i {
            font-size: 0.85rem;
            color: #667eea;
        }

        .timeline {
            position: relative;
            padding-left: 18px;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 4px;
            top: 6px;
            bottom: 6px;
            width: 2px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 1px;
        }

        .timeline-item {
            position: relative;
            margin-bottom: 16px;
        }

        .timeline-item:last-child {
            margin-bottom: 0;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -18px;
            top: 6px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #667eea;
            border: 2px solid rgba(10, 10, 18, 0.8);
            box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
        }

        .timeline-role {
            font-size: 0.8rem;
            font-weight: 600;
        }

        .timeline-company {
            font-size: 0.7rem;
            color: #667eea;
            margin-bottom: 2px;
        }

        .timeline-date {
            font-size: 0.6rem;
            color: var(--text-faint);
            margin-bottom: 4px;
        }

        .timeline-desc {
            font-size: 0.66rem;
            color: var(--text-muted);
            line-height: 1.45;
        }

        .skill-bar-group {
            margin-bottom: 10px;
        }

        .skill-bar-group:last-child {
            margin-bottom: 0;
        }

        .skill-bar-label {
            display: flex;
            justify-content: space-between;
            font-size: 0.68rem;
            margin-bottom: 4px;
        }

        .skill-bar-label span:last-child {
            color: var(--text-muted);
        }

        .skill-bar-track {
            height: 6px;
            background: var(--input-bg);
            border-radius: 3px;
            overflow: hidden;
        }

        .skill-bar-fill {
            height: 100%;
            border-radius: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .skill-bar-fill.green {
            background: linear-gradient(90deg, #2ed573, #7bed9f);
        }

        .skill-bar-fill.pink {
            background: linear-gradient(90deg, #ff6b81, #ffb8c6);
        }

        .skill-bar-fill.blue {
            background: linear-gradient(90deg, #0db7ed, #74b9ff);
        }

        .edu-item {
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .edu-item:last-child {
            margin-bottom: 0;
            border-bottom: none;
            padding-bottom: 0;
        }

        .edu-degree {
            font-size: 0.78rem;
            font-weight: 600;
        }

        .edu-school {
            font-size: 0.68rem;
            color: #667eea;
        }

        .edu-date {
            font-size: 0.6rem;
            color: rgba(255, 255, 255, 0.4);
        }

        .lang-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            font-size: 0.7rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .lang-row:last-child {
            border-bottom: none;
        }

        .lang-level {
            font-size: 0.6rem;
            padding: 2px 8px;
            border-radius: 50px;
            background: rgba(102, 126, 234, 0.2);
            color: #a29bfe;
        }

        .btn-download {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 24px;
            border-radius: 50px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: #fff;
            text-decoration: none;
            font-size: 0.75rem;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 14px;
        }

        .btn-download:hover {
            transform: scale(1.04);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        /* ── Contact Page ─────────────────────────────── */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .contact-form-card {
            padding: 20px;
            border-radius: 16px;
        }

        .form-group {
            margin-bottom: 12px;
        }

        .form-label {
            display: block;
            font-size: 0.68rem;
            font-weight: 500;
            margin-bottom: 4px;
            color: var(--text-muted);
        }

        .form-input,
        .form-textarea {
            width: 100%;
            padding: 10px 14px;
            border-radius: 10px;
            border: 1px solid var(--input-border);
            background: var(--input-bg);
            color: var(--text-primary);
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            transition: all 0.3s ease;
            outline: none;
        }

        .form-input:focus,
        .form-textarea:focus {
            border-color: rgba(102, 126, 234, 0.5);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
        }

        .form-textarea {
            resize: vertical;
            min-height: 100px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .btn-send {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 28px;
            border-radius: 50px;

            font-size: 0.75rem;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Inter', sans-serif;
        }

        .btn-send:hover {
            transform: scale(1.04);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .contact-info-stack {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .contact-info-card {
            padding: 16px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .contact-info-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background: rgba(102, 126, 234, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            color: #667eea;
            flex-shrink: 0;
        }

        .contact-info-label {
            font-size: 0.6rem;
            color: var(--text-faint);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .contact-info-value {
            font-size: 0.78rem;
            font-weight: 500;
        }

        .contact-info-value a {
            color: var(--text-primary);
            text-decoration: none;
        }

        .contact-info-value a:hover {
            color: #667eea;
        }

        .contact-map {
            border-radius: 14px;
            overflow: hidden;
            height: 140px;
            background: rgba(255, 255, 255, 0.04);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 255, 255, 0.08);
            position: relative;
        }

        .contact-map i {
            font-size: 2rem;
            color: rgba(255, 255, 255, 0.15);
        }

        .contact-map-label {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.6rem;
            color: rgba(255, 255, 255, 0.35);
        }

        /* ── Blog Page ────────────────────────────────── */
        .blog-featured {
            border-radius: 16px;
            overflow: hidden;
            display: grid;
            grid-template-columns: 1fr 1fr;
            margin-bottom: 14px;
        }

        .blog-featured-img {
            width: 100%;
            height: 100%;
            min-height: 180px;
            object-fit: cover;
            display: block;
        }

        .blog-featured-body {
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .blog-category {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 50px;
            font-size: 0.58rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
            width: fit-content;
        }

        .blog-category.tech {
            background: rgba(102, 126, 234, 0.25);
            color: #a29bfe;
        }

        .blog-category.design {
            background: rgba(255, 107, 129, 0.25);
            color: #ff6b81;
        }

        .blog-category.life {
            background: rgba(46, 213, 115, 0.25);
            color: #7bed9f;
        }

        .blog-category.tutorial {
            background: rgba(255, 211, 42, 0.25);
            color: #ffd32a;
        }

        .blog-date {
            font-size: 0.6rem;
            color: var(--text-faint);
            margin-bottom: 4px;
        }

        .blog-title {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 6px;
            line-height: 1.3;
        }

        .blog-excerpt {
            font-size: 0.7rem;
            color: var(--text-muted);
            line-height: 1.5;
            margin-bottom: 10px;
        }

        .blog-read-more {
            font-size: 0.7rem;
            color: #667eea;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: gap 0.3s ease;
        }

        .blog-read-more:hover {
            gap: 10px;
        }

        .blog-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .blog-card {
            border-radius: 16px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .blog-card-img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            display: block;
        }

        .blog-card-body {
            padding: 12px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .blog-card .blog-title {
            font-size: 0.82rem;
        }

        .blog-card .blog-excerpt {
            font-size: 0.66rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* ── Responsive ────────────────────────────────── */
        @media (max-width: 1200px) {
            .dashboard {
                max-height: none;
                min-height: 100vh;
            }

            /* Override absolute positioning — stack widgets vertically */
            .bento-grid {
                display: flex !important;
                flex-direction: column;
                gap: 10px;
                height: auto !important;
            }

            .bento-grid .widget {
                position: relative !important;
                left: auto !important;
                top: auto !important;
                width: 100% !important;
                height: auto !important;
                min-height: 120px;
            }

            .widget-camera {
                min-height: 260px;
            }

            .rooms-list {
                flex-direction: column;
            }

            .alexa-content {
                flex-direction: column;
            }

            .projects-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .resume-grid {
                grid-template-columns: 1fr;
            }

            .contact-grid {
                grid-template-columns: 1fr;
            }

            .blog-featured {
                grid-template-columns: 1fr;
            }

            .blog-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* ── Page Widget Layout (absolute positioning — matches admin editor) ─── */
        .pw-grid {
            position: relative;
            max-width: 1160px;
            margin-left: auto;
            margin-right: auto;
        }

        .pw-widget {
            position: absolute;
            box-sizing: border-box;
            overflow: auto;
        }

        .pw-widget>.resume-card,
        .pw-widget>.project-card,
        .pw-widget>.blog-card,
        .pw-widget>.glass-panel {
            height: 100%;
            box-sizing: border-box;
        }

        /* Pagination */
        .pw-pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 20px;
            padding: 10px 0 30px;
        }

        .pw-pagination .pw-page-btn {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.06);
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s ease;
            font-family: 'Inter', sans-serif;
        }

        .pw-pagination .pw-page-btn:hover {
            background: rgba(102, 126, 234, 0.15);
            border-color: rgba(102, 126, 234, 0.4);
            color: #fff;
        }

        .pw-pagination .pw-page-btn.active {
            background: rgba(102, 126, 234, 0.25);
            border-color: #667eea;
            color: #667eea;
        }

        .pw-pagination .pw-page-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .pw-pagination .pw-page-info {
            font-size: 0.65rem;
            color: rgba(255, 255, 255, 0.35);
            margin: 0 8px;
        }

        .pw-widget.pw-hidden {
            display: none !important;
        }

        @media (max-width: 768px) {
            .pw-grid {
                height: auto !important;
            }

            .pw-widget {
                position: relative !important;
                left: auto !important;
                top: auto !important;
                width: 100% !important;
                height: auto !important;
                min-height: 60px;
                margin-bottom: 10px;
            }

            .pw-widget.pw-hidden {
                display: none !important;
            }
        }



        @media (max-width: 768px) {
            .dashboard {
                padding: 10px;
                gap: 10px;
                max-height: none;
            }

            .widget-camera {
                min-height: 220px;
            }

            .widget {
                padding: 14px;
            }

            .glass-panel {
                border-radius: 16px;
            }

            .music-layout {
                flex-direction: row;
            }

            .album-art {
                width: 80px;
                height: 80px;
                min-height: auto;
            }

            .alexa-content {
                flex-direction: row;
            }

            .rooms-list {
                flex-direction: column;
            }

            .dock-inner {
                flex-wrap: nowrap;
                justify-content: center;
                border-radius: 50px;
                gap: 0;
                padding: 4px 6px;
            }

            .dock-item {
                padding: 8px 12px;
                font-size: 0.65rem;
            }

            .dock-item i {
                font-size: 1rem;
            }

            .dock-item span {
                display: none;
                font-size: 0.6rem;
            }

            .dock-item.active span {
                display: inline;
            }

            .forecast-grid {
                grid-template-columns: repeat(4, 1fr);
            }

            .wifi-content {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .blog-grid {
                grid-template-columns: 1fr;
            }

            .blog-featured {
                grid-template-columns: 1fr;
            }

            .blog-featured-img {
                min-height: 140px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .pw-row {
                grid-template-columns: 1fr !important;
            }

            /* Fix notification & user dropdown overflow on mobile */
            .topnav-dropdown {
                position: fixed;
                top: 52px;
                left: 12px;
                right: 12px;
                width: auto;
                max-width: none;
            }
        }

        /* ── Loading Screen ───────────────────────────────── */
        .page-loader {
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: var(--bg-body);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 24px;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .page-loader.loaded {
            opacity: 0;
            visibility: hidden;
        }

        .loader-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(255, 255, 255, 0.08);
            border-top-color: #667eea;
            border-radius: 50%;
            animation: loader-spin 0.8s linear infinite;
        }

        .loader-text {
            font-family: 'Inter', sans-serif;
            font-size: 0.8rem;
            font-weight: 500;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.35);
        }

        @keyframes loader-spin {
            to {
                transform: rotate(360deg);
            }
        }
        