/* =====================================================
   IJHAR ANSARI — Portfolio Design System
   Theme: Dark-first Developer Dashboard / Terminal Hybrid
   ===================================================== */

/* === CSS VARIABLES === */
:root {
    /* Core Colors */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2235;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(26, 34, 53, 0.6);
    
    /* Accent Colors */
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #00d4ff;
    
    /* Borders */
    --border-color: rgba(148, 163, 184, 0.1);
    --border-glow: rgba(0, 212, 255, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #00d4ff 100%);
    --gradient-card: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(10, 14, 23, 0.95));
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    --shadow-glow-strong: 0 0 40px rgba(0, 212, 255, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #33e0ff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* === UTILITY CLASSES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-md);
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mono { font-family: var(--font-mono); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* === WHATSAPP-STYLE STATUS BAR === */
.status-bar-container {
    width: 100%;
    padding: 16px 0;
    margin-top: 90px;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 900;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.status-bar-container .container {
    display: block;
    padding-left: 0;
    padding-right: 0;
}

.status-bar-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.status-bar-scroll::-webkit-scrollbar {
    display: none;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    min-width: 76px;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.status-item:hover {
    transform: scale(1.08);
    text-decoration: none;
}

.status-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed, #ec4899);
    animation: statusPulse 3s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
}

.status-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #0a0e17;
    overflow: hidden;
    background: #1a2235;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.status-avatar svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.status-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.status-new-badge {
    position: relative;
}

.status-new-badge::after {
    content: 'NEW';
    position: absolute;
    bottom: 14px;
    right: -4px;
    background: #10b981;
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* === STATUS VIEWER (Fullscreen WhatsApp Style) === */
.status-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-viewer-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: blur(30px);
    transform: scale(1.2);
}

.status-viewer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.status-viewer-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    height: 90vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Progress Bar */
.status-progress-bar {
    display: flex;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    padding-top: var(--space-md);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.status-progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.status-progress-segment .fill {
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.status-progress-segment.completed .fill {
    width: 100%;
}

.status-progress-segment.active .fill {
    animation: statusProgress 5s linear forwards;
}

@keyframes statusProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* Status Header */
.status-viewer-header {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    padding-top: calc(var(--space-md) + 12px);
    gap: var(--space-md);
    position: relative;
    z-index: 3;
}

.status-viewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-viewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-viewer-meta {
    flex: 1;
}

.status-viewer-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.status-viewer-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.status-viewer-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
    transition: color var(--transition-fast);
}

.status-viewer-close:hover {
    color: #fff;
}

/* Status Content */
.status-viewer-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
}

.status-viewer-text {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.6;
    max-width: 100%;
    word-wrap: break-word;
}

.status-mood-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
}

/* Navigation Tap Zones */
.status-tap-left,
.status-tap-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    z-index: 2;
    cursor: pointer;
}

.status-tap-left {
    left: 0;
}

.status-tap-right {
    right: 0;
    width: 65%;
}

/* Tap Ripple */
.tap-ripple {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.tap-ripple.active {
    opacity: 1;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.1); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.25); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    padding: 0;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand .ij-logo {
    transition: transform 0.3s ease;
}

.nav-brand:hover .ij-logo {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all var(--transition-base);
}

/* === HERO VISUAL (Photo + Terminal) === */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    animation: slideInRight 0.8s ease 0.3s both;
}

.hero-photo-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: 
        conic-gradient(from 0deg, #00d4ff, #7c3aed, #ec4899, #10b981, #00d4ff) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringRotate 4s linear infinite;
}

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

.hero-photo-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.3),
        0 0 60px rgba(124, 58, 237, 0.15);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.2), 0 0 40px rgba(124,58,237,0.1); }
    50% { box-shadow: 0 0 40px rgba(0,212,255,0.4), 0 0 80px rgba(124,58,237,0.2); }
}

.hero-photo {
    position: relative;
    z-index: 2;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-photo-wrapper:hover .hero-photo img {
    transform: scale(1.05);
}

.hero-photo-badge {
    position: absolute;
    bottom: 8px;
    z-index: 3;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-md);
}

/* Mini Terminal */
.hero-terminal-mini {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.hero-terminal-mini .hero-terminal-body {
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
}

.hero-terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

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

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.hero-terminal-body {
    padding: var(--space-xl);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: var(--space-xs);
}

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

.terminal-command {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: var(--space-lg);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent-primary);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 4px;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 160px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: slideInRight 0.8s ease 0.3s both;
}

.hero-terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.hero-terminal-body {
    padding: var(--space-xl);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: var(--space-sm);
}

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

.terminal-command {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: var(--space-lg);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--accent-primary);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 4px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-tertiary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.4);
    color: white;
}

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.05);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: var(--accent-danger);
    color: white;
}

.btn-success {
    background: var(--accent-tertiary);
    color: white;
}

/* === METRICS SECTION === */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-lg);
}

.metric-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.metric-description {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* === SKILL GRAPH (Not Progress Bars) === */
.skill-constellation {
    position: relative;
    min-height: 500px;
}

.skill-category {
    margin-bottom: var(--space-2xl);
}

.skill-category-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.skill-category-title::before {
    content: '◆';
    color: var(--accent-secondary);
}

.skill-orbit {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.skill-node {
    position: relative;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    cursor: default;
}

.skill-node::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-md);
    padding: 1px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.skill-node:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.skill-node:hover::before {
    opacity: 1;
}

.skill-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
}

.skill-level-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: var(--space-sm);
}

.skill-level-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 1s ease;
    width: 0;
}

.skill-level-fill.animated {
    /* Width set inline */
}

.skill-level-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* === PROJECT CARDS === */
.projects-showcase {
    display: grid;
    gap: var(--space-xl);
}

.project-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-strong);
}

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

.project-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 23, 0.9), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

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

.project-card-body {
    padding: var(--space-xl);
}

.project-card-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.project-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.project-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.project-card-footer {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.featured-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    z-index: 2;
}

/* === PROJECT DEEP DIVE === */
.project-deep-dive {
    max-width: 900px;
    margin: 0 auto;
}

.project-hero {
    position: relative;
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-2xl);
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.project-hero-content {
    position: absolute;
    bottom: var(--space-2xl);
    left: var(--space-2xl);
    right: var(--space-2xl);
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.meta-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
}

.meta-card-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.meta-card-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding-left: var(--space-2xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-2xl);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-2xl) - 5px);
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.timeline-item.current::before {
    animation: pulse 2s infinite;
    background: var(--accent-tertiary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.timeline-company {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.timeline-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.timeline-achievements {
    list-style: none;
}

.timeline-achievements li {
    position: relative;
    padding-left: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.timeline-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-tertiary);
}

/* === ENGINEERING PHILOSOPHY === */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.philosophy-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.philosophy-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.philosophy-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.philosophy-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.philosophy-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === SYSTEM ARCHITECTURE SHOWCASE === */
.architecture-diagram {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.architecture-diagram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px),
        linear-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

.arch-layer {
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.arch-layer-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.arch-services {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.arch-service {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.arch-service:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.arch-arrow {
    text-align: center;
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin: var(--space-sm) 0;
}

/* === BLOG === */
.blog-grid {
    display: grid;
    gap: var(--space-xl);
}

.blog-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-glow);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: var(--space-xl);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.85rem;
}

.blog-card-category {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-date {
    color: var(--text-muted);
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.blog-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

/* Blog Single */
.blog-single-header {
    margin-bottom: var(--space-2xl);
}

.blog-single-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.blog-single-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blog-single-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.blog-single-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: var(--space-2xl) 0 var(--space-md);
    color: var(--text-primary);
}

.blog-single-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: var(--space-xl) 0 var(--space-md);
}

.blog-single-content p {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}

.blog-single-content ul, .blog-single-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
    color: var(--text-secondary);
}

.blog-single-content li {
    margin-bottom: var(--space-sm);
}

/* === PAGINATION === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination a {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.pagination a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination .current {
    background: var(--gradient-primary);
    color: white;
    border: 1px solid transparent;
}

/* === FOOTER === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 350px;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* === CONTACT SECTION === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.contact-info-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* === 404 PAGE === */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-message {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* === ADMIN STYLES === */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: var(--space-xl) 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    overflow-y: auto;
}

.admin-sidebar-brand {
    padding: 0 var(--space-xl) var(--space-xl);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
}

.admin-sidebar-brand a {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-sidebar-brand span {
    color: var(--accent-primary);
}

.admin-nav {
    list-style: none;
}

.admin-nav-section {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: var(--space-md) var(--space-xl);
    margin-top: var(--space-md);
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(0, 212, 255, 0.05);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}

.admin-main {
    margin-left: 250px;
    padding: var(--space-xl);
    background: var(--bg-primary);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.admin-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.admin-stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.admin-table tr:hover td {
    background: rgba(0, 212, 255, 0.02);
}

.status-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.published {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-tertiary);
}

.status-badge.draft {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
}

/* Admin Form */
.admin-form {
    max-width: 800px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.admin-form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.login-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(20px);
}

.login-card h2 {
    text-align: center;
    margin-bottom: var(--space-xs);
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

/* Flash Messages */
.flash-message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

.flash-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-tertiary);
}

.flash-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
}

/* === CATEGORY FILTER === */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.category-btn {
    padding: var(--space-sm) var(--space-md);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-btn:hover,
.category-btn.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* === SEARCH BAR === */
.search-bar {
    position: relative;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-right: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.search-bar button {
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-sm);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero-visual {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-photo-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .hero-photo {
        width: 180px;
        height: 180px;
    }
    
    .hero-terminal-mini {
        flex: 1;
        min-width: 280px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        display: none;
    }
    
    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .about-intro {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .about-photo-card {
        margin: 0 auto !important;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* === SVG Icon Styles === */
.icon-primary { color: var(--accent-primary); }
.icon-secondary { color: var(--accent-secondary); }
.icon-tertiary { color: var(--accent-tertiary); }
.icon-warning { color: var(--accent-warning); }
.icon-danger { color: var(--accent-danger); }
.icon-muted { color: var(--text-muted); }

.status-mood-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.philosophy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.metric-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.philosophy-icon svg {
    width: 40px;
    height: 40px;
}
