/* ==========================================================================
   SHAJJAD KHAN — OFFICIAL PORTFOLIO STYLESHEET
   Domain: www.shajjadkhan.com
   ========================================================================== */

:root {
    --bg-main: #050811;
    --bg-surface: #0a0f1d;
    --bg-card: #0e1628;
    --bg-card-hover: #131d36;
    --bg-glass: rgba(10, 15, 29, 0.88);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(16, 185, 129, 0.25);

    /* Accents */
    --emerald: #10b981;
    --emerald-dark: #047857;
    --emerald-glow: rgba(16, 185, 129, 0.35);
    --emerald-subtle: rgba(16, 185, 129, 0.12);

    --cyan: #00f3ff;
    --cyan-glow: rgba(0, 243, 255, 0.3);
    --cyan-subtle: rgba(0, 243, 255, 0.1);

    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.3);
    --gold-subtle: rgba(245, 158, 11, 0.12);

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
    --text-white: #ffffff;
}

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

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10001;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #020617;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 35%, rgba(0, 243, 255, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

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

/* Section Shared Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: clamp(15px, 1.8vw, 17px);
    max-width: 680px;
    margin-bottom: 48px;
    line-height: 1.6;
}

/* Gradients & Text Accents */
.gradient-text-emerald {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #38bdf8 0%, #00f3ff 50%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-emerald { color: var(--emerald) !important; }
.text-cyan { color: var(--cyan) !important; }
.text-gold { color: var(--gold) !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.btn-emerald-sm {
    background: var(--emerald);
    color: #000;
    padding: 8px 18px;
    font-size: 13px;
}
.btn-emerald-sm:hover {
    background: #34d399;
    box-shadow: 0 0 20px var(--emerald-glow);
    transform: translateY(-1px);
}

.btn-emerald-lg {
    background: linear-gradient(135deg, #10b981, #047857);
    color: #fff;
    padding: 14px 28px;
    font-size: 15px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 25px rgba(16, 185, 129, 0.3);
}
.btn-emerald-lg:hover {
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline-lg {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    padding: 14px 24px;
    font-size: 15px;
}
.btn-outline-lg:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #fff;
}

.btn-subtle-lg {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 20px;
    font-size: 15px;
}
.btn-subtle-lg:hover {
    color: #fff;
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-emerald-block {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #047857);
    color: #fff;
    padding: 14px;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.btn-emerald-block:hover {
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   EXECUTIVE NAVIGATION BAR (REDESIGNED)
   ========================================================================== */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(5, 8, 17, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.navbar-fixed.scrolled {
    background: rgba(5, 8, 17, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.75);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Brand Mark & Identity */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo:hover {
    transform: translateY(-1px);
}

.logo-mark {
    width: 46px;
    height: 36px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(0, 243, 255, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.logo-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 70%);
}

.logo-initials {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #34d399, #00f3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.brand-logo-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 34px;
    height: 22px;
    object-fit: contain;
}

.logo-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.logo-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 11px;
    font-family: var(--font-mono);
    line-height: 1;
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
    display: inline-block;
    animation: statusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Nav Links Container (Desktop Pill) */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3px 4px;
    border-radius: 9999px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 9999px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 600;
}

.nav-link-flagship {
    color: #f1f5f9;
}

.nav-link-flagship:hover {
    color: #34d399;
}

.nav-badge-flagship {
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Right Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* FastTrack Tools Pill */
.nav-tools-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 9999px;
    background: rgba(0, 243, 255, 0.06);
    border: 1px solid rgba(0, 243, 255, 0.24);
    color: #00f3ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-tools-pill:hover {
    background: rgba(0, 243, 255, 0.12);
    border-color: rgba(0, 243, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.25);
    transform: translateY(-1px);
    color: #ffffff;
}

.tools-pill-icon {
    font-size: 12px;
    color: #38bdf8;
}

.tools-pill-arrow {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.nav-tools-pill:hover .tools-pill-arrow {
    transform: translate(2px, -2px);
}

/* Executive CTA Button */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta-btn:hover {
    background: linear-gradient(135deg, #34d399 0%, #047857 100%);
    box-shadow: 0 4px 22px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
    color: #ffffff;
}

.nav-cta-btn i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.nav-cta-btn:hover i {
    transform: translateX(3px);
}

/* Mobile Toggle Button */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.mobile-menu-btn .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #f8fafc;
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mobile-menu-btn.open .bar-top {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open .bar-mid {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.open .bar-bot {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer-actions {
    display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(0, 243, 255, 0.05) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 30px;
    padding: 6px 16px;
    margin-bottom: 24px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: #a7f3d0;
}

.pulse-beacon {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald);
    animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(34px, 5.5vw, 62px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    max-width: 960px;
}

.hero-description {
    color: var(--text-secondary);
    font-size: clamp(16px, 2vw, 19px);
    max-width: 780px;
    line-height: 1.68;
    margin-bottom: 36px;
}

.hero-description strong {
    color: #fff;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 64px;
}

/* Metrics Strip */
.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    border-top: 1px solid var(--border-glass);
    padding-top: 36px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
}

.metric-value {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.metric-detail {
    font-size: 11.5px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* ==========================================================================
   FLAGSHIP PRODUCT: TAWREEDFLOW
   ========================================================================== */
.flagship-section {
    background: linear-gradient(180deg, rgba(6, 12, 24, 0.4) 0%, rgba(10, 20, 36, 0.6) 100%);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.arabic-sub {
    font-family: var(--font-heading);
    font-size: 0.8em;
    color: var(--gold);
    margin-left: 6px;
}

.flagship-card {
    background: var(--bg-card);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.1);
}

.flagship-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.flagship-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flagship-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 6px;
}

.flagship-heading {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

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

.tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

.tag-emerald { background: var(--emerald-subtle); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-gold { background: var(--gold-subtle); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-cyan { background: var(--cyan-subtle); color: #38bdf8; border: 1px solid rgba(0, 243, 255, 0.3); }

.flagship-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
}

.feature-block {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.bg-emerald-light {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.feature-block h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.feature-block p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Spec Panel */
.spec-panel {
    background: rgba(5, 10, 20, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 24px;
}

.spec-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.spec-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
}

.badge-status-live {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    border: 1px solid var(--emerald);
    padding: 2px 8px;
    border-radius: 4px;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-key {
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.spec-val {
    color: #e2e8f0;
    font-weight: 600;
    text-align: right;
}

.link-emerald {
    color: var(--emerald);
    text-decoration: underline;
}

.quote-box {
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid var(--emerald);
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
}

.quote-text {
    color: #cbd5e1;
    font-size: 12.5px;
    font-style: italic;
    line-height: 1.5;
}

/* ==========================================================================
   PROJECTS SHOWCASE GRID
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 28px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.project-badge {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.bg-cyan-subtle { background: var(--cyan-subtle); color: #38bdf8; border: 1px solid rgba(0, 243, 255, 0.25); }
.bg-gold-subtle { background: var(--gold-subtle); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.bg-emerald-subtle { background: var(--emerald-subtle); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }

.project-year {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.project-summary {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-highlights {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-highlights li {
    font-size: 13px;
    color: #cbd5e1;
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.project-highlights li::before {
    content: "•";
    color: var(--emerald);
    position: absolute;
    left: 2px;
    font-weight: bold;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid var(--border-glass);
    padding-top: 14px;
}

.tech-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ==========================================================================
   ABOUT & PHILOSOPHY
   ========================================================================== */
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 42px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
}

.about-lead {
    font-size: 18px;
    font-weight: 500;
    color: #f1f5f9;
    line-height: 1.6;
    margin-bottom: 28px;
}

.principles-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.principle-item {
    display: flex;
    gap: 16px;
}

.principle-num {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.principle-item h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.principle-item p {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.55;
}

/* Profile Card */
.profile-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 30px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #111a30;
    border: 2px solid var(--emerald);
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-role {
    color: var(--emerald);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.profile-loc {
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 16px;
}

.profile-bio-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.profile-links {
    display: flex;
    gap: 8px;
    width: 100%;
}

.profile-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 8px 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   TECHNICAL ARSENAL / STACK
   ========================================================================== */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stack-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s ease;
}

.stack-category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.category-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e1;
}

.skills-list strong {
    color: #fff;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 42px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.method-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.method-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.link-gold { color: var(--gold); text-decoration: none; }
.link-gold:hover { text-decoration: underline; }
.link-cyan { color: var(--cyan); text-decoration: none; }
.link-cyan:hover { text-decoration: underline; }

/* Contact Form */
.cyber-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 28px;
}

.form-heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.input-field label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
}

.input-field input,
.input-field select,
.input-field textarea {
    width: 100%;
    background: rgba(5, 10, 20, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 10px 12px;
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 12px var(--emerald-glow);
}

.alert-box {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--emerald);
    color: #a7f3d0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.d-none {
    display: none !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.portfolio-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    padding: 36px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 15px;
    color: #fff;
    margin-bottom: 6px;
}

.footer-copy {
    color: var(--text-dim);
    font-size: 12px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.system-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #a7f3d0;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
}

.footer-links {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* ==========================================================================
   TOOLS HUB SECTION IN PORTFOLIO
   ========================================================================== */
.badge-tools-pill {
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
    margin-right: 4px;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.tools-section {
    position: relative;
    background: linear-gradient(180deg, rgba(8, 12, 20, 0.7) 0%, rgba(13, 19, 32, 0.9) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 20px;
    flex-wrap: wrap;
}

.tools-search-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tools-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 4px 16px;
    transition: var(--transition);
    margin-bottom: 18px;
}

.tools-search-input-wrap:focus-within {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.tools-search-icon {
    font-size: 18px;
    color: var(--text-dim);
    margin-right: 12px;
}

.tools-search-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    padding: 12px 0;
    font-family: var(--font-sans);
}

.tools-search-input-wrap input::placeholder {
    color: var(--text-dim);
}

.search-counter-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 99px;
    white-space: nowrap;
}

.tools-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.p-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.p-pill-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.p-pill-btn.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--emerald);
    color: var(--emerald);
    font-weight: 600;
}

.portfolio-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.p-tool-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.p-tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.08);
    background: rgba(21, 32, 54, 0.85);
}

.p-tool-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.p-tool-icon {
    font-size: 26px;
    line-height: 1;
}

.p-tool-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.p-tool-cat {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.p-tool-feature-badge {
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    padding: 3px 7px;
    border-radius: 4px;
}

.p-tool-card-body {
    flex: 1;
    margin-bottom: 16px;
}

.p-tool-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.35;
}

.p-tool-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.p-tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.p-tool-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--emerald);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.p-tool-launch-btn:hover {
    color: #34d399;
    transform: translateX(3px);
}

.empty-tools-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    margin-top: 20px;
}

.empty-tools-state .empty-icon {
    font-size: 36px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.empty-tools-state h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #fff;
}

.empty-tools-state p {
    color: var(--text-muted);
    font-size: 14px;
}

.empty-tools-state code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--emerald);
}

.tag-pdf { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.tag-image { background: rgba(139, 92, 246, 0.15); color: #c084fc; }
.tag-business { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-web { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.tag-dev { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tag-content { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.tag-converters { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

/* Direct Email Buttons (Parity with shajjadkhan.com) */
.direct-email-btns {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn-emerald-xs {
    background: var(--emerald);
    color: #000;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-emerald-xs:hover {
    background: #34d399;
}

.btn-outline-xs {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

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

/* Interactive Specs Card (Parity with shajjadkhan.com) */
.interactive-specs-card {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 18px;
}

.specs-tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.spec-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.spec-tab-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.spec-tab-btn.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--emerald);
    color: var(--emerald);
}

.spec-detail-content {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 14px;
    border-radius: 6px;
    border-left: 3px solid var(--emerald);
}

.mobile-drawer-actions {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cyan-block {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22d3ee;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (ALL DEVICES)
   ========================================================================== */
@media (max-width: 1024px) {
    .metrics-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .flagship-grid {
        grid-template-columns: 1fr;
    }
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .desktop-nav-item {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .logo-role {
        display: none;
    }
    .logo-name {
        font-size: 15px;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 68px);
        background: rgba(5, 8, 17, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 24px 20px 40px;
        overflow-y: auto;
        z-index: 9999;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        animation: slideDrawerIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav-links.active {
        display: flex;
    }

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

    .nav-links-inner {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: transparent;
        border: none;
        padding: 0;
        gap: 8px;
    }

    .nav-link {
        width: 100%;
        font-size: 15.5px;
        font-weight: 600;
        padding: 13px 16px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: #f8fafc;
        justify-content: space-between;
    }

    .nav-link:hover, .nav-link:active {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }

    .mobile-drawer-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 16px;
    }

    .mobile-drawer-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.08);
        width: 100%;
        margin: 6px 0;
    }

    .btn-mobile-tools {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(0, 243, 255, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%);
        border: 1px solid rgba(0, 243, 255, 0.25);
        text-decoration: none;
        color: #f8fafc;
        transition: all 0.2s ease;
    }

    .btn-mobile-tools:active {
        background: linear-gradient(135deg, rgba(0, 243, 255, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
    }

    .mobile-tools-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(0, 243, 255, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #00f3ff;
        font-size: 18px;
        flex-shrink: 0;
    }

    .mobile-tools-text {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .mobile-tools-title {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 14px;
        color: #ffffff;
    }

    .mobile-tools-sub {
        font-size: 11px;
        color: var(--text-dim);
    }

    .mobile-tools-arrow {
        color: #00f3ff;
        font-size: 14px;
    }

    .btn-mobile-contact {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px;
        border-radius: 10px;
        background: linear-gradient(135deg, #10b981 0%, #047857 100%);
        color: #ffffff;
        text-decoration: none;
        font-weight: 700;
        font-size: 14.5px;
        font-family: var(--font-heading);
        box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .nav-container {
        padding: 0 16px;
    }
    .section {
        padding: 48px 0;
    }
    .hero-section {
        padding: 96px 0 44px;
    }
    .hero-bg-glow {
        width: 100%;
        max-width: 320px;
        filter: blur(40px);
    }
    .status-badge {
        max-width: 100%;
        font-size: 11px;
        padding: 6px 12px;
        gap: 6px;
    }
    .status-sub {
        display: none;
    }
    .status-sep {
        display: none;
    }
    .hero-title {
        font-size: clamp(1.85rem, 6vw, 2.6rem);
        word-break: break-word;
        letter-spacing: -0.02em;
    }
    .hero-cta-group {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }
    .metrics-strip {
        grid-template-columns: 1fr;
    }
    .stack-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-right {
        align-items: flex-start;
    }
    .flagship-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .flagship-card {
        padding: 20px 16px;
    }
    .about-card {
        padding: 20px 16px;
    }
    .contact-card {
        padding: 20px 16px;
    }
    .tools-search-card {
        padding: 16px;
    }
    .tools-search-input-wrap {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
        gap: 8px;
    }
    .search-counter-tag {
        align-self: flex-start;
    }
    .portfolio-tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }
    .nav-container {
        padding: 0 14px;
    }
    .hero-section {
        padding: 86px 0 36px;
    }
    .status-badge {
        font-size: 10.5px;
        padding: 5px 10px;
    }
    .tools-category-pills {
        gap: 6px;
    }
    .p-pill-btn {
        padding: 5px 9px;
        font-size: 11px;
    }
    .flagship-card {
        padding: 16px 12px;
    }
    .about-card {
        padding: 16px 12px;
    }
    .contact-card {
        padding: 16px 12px;
    }
}



/* Tech enthusiast landing motion */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(0, 229, 153, 0.16), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(34, 211, 238, 0.13), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.08), transparent 55%);
    pointer-events: none;
    animation: heroAtmosphere 12s ease-in-out infinite alternate;
}

.hero-cyber-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.075) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.18), transparent);
    opacity: .45;
    transform: perspective(700px) rotateX(58deg) translateY(-18%);
    transform-origin: top;
    animation: gridDrift 18s linear infinite;
    pointer-events: none;
}

.hero-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 40px rgba(0, 229, 153, 0.08), 0 0 50px rgba(34, 211, 238, 0.08);
    pointer-events: none;
}

.hero-orbit-one {
    width: 360px;
    height: 360px;
    right: 8%;
    top: 130px;
    animation: slowOrbit 22s linear infinite;
}

.hero-orbit-two {
    width: 180px;
    height: 180px;
    right: 22%;
    top: 250px;
    animation: slowOrbit 16s linear infinite reverse;
}

.hero-content > * {
    animation: riseIn .72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content > *:nth-child(2) { animation-delay: .08s; }
.hero-content > *:nth-child(3) { animation-delay: .16s; }
.hero-content > *:nth-child(4) { animation-delay: .24s; }
.hero-content > *:nth-child(5) { animation-delay: .34s; }

.hero-title .gradient-text-emerald,
.hero-title .gradient-text-cyan {
    background-size: 220% 220%;
    animation: gradientTravel 6s ease-in-out infinite alternate;
}

.btn-emerald-lg,
.btn-cyan-lg,
.nav-tools-pill {
    position: relative;
    overflow: hidden;
}

.btn-emerald-lg::after,
.btn-cyan-lg::after,
.nav-tools-pill::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -55%;
    width: 42%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    animation: buttonScan 4.8s ease-in-out infinite;
}

.metric-card,
.project-card,
.about-card,
.stack-category-card,
.contact-card,
.flagship-card {
    will-change: transform;
}

.metric-card:hover,
.project-card:hover,
.stack-category-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 55px rgba(0, 229, 153, 0.08), 0 12px 35px rgba(0, 0, 0, 0.45);
}

.metric-card::before,
.project-card::before,
.stack-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 38%, rgba(0,229,153,.08));
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.metric-card,
.project-card,
.stack-category-card {
    position: relative;
    overflow: hidden;
}

.metric-card:hover::before,
.project-card:hover::before,
.stack-category-card:hover::before {
    opacity: 1;
}

@keyframes heroAtmosphere {
    from { opacity: .72; transform: translate3d(0, 0, 0) scale(1); }
    to { opacity: 1; transform: translate3d(0, -18px, 0) scale(1.03); }
}

@keyframes gridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 108px, 108px 0; }
}

@keyframes slowOrbit {
    from { transform: rotate(0deg) translateX(10px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(10px) rotate(-360deg); }
}

@keyframes floatChip {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -18px, 0); }
}

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

@keyframes gradientTravel {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

@keyframes buttonScan {
    0%, 62% { left: -55%; }
    100% { left: 120%; }
}

@media (max-width: 768px) {
    .hero-cyber-grid {
        background-size: 38px 38px;
        opacity: .32;
    }

    .hero-orbit-one {
        width: 220px;
        height: 220px;
        right: -70px;
        top: 120px;
    }

    .hero-orbit-two {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .hero-cyber-grid,
    .hero-orbit,
    .play-chip,
    .hero-content > *,
    .hero-title .gradient-text-emerald,
    .hero-title .gradient-text-cyan,
    .btn-emerald-lg::after,
    .btn-cyan-lg::after,
    .nav-tools-pill::after,
    .pulse-beacon {
        animation: none !important;
    }
}


/* Playable full-page tech chips */
.playful-tech-field {
    position: fixed;
    inset: 0;
    z-index: 35;
    pointer-events: none;
    overflow: hidden;
    contain: layout paint;
}

.play-chip {
    pointer-events: auto;
    cursor: grab;
    opacity: .78;
    user-select: none;
    touch-action: none;
    transition: transform .12s ease, box-shadow .18s ease, opacity .2s ease, border-color .18s ease;
}

.play-chip:hover,
.play-chip:focus-visible,
.play-chip.is-dragging {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 18px 55px rgba(34, 211, 238, 0.16), 0 14px 40px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.12);
    outline: none;
}

.play-chip.is-dragging {
    cursor: grabbing;
    animation: none !important;
    z-index: 2;
}

.play-chip.is-dropped {
    animation: chipDropBounce .72s cubic-bezier(.2, .9, .26, 1.1) both !important;
}

@keyframes chipDropBounce {
    0% { transform: translate3d(var(--chip-x, 0px), var(--chip-y, 0px), 0) scale(1.06) rotate(var(--chip-rot, 0deg)); }
    62% { transform: translate3d(var(--chip-x, 0px), calc(var(--chip-y, 0px) + 34px), 0) scale(.96) rotate(var(--chip-rot, 0deg)); }
    82% { transform: translate3d(var(--chip-x, 0px), calc(var(--chip-y, 0px) - 10px), 0) scale(1.02) rotate(var(--chip-rot, 0deg)); }
    100% { transform: translate3d(var(--chip-x, 0px), var(--chip-y, 0px), 0) scale(1) rotate(var(--chip-rot, 0deg)); }
}

@media (max-width: 768px) {
    .playful-tech-field {
        z-index: 25;
    }
}

@media (max-width: 520px) {
    .play-chip {
        opacity: .72;
    }
}

.chip-flask { top: 82%; left: 62%; color: #fdba74; animation-delay: -4.5s; }
.chip-nginx { top: 48%; left: 3%; color: #93c5fd; animation-delay: -6.2s; }
.chip-aiops { top: 78%; left: 86%; color: #a7f3d0; animation-delay: -7.1s; }

