/* ==========================================
   FUTURISTIC NEON DUST - SYSTEM CSS
   ========================================== */

:root {
    --bg-primary: #030712;
    --bg-secondary: #0b0f19;
    --bg-console: #060913;
    
    --accent-cyan: #00f0ff;
    --accent-cyan-rgb: 0, 240, 255;
    --accent-purple: #9d4edd;
    --accent-purple-rgb: 157, 78, 221;
    --accent-magenta: #ff007f;
    
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    --border-color: rgba(0, 240, 255, 0.15);
    --border-glow: rgba(0, 240, 255, 0.4);
    --glass-bg: rgba(11, 15, 25, 0.65);
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* Selection */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: #fff;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(157, 78, 221, 0.03) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: width 0.3s ease, height 0.3s ease;
    mix-blend-mode: screen;
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Common Styling */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    position: relative;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 14px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.btn-primary {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1), inset 0 0 10px rgba(0, 240, 255, 0.05);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    color: #fff;
    background: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
    border-color: var(--accent-cyan);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.1);
}

.btn-secondary:hover {
    color: #fff;
    background: var(--accent-purple);
    box-shadow: 0 0 25px rgba(157, 78, 221, 0.6);
    border-color: var(--accent-purple);
}

.btn-icon {
    font-size: 12px;
    transition: var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ==========================================
   NAVBAR SECTION (Fixed & Shrinking)
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-cyan);
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.05);
    transition: var(--transition-fast);
}

.logo:hover .nav-logo-img {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.7);
}

.logo-accent {
    color: var(--accent-cyan);
}

.logo-type {
    font-size: 12px;
    color: var(--accent-purple);
    margin-left: 5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-mono);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-fast);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-menu .contact-btn {
    border: 1px solid var(--accent-cyan);
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.nav-menu .contact-btn::after {
    display: none;
}

.nav-menu .contact-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--accent-cyan);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* CSS Native Scroll-Driven Shrinking Header */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes shrink {
        to {
            height: 60px;
            background: rgba(3, 7, 18, 0.9);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }
    }
    .navbar {
        animation: shrink auto linear both;
        animation-timeline: scroll(block root);
        animation-range: 0px 100px;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px var(--accent-cyan); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.7) 70%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(18px, 2.5vw, 28px);
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.static-txt {
    color: var(--text-muted);
}

.typing-txt {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    border-right: 2px solid var(--accent-cyan);
    padding-right: 4px;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-cyan); }
}

.hero-description {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Cyber Avatar Visualizer */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.avatar-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-frame {
    width: 260px;
    height: 320px;
    position: relative;
    overflow: visible;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.avatar-frame::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, rgba(157, 78, 221, 0.05) 50%, transparent 80%);
    z-index: -1;
    filter: blur(10px);
    border-radius: 50%;
    pointer-events: none;
}

.avatar-img {
    width: 100%;
    height: 110%; /* Rise slightly above the frame border */
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.3));
    transition: var(--transition-smooth);
    transform-origin: bottom center;
}

.avatar-container:hover .avatar-img {
    filter: drop-shadow(0 0 24px rgba(0, 240, 255, 0.65)) brightness(1.1);
    transform: scale(1.05);
}

/* Cyber accents */
.hex-border-outer {
    position: absolute;
    width: 270px;
    height: 310px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: transparent;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    z-index: 1;
    animation: rotateHex 20s linear infinite;
}

.hex-border-inner {
    position: absolute;
    width: 290px;
    height: 330px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: transparent;
    border: 1px dashed var(--accent-purple);
    z-index: 0;
    animation: rotateHexReverse 25s linear infinite;
}

@keyframes rotateHex {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateHexReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* HUD Overlay Texts */
.hud-element {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px;
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 2px;
    color: var(--accent-cyan);
    z-index: 3;
    pointer-events: none;
}

.hud-top-right {
    top: 0;
    right: -10px;
}

.hud-bottom-left {
    bottom: 20px;
    left: -20px;
}

.hud-spinner {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 2px double transparent;
    border-top-color: var(--accent-magenta);
    border-bottom-color: var(--accent-cyan);
    border-radius: 50%;
    z-index: 0;
    animation: spin 15s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
}

.scroll-indicator a {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.scroll-indicator a:hover {
    color: var(--accent-cyan);
}

.mouse {
    width: 26px;
    height: 44px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    80% { transform: translate(-50%, 15px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 0; }
}

.scroll-txt {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.about-lead {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Resume Archives Area */
.resume-download-box {
    margin-top: 40px;
    padding: 24px;
    background: rgba(11, 15, 25, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
}

.resume-download-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    width: 40px;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.download-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    font-family: var(--font-mono);
    transition: var(--transition-fast);
}

.btn-download:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
    color: var(--accent-cyan);
}

.about-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    padding: 28px;
    background: rgba(11, 15, 25, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-purple);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-left-color: var(--accent-cyan);
    background: rgba(11, 15, 25, 0.8);
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

.stat-card:hover .stat-num {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.stat-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================
   WORK EXPERIENCE TIMELINE
   ========================================== */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple) 80%, transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-cyan);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent-cyan);
    transform: scale(1.2);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 1px;
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(0, 240, 255, 0.25);
    background: rgba(11, 15, 25, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-item:hover .timeline-content::before {
    background: var(--accent-cyan);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.role-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-brand-logo {
    height: 38px;
    width: auto;
    max-width: 115px;
    object-fit: contain;
    /* Completely invisible — no box, no shape */
    opacity: 0;
    filter: brightness(1) saturate(1.3);
    transform: scale(0.85);
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
    flex-shrink: 0;
}

.timeline-item:hover .timeline-brand-logo,
.timeline-item:focus-within .timeline-brand-logo {
    /* Fade in with full brand color + subtle glow */
    opacity: 1;
    filter: brightness(1) saturate(1.3) drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
    transform: scale(1);
}

.role-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.company-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: #d8b4fe;
    padding: 4px 10px;
    border-radius: 4px;
}

.location {
    font-size: 13px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.timeline-text {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.timeline-bullets {
    list-style: none;
    margin-bottom: 20px;
}

.timeline-bullets li {
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.timeline-bullets li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.timeline-item:hover .tag {
    border-color: rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
}

/* ==========================================
   CORE PROJECTS SECTION
   ========================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    overflow: hidden;
}

/* Hover dynamic glows */
.project-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.08) 0%, transparent 60%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.project-card:hover .project-glow {
    opacity: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.project-id {
    color: var(--accent-cyan);
    letter-spacing: 1px;
    font-weight: bold;
}

.project-date {
    color: var(--text-dark);
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.3;
}

.project-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    margin-bottom: 20px;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.project-card:hover .metric-val {
    color: var(--accent-cyan);
}

.metric-lbl {
    font-size: 10px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-badge {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.project-card:hover .tech-badge {
    border-color: rgba(157, 78, 221, 0.2);
}

/* ==========================================
   SKILLS MATRIX SECTION (Console Terminal UI)
   ========================================== */

.skills-console {
    display: grid;
    grid-template-columns: 280px 1fr;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-console);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.console-sidebar {
    background: rgba(11, 15, 25, 0.8);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.console-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: var(--transition-fast);
}

.console-tab i {
    font-size: 15px;
    width: 20px;
}

.console-tab:hover {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.03);
}

.console-tab.active {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
    border-left-color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.console-display {
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.console-header-bar {
    background: rgba(3, 7, 18, 0.6);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-buttons {
    display: flex;
    gap: 6px;
}

.dot-win {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-win.red { background-color: var(--accent-magenta); }
.dot-win.yellow { background-color: #f59e0b; }
.dot-win.green { background-color: #10b981; }

.console-title-txt {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.console-body {
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
}

.skill-category-content {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.skill-category-content.active {
    display: block;
}

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

.skill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 13px;
    gap: 8px;
}

.skill-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.skill-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
    filter: brightness(1) saturate(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.25) rotate(-5deg);
    filter: drop-shadow(0 0 5px rgba(0,240,255,0.5));
}

.skill-fa-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-item:hover .skill-fa-icon {
    transform: scale(1.25) rotate(-5deg);
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0,240,255,0.6);
}

.skill-name {
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-perc {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.progress-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-cyan);
    position: relative;
}

/* ==========================================
   PUBLICATIONS & CERTIFICATIONS SECTION
   ========================================== */

.records-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
}

.records-col {
    display: flex;
    flex-direction: column;
}

.col-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.col-title i {
    color: var(--accent-cyan);
}

.record-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--accent-cyan);
    padding: 30px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.record-card:hover {
    background: rgba(11, 15, 25, 0.9);
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.record-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--accent-cyan);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.record-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.record-detail {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.record-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.cert-item:hover {
    border-color: rgba(157, 78, 221, 0.2);
    transform: translateX(4px);
}

.cert-icon {
    width: 44px;
    height: 44px;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
    color: var(--accent-purple);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: var(--transition-fast);
}

.cert-item:hover .cert-icon {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.2);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.cert-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.cert-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================
   CONTACT SECTION & TERMINAL FORM
   ========================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.channels-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.channels-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.channel-card {
    margin-bottom: 16px;
}

.channel-link {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.channel-link:hover {
    border-color: rgba(0, 240, 255, 0.2);
    background: rgba(11, 15, 25, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.channel-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: var(--transition-fast);
}

.channel-link:hover .channel-icon {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--accent-cyan);
}

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

.channel-lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.channel-val {
    font-size: 15px;
    font-weight: 500;
}

/* Terminal Console Contact Form */
.contact-terminal {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-console);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.terminal-header {
    background: rgba(3, 7, 18, 0.8);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
}

.terminal-line {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.prompt {
    color: var(--accent-cyan);
}

.system-output {
    color: var(--text-muted);
}

.terminal-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    color: var(--accent-cyan);
}

.form-input, .form-textarea {
    background: rgba(3, 7, 18, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.terminal-submit-btn {
    align-self: flex-start;
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 10px;
}

.terminal-submit-btn:hover {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-purple);
}

.success-message {
    color: #10b981;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.hidden {
    display: none;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 40px 0;
    background: var(--bg-secondary);
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left p {
    font-size: 13px;
    color: var(--text-dark);
}

/* Footer custom styles removed */

/* ==========================================
   SCROLL REVEAL INTERSECTION OBSERVER
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */

@media (max-width: 991px) {
    .section {
        padding: 80px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-description {
        margin: 0 auto 30px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills-console {
        grid-template-columns: 1fr;
    }
    
    .console-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .console-tab {
        padding: 12px 20px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }
    
    .console-tab.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent-cyan);
    }
    
    .records-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .skill-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   LIVE TIMER COMPONENT
   ========================================== */
.live-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    margin: 12px 0 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #10b981;
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
    width: fit-content;
    border-left: 3px solid #10b981;
    animation: badgeGlow 2s infinite alternate;
}

.live-timer-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #10b981; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

@keyframes badgeGlow {
    from { box-shadow: 0 0 5px rgba(16, 185, 129, 0.02); }
    to { box-shadow: 0 0 12px rgba(16, 185, 129, 0.12); }
}

/* ==========================================
   MOUSE CLICK RIPPLE EFFECT
   ========================================== */
.click-ripple {
    position: absolute;
    width: 6px;
    height: 6px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: rippleEffect 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    z-index: 9999;
    box-shadow: 0 0 10px var(--accent-cyan), inset 0 0 8px var(--accent-cyan);
}

@keyframes rippleEffect {
    to {
        width: 140px;
        height: 140px;
        opacity: 0;
    }
}

/* ==============================================
   COMPREHENSIVE RESPONSIVE / DEVICE-FLEXIBLE
   ============================================== */

/* ---- Enhancements for tablets/phones (max 768px) ---- */
@media (max-width: 768px) {
    /* Timeline brand logos wrap below role info on small screens */
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .timeline-brand-logo {
        height: 28px;
        max-width: 90px;
    }

    /* Hero visual sizing */
    .avatar-container {
        width: 260px;
        height: 260px;
    }
    .avatar-img {
        max-height: 280px;
    }

    /* Stats grid responsive */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Projects grid responsive */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Section spacing */
    .section {
        padding: 60px 0;
    }

    /* Container padding on small screens */
    .container,
    .hero-container {
        padding: 0 16px;
    }

    /* Navbar logo text */
    .logo {
        font-size: 16px;
        gap: 8px;
    }
    .logo-type {
        display: none;
    }

    /* Typography */
    .role-title {
        font-size: 17px;
    }
    .timeline-date {
        font-size: 12px;
    }

    /* CTA buttons full-width on mobile */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Live timer badge */
    .live-timer-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    /* Footer links */
    .footer-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ---- Small phones (max 480px) ---- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
    .hero-description {
        font-size: 14px;
    }

    /* Avatar shrinks */
    .avatar-container {
        width: 200px;
        height: 200px;
    }
    .avatar-img {
        max-height: 220px;
    }

    /* Single-column stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Section titles */
    .section-title {
        font-size: 26px;
    }

    /* Timeline card padding */
    .timeline-content {
        padding: 16px;
    }

    /* Skill tags */
    .timeline-tags {
        gap: 6px;
    }
    .tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* Hide decorative HUD elements on very small screens */
    .hud-element {
        display: none;
    }
    .hex-grid,
    .hex-border-outer,
    .hex-border-inner {
        display: none;
    }
}

/* ---- Very small phones (max 360px) ---- */
@media (max-width: 360px) {
    .hero-title {
        font-size: 26px;
    }
    .avatar-container {
        width: 170px;
        height: 170px;
    }
    .nav-logo-img {
        width: 26px;
        height: 26px;
    }
}

/* ---- Large / 4K screens (min 1400px) ---- */
@media (min-width: 1400px) {
    .container,
    .nav-container,
    .hero-container {
        max-width: 1400px;
    }
    .hero-title {
        font-size: 72px;
    }
    .avatar-container {
        width: 400px;
        height: 400px;
    }
}

/* ---- Touch devices: show logos since hover isn't available ---- */
@media (hover: none) {
    /* On touch screens, logos can't be hovered — make them visible */
    .timeline-brand-logo {
        opacity: 0.6;
        filter: brightness(0) invert(1);
        transform: scale(1);
    }
    .cursor-glow {
        display: none;
    }
}
