/* Page Sections */
        .page-section {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .page-section.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Settings Panel Styles */
        .settings-panel {
            position: fixed;
            top: 80px;
            right: 20px;
            bottom: 20px; /* Stretch to bottom with margin */
            width: 600px; /* Increased width to fit all tabs */
            background: rgba(0, 0, 0, 0.95);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 0;
            z-index: 2001;
            transform: translateX(120%); /* Slide from right */
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            box-shadow: -10px 10px 40px rgba(0,0,0,0.5);
            display: flex;
            flex-direction: column;
            opacity: 1; /* Reset opacity from previous change */
            visibility: visible; /* Reset visibility */
        }

        .settings-panel.show {
            transform: translateX(0);
        }

        .settings-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.2rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
        }

        .settings-content {
            padding: 1.5rem; /* Optimized padding */
            overflow-y: auto;
            flex: 1;
            /* Custom Scrollbar */
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
        }

        .settings-content::-webkit-scrollbar {
            width: 6px;
            display: block;
        }

        .settings-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
        }

        .settings-content::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
        }

        .settings-content::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        /* Settings Tabs */
        .settings-tabs {
            display: flex;
            background: rgba(255, 255, 255, 0.05);
            padding: 0.5rem;
            gap: 0.5rem;
            border-bottom: 1px solid var(--border-color);
            overflow-x: auto;
            flex-shrink: 0;
            /* Custom Scrollbar */
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
        }

        .settings-tabs::-webkit-scrollbar {
            height: 4px;
            display: block;
        }

        .settings-tabs::-webkit-scrollbar-track {
            background: transparent;
        }

        .settings-tabs::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
        }

        .settings-tab {
            padding: 0.6rem 0.8rem; /* More compact padding */
            border-radius: 20px;
            cursor: pointer;
            color: var(--text-secondary);
            font-size: 0.8rem; /* Slightly smaller font */
            font-weight: 600;
            white-space: nowrap;
            transition: all 0.2s;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.02);
        }

        .settings-tab:hover {
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--text-main);
        }

        .settings-tab.active {
            background: var(--text-main);
            color: black;
            border-color: var(--text-main);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }

        .settings-section {
            display: none;
        }

        .settings-section.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .admin-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            max-height: 200px;
            overflow-y: auto;
            margin-top: 1rem;
            padding-right: 5px; /* Space for scrollbar */
            /* Custom Scrollbar */
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
        }

        .admin-list::-webkit-scrollbar {
            width: 4px;
            display: block;
        }
        
        .admin-list::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
        }

        .admin-list::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
        }

        .admin-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            border: 1px solid transparent;
        }

        .admin-item:hover {
            border-color: var(--border-color);
        }

        .admin-item-title {
            color: var(--text-main);
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 200px;
        }

        .btn-delete {
            background: #ff4444;
            color: white;
            border: none;
            padding: 0.2rem 0.5rem;
            border-radius: 3px;
            cursor: pointer;
            font-size: 0.8rem;
        }

        .btn-delete:hover {
            background: #cc0000;
        }

        .setting-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .setting-item label {
            color: var(--text-secondary);
            flex: 1;
        }

        .setting-item input[type="color"] {
            border: none;
            width: 40px;
            height: 40px;
            cursor: pointer;
            background: none;
        }

        .setting-item input[type="file"] {
            color: var(--text-secondary);
            font-size: 0.8rem;
            width: 100%;
            margin-top: 0.5rem;
        }

        .admin-section {
            margin-top: 2rem;
            border-top: 1px solid var(--border-color);
            padding-top: 1rem;
        }
        
        .admin-section h4 {
            color: var(--text-main);
            margin-bottom: 1rem;
        }

        .form-group {
            margin-bottom: 1rem;
        }
        
        .form-group input, .form-group textarea, .form-group select {
            width: 100%;
            padding: 0.8rem 1rem;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: white;
            margin-bottom: 1rem;
            font-size: 0.95rem;
            transition: border-color 0.2s;
        }

        .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
            outline: none;
            border-color: var(--text-main);
            background: rgba(255, 255, 255, 0.12);
        }

        .btn-upload {
            background: var(--text-main);
            color: black;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            width: 100%;
        }

        :root {
            /* Black & White Starry Theme */
            --bg-color: #000000;
            --card-bg: rgba(20, 20, 20, 0.65);
            --text-main: #ffffff;
            --text-secondary: #a0a0a0;
            --accent-glow: rgba(255, 255, 255, 0.2);
            --border-color: rgba(255, 255, 255, 0.15);
            
            /* Monochrome Accents */
            --accent-white: #ffffff;
            --accent-gray: #888888;
            --accent-silver: #c0c0c0;
            
            /* Shadows for depth in dark mode */
            --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.8);
            --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.5), 0 10px 15px rgba(0, 0, 0, 0.3);
            
            --radius-lg: 24px;
            --radius-md: 16px;
            --radius-pill: 50px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Nunito', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            line-height: 1.6;
            min-height: 100vh;
            padding-bottom: 100px;
            overflow-x: hidden;
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            transition: background 0.5s ease;
        }

        /* Canvas Particle System */
        #particleCanvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            /* Make it transparent so background image is clear */
            background: transparent;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 70px;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(16px);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 2rem;
            z-index: 1000;
            border-bottom: 1px solid var(--border-color);
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 800;
            font-size: 1.2rem;
            color: var(--text-main);
            text-decoration: none;
            font-family: 'Orbitron', sans-serif;
            letter-spacing: 1px;
        }

        .brand-logo {
            width: 32px;
            height: 32px;
            background: var(--text-main);
            color: black;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            font-weight: 900;
        }

        .nav-items {
            display: flex;
            gap: 0.5rem;
        }

        .nav-link {
            text-decoration: none;
            color: var(--text-secondary);
            font-weight: 600;
            padding: 0.5rem 1.2rem;
            border-radius: var(--radius-pill);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.95rem;
            border: 1px solid transparent;
        }

        .nav-link:hover {
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .nav-link.active {
            background: var(--text-main);
            color: black;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .icon-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
        }

        .icon-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            color: var(--text-main);
            border-color: var(--text-main);
        }

        .icon-btn.music-active {
            background: var(--text-main);
            color: black;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .user-avatar-sm {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--text-main);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }

        /* Layout */
        .container {
            max-width: 1400px;
            margin: 100px auto 0;
            padding: 0 1.5rem;
            display: grid;
            grid-template-columns: 350px 1fr; /* 350px Sidebar + Rest */
            gap: 2rem;
            align-items: start;
        }

        /* Left Sidebar Styles */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            position: sticky;
            top: 90px;
            height: calc(100vh - 120px);
            overflow-y: auto;
            scrollbar-width: none; /* Hide scrollbar Firefox */
        }
        
        .sidebar::-webkit-scrollbar {
            display: none; /* Hide scrollbar Chrome/Safari */
        }

        .profile-card {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            padding: 2rem 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            box-shadow: var(--shadow-soft);
            border: 1px solid var(--border-color);
            backdrop-filter: blur(10px);
            position: relative;
        }

        .profile-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin-bottom: 1rem;
            border: 4px solid var(--text-main);
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
            object-fit: cover;
        }

        .profile-name {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-main);
            margin-bottom: 0.5rem;
            font-family: 'Orbitron', sans-serif;
        }

        .profile-badge {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-main);
            padding: 0.3rem 1rem;
            border-radius: var(--radius-pill);
            font-size: 0.8rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .profile-bio {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .social-row {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            justify-content: center;
        }

        .social-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-main);
            font-size: 1.1rem;
            text-decoration: none;
            transition: all 0.2s;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(0, 0, 0, 0.3);
        }

        .social-btn:hover {
            transform: translateY(-3px);
            background: var(--text-main);
            color: black;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
        }

        .skills-section {
            width: 100%;
            text-align: left;
            margin-bottom: 2rem;
        }

        .skills-title, .tools-title {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-secondary);
            margin-bottom: 0.8rem;
            font-weight: 700;
        }

        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .skill-chip {
            background: transparent;
            color: var(--text-main);
            padding: 0.3rem 0.8rem;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: all 0.3s;
        }
        
        .skill-chip:hover {
            background: var(--text-main);
            color: black;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }

        /* Tools Section */
        .tools-section {
            width: 100%;
            text-align: left;
            margin-bottom: 5rem; /* Space for music player */
        }

        .tools-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .tool-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.8rem;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.2s;
        }

        .tool-item:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .tool-icon {
            font-size: 1.2rem;
            color: var(--text-main);
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
        }

        .tool-details h4 {
            font-size: 0.9rem;
            color: var(--text-main);
            margin-bottom: 0.2rem;
        }

        .tool-details p {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        /* Fixed Music Player in Sidebar */
        .music-player-fixed {
            position: absolute;
            bottom: 1.5rem;
            left: 1.5rem;
            right: 1.5rem;
            background: rgba(0, 0, 0, 0.9);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
            backdrop-filter: blur(10px);
        }

        .player-info-mini {
            display: flex;
            flex-direction: column;
        }

        .player-title {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .player-status {
            font-size: 0.7rem;
            color: var(--text-secondary);
        }

        .player-btn-mini {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--text-main);
            color: black;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.9rem;
        }

        .player-btn-mini:hover {
            transform: scale(1.1);
        }

        /* Right Content */
        .main-content {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        /* Hero Card */
        .hero-card {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            padding: 3rem;
            box-shadow: var(--shadow-soft);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: center;
            border: 1px solid var(--border-color);
            backdrop-filter: blur(10px);
        }

        /* Feature Card (New Style) */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-top: 2rem;
        }

        .feature-card {
            position: relative;
            height: 220px;
            border-radius: var(--radius-lg);
            overflow: hidden;
            text-decoration: none;
            box-shadow: var(--shadow-card);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid var(--border-color);
            background: var(--card-bg);
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
            border-color: var(--text-main);
        }

        .feature-card-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            transition: transform 0.5s ease;
        }

        .feature-card:hover .feature-card-bg {
            transform: scale(1.05);
        }

        .feature-card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
        }

        .feature-card-content {
            position: absolute;
            bottom: 1.5rem;
            left: 1.5rem;
            z-index: 2;
        }

        .feature-card h3 {
            color: white;
            font-size: 1.5rem;
            font-weight: 800;
            margin-bottom: 0.3rem;
            font-family: 'Orbitron', sans-serif;
            letter-spacing: 1px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        }

        .feature-card span {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.85rem;
            font-weight: 600;
        }

        @media (max-width: 900px) {
            .feature-grid {
                grid-template-columns: 1fr;
            }
            .feature-card {
                height: 180px;
            }
        }

        .hero-greeting {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--text-main);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-family: 'Orbitron', sans-serif;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }

        .hero-text {
            color: var(--text-secondary);
            font-size: 1.1rem;
            max-width: 600px;
            margin-bottom: 2rem;
            line-height: 1.8;
        }

        .hero-actions {
            display: flex;
            gap: 1rem;
        }

        .btn {
            padding: 0.8rem 1.8rem;
            border-radius: var(--radius-pill);
            font-weight: 700;
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1px solid transparent;
            cursor: pointer;
            font-size: 1rem;
        }

        .btn-primary {
            background: var(--text-main);
            color: black;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
        }

        .btn-secondary {
            background: transparent;
            color: var(--text-main);
            border: 1px solid var(--text-main);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        /* Section Header */
        .section-header {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            margin-bottom: 1rem;
        }

        .section-tag {
            width: 4px;
            height: 24px;
            background: var(--text-main);
            border-radius: 4px;
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
        }

        .section-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: 1px;
            font-family: 'Orbitron', sans-serif;
        }

        /* Projects Grid */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }

        .project-card {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            height: auto; /* Allow flexible height but constrained by grid */
            min-height: 240px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start; /* Align to top */
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-card);
            text-decoration: none;
            color: inherit;
            border: 1px solid var(--border-color);
            backdrop-filter: blur(5px);
        }

        .project-card:hover {
            transform: translateY(-5px);
            border-color: var(--text-main);
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
        }

        .project-icon-wrapper {
            width: 50px; /* Slightly smaller */
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 1rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }

        .project-info h3 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.4;
        }

        .project-info p {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.6;
            
            /* Line Clamping for Description */
            display: -webkit-box;
            -webkit-line-clamp: 3; /* Limit to 3 lines */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 1rem;
        }

        .category-pill {
            display: inline-block;
            padding: 0.25rem 0.8rem;
            border-radius: var(--radius-pill);
            font-size: 0.75rem;
            font-weight: 700;
            color: black;
            margin-top: auto; /* Push to bottom if flex space allows */
            align-self: flex-start;
            background: var(--text-main);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }

        .media-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }

        /* Contact Card Styles */
        .contact-section {
            margin-top: 3rem;
            margin-bottom: 2rem;
        }

        .contact-card {
            background: rgba(20, 20, 20, 0.6);
            backdrop-filter: blur(20px);
            border-radius: var(--radius-lg);
            padding: 2.5rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: var(--shadow-soft);
            display: flex;
            flex-direction: column;
            gap: 2rem;
            position: relative;
            overflow: hidden;
        }

        .contact-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            position: relative;
            z-index: 2;
        }

        .contact-title-group {
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .contact-pill-icon {
            width: 6px;
            height: 24px;
            background: var(--text-main);
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .contact-title {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-main);
            font-family: 'Orbitron', sans-serif;
            letter-spacing: 1px;
        }

        .contact-subtitle {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1.5fr 1fr;
            gap: 3rem;
            position: relative;
            z-index: 2;
        }

        /* QR Grid */
        .qr-grid {
            display: flex;
            gap: 1.5rem;
            justify-content: flex-start;
        }

        .qr-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.8rem;
            background: rgba(255, 255, 255, 0.05);
            padding: 1rem;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: transform 0.3s;
        }

        .qr-item:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--text-main);
        }

        .qr-img {
            width: 100px;
            height: 100px;
            object-fit: contain;
            background: white; /* QR needs contrast */
            padding: 5px;
            border-radius: 8px;
        }

        .qr-label {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text-main);
        }

        /* Info Pills */
        .info-stack {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            justify-content: center;
        }

        .info-pill-row {
            display: flex;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 50px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            overflow: hidden;
            transition: all 0.3s;
        }

        .info-pill-row:hover {
            border-color: var(--text-main);
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
        }

        .info-label {
            background: rgba(255, 255, 255, 0.1);
            color: #a0a0a0;
            padding: 0.8rem 1.5rem;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
        }

        .info-value {
            padding: 0.8rem 1.5rem;
            color: white;
            font-weight: 700;
            font-size: 0.95rem;
            flex: 1;
            display: flex;
            align-items: center;
        }

        @media (max-width: 900px) {
            .contact-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            .qr-grid {
                justify-content: center;
                flex-wrap: wrap;
            }
            .contact-header {
                justify-content: center;
                text-align: center;
            }
            .feature-grid {
                grid-template-columns: 1fr;
            }
            .feature-card {
                height: 180px;
            }
            .container {
                grid-template-columns: 1fr;
                margin-top: 80px; /* Less top margin on mobile */
                padding: 0 1rem;
            }
            
            /* Stack the 3-column layout on mobile */
            #section-home > div:nth-child(2) {
                grid-template-columns: 1fr !important;
            }

            .sidebar {
                position: relative;
                top: 0;
                height: auto;
                overflow: visible;
                order: -1;
            }

            .profile-card {
                padding: 1.5rem 1rem;
            }
            
            .projects-grid {
                grid-template-columns: 1fr;
            }

            .music-player-fixed {
                position: fixed;
                bottom: 20px;
                left: 1rem;
                right: 1rem;
                z-index: 999;
                width: auto;
                background: rgba(0, 0, 0, 0.95);
            }

            /* Mobile Navigation */
            nav {
                padding: 0 1rem;
                height: 60px;
                flex-wrap: wrap;
            }

            .nav-left {
                width: 100%;
                justify-content: space-between;
                gap: 0;
            }

            .brand {
                font-size: 1rem;
            }

            .nav-items {
                position: fixed;
                top: 60px;
                left: 0;
                right: 0;
                background: rgba(0, 0, 0, 0.95);
                padding: 0.5rem 1rem;
                overflow-x: auto;
                white-space: nowrap;
                -webkit-overflow-scrolling: touch;
                border-bottom: 1px solid var(--border-color);
                gap: 0.5rem;
                display: flex;
                z-index: 1000;
            }

            .nav-items::-webkit-scrollbar {
                display: none;
            }

            .nav-link {
                padding: 0.4rem 0.8rem;
                font-size: 0.85rem;
                flex-shrink: 0;
            }

            .nav-right {
                position: absolute;
                top: 10px;
                right: 1rem;
            }

            /* Adjust Hero Text */
            .hero-greeting {
                font-size: 1.8rem;
            }

            .hero-text {
                font-size: 1rem;
            }

            /* Mobile Settings Panel */
            .settings-panel {
                width: 100%;
                right: 0;
                top: 0;
                bottom: 0;
                border-radius: 0;
                transform: translateX(100%);
            }
            
            /* Fix Content Overlap with Double Nav */
            .container {
                margin-top: 120px; /* 60px Nav + ~50px Menu Bar + gap */
            }
        }
    

/* =========================================
   FUTURE TECH / CYBERPUNK CHAT WIDGET
   ========================================= */

/* --- Variables --- */
:root {
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --tech-bg: rgba(10, 10, 15, 0.95);
    --tech-border: 1px solid rgba(0, 243, 255, 0.3);
}

/* --- Floating Action Button (FAB) --- */
#chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.chat-fab {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: grab;
    position: relative;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-fab:active {
    cursor: grabbing;
}

/* Pet Speech Bubble - Positioned above character head */
.pet-speech-bubble {
    position: absolute;
    bottom: 130px; /* Moved higher to clear the 150% height character */
    right: 50%;
    transform: translateX(50%) translateY(0px);
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--neon-blue);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s;
    z-index: 10000;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.pet-speech-bubble.show {
    opacity: 1;
    transform: translateX(50%) translateY(-10px);
}

/* --- Pet Animations (Run, Jump, Catch) --- */

/* Running Animation: Slight tilt and leg-swing simulation */
.pet-running {
    animation: pet-run-cycle 0.4s infinite linear !important;
}

@keyframes pet-run-cycle {
    0%, 100% { transform: translate3d(-50%, -5px, 40px) rotate(5deg); }
    50% { transform: translate3d(-50%, -15px, 45px) rotate(-5deg); }
}

/* Jumping Animation: Quick launch and landing */
.pet-jumping {
    animation: pet-jump-cycle 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) !important;
}

@keyframes pet-jump-cycle {
    0% { transform: translate3d(-50%, 0, 40px) scaleY(0.9); }
    40% { transform: translate3d(-50%, -60px, 60px) scaleY(1.1); }
    70% { transform: translate3d(-50%, 0, 40px) scaleY(0.95); }
    100% { transform: translate3d(-50%, 0, 40px) scaleY(1); }
}

/* Catching/Grabbing Animation: Leaning forward */
.pet-catching {
    animation: pet-catch-cycle 0.5s ease-out !important;
}

@keyframes pet-catch-cycle {
    0% { transform: translate3d(-50%, 0, 40px) scale(1); }
    50% { transform: translate3d(-50%, -10px, 80px) scale(1.1) rotateX(-20deg); }
    100% { transform: translate3d(-50%, 0, 40px) scale(1); }
}

/* Happy Bounce */
.pet-happy .chat-avatar-img {
    animation: pet-happy-bounce 0.5s ease infinite !important;
}

@keyframes pet-happy-bounce {
    0%, 100% { transform: translate3d(-50%, 0, 40px); }
    50% { transform: translate3d(-50%, -20px, 50px); }
}

.chat-fab:hover {
    transform: scale(1.1) translateY(-5px);
}

/* Avatar Container in FAB */
.avatar-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    /* Enhanced Portal Glow */
    background: radial-gradient(circle at 50% 100%, 
        rgba(0, 243, 255, 0.3) 0%, 
        rgba(188, 19, 254, 0.1) 40%, 
        transparent 80%);
    overflow: visible; 
    border: 2px solid var(--neon-blue);
    box-shadow: 
        0 0 15px rgba(0, 243, 255, 0.4),
        inset 0 0 20px rgba(0, 243, 255, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Cyber Docking Station Base */
.avatar-container::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 10px;
    background: var(--neon-blue);
    filter: blur(8px);
    border-radius: 50%;
    opacity: 0.5;
    transform: translateZ(-10px);
    animation: energy-pulse 2s infinite ease-in-out;
}

@keyframes energy-pulse {
    0%, 100% { transform: translateZ(-10px) scale(1); opacity: 0.3; }
    50% { transform: translateZ(-10px) scale(1.2); opacity: 0.6; }
}

.chat-avatar-img {
    width: 150%; /* Slightly larger */
    height: 150%;
    object-fit: contain;
    position: absolute;
    bottom: 0px; 
    left: 50%;
    transform: translate3d(-50%, -5px, 30px); /* Lift higher */
    filter: brightness(1.1) drop-shadow(0 15px 10px rgba(0,0,0,0.7));
    animation: avatar-float 4s infinite ease-in-out;
    transition: filter 0.3s;
}

@keyframes avatar-float {
    0%, 100% { transform: translate3d(-50%, -5px, 30px) rotate(0deg); }
    25% { transform: translate3d(-50%, -12px, 35px) rotate(1deg); }
    75% { transform: translate3d(-50%, -2px, 25px) rotate(-1deg); }
}

/* Avatar Container in FAB - Premium Tech Polish */
.avatar-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    /* Soft holographic floor */
    background: radial-gradient(circle at 50% 100%, 
        rgba(0, 243, 255, 0.4) 0%, 
        rgba(188, 19, 254, 0.15) 30%, 
        transparent 70%);
    overflow: visible; 
    border: 2px solid rgba(0, 243, 255, 0.5);
    box-shadow: 
        0 0 25px rgba(0, 243, 255, 0.3),
        inset 0 0 15px rgba(0, 243, 255, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Character Energy Aura (Backglow) */
.avatar-container::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: var(--neon-blue);
    filter: blur(30px);
    opacity: 0.3;
    border-radius: 50%;
    pointer-events: none;
    transform: translateZ(5px);
    animation: aura-pulse 3s infinite ease-in-out;
}

@keyframes aura-pulse {
    0%, 100% { opacity: 0.2; transform: translateZ(5px) scale(1); }
    50% { opacity: 0.4; transform: translateZ(5px) scale(1.2); }
}

.chat-avatar-img {
    width: 160%; /* Slightly larger for presence */
    height: 160%;
    object-fit: contain;
    position: absolute;
    bottom: -10px; /* Sits deeper in the 3D space */
    left: 50%;
    transform: translate3d(-50%, 0, 40px); /* Significant 3D lift */
    
    /* Rim light effect using multiple shadows */
    filter: 
        brightness(1.1) 
        drop-shadow(0 0 5px rgba(0, 243, 255, 0.5))
        drop-shadow(0 15px 20px rgba(0,0,0,0.6));
    
    animation: avatar-float 5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes avatar-float {
    0%, 100% { transform: translate3d(-50%, 0, 40px); }
    50% { transform: translate3d(-50%, -15px, 50px); }
}

/* Reactive Energy Rings */
.avatar-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 3px solid var(--neon-blue);
    border-bottom: 3px solid var(--neon-purple);
    animation: spin 4s linear infinite;
    transform: translateZ(10px) rotateX(75deg);
    opacity: 0.6;
    filter: blur(1px);
}

.avatar-ring.delay {
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--neon-blue);
    border-left: 4px solid var(--neon-blue);
    animation: spin-reverse 7s linear infinite;
    transform: translateZ(20px) rotateX(60deg) rotateY(10deg);
    opacity: 0.3;
}

/* --- Chat Window (Tech UI) --- */
.chat-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 600px;
    background: var(--tech-bg);
    border: 1px solid var(--neon-blue);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 243, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
    backdrop-filter: blur(20px);
}

.chat-window.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    display: none;
}

/* Holographic Grid Background */
.holo-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Header */
.chat-header {
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: move;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-avatar-frame {
    position: relative;
    width: 45px;
    height: 45px;
}

.header-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    object-fit: cover;
    object-position: top;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border: 2px solid #000;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff00;
}

.header-info {
    display: flex;
    flex-direction: column;
}

.header-name {
    color: white;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-tag {
    font-size: 0.6rem;
    background: var(--neon-purple);
    padding: 1px 4px;
    border-radius: 4px;
    color: white;
}

.header-status {
    font-size: 0.65rem;
    color: var(--neon-blue);
    font-family: monospace;
    letter-spacing: 1px;
}

.chat-controls button {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.chat-controls button:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
}

/* Holographic Visualization Area */
.holo-viz-container {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
    display: flex;
    justify-content: center;
    align-items: center;
}

.holo-avatar-large {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    filter: grayscale(100%) sepia(100%) hue-rotate(130deg) saturate(300%) brightness(1.2);
    animation: hologram-flicker 5s infinite;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 243, 255, 0.1) 51%, transparent 52%);
    background-size: 100% 4px;
    animation: scanline-move 10s linear infinite;
}

/* Messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    word-wrap: break-word;
}

/* Markdown Support inside Messages - Tech UI Polish */
.message p {
    margin-bottom: 1rem;
}

.message p:last-child {
    margin-bottom: 0;
}

/* Styled Lists as "Data Nodes" */
.message ul, .message ol {
    margin-bottom: 1.2rem;
    padding-left: 0;
    list-style: none;
}

.message li {
    margin-bottom: 0.8rem;
    padding: 10px 14px;
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid var(--neon-blue);
    border-radius: 4px 12px 12px 4px;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s;
}

.message li:hover {
    background: rgba(0, 243, 255, 0.1);
    transform: translateX(5px);
}

.message li strong {
    display: block;
    margin-bottom: 4px;
    color: var(--neon-blue);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Headers & Strong Text */
.message strong {
    color: var(--neon-blue);
    font-weight: 700;
}

.bot-message strong {
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
}

/* Blockquote as "System Alert" */
.message blockquote {
    border-left: 4px solid var(--neon-purple);
    background: rgba(188, 19, 254, 0.05);
    padding: 10px 15px;
    margin: 1rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Code Blocks */
.message code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #ff79c6;
}

.bot-message {
    align-self: flex-start;
    background: rgba(0, 40, 60, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #e0faff;
    border-bottom-left-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.05);
}

.user-message {
    align-self: flex-end;
    background: rgba(188, 19, 254, 0.2);
    border: 1px solid rgba(188, 19, 254, 0.4);
    color: white;
    border-bottom-right-radius: 2px;
}

/* Input Area */
.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}

#chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Nunito', sans-serif;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s;
}

#chat-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

#chat-send-btn {
    color: var(--neon-blue);
    transition: all 0.3s;
}

#chat-send-btn:hover {
    transform: translateX(3px) scale(1.1);
    text-shadow: 0 0 10px var(--neon-blue);
}

/* --- Animations --- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes avatar-breathe {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.1); }
}

@keyframes hologram-flicker {
    0% { opacity: 0.15; transform: skewX(0deg); }
    2% { opacity: 0.1; transform: skewX(2deg); }
    4% { opacity: 0.15; transform: skewX(0deg); }
    96% { opacity: 0.15; transform: skewX(0deg); }
    98% { opacity: 0.2; transform: skewX(-2deg); }
    100% { opacity: 0.15; transform: skewX(0deg); }
}

@keyframes scanline-move {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .chat-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        border: none;
    }
    .chat-fab {
        bottom: 20px;
        right: 20px;
    }
}
