/* style.css - Modern Premium CSS System for Ehtisham Sabir */

/* --- Design System & CSS Variables --- */
:root {
    /* Color Tokens (Tailored Futuristic HSL Palettes) */
    --bg-dark: 220, 33%, 5%;       /* Deep Dark Slate #05070A */
    --bg-card: 220, 24%, 9%;       /* Glassmorphic card fill #11141B */
    --bg-card-hover: 220, 24%, 13%;/* Slightly brighter hover state */
    
    --primary: 182, 100%, 49%;     /* Electric Cyan #00F2FE */
    --primary-rgb: 0, 242, 254;
    --secondary: 209, 100%, 65%;   /* Royal Blue #4FACFE */
    --secondary-rgb: 79, 172, 254;
    
    --text-white: 0, 0%, 100%;
    --text-muted: 218, 15%, 70%;
    --text-dark: 218, 15%, 45%;

    /* Colored theme categories for skill badges & grids */
    --cyan-theme: 182, 100%, 49%;
    --blue-theme: 209, 100%, 65%;
    --orange-theme: 24, 100%, 55%;
    --red-theme: 355, 90%, 58%;
    --purple-theme: 275, 90%, 62%;
    --green-theme: 145, 80%, 45%;

    /* Typography & Spacing Tokens */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Base Resets & Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: hsl(var(--bg-dark));
    color: hsl(var(--text-white));
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Glowing Mesh Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.18;
    pointer-events: none;
}
.blob-1 {
    top: 5%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%);
}
.blob-2 {
    top: 40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsl(var(--secondary)) 0%, transparent 70%);
}
.blob-3 {
    bottom: 10%;
    left: 15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, hsl(var(--purple-theme)) 0%, transparent 70%);
}

/* --- Utility Helper Classes --- */
.container-full {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.d-none { display: none !important; }
.font-monospace { font-family: var(--font-mono) !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: hsl(var(--bg-dark));
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary));
}

/* Glassmorphic Panel Base */
.glass-card {
    background: rgba(var(--bg-card), 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
}

/* --- Buttons System --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    color: hsl(var(--bg-dark));
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(var(--primary-rgb), 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: hsl(var(--text-white));
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: hsl(var(--primary));
    border: 1px solid rgba(var(--primary-rgb), 0.4);
}
.btn-tertiary:hover {
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: hsl(var(--text-white));
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    font-size: 0.85rem;
}
.btn-outline:hover {
    background: hsl(var(--primary));
    color: hsl(var(--bg-dark));
    border-color: hsl(var(--primary));
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Svg icon alignment */
.icon-svg {
    width: 18px;
    height: 18px;
}

/* --- Sticky Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--border-glass);
    transition: var(--transition-smooth);
}
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 7, 10, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}
.logo-symbol {
    font-family: var(--font-mono);
    color: hsl(var(--primary));
    font-weight: 700;
    font-size: 1.3rem;
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: hsl(var(--text-white));
    letter-spacing: -0.5px;
}

/* Active Status pulse dot */
.status-indicator-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00F2FE;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 242, 254, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}
.status-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--primary));
    letter-spacing: 0.3px;
}

.nav-menu {
    display: flex;
}
.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}
.nav-item {
    text-decoration: none;
    color: hsl(var(--text-muted));
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 8px 0;
    position: relative;
}
.nav-item:hover, .nav-item.active {
    color: hsl(var(--text-white));
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    transition: var(--transition-smooth);
}
.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.nav-item.contact-btn {
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    padding: 8px 18px;
    border-radius: 6px;
    color: hsl(var(--primary));
}
.nav-item.contact-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: hsl(var(--text-white));
    border-color: hsl(var(--primary));
}
.nav-item.contact-btn::after { display: none; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: hsl(var(--text-white));
    position: relative;
    transition: background 0.3s ease;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: hsl(var(--text-white));
    transition: var(--transition-smooth);
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* --- Layout Sections --- */
.content-wrapper {
    margin-top: 80px; /* offset navbar height */
}

/* Sections Base Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
    padding: 0 16px;
}
.sub-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: hsl(var(--primary));
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.section-desc {
    color: hsl(var(--text-muted));
    font-size: 1.05rem;
}

/* --- Hero Section --- */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 60px 24px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.relocation-floating-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--primary));
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.greeting-tag {
    font-family: var(--font-mono);
    color: hsl(var(--primary));
    font-size: 0.95rem;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: hsl(var(--text-muted));
    margin-bottom: 36px;
    max-width: 620px;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.tech-stack-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    width: 100%;
}
.tech-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--text-dark));
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tech-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: hsl(var(--text-muted));
}

.hero-visual {
    display: flex;
    justify-content: center;
}

/* Coding Terminal Mockup UI */
.code-terminal {
    width: 100%;
    max-width: 480px;
    background: #090C10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(var(--primary-rgb), 0.08);
    overflow: hidden;
}
.terminal-header {
    background: #161B22;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-header span[class^="dot-"] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }
.terminal-title {
    margin-left: 10px;
    font-size: 0.75rem;
    color: hsl(var(--text-dark));
}
.terminal-body {
    padding: 20px;
    font-size: 0.8rem;
    line-height: 1.5;
}
.terminal-body p {
    margin-bottom: 8px;
}
.cmd-prompt {
    color: hsl(var(--primary));
    margin-right: 4px;
}
.line-code {
    color: #8B949E;
    margin-bottom: 12px;
}
.json-key { color: #79C0FF; }
.json-val { color: #A5D6FF; }
.line-success {
    color: #58A6FF;
}

/* --- Quick Links Bar --- */
.quick-links-bar {
    background: rgba(var(--bg-card), 0.5);
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
    padding: 28px 0;
    backdrop-filter: blur(10px);
}
.bar-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 32px;
    align-items: center;
}
.bar-text h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.bar-text p {
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
}
.bar-buttons {
    display: flex;
    gap: 12px;
}
.bar-socials {
    display: flex;
    gap: 16px;
}
.social-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: hsl(var(--text-muted));
    border: var(--border-glass);
    transition: var(--transition-smooth);
}
.social-link-icon:hover {
    color: hsl(var(--primary));
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.4);
    transform: translateY(-2px);
}
.upwork-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
}

/* --- Competencies Grid --- */
.competencies-section {
    padding: 100px 24px;
    max-width: 1280px;
    margin: 0 auto;
}
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.competency-card {
    background: rgba(var(--bg-card), 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 36px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.competency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--transition-smooth);
}
.competency-card:hover {
    background: rgba(var(--bg-card-hover), 0.85);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255,255,255,0.15);
}
.competency-card:hover::before {
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.card-icon svg {
    width: 24px;
    height: 24px;
}

/* Themes colors for categories */
.cyan-theme { background: rgba(0, 242, 254, 0.1); color: #00F2FE; }
.royal-theme { background: rgba(79, 172, 254, 0.1); color: #4FACFE; }
.orange-theme { background: rgba(255, 102, 0, 0.1); color: #FF6600; }
.red-theme { background: rgba(255, 46, 58, 0.1); color: #FF2E3A; }
.purple-theme { background: rgba(175, 46, 255, 0.1); color: #AF2EFF; }
.green-theme { background: rgba(46, 255, 126, 0.1); color: #2EFF7E; }

.competency-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}
.competency-card p {
    color: hsl(var(--text-muted));
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.55;
}

.card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.card-skills span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: hsl(var(--text-muted));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Cardano Staking Pool Widget --- */
.cardano-widget-section {
    padding: 100px 24px;
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.widget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.badge-primary {
    background: rgba(0, 242, 254, 0.1);
    color: hsl(var(--primary));
    border: 1px solid rgba(0, 242, 254, 0.25);
}

.widget-info p {
    color: hsl(var(--text-muted));
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.widget-highlights {
    border-left: 3px stroke hsl(var(--primary));
    padding-left: 18px;
    font-style: italic;
}

.stat-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 28px 0 36px 0;
}
.bullet {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bullet .icon {
    color: hsl(var(--primary));
    font-weight: 800;
}
.bullet span {
    font-size: 0.95rem;
}

/* Widget Card details */
.widget-display {
    display: flex;
    justify-content: center;
}
.widget-stat-card {
    width: 100%;
    max-width: 480px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.widget-header {
    display: flex;
    align-items: center;
    gap: 18px;
}
.token-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0056B3 0%, #00C6FF 100%);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.3);
}
.pool-ticker-badge {
    background: rgba(255, 255, 255, 0.08);
    color: hsl(var(--text-white));
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.widget-header h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.card-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 20px 0;
}

.stats-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}
.stat-box {
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.15);
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.03);
}
.stat-label {
    font-size: 0.75rem;
    color: hsl(var(--text-dark));
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: hsl(var(--text-white));
}
.stat-val.uptime-text {
    color: #2EFF7E;
}

.interactive-node-diagram {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 16px;
    font-size: 0.75rem;
}
.diagram-title {
    color: #2EFF7E;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.diagram-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #2EFF7E;
    border-radius: 50%;
}
.diagram-connections {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
}
.diagram-connections .node {
    background: #161B22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
    color: hsl(var(--text-muted));
}
.diagram-connections .node.active {
    border-color: rgba(46, 255, 126, 0.4);
    color: #2EFF7E;
    background: rgba(46, 255, 126, 0.05);
}
.node-arrow {
    color: rgba(255, 255, 255, 0.2);
}

/* --- Project Portfolio --- */
.portfolio-section {
    padding: 100px 24px;
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Category filter tabs */
.portfolio-filters-container {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}
.portfolio-filters {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: 10px;
    border: var(--border-glass);
}
.filter-tab {
    background: transparent;
    border: none;
    color: hsl(var(--text-muted));
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.filter-tab:hover {
    color: hsl(var(--text-white));
}
.filter-tab.active {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    color: hsl(var(--bg-dark));
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

/* Grid of project cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.project-card {
    background: rgba(var(--bg-card), 0.45);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Image placeholders with styled colors */
.project-img-placeholder {
    height: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.project-img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
}
.project-img-symbol {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 4px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.cpp-bg {
    background: linear-gradient(135deg, #0f1c3f 0%, #1e459c 100%);
    color: #4FACFE;
}
.blockchain-bg {
    background: linear-gradient(135deg, #2b113f 0%, #762299 100%);
    color: #AF2EFF;
}
.ai-bg {
    background: linear-gradient(135deg, #0c2f2f 0%, #147a7e 100%);
    color: #00F2FE;
}

.project-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.project-category-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(var(--primary));
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.project-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}
.project-card-content p {
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 18px;
}
.project-tech-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: hsl(var(--text-muted));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Career Timeline --- */
.timeline-section {
    padding: 100px 24px;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-container {
    position: relative;
    padding-left: 36px;
}
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 60%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: hsl(var(--bg-dark));
    border: 3px solid hsl(var(--primary));
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.6);
    z-index: 2;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: hsl(var(--primary));
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-card {
    background: rgba(var(--bg-card), 0.45);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 28px;
    transition: var(--transition-smooth);
}
.timeline-card:hover {
    background: rgba(var(--bg-card-hover), 0.6);
    border-color: rgba(255,255,255,0.12);
}

.card-company {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: hsl(var(--text-dark));
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.timeline-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.timeline-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.timeline-bullets li {
    font-size: 0.92rem;
    color: hsl(var(--text-muted));
    position: relative;
    padding-left: 18px;
}
.timeline-bullets li::before {
    content: '▪';
    position: absolute;
    left: 0;
    top: 0;
    color: hsl(var(--primary));
    font-size: 0.85rem;
}

/* --- Recruiter Hub / Relocation Hub --- */
.recruiter-hub-section {
    padding: 60px 24px;
    max-width: 1280px;
    margin: 0 auto;
}
.hub-container {
    padding: 56px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.hub-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 44px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hub-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin: 14px 0 10px 0;
}
.hub-header p {
    color: hsl(var(--text-muted));
}

.hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}
.hub-feature h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.hub-feature p {
    color: hsl(var(--text-muted));
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 24px;
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-info-card {
    padding: 40px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.contact-info-card p {
    color: hsl(var(--text-muted));
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.detail-item .icon {
    font-size: 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-item .label {
    font-size: 0.75rem;
    color: hsl(var(--text-dark));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}
.detail-item .val {
    font-size: 1.05rem;
    font-weight: 600;
    color: hsl(var(--text-white));
    text-decoration: none;
    transition: var(--transition-smooth);
    word-break: break-all;
}
.detail-item a.val:hover {
    color: hsl(var(--primary));
}

.social-text-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.social-text-links a {
    text-decoration: none;
    color: hsl(var(--text-muted));
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.social-text-links a:hover {
    color: hsl(var(--primary));
    transform: translateX(4px);
}

/* Contact Interactive Form */
.contact-form-card {
    padding: 44px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
    margin-bottom: 8px;
}
.form-group label .required {
    color: #FF2E3A;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: hsl(var(--text-white));
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.15);
}

.form-status-message {
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
}
.form-status-message.success {
    background: rgba(46, 255, 126, 0.08);
    color: #2EFF7E;
    border: 1px solid rgba(46, 255, 126, 0.25);
    display: block;
}
.form-status-message.error {
    background: rgba(255, 46, 58, 0.08);
    color: #FF2E3A;
    border: 1px solid rgba(255, 46, 58, 0.25);
    display: block;
}

/* Spinner element */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Footer Area --- */
.site-footer {
    background: #05070A;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 80px 24px 40px 24px;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin: 12px 0 6px 0;
}
.footer-brand p {
    color: hsl(var(--text-dark));
    font-size: 0.95rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-links-grid h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: hsl(var(--text-dark));
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.footer-links-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links-grid ul a {
    text-decoration: none;
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.footer-links-grid ul a:hover {
    color: hsl(var(--primary));
    padding-left: 4px;
}

.footer-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 32px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-bottom p {
    color: hsl(var(--text-dark));
    font-size: 0.85rem;
}
.footer-tech-note {
    font-size: 0.8rem;
    color: hsl(var(--text-dark));
}

/* --- Responsive Media Queries --- */

/* Wide Tablets & Small Desktops */
@media (max-width: 1024px) {
    html { font-size: 15px; }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-description {
        margin: 0 auto 36px auto;
    }
    .hero-cta {
        justify-content: center;
    }
    .tech-stack-row {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .hero-title {
        font-size: 2.6rem;
    }

    .widget-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Tablets (Portrait) */
@media (max-width: 768px) {
    .d-none-mobile { display: none !important; }
    .d-show-mobile { display: flex !important; }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 79px; /* under navbar border */
        left: -100%;
        width: 100%;
        height: calc(100vh - 79px);
        background: rgba(5, 7, 10, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 40px;
        transition: var(--transition-smooth);
        border-top: var(--border-glass);
    }
    .nav-menu.open {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }
    .nav-item {
        font-size: 1.2rem;
    }
    
    /* hamburger active visual transition */
    .menu-open .hamburger {
        background: transparent;
    }
    .menu-open .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    .menu-open .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .bar-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 24px;
    }
    
    .hub-grid {
        grid-template-columns: 1fr;
    }
    .hub-container {
        padding: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Screens */
@media (max-width: 480px) {
    body, html, .content-wrapper {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    /* Section padding optimizations to maximize content width */
    .hero-section {
        padding: 40px 16px !important;
    }
    .competencies-section {
        padding: 60px 16px !important;
    }
    
    .hero-content {
        align-items: flex-start !important;
        text-align: left !important;
    }
    .hero-description {
        margin: 0 0 32px 0 !important;
        text-align: justify !important;
        font-size: 1.02rem !important;
    }
    
    /* Fully responsive Hero CTA Buttons */
    .hero-cta {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
        margin-bottom: 32px !important;
        justify-content: flex-start !important;
    }
    .hero-cta .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
    
    .tech-stack-row {
        align-items: flex-start !important;
        text-align: left !important;
        padding-top: 20px !important;
    }
    
    /* Code Terminal responsiveness & text wrapping */
    .code-terminal {
        max-width: 100% !important;
    }
    .terminal-body {
        padding: 16px !important;
        font-size: 0.72rem !important;
    }
    .line-code {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
    }
    
    .section-header {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        margin-bottom: 36px !important;
    }
    .section-title {
        font-size: 1.85rem !important;
    }
    .section-desc {
        font-size: 0.95rem !important;
    }
    
    .hero-title {
        font-size: 1.65rem;
        line-height: 1.25;
        letter-spacing: -0.5px;
    }
    .relocation-floating-badge {
        top: 12px;
        right: 12px;
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    .competencies-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    .filter-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .bar-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .bar-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .stats-matrix {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .competency-card, .contact-info-card, .contact-form-card {
        padding: 24px;
    }
    .timeline-card {
        padding: 20px;
    }
    .hub-container {
        padding: 24px;
    }
}
