 :root {
            --primary-bg: #0a0f18;
            --secondary-bg: #101827;
            --accent-color: #00ff9c;
            --accent-color-rgb: 0, 255, 156;
            --text-color: #cdd6f4;
            --text-secondary-color: #a6adc8;
            --border-color: #313a50;
            --font-primary: 'Roboto', sans-serif;
            --font-secondary: 'Source Code Pro', monospace;
            --font-title: 'VT323', monospace;
        }

        body {
            background-color: var(--primary-bg);
            color: var(--text-color);
            font-family: var(--font-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }

        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--secondary-bg); }
        ::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 4px; box-shadow: 0 0 5px rgba(var(--accent-color-rgb), 0.5); }
        ::-webkit-scrollbar-thumb:hover { background: #00e68a; box-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.7); }

        .hacker-terminal { font-family: var(--font-secondary); color: var(--accent-color); text-shadow: 0 0 3px rgba(var(--accent-color-rgb), 0.5); }
        .title-font { font-family: var(--font-title); }

        header { background-color: rgba(16, 24, 39, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }

        nav #desktop-nav { display: flex; }
        nav #desktop-nav a { font-family: var(--font-secondary); transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease; padding: 10px 15px; border-radius: 4px; position: relative; font-size: 0.95rem; }
        nav #desktop-nav a::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease-in-out; box-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.7); }
        nav #desktop-nav a:hover::before, nav #desktop-nav a.active::before { width: 70%; }
        nav #desktop-nav a:hover, nav #desktop-nav a.active { color: var(--accent-color); background-color: rgba(var(--accent-color-rgb), 0.08); text-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.7), 0 0 15px rgba(var(--accent-color-rgb), 0.5); }

        #hamburger-icon { display: none; cursor: pointer; z-index: 10001; }
        #hamburger-icon div { width: 30px; height: 3px; background-color: var(--accent-color); margin: 6px 0; transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); border-radius: 1px; box-shadow: 0 0 5px rgba(var(--accent-color-rgb),0.5); }
        #hamburger-icon.open .bar1 { transform: rotate(-45deg) translate(-7px, 6px); }
        #hamburger-icon.open .bar2 { opacity: 0; }
        #hamburger-icon.open .bar3 { transform: rotate(45deg) translate(-7px, -6px); }

        #mobile-nav-panel { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background-color: rgba(10, 15, 24, 0.97); backdrop-filter: blur(8px); padding-top: 80px; box-shadow: -5px 0 15px rgba(0,0,0,0.3); transition: right 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); z-index: 10000; overflow-y: auto; }
        #mobile-nav-panel.open { right: 0; }
        #mobile-nav-panel ul { list-style: none; padding: 0; margin: 0; text-align: center; }
        #mobile-nav-panel li a { display: block; padding: 15px 20px; color: var(--text-color); font-family: var(--font-secondary); font-size: 1.2em; text-decoration: none; transition: background-color 0.3s, color 0.3s, letter-spacing 0.3s; border-bottom: 1px solid var(--border-color); }
        #mobile-nav-panel li:last-child a { border-bottom: none; }
        #mobile-nav-panel li a:hover, #mobile-nav-panel li a.active { background-color: rgba(var(--accent-color-rgb), 0.15); color: var(--accent-color); letter-spacing: 2px; text-shadow: 0 0 5px rgba(var(--accent-color-rgb), 0.7); }

        .content-section { position:relative; min-height: calc(100vh - 200px); padding: 2.5rem 1.5rem; border: 1px solid var(--border-color); background-color: var(--secondary-bg); border-radius: 10px; box-shadow: 0 0 25px rgba(var(--accent-color-rgb), 0.07), inset 0 0 20px rgba(0,0,0,0.35); animation: contentFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); margin-bottom: 2.5rem; }
        @keyframes contentFadeIn { from { opacity: 0; transform: translateY(15px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

        .skill-item, .project-card, .service-item, .timeline-item-content, .featured-skill-box, .key-metric-box, .approach-step-box {
            background-color: var(--primary-bg);
            border: 1px solid var(--border-color);
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border-radius: 8px;
        }
        .skill-item:hover, .project-card:hover, .service-item:hover, .timeline-item-content:hover, .featured-skill-box:hover, .key-metric-box:hover, .approach-step-box:hover {
            transform: translateY(-7px) scale(1.03);
            box-shadow: 0 0 25px rgba(var(--accent-color-rgb), 0.45);
        }
        
        .project-card { display: flex; flex-direction: column; }
        .project-card img { height: 220px; object-fit: cover; border-top-left-radius: 8px; border-top-right-radius: 8px; }
        .project-card .p-6 { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }

        .loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 15, 24, 0.98); z-index: 10002; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.05s ease-out, visibility 0.05s ease-out; }
        .loader-overlay.visible { opacity: 1; visibility: visible; }
        .loader-word { color: #fff; font-size: clamp(1.8em, 5.5vw, 2.8em); font-family: var(--font-secondary); text-shadow: 0 0 12px rgba(var(--accent-color-rgb), 0.8), 0 0 8px rgba(var(--accent-color-rgb), 0.6); position: relative; }
        .loader-word .dud { opacity: 0.5; color: var(--text-secondary-color); }

        .scanline-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; background-image: linear-gradient(transparent 50%, rgba(0, 25, 10, 0.08) 50%); background-size: 100% 2px; animation: scanlines 30s linear infinite; z-index: -1; }
        @keyframes scanlines { 0% { background-position: 0 0; } 100% { background-position: 0 100vh; } }
        
        #matrix-rain-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.06; pointer-events: none; }

        .btn { font-family: var(--font-secondary); padding: 12px 24px; border-radius: 6px; text-transform: uppercase; font-weight: 700; letter-spacing: 1.5px; transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); border: none; cursor: pointer; display: inline-block; box-shadow: 0 2px 5px rgba(0,0,0,0.2); position: relative; overflow: hidden; }
        .btn::after { /* Enhanced Glow effect for buttons */
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background-image: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.25) 0%, transparent 70%);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            opacity: 0;
            pointer-events: none;
            z-index: 0;
        }
        .btn:hover::after {
            transform: translate(-50%, -50%) scale(3); /* Adjust scale for desired glow size */
            opacity: 1;
        }
        .btn > * { position: relative; z-index: 1; }

        .btn-primary { background-color: var(--accent-color); color: var(--primary-bg); text-shadow: none; }
        .btn-primary:hover { background-color: #00e68a; transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 15px rgba(var(--accent-color-rgb), 0.4), 0 0 20px rgba(var(--accent-color-rgb),0.3); }
        .btn-outline { background-color: transparent; color: var(--accent-color); border: 2px solid var(--accent-color); }
        .btn-outline:hover { background-color: var(--accent-color); color: var(--primary-bg); transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 15px rgba(var(--accent-color-rgb), 0.3), 0 0 20px rgba(var(--accent-color-rgb),0.2); }
        .btn.disabled { background-color: var(--border-color); color: var(--text-secondary-color); cursor: not-allowed; box-shadow: none; transform: none; opacity: 0.7; }
        .btn.disabled:hover { background-color: var(--border-color); box-shadow: none; }
        .btn.disabled::after { display: none; }


        footer { background-color: var(--secondary-bg); border-top: 1px solid var(--border-color); padding: 2rem 0; }

        .section-title { font-family: var(--font-title); color: var(--accent-color); font-size: clamp(2.6rem, 6.5vw, 3.8rem); line-height: 1.25; letter-spacing: 1px; margin-bottom: 3rem; text-align: center; position: relative; padding-bottom: 1.25rem; text-shadow: 0 0 8px rgba(var(--accent-color-rgb),0.5), 0 0 15px rgba(var(--accent-color-rgb),0.3); }
        .section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 140px; height: 4px; background-color: var(--accent-color); border-radius: 2px; box-shadow: 0 0 12px rgba(var(--accent-color-rgb), 0.8); }
        
        #home-section .hero-title-main { font-family: var(--font-primary); font-weight: 700; color: var(--text-color); font-size: clamp(2.2rem, 8vw, 4.2rem); line-height: 1.1; margin-bottom: 0.75rem; }
        #home-section .hero-title-hacker { font-family: var(--font-title); color: var(--accent-color); font-size: clamp(2rem, 7vw, 3.5rem); margin-bottom: 1.5rem; display: block; letter-spacing: 1px; }
        #home-section .hero-subtitle { font-size: clamp(1.1rem, 3.5vw, 1.4rem); letter-spacing: 0.5px; }


        #projectModal { transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out; }
        #projectModal.active { opacity: 1; pointer-events: auto; }
        #modalInnerContent { transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94); opacity: 0; transform: translateY(15px) scale(0.97); }
        #projectModal.active #modalInnerContent { opacity: 1; transform: translateY(0) scale(1); }
        #modalImage { border: 2px solid var(--border-color); }
        #modalDescriptionContainer::-webkit-scrollbar { width: 6px; }
        #modalDescriptionContainer::-webkit-scrollbar-thumb { background: var(--accent-color); }

        .interactive-glow-box { position: relative; overflow: hidden; perspective: 1000px; }
        .interactive-glow-box::before { content: ''; position: absolute; left: var(--mouse-x, 50%); top: var(--mouse-y, 50%); width: 0px; height: 0px; background-image: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.12) 0%, rgba(var(--accent-color-rgb), 0) 60%); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.3s ease-out, height 0.3s ease-out, opacity 0.3s ease-out; opacity: 0; pointer-events: none; z-index: 0; }
        .interactive-glow-box:hover::before { width: 250px; height: 250px; opacity: 0.6; } /* Made glow slightly more visible */
        .tilt-effect { transition: transform 0.1s linear; }


        .timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 2rem 0; }
        .timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--border-color); box-shadow: 0 0 8px rgba(var(--border-color),0.7); top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 2px; }
        .timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; margin-bottom: 40px; }
        .timeline-item::after { content: ''; position: absolute; width: 24px; height: 24px; right: -12px; background-color: var(--accent-color); border: 4px solid var(--secondary-bg); top: 25px; border-radius: 50%; z-index: 1; box-shadow: 0 0 15px rgba(var(--accent-color-rgb),0.8); animation: pulseDot 2s infinite ease-in-out; }
        @keyframes pulseDot { 0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(var(--accent-color-rgb),0.8); } 50% { transform: scale(1.2); box-shadow: 0 0 25px rgba(var(--accent-color-rgb),1); } }
        .timeline-item.left { left: 0; }
        .timeline-item.right { left: 50%; }
        .timeline-item.right::after { left: -12px; }
        .timeline-item-content { padding: 25px; position: relative; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
        .timeline-date { font-family: var(--font-title); color: var(--accent-color); font-size: 1.5em; letter-spacing: 1px; font-weight: normal; margin-bottom: 0.7em; display: block; text-shadow: 0 0 5px rgba(var(--accent-color-rgb),0.5); }
        .timeline-item-content h4 { color: var(--text-color); font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: 500;}
        .timeline-item-content p { font-size: 0.95rem; }
        .timeline-icon { position: absolute; top: 22px; width: 30px; height: 30px; text-align: center; font-size: 1.2rem; color: var(--primary-bg); z-index: 2; display:flex; align-items:center; justify-content:center;}
        .timeline-item.left .timeline-icon { right: -15px; transform: translateX(50%);}
        .timeline-item.right .timeline-icon { left: -15px; transform: translateX(-50%);}


        #contact-form input[type="text"],
        #contact-form input[type="email"],
        #contact-form textarea { background-color: transparent; border-width: 0 0 2px 0; border-style: solid; border-color: var(--border-color); color: var(--text-color); caret-color: var(--accent-color); transition: border-color 0.3s ease, box-shadow 0.3s ease; padding: 0.75rem 0.25rem; border-radius: 0; }
        #contact-form input[type="text"]:focus,
        #contact-form input[type="email"]:focus,
        #contact-form textarea:focus { border-color: var(--accent-color); box-shadow: 0 1px 0 var(--accent-color); outline: none; background-color: rgba(var(--accent-color-rgb), 0.03);}
        #contact-form textarea { border-width: 2px; border-radius: 4px; padding: 0.75rem;}
        #contact-form ::placeholder { color: rgba(var(--text-secondary-color), 0.6); }

        #scroll-progress-container { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; z-index: 9990; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s; }
        #scroll-progress-container.visible { opacity: 1; visibility: visible; transform: translateY(0); }
        #scroll-progress-circle { width: 100%; height: 100%; transform: rotate(-90deg); }
        #scroll-progress-circle circle { transition: stroke-dashoffset 0.1s linear; }
        #scroll-to-top-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: transparent; border: none; color: var(--accent-color); font-size: 1.5rem; padding: 0; line-height: 1; transition: transform 0.2s, text-shadow 0.2s; }
        #scroll-to-top-btn:hover { transform: translate(-50%, -50%) scale(1.15); text-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.8); }

        /* Custom Context Menu Styles */
        #custom-context-menu {
            position: fixed;
            z-index: 10005;
            background-color: rgba(16, 24, 39, 0.9);
            backdrop-filter: blur(4px);
            /* border: 1px solid var(--border-color); */
            border-radius: 8px;
            box-shadow: 0px 0px 600px 0px rgba(0,0,0,0.3), 0 0 15px rgb(16, 24, 39);
            padding: 0.5rem;
            min-width: 220px;
            opacity: 0;
            transform: scale(0.95) translateY(10px);
            transform-origin: top left;
            transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            pointer-events: none;
        }
        #custom-context-menu.active {
            opacity: 1;
            transform: scale(1) translateY(0);
            pointer-events: auto;
        }
        #custom-context-menu ul { list-style: none; padding: 0; margin: 0; }
        #custom-context-menu li a {
            display: flex;
            align-items: center;
            padding: 0.6rem 1rem;
            color: var(--text-secondary-color);
            text-decoration: none;
            font-family: var(--font-secondary);
            font-size: 0.9rem;
            border-radius: 4px;
            transition: background-color 0.2s ease, color 0.2s ease;
        }
        #custom-context-menu li a:hover {
            background-color: rgba(var(--accent-color-rgb), 0.15);
            color: var(--accent-color);
        }
        #custom-context-menu li a i {
            margin-right: 0.75rem;
            width: 16px; /* Ensure consistent icon spacing */
            text-align: center;
        }
        #custom-context-menu .context-menu-divider {
            height: 1px;
            background-color: var(--border-color);
            margin: 0.5rem 0;
        }
        #custom-context-menu .context-social-links {
            display: flex;
            justify-content: space-around;
            padding: 0.5rem 0 0.25rem;
        }
        #custom-context-menu .context-social-links a {
            padding: 0.5rem; /* Make icons easier to click */
            font-size: 1.1rem;
        }


        @media screen and (max-width: 768px) {
            .timeline::after { left: 20px; }
            .timeline-item { width: 100%; padding-left: 50px; padding-right: 15px; }
            .timeline-item.left::after, .timeline-item.right::after { left: 8px; width:24px; height:24px;}
            .timeline-item.right { left: 0%; }
            .timeline-item.left .timeline-icon, .timeline-item.right .timeline-icon { left: 5px; transform: translateX(0); }


            nav #desktop-nav { display: none; }
            #hamburger-icon { display: block; position: relative; }
            #modalInnerContent { max-width: 90vw; }
            #scroll-progress-container { bottom: 20px; right: 20px; width: 50px; height: 50px; }
            #scroll-to-top-btn { font-size: 1.3rem; }
            .section-title { font-size: clamp(2.2rem, 6vw, 3rem); }
             #home-section .hero-title-main { font-size: clamp(2.2rem, 8vw, 3.8rem); }
            #home-section .hero-title-hacker { font-size: clamp(1.8rem, 6.5vw, 3rem); }
            #home-section .hero-subtitle { font-size: clamp(1rem, 4.5vw, 1.3rem); }
        }
        @media (max-width: 640px) {
            nav .hacker-terminal { width: 100%; text-align: center; margin-bottom: 0.5rem; }
            .btn { padding: 10px 18px; font-size: 0.9rem; }
            .interactive-glow-box:hover::before { width: 180px; height: 180px; opacity: 0.5;}
            .section-title { font-size: clamp(2rem, 7vw, 2.8rem); }
            #home-section .hero-title-main { font-size: clamp(2rem, 7.5vw, 3.2rem); }
            #home-section .hero-title-hacker { font-size: clamp(1.6rem, 6vw, 2.6rem); }
        }
